Ejemplo n.º 1
0
 /**
  * Construtor.
  */
 public function __construct()
 {
     $sequencia = 'materia_pk_materia_seq';
     parent::__construct(new Disciplina(), 'public.materia', $sequencia);
     $this->tg->defineColuna('pk_materia', $this->colInt);
     $this->tg->defineColuna('materia_video_apresentacao', $this->colVarchar);
 }
Ejemplo n.º 2
0
 /**
  * Construtor
  */
 public function __construct()
 {
     $tabela = "afa.afa_tipo_anotacao";
     //        $sequencia = "afa.afa_subtipo_anotacao_pk_afa_tipo_anotacao_seq";
     parent::__construct(new Tipo(), $tabela);
     $this->defColInteger(array("pk_afa_tipo_anotacao"));
 }
Ejemplo n.º 3
0
 /**
  * Construtor
  */
 public function __construct()
 {
     $tabela = "b_talentos.candidato";
     $sequencia = "b_talentos.candidato_pk_candidato_seq";
     parent::__construct(new Candidato(), $tabela, $sequencia);
     $this->defColInteger(array("pk_candidato"));
     //Mapeando a tabela
     $this->tg->defineColuna("candidato_foto", new ResultSetMap(Column::VARCHAR));
     $this->tg->defineColuna("candidato_tipo", new ResultSetMap(Column::INTEGER));
     $this->tg->defineColuna("candidato_nome", new ResultSetMap(Column::VARCHAR, 255));
     $this->tg->defineColuna("candidato_sexo", new ResultSetMap(Column::VARCHAR));
     $this->tg->defineColuna("candidato_data_nascimento", new ResultSetMap(Column::VARCHAR));
     $this->tg->defineColuna("candidato_estado_civil", new ResultSetMap(Column::INTEGER));
     $this->tg->defineColuna("candidato_identidade", new ResultSetMap(Column::VARCHAR));
     $this->tg->defineColuna("candidato_rg_orgao", new ResultSetMap(Column::VARCHAR));
     $this->tg->defineColuna("candidato_rg_orgao_uf", new ResultSetMap(Column::VARCHAR));
     $this->tg->defineColuna("candidato_cpf", new ResultSetMap(Column::VARCHAR));
     $this->tg->defineColuna("candidato_email", new ResultSetMap(Column::VARCHAR));
     $this->tg->defineColuna("candidato_telefone", new ResultSetMap(Column::VARCHAR));
     $this->tg->defineColuna("candidato_celular", new ResultSetMap(Column::VARCHAR));
     $this->tg->defineColuna("candidato_cep", new ResultSetMap(Column::VARCHAR));
     $this->tg->defineColuna("candidato_logradouro", new ResultSetMap(Column::VARCHAR, 255));
     $this->tg->defineColuna("candidato_bairro", new ResultSetMap(Column::VARCHAR, 255));
     $this->tg->defineColuna("candidato_cidade", new ResultSetMap(Column::VARCHAR, 255));
     $this->tg->defineColuna("candidato_uf", new ResultSetMap(Column::VARCHAR));
     $this->tg->defineColuna("candidato_observacoes", new ResultSetMap(Column::VARCHAR));
     $this->tg->defineColuna("candidato_pk_areas_interesse", new ResultSetMap(Column::INTEGER));
     $this->tg->defineColuna("candidato_objetivo", new ResultSetMap(Column::VARCHAR));
     $this->tg->defineColuna("candidato_senha", new ResultSetMap(Column::VARCHAR, 40));
 }
Ejemplo n.º 4
0
 /**
  * Construtor
  */
 public function __construct()
 {
     $sequencia = "apostilas.livro_pk_livro_seq";
     parent::__construct(new Livro(), "apostilas.livro", $sequencia);
     $this->tg->defineColuna("pk_livro", $this->colInt);
     $this->tg->defineColuna("ano", $this->colInt);
 }
Ejemplo n.º 5
0
 /**
  * Cosntrutor
  */
 public function __construct()
 {
     $seq = "public.ensinos_pk_ensino_seq";
     parent::__construct(new Ensino(), "public.ensinos", $seq);
     $this->tg->defineColuna("pk_unidade", $this->colInt);
     $this->tg->defineColuna("ano", $this->colInt);
 }
Ejemplo n.º 6
0
 /**
  * Construtor
  */
 public function __construct()
 {
     parent::__construct(new Serie(), "public.serie");
     $this->tg->defineColuna("fk_usuario", $this->colInt);
     $this->tg->defineColuna("pk_serie", $this->colInt);
     $this->tg->defineColuna("ano", $this->colInt);
 }
Ejemplo n.º 7
0
 /**
  * Construtor
  */
 public function __construct()
 {
     $tabela = "apostilas.status_aluno_topico";
     $sequencia = "apostilas.status_aluno_topico_pk_status_aluno_topico_seq";
     parent::__construct(new StatusAlunoTopico(), $tabela, $sequencia);
     $this->tg->defineColuna("status_aluno_topico_status", new ResultSetMap(Column::VARCHAR));
     $this->defColInteger(array("pk_status_aluno_topico", "status_aluno_topico_ano", "status_aluno_topico_pk_usuario", "status_aluno_topico_pk_conteudo"));
 }
Ejemplo n.º 8
0
 /**
  * 
  */
 public function __construct()
 {
     $sequencia = 'usuario_pk_usuario_seq';
     parent::__construct(new Usuario(), 'public.usuario', $sequencia);
     $this->tg->defineColuna('pk_usuario', $this->colInt);
     $this->tg->defineColuna('pk_tipo_usuario', $this->colInt);
     $this->tg->defineColuna('status', $this->colInt);
     $this->tg->defineColuna('foto', new ResultSetMap(Column::VARCHAR));
 }
Ejemplo n.º 9
0
 /**
  * Construtor.
  */
 public function __construct()
 {
     parent::__construct(new AnexosComentario(), 'apostilas.anexos_comentarios');
     //Mapeando o objeto para evitar falhas de seguraça
     $this->tg->defineColuna('comentario_fk_anexo', new ResultSetMap(Column::INTEGER));
     $this->tg->defineColuna('comentario_texto', new ResultSetMap(Column::INTEGER));
     $this->tg->defineColuna('comentario_dt_hora', new ResultSetMap(Column::DATE_TIME));
     $this->tg->defineColuna('comentario_fk_usuario', new ResultSetMap(Column::INTEGER));
 }
Ejemplo n.º 10
0
 /**
  * Construtor
  */
 public function __construct()
 {
     $sequencia = "apostilas.capitulo_pk_capitulo_seq";
     parent::__construct(new Capitulo(), "apostilas.capitulo", $sequencia);
     $this->tg->defineColuna("pk_capitulo", $this->colInt);
     $this->tg->defineColuna("pk_livro", $this->colInt);
     $this->tg->defineColuna("pk_materia", $this->colInt);
     $this->tg->defineColuna("ano", $this->colInt);
 }
 public function __construct()
 {
     $tabela = 'materia_vin';
     $sequencia = 'materia_vin_pk_materia_vin_seq';
     parent::__construct(new ConteudoDirecionado(), $tabela, $sequencia);
     $this->tg->defineColuna('fk_materia', $this->colInt);
     $this->tg->defineColuna('fk_serie', $this->colInt);
     $this->tg->defineColuna('materia_vin_video_apresentacao', $this->colVarchar);
 }
Ejemplo n.º 12
0
 public function __construct()
 {
     parent::__construct(new AnexosAvaliacao(), "apostilas.anexos_ava");
     //Configurações de segurança
     $this->tg->defineColuna("pk_anexos_ava", new ResultSetMap(Column::INTEGER));
     $this->tg->defineColuna("anexos_ava_fk_anexo", new ResultSetMap(Column::INTEGER));
     $this->tg->defineColuna("anexos_ava_fk_usuario", new ResultSetMap(Column::INTEGER));
     $this->tg->defineColuna("anexos_ava_nota", new ResultSetMap(Column::DOUBLE));
     $this->tg->defineColuna("anexos_ava_dt", new ResultSetMap(Column::DATE_TIME));
 }
Ejemplo n.º 13
0
 /**
  * Construtor.
  *
  * @param TesteModeloLivro $model     O modelo usado para como base
  * @param string           $tabela    A tabela base para os testes
  * @param string           $sequencia A sequência definida para a tabela principal
  */
 public function __construct(TesteModeloLivro $model, $tabela, $sequencia)
 {
     parent::__construct($model, $model->getTabela(), $sequencia);
     $this->tabela = substr($tabela, strrpos($tabela, '.') + 1);
     $this->tg->defineColuna("pk_{$this->tabela}", $this->colInt);
     $this->tg->defineColuna("{$this->tabela}_pk_usuario", $this->colInt);
     $this->tg->defineColuna("{$this->tabela}_pk_capitulo", $this->colInt);
     $this->tg->defineColuna("{$this->tabela}_pk_conteudo", $this->colInt);
     $this->tg->defineColuna("{$this->tabela}_ano", $this->colInt);
     $this->tg->defineColuna("{$this->tabela}_nota", new ResultSetMap(Column::DOUBLE));
 }
Ejemplo n.º 14
0
 /**
  * 
  */
 public function __construct()
 {
     $tabela = 'apostilas.livro_mat_desc';
     parent::__construct(new Livreto(), $tabela);
     $this->tg->defineColuna('pk_livro', $this->colInt);
     $this->tg->defineColuna('pk_materia', $this->colInt);
     $this->tg->defineColuna('fk_livro', $this->colInt);
     $this->tg->defineColuna('fk_materia', $this->colInt);
     $this->tg->defineColuna('livro_digital', $this->colInt);
     $this->tg->defineColuna('livro_mat_desc_video', $this->colVarchar);
     /*
      * OBS: A tabela 'apostilas.livro_mat_desc' deveria ter ao menos um indice, 
      * isso encurtaria os métodos e as consultas
      */
 }
Ejemplo n.º 15
0
 /**
  * Construtor.
  */
 public function __construct()
 {
     $sequencia = 'testes.questao_pk_questao_seq';
     parent::__construct(new Questao(), 'testes.questao', $sequencia);
     $this->tg->defineColuna('pk_questao', $this->colInt);
     $this->tg->defineColuna('questao_descricao', $this->colInt);
     $this->tg->defineColuna('questao_tipo', $this->colInt);
     $this->tg->defineColuna('questao_tipo_insert', $this->colInt);
     $this->tg->defineColuna('questao_questao', $this->colInt);
     $this->tg->defineColuna('questao_dica', $this->colInt);
     $this->tg->defineColuna('questao_gabarito', $this->colInt);
     $this->tg->defineColuna('questao_explicacao', $this->colInt);
     $this->tg->defineColuna('questao_qt_alternativas', $this->colInt);
     //Colunas extras
     $this->tg->defineColuna('fk_materia', $this->colInt);
 }
Ejemplo n.º 16
0
 /**
  * Construtor
  */
 public function __construct()
 {
     $sequencia = "apostilas.conteudo_pk_conteudo_seq";
     parent::__construct(new Topico(), "apostilas.conteudo", $sequencia);
     $this->tg->defineColuna("pk_livro", $this->colInt);
     $this->tg->defineColuna("pk_capitulo", $this->colInt);
     $this->tg->defineColuna("pk_materia", $this->colInt);
     $this->tg->defineColuna("pk_conteudo", $this->colInt);
     $this->tg->defineColuna("conteudo_nome", $this->colVarchar);
     $this->tg->defineColuna("fk_capitulo", $this->colInt);
     $this->tg->defineColuna("topico", $this->colInt);
     $this->tg->defineColuna("paginas_trabalhadas", $this->colVarchar);
     $this->tg->defineColuna("pagina_inicial", $this->colInt);
     $this->tg->defineColuna("pagina_final", $this->colInt);
     $this->tg->defineColuna("total", $this->colInt);
     $this->tg->defineColuna("conteudo_resumo", $this->colVarchar);
     $this->tg->defineColuna("ano", $this->colInt);
     $this->tg->defineColuna("conteudo_aula_digital", $this->colVarchar);
 }
Ejemplo n.º 17
0
 /**
  * Construtor.
  */
 public function __construct()
 {
     $sequencia = 'apostilas.anexos_pk_anexo_seq';
     parent::__construct(new Anexos(), 'apostilas.anexos', $sequencia);
     //Mapeando o modelo
     $this->tg->defineColuna('pk_anexo', $this->colInt);
     $this->tg->defineColuna('anexos_usuario_insert', $this->colInt);
     $this->tg->defineColuna('anexos_tipo_usuario_insert', $this->colInt);
     $this->tg->defineColuna('ano_envio', $this->colInt);
     $this->tg->defineColuna('anexo_desc', $this->colVarchar);
     $this->tg->defineColuna('arquivo_nome', $this->colVarchar);
     $this->tg->defineColuna('extensao', $this->colVarchar);
     $this->tg->defineColuna('posicao', $this->colInt);
     $this->tg->defineColuna('tipo', $this->colInt);
     $this->tg->defineColuna('subtipo', $this->colInt);
     $this->tg->defineColuna('objetivo', $this->colInt);
     $this->tg->defineColuna('ano_envio', $this->colInt);
     $this->tg->defineColuna('obs', $this->colVarchar);
     $this->tg->defineColuna('fonte', $this->colVarchar);
     $this->tg->defineColuna('fonte_url', $this->colVarchar);
     $this->tg->defineColuna('anexos_dt_insert', $this->colVarchar);
     $this->tg->defineColuna('anexos_perm_del', $this->colInt);
 }
Ejemplo n.º 18
0
 /**
  * 
  */
 public function __construct()
 {
     $tabela = "public.aula";
     $sequencia = "aula_pk_aula_seq";
     parent::__construct(new Aula(), $tabela, $sequencia);
 }
Ejemplo n.º 19
0
 /**
  * 
  */
 public function __construct()
 {
     $tabela = "public.curso";
     $sequencia = "public.curso_pk_curso_seq";
     parent::__construct(new Curso(), $tabela, $sequencia);
 }
Ejemplo n.º 20
0
 /**
  * Construtor.
  */
 public function __construct()
 {
     $tabela = 'public.funcao_usuario';
     $sequencia = 'funcao_usuario_pk_funcao_usuario_seq';
     parent::__construct(new Funcao(), $tabela, $sequencia);
 }
Ejemplo n.º 21
0
 public function __construct()
 {
     parent::__construct();
 }
Ejemplo n.º 22
0
 /**
  * Construtor
  */
 public function __construct()
 {
     $seq = "public.materia_mae_pk_materia_mae_seq";
     parent::__construct(new Grupo(), "public.materia_mae", $seq);
 }
Ejemplo n.º 23
0
 /**
  * 
  */
 public function __construct()
 {
     $tabela = "transf.area_transferencia_dest";
     $sequencia = "transf.area_transferencia_dest_cod_seq";
     parent::__construct(new Destinatario(), $tabela, $sequencia);
 }
Ejemplo n.º 24
0
 /**
  * 
  */
 public function __construct()
 {
     $tabela = "afa.afa_conceito_aluno";
     $sequencia = 'afa_conceito_aluno_pk_afa_conceito_aluno_seq';
     parent::__construct(new Afa(), $tabela, $sequencia);
 }
Ejemplo n.º 25
0
 /**
  * Construtor
  */
 public function __construct()
 {
     parent::__construct(new Turma(), "public.turma");
     $this->tg->defineColuna("pk_turma", $this->colInt);
     $this->tg->defineColuna("ano", new ResultSetMap(Column::VARCHAR));
 }
Ejemplo n.º 26
0
 /**
  * 
  */
 public function __construct()
 {
     $tabela = "public.coordenacao";
     $sequencia = "coordenacao_pk_coordenacao_seq";
     parent::__construct(new Coordenacao(), $tabela, $sequencia);
 }
Ejemplo n.º 27
0
 /**
  * 
  */
 public function __construct()
 {
     $tabela = 'fap.fap_registro';
     $sequencia = 'fap.fap_registro_pk_fap_registro_seq';
     parent::__construct(new Fap(), $tabela, $sequencia);
 }
Ejemplo n.º 28
0
 /**
  * Construtro
  */
 public function __construct()
 {
     $tabela = "b_talentos.curso_extra";
     $sequencia = "b_talentos.curso_extra_pk_curso_extra_seq";
     parent::__construct(new CursoComplementar(), $tabela, $sequencia);
 }
Ejemplo n.º 29
0
 /**
  * 
  */
 public function __construct()
 {
     $tabela = "public.tipo_usuario";
     parent::__construct(new Perfil(), $tabela);
 }
Ejemplo n.º 30
0
 /**
  * 
  */
 public function __construct()
 {
     $tabela = "transf.area_transf_tipo";
     $sequencia = "transf.area_transf_tipo_pk_area_transf_tipo_seq";
     parent::__construct(new Tipo(), $tabela, $sequencia);
 }