forked from Coded/SIPRP
git-svn-id: https://svn.coded.pt/svn/SIPRP@2064 bb69d46d-e84e-40c8-a05a-06db0d633741
parent
7c2d284493
commit
8e048764b0
@ -0,0 +1,557 @@
|
||||
/*
|
||||
* TrabalhadoresAcidentes.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp_local.inner;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class TrabalhadoresAcidentes 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( TrabalhadoresAcidentes.ID, TrabalhadoresAcidentes.ID_INDEX );
|
||||
FIELD_INDEXES.put( TrabalhadoresAcidentes.ID_FULL, TrabalhadoresAcidentes.ID_INDEX );
|
||||
com.evolute.entity.evo.EvoDataObject.register( TrabalhadoresAcidentes.CLASS_IDENTIFIER, TrabalhadoresAcidentes.TRABALHADOR_ID, TrabalhadoresAcidentes.TO_TRABALHADOR_ID );
|
||||
FIELD_INDEXES.put( TrabalhadoresAcidentes.TRABALHADOR_ID, TrabalhadoresAcidentes.TRABALHADOR_ID_INDEX );
|
||||
FIELD_INDEXES.put( TrabalhadoresAcidentes.TRABALHADOR_ID_FULL, TrabalhadoresAcidentes.TRABALHADOR_ID_INDEX );
|
||||
FIELD_INDEXES.put( TrabalhadoresAcidentes.TO_TRABALHADOR_ID, TrabalhadoresAcidentes.TO_TRABALHADOR_ID_INDEX );
|
||||
FIELD_INDEXES.put( TrabalhadoresAcidentes.DATA, TrabalhadoresAcidentes.DATA_INDEX );
|
||||
FIELD_INDEXES.put( TrabalhadoresAcidentes.DATA_FULL, TrabalhadoresAcidentes.DATA_INDEX );
|
||||
FIELD_INDEXES.put( TrabalhadoresAcidentes.DIAS_BAIXA, TrabalhadoresAcidentes.DIAS_BAIXA_INDEX );
|
||||
FIELD_INDEXES.put( TrabalhadoresAcidentes.DIAS_BAIXA_FULL, TrabalhadoresAcidentes.DIAS_BAIXA_INDEX );
|
||||
FIELD_INDEXES.put( TrabalhadoresAcidentes.PARTE_CORPO_AFECTADA, TrabalhadoresAcidentes.PARTE_CORPO_AFECTADA_INDEX );
|
||||
FIELD_INDEXES.put( TrabalhadoresAcidentes.PARTE_CORPO_AFECTADA_FULL, TrabalhadoresAcidentes.PARTE_CORPO_AFECTADA_INDEX );
|
||||
FIELD_INDEXES.put( TrabalhadoresAcidentes.TIPO_LESAO, TrabalhadoresAcidentes.TIPO_LESAO_INDEX );
|
||||
FIELD_INDEXES.put( TrabalhadoresAcidentes.TIPO_LESAO_FULL, TrabalhadoresAcidentes.TIPO_LESAO_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final com.evolute.entity.ForeignKey ForeignKeytrabalhador_idTotrabalhadores =
|
||||
new com.evolute.entity.ForeignKey( TrabalhadoresAcidentes.class, TrabalhadoresAcidentes.TRABALHADOR_ID, db.data.siprp_local.outer.TrabalhadoresData.class, db.data.siprp_local.outer.TrabalhadoresData.ID );
|
||||
|
||||
public static final String TABLENAME = "trabalhadores_acidentes";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp_local.inner.trabalhadores_acidentes";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "trabalhadores_acidentes.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String TRABALHADOR_ID = "trabalhador_id";
|
||||
public static final String TRABALHADOR_ID_FULL = "trabalhadores_acidentes.trabalhador_id";
|
||||
public static final int TRABALHADOR_ID_INDEX = 1;
|
||||
public static final String TO_TRABALHADOR_ID = "to_trabalhador_id";
|
||||
public static final String TO_TRABALHADOR_ID_FULL = "trabalhadores_acidentes.to_trabalhador_id";
|
||||
public static final int TO_TRABALHADOR_ID_INDEX = 2;
|
||||
public static final String DATA = "data";
|
||||
public static final String DATA_FULL = "trabalhadores_acidentes.data";
|
||||
public static final int DATA_INDEX = 3;
|
||||
public static final String DIAS_BAIXA = "dias_baixa";
|
||||
public static final String DIAS_BAIXA_FULL = "trabalhadores_acidentes.dias_baixa";
|
||||
public static final int DIAS_BAIXA_INDEX = 4;
|
||||
public static final String PARTE_CORPO_AFECTADA = "parte_corpo_afectada";
|
||||
public static final String PARTE_CORPO_AFECTADA_FULL = "trabalhadores_acidentes.parte_corpo_afectada";
|
||||
public static final int PARTE_CORPO_AFECTADA_INDEX = 5;
|
||||
public static final String TIPO_LESAO = "tipo_lesao";
|
||||
public static final String TIPO_LESAO_FULL = "trabalhadores_acidentes.tipo_lesao";
|
||||
public static final int TIPO_LESAO_INDEX = 6;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
TRABALHADOR_ID, TO_TRABALHADOR_ID, DATA, DIAS_BAIXA, PARTE_CORPO_AFECTADA,
|
||||
TIPO_LESAO, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + TRABALHADOR_ID, TABLENAME + "." + TO_TRABALHADOR_ID, TABLENAME + "." + DATA, TABLENAME + "." + DIAS_BAIXA, TABLENAME + "." + PARTE_CORPO_AFECTADA,
|
||||
TABLENAME + "." + TIPO_LESAO, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, TRABALHADOR_ID, DATA, DIAS_BAIXA, PARTE_CORPO_AFECTADA, TIPO_LESAO, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, TRABALHADOR_ID, DATA, DIAS_BAIXA, };
|
||||
|
||||
private Integer id;
|
||||
private Integer trabalhador_id;
|
||||
private db.data.siprp_local.outer.TrabalhadoresData to_trabalhador_id;
|
||||
private Date data;
|
||||
private Integer dias_baixa;
|
||||
private String parte_corpo_afectada;
|
||||
private String tipo_lesao;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public TrabalhadoresAcidentes()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, false, false,
|
||||
false, 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 Integer getTrabalhador_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( TRABALHADOR_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.trabalhador_id;
|
||||
}
|
||||
|
||||
public void setTrabalhador_id( Integer trabalhador_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( TRABALHADOR_ID, trabalhador_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.trabalhador_id = trabalhador_id;
|
||||
LAZY_LOADED_OBJECTS.put( TRABALHADOR_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public db.data.siprp_local.outer.TrabalhadoresData toTrabalhador_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
prepare( TO_TRABALHADOR_ID );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return this.to_trabalhador_id;
|
||||
}
|
||||
|
||||
public void setToTrabalhador_id( db.data.siprp_local.outer.TrabalhadoresData to_trabalhador_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( TO_TRABALHADOR_ID, to_trabalhador_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.to_trabalhador_id = to_trabalhador_id;
|
||||
}
|
||||
|
||||
public Date getData()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DATA );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.data;
|
||||
}
|
||||
|
||||
public void setData( Date data )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DATA, data );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.data = data;
|
||||
LAZY_LOADED_OBJECTS.put( DATA, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getDias_baixa()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DIAS_BAIXA );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.dias_baixa;
|
||||
}
|
||||
|
||||
public void setDias_baixa( Integer dias_baixa )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DIAS_BAIXA, dias_baixa );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.dias_baixa = dias_baixa;
|
||||
LAZY_LOADED_OBJECTS.put( DIAS_BAIXA, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getParte_corpo_afectada()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( PARTE_CORPO_AFECTADA );
|
||||
Boolean isLazyLoaded = isPropertyLoaded( PARTE_CORPO_AFECTADA );
|
||||
if ( ! isLazyLoaded )
|
||||
{
|
||||
this.parte_corpo_afectada = ( String ) getProvider().loadFieldFromDatabase( PARTE_CORPO_AFECTADA, this );
|
||||
LAZY_LOADED_OBJECTS.put( PARTE_CORPO_AFECTADA, Boolean.TRUE );
|
||||
}
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.parte_corpo_afectada;
|
||||
}
|
||||
|
||||
public void setParte_corpo_afectada( String parte_corpo_afectada )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( PARTE_CORPO_AFECTADA, parte_corpo_afectada );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.parte_corpo_afectada = parte_corpo_afectada;
|
||||
LAZY_LOADED_OBJECTS.put( PARTE_CORPO_AFECTADA, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getTipo_lesao()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( TIPO_LESAO );
|
||||
Boolean isLazyLoaded = isPropertyLoaded( TIPO_LESAO );
|
||||
if ( ! isLazyLoaded )
|
||||
{
|
||||
this.tipo_lesao = ( String ) getProvider().loadFieldFromDatabase( TIPO_LESAO, this );
|
||||
LAZY_LOADED_OBJECTS.put( TIPO_LESAO, Boolean.TRUE );
|
||||
}
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.tipo_lesao;
|
||||
}
|
||||
|
||||
public void setTipo_lesao( String tipo_lesao )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( TIPO_LESAO, tipo_lesao );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.tipo_lesao = tipo_lesao;
|
||||
LAZY_LOADED_OBJECTS.put( TIPO_LESAO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case TrabalhadoresAcidentes.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case TrabalhadoresAcidentes.TRABALHADOR_ID_INDEX:
|
||||
value = getTrabalhador_id();
|
||||
break;
|
||||
case TrabalhadoresAcidentes.TO_TRABALHADOR_ID_INDEX:
|
||||
value = toTrabalhador_id();
|
||||
break;
|
||||
case TrabalhadoresAcidentes.DATA_INDEX:
|
||||
value = getData();
|
||||
break;
|
||||
case TrabalhadoresAcidentes.DIAS_BAIXA_INDEX:
|
||||
value = getDias_baixa();
|
||||
break;
|
||||
case TrabalhadoresAcidentes.PARTE_CORPO_AFECTADA_INDEX:
|
||||
value = getParte_corpo_afectada();
|
||||
break;
|
||||
case TrabalhadoresAcidentes.TIPO_LESAO_INDEX:
|
||||
value = getTipo_lesao();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case TrabalhadoresAcidentes.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case TrabalhadoresAcidentes.TRABALHADOR_ID_INDEX:
|
||||
value = this.trabalhador_id;
|
||||
break;
|
||||
case TrabalhadoresAcidentes.TO_TRABALHADOR_ID_INDEX:
|
||||
value = this.to_trabalhador_id;
|
||||
break;
|
||||
case TrabalhadoresAcidentes.DATA_INDEX:
|
||||
value = this.data;
|
||||
break;
|
||||
case TrabalhadoresAcidentes.DIAS_BAIXA_INDEX:
|
||||
value = this.dias_baixa;
|
||||
break;
|
||||
case TrabalhadoresAcidentes.PARTE_CORPO_AFECTADA_INDEX:
|
||||
value = this.parte_corpo_afectada;
|
||||
break;
|
||||
case TrabalhadoresAcidentes.TIPO_LESAO_INDEX:
|
||||
value = this.tipo_lesao;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case TrabalhadoresAcidentes.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case TrabalhadoresAcidentes.TRABALHADOR_ID_INDEX:
|
||||
setTrabalhador_id( ( Integer ) value );
|
||||
break;
|
||||
case TrabalhadoresAcidentes.TO_TRABALHADOR_ID_INDEX:
|
||||
setToTrabalhador_id( ( db.data.siprp_local.outer.TrabalhadoresData ) value );
|
||||
break;
|
||||
case TrabalhadoresAcidentes.DATA_INDEX:
|
||||
setData( ( Date ) value );
|
||||
break;
|
||||
case TrabalhadoresAcidentes.DIAS_BAIXA_INDEX:
|
||||
setDias_baixa( ( Integer ) value );
|
||||
break;
|
||||
case TrabalhadoresAcidentes.PARTE_CORPO_AFECTADA_INDEX:
|
||||
setParte_corpo_afectada( ( String ) value );
|
||||
break;
|
||||
case TrabalhadoresAcidentes.TIPO_LESAO_INDEX:
|
||||
setTipo_lesao( ( String ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case TrabalhadoresAcidentes.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case TrabalhadoresAcidentes.TRABALHADOR_ID_INDEX:
|
||||
this.trabalhador_id = ( Integer ) value;
|
||||
break;
|
||||
case TrabalhadoresAcidentes.TO_TRABALHADOR_ID_INDEX:
|
||||
this.to_trabalhador_id = ( db.data.siprp_local.outer.TrabalhadoresData ) value;
|
||||
break;
|
||||
case TrabalhadoresAcidentes.DATA_INDEX:
|
||||
this.data = ( Date ) value;
|
||||
break;
|
||||
case TrabalhadoresAcidentes.DIAS_BAIXA_INDEX:
|
||||
this.dias_baixa = ( Integer ) value;
|
||||
break;
|
||||
case TrabalhadoresAcidentes.PARTE_CORPO_AFECTADA_INDEX:
|
||||
this.parte_corpo_afectada = ( String ) value;
|
||||
break;
|
||||
case TrabalhadoresAcidentes.TIPO_LESAO_INDEX:
|
||||
this.tipo_lesao = ( String ) 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 TrabalhadoresAcidentes.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case TrabalhadoresAcidentes.TRABALHADOR_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case TrabalhadoresAcidentes.TO_TRABALHADOR_ID_INDEX:
|
||||
theClass = db.data.siprp_local.outer.TrabalhadoresData.class;
|
||||
break;
|
||||
case TrabalhadoresAcidentes.DATA_INDEX:
|
||||
theClass = Date.class;
|
||||
break;
|
||||
case TrabalhadoresAcidentes.DIAS_BAIXA_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case TrabalhadoresAcidentes.PARTE_CORPO_AFECTADA_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case TrabalhadoresAcidentes.TIPO_LESAO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : TrabalhadoresAcidentes._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, TrabalhadoresAcidentes.PK_FIELD_NAMES );
|
||||
Object idObject = array.get( row, col + 0 );
|
||||
try
|
||||
{
|
||||
primaryKey.set( 0, ( Integer ) idObject );
|
||||
setId( ( Integer ) idObject );
|
||||
}
|
||||
catch( ClassCastException ex )
|
||||
{
|
||||
if( idObject instanceof Number )
|
||||
{
|
||||
primaryKey.set( 0, ((Number)idObject).intValue() );
|
||||
setId( ((Number)idObject).intValue() );
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
|
||||
{
|
||||
return primaryKey;
|
||||
}
|
||||
|
||||
public void initLazyLoadFields()
|
||||
{
|
||||
LAZY_LOADED_OBJECTS.put( PARTE_CORPO_AFECTADA, Boolean.FALSE );
|
||||
LAZY_LOADED_OBJECTS.put( TIPO_LESAO, Boolean.FALSE );
|
||||
}
|
||||
|
||||
public boolean isPropertyLoaded( String fieldName )
|
||||
{
|
||||
if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return LAZY_LOADED_OBJECTS.get( fieldName );
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue