forked from Coded/SIPRP
fixed data ocorrencia verification
git-svn-id: https://svn.coded.pt/svn/SIPRP@1777 bb69d46d-e84e-40c8-a05a-06db0d6337410'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
parent
4dfc9de9b1
commit
80dc465c6d
@ -0,0 +1,214 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<entity-gen-configuration>
|
||||
<connection>
|
||||
<project>CIM</project>
|
||||
<url>jdbc:postgresql://www.evolute.pt:5436/siprp</url>
|
||||
<user>userexp</user>
|
||||
<password>Typein</password>
|
||||
</connection>
|
||||
<generate-objects>y</generate-objects>
|
||||
<base-path>/NetBeansProjects/AnaliseAcidentesTrabalho/src/java</base-path>
|
||||
<inner-package>db.data.siprp.inner</inner-package>
|
||||
<outer-package>db.data.siprp.outer</outer-package>
|
||||
<generate-beans>n</generate-beans>
|
||||
<inner-beans-package />
|
||||
<outer-beans-package />
|
||||
<super-class />
|
||||
<package-file-name>package.xml</package-file-name>
|
||||
<table>
|
||||
<name>acidentados</name>
|
||||
<class-name>Acidentados</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>actualizacao</name>
|
||||
<class-name>Actualizacao</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>analises_acidentes</name>
|
||||
<class-name>AnalisesAcidentes</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>avisos</name>
|
||||
<class-name>Avisos</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>causas</name>
|
||||
<class-name>Causas</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>contactos</name>
|
||||
<class-name>Contactos</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>controle</name>
|
||||
<class-name>Controle</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>departamentos</name>
|
||||
<class-name>Departamentos</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>empresas</name>
|
||||
<class-name>Empresas</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>errors</name>
|
||||
<class-name>Errors</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>estabelecimentos</name>
|
||||
<class-name>Estabelecimentos</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>estado_medidas</name>
|
||||
<class-name>EstadoMedidas</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>exames</name>
|
||||
<class-name>Exames</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>exames_perfis</name>
|
||||
<class-name>ExamesPerfis</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>historico_estabelecimento</name>
|
||||
<class-name>HistoricoEstabelecimento</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>marcacoes_empresa</name>
|
||||
<class-name>MarcacoesEmpresa</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>marcacoes_estabelecimento</name>
|
||||
<class-name>MarcacoesEstabelecimento</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>marcacoes_trabalhador</name>
|
||||
<class-name>MarcacoesTrabalhador</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>medicos</name>
|
||||
<class-name>Medicos</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>medidas</name>
|
||||
<class-name>Medidas</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>not_noticias</name>
|
||||
<class-name>NotNoticias</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>permissoes</name>
|
||||
<class-name>Permissoes</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>plano_areas</name>
|
||||
<class-name>PlanoAreas</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>plano_medidas</name>
|
||||
<class-name>PlanoMedidas</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>plano_postos_trabalho</name>
|
||||
<class-name>PlanoPostosTrabalho</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>plano_riscos</name>
|
||||
<class-name>PlanoRiscos</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>plano_valores_qualitativos</name>
|
||||
<class-name>PlanoValoresQualitativos</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>planos_actuacao</name>
|
||||
<class-name>PlanosActuacao</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>properties</name>
|
||||
<class-name>Properties</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>recomendacoes</name>
|
||||
<class-name>Recomendacoes</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>risco_valores_temp</name>
|
||||
<class-name>RiscoValoresTemp</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>roles</name>
|
||||
<class-name>Roles</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>seccoes</name>
|
||||
<class-name>Seccoes</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>tipos_exames_comp</name>
|
||||
<class-name>TiposExamesComp</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>tipos_utilizadores</name>
|
||||
<class-name>TiposUtilizadores</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>trabalhadores</name>
|
||||
<class-name>Trabalhadores</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>users</name>
|
||||
<class-name>Users</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>utilizadores</name>
|
||||
<class-name>Utilizadores</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>version</name>
|
||||
<class-name>Version</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
</entity-gen-configuration>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,326 @@
|
||||
/*
|
||||
* PlanoValoresQualitativos.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp.inner;
|
||||
|
||||
|
||||
public class PlanoValoresQualitativos extends com.evolute.entity.evo.EvoDataObject<com.evolute.entity.utils.IntegerPrimaryKey>
|
||||
{
|
||||
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||
|
||||
static
|
||||
{
|
||||
FIELD_INDEXES.put( PlanoValoresQualitativos.ID, PlanoValoresQualitativos.ID_INDEX );
|
||||
FIELD_INDEXES.put( PlanoValoresQualitativos.ID_FULL, PlanoValoresQualitativos.ID_INDEX );
|
||||
FIELD_INDEXES.put( PlanoValoresQualitativos.DESCRICAO, PlanoValoresQualitativos.DESCRICAO_INDEX );
|
||||
FIELD_INDEXES.put( PlanoValoresQualitativos.DESCRICAO_FULL, PlanoValoresQualitativos.DESCRICAO_INDEX );
|
||||
FIELD_INDEXES.put( PlanoValoresQualitativos.DELETED_STAMP, PlanoValoresQualitativos.DELETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( PlanoValoresQualitativos.DELETED_STAMP_FULL, PlanoValoresQualitativos.DELETED_STAMP_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final String TABLENAME = "plano_valores_qualitativos";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.plano_valores_qualitativos";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "plano_valores_qualitativos.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String DESCRICAO = "descricao";
|
||||
public static final String DESCRICAO_FULL = "plano_valores_qualitativos.descricao";
|
||||
public static final int DESCRICAO_INDEX = 1;
|
||||
public static final String DELETED_STAMP = "deleted_stamp";
|
||||
public static final String DELETED_STAMP_FULL = "plano_valores_qualitativos.deleted_stamp";
|
||||
public static final int DELETED_STAMP_INDEX = 2;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
DESCRICAO, DELETED_STAMP, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + DESCRICAO, TABLENAME + "." + DELETED_STAMP, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, DESCRICAO, DELETED_STAMP, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, DESCRICAO, DELETED_STAMP, };
|
||||
|
||||
private Integer id;
|
||||
private String descricao;
|
||||
private java.sql.Timestamp deleted_stamp;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public PlanoValoresQualitativos()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, false, false };
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId( Integer id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( ID, id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.id = id;
|
||||
LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getDescricao()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DESCRICAO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.descricao;
|
||||
}
|
||||
|
||||
public void setDescricao( String descricao )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DESCRICAO, descricao );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.descricao = descricao;
|
||||
LAZY_LOADED_OBJECTS.put( DESCRICAO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public java.sql.Timestamp getDeleted_stamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DELETED_STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.deleted_stamp;
|
||||
}
|
||||
|
||||
public void setDeleted_stamp( java.sql.Timestamp deleted_stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DELETED_STAMP, deleted_stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.deleted_stamp = deleted_stamp;
|
||||
LAZY_LOADED_OBJECTS.put( DELETED_STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case PlanoValoresQualitativos.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case PlanoValoresQualitativos.DESCRICAO_INDEX:
|
||||
value = getDescricao();
|
||||
break;
|
||||
case PlanoValoresQualitativos.DELETED_STAMP_INDEX:
|
||||
value = getDeleted_stamp();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case PlanoValoresQualitativos.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case PlanoValoresQualitativos.DESCRICAO_INDEX:
|
||||
value = this.descricao;
|
||||
break;
|
||||
case PlanoValoresQualitativos.DELETED_STAMP_INDEX:
|
||||
value = this.deleted_stamp;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case PlanoValoresQualitativos.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case PlanoValoresQualitativos.DESCRICAO_INDEX:
|
||||
setDescricao( ( String ) value );
|
||||
break;
|
||||
case PlanoValoresQualitativos.DELETED_STAMP_INDEX:
|
||||
setDeleted_stamp( ( java.sql.Timestamp ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case PlanoValoresQualitativos.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case PlanoValoresQualitativos.DESCRICAO_INDEX:
|
||||
this.descricao = ( String ) value;
|
||||
break;
|
||||
case PlanoValoresQualitativos.DELETED_STAMP_INDEX:
|
||||
this.deleted_stamp = ( java.sql.Timestamp ) value;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getFieldNamesFull()
|
||||
{
|
||||
return FIELD_NAMES_FULL;
|
||||
}
|
||||
|
||||
public String []getDBFieldNames()
|
||||
{
|
||||
return DB_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getPrimaryKeyNames()
|
||||
{
|
||||
return PK_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getDefaultLoadSet()
|
||||
{
|
||||
return DEFAULT_LOAD_SET;
|
||||
}
|
||||
|
||||
public String getPrimaryKeyName()
|
||||
{
|
||||
return PK_FIELD_NAMES[ 0 ];
|
||||
}
|
||||
|
||||
public Class<?> getFieldClass( String fieldName )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
Class<?> theClass = null;
|
||||
switch( index )
|
||||
{
|
||||
case PlanoValoresQualitativos.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case PlanoValoresQualitativos.DESCRICAO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case PlanoValoresQualitativos.DELETED_STAMP_INDEX:
|
||||
theClass = java.sql.Timestamp.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : PlanoValoresQualitativos._INVALID__INDEX;
|
||||
}
|
||||
|
||||
public String getTableName()
|
||||
{
|
||||
return TABLENAME;
|
||||
}
|
||||
|
||||
public String getClassIdentifier()
|
||||
{
|
||||
return CLASS_IDENTIFIER;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void setPrimaryKeyFromVirtual2DArray( com.evolute.utils.arrays.Virtual2DArray array, int row, int col )
|
||||
{
|
||||
if( primaryKey == null )
|
||||
{
|
||||
primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, PlanoValoresQualitativos.PK_FIELD_NAMES );
|
||||
primaryKey.set( 0, getId() );
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
|
||||
{
|
||||
return primaryKey;
|
||||
}
|
||||
|
||||
public void initLazyLoadFields()
|
||||
{
|
||||
}
|
||||
|
||||
public boolean isPropertyLoaded( String fieldName )
|
||||
{
|
||||
if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return LAZY_LOADED_OBJECTS.get( fieldName );
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* PlanoValoresQualitativosData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package db.data.siprp.outer;
|
||||
|
||||
|
||||
public final class PlanoValoresQualitativosData extends db.data.siprp.inner.PlanoValoresQualitativos
|
||||
{
|
||||
|
||||
public PlanoValoresQualitativosData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue