Package br.com.procempa.modus.entity

Examples of br.com.procempa.modus.entity.Curso


   
    assertEquals(curso1.getNome(),curso.getNome());
  }
 
  public void testFindCurso() throws Exception {
    Curso curso  = (Curso) pa.find(Curso.class, new Long(4));
   
    assertEquals(curso.getNome(),"Curso Teste");
 
View Full Code Here


import br.com.procempa.modus.session.PersistentAccess;

public class CursoDataServices implements DataServices {

  public static Curso getCurso(Long id) {
    Curso curso = null;
    try {
      PersistentAccess pa = PersistentAccessFactory.getInstance();
      curso = (Curso) pa.find(Curso.class, id);
    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here

  }

  public static void remove(Long id) throws Exception {
    try {
      PersistentAccess pa = PersistentAccessFactory.getInstance();
      Curso curso = (Curso) pa.find(Curso.class, id);
   
      List<Inscricao> inscritos = InscricaoDataServices.getList(curso);
      if (inscritos.isEmpty()){

        List<Conteudo> conteudos = ConteudoDataServices.getList(curso);
View Full Code Here

    return CursoActionFactory.makeNew();
  }

  @Override
  public void buildTabs() {
    Curso curso = (Curso) getSelectedData();
    try {
      addTab("Turmas", IconFactory.createTurma16(), TurmaSearch.getInstance(curso));
      addTab("Conte�dos", IconFactory.createConteudo16(), ConteudoSearch.getInstance(curso));
      addTab("Inscritos", IconFactory.createInscricao16(), InscritosView.getInstance(curso));
    } catch (Exception e) {
View Full Code Here

TOP

Related Classes of br.com.procempa.modus.entity.Curso

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.