forked from Coded/SIPRP
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
645 lines
18 KiB
645 lines
18 KiB
/*
|
|
* TrabalhadoresConsultas.java
|
|
*
|
|
* Generated by com.evutils.codegen.EntityObjectGenerator
|
|
*
|
|
* Use but DON'T TOUCH
|
|
* -> (can't touch this)
|
|
*/
|
|
package siprp.data.inner;
|
|
|
|
|
|
public class TrabalhadoresConsultas extends siprp.data.BaseObject
|
|
{
|
|
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
|
|
|
static
|
|
{
|
|
FIELD_INDEXES.put( TrabalhadoresConsultas.ID, TrabalhadoresConsultas.ID_INDEX );
|
|
FIELD_INDEXES.put( TrabalhadoresConsultas.ID_FULL, TrabalhadoresConsultas.ID_INDEX );
|
|
com.evolute.entity.evo.EvoDataObject.register( TrabalhadoresConsultas.CLASS_IDENTIFIER, TrabalhadoresConsultas.TRABALHADOR_ID, TrabalhadoresConsultas.TO_TRABALHADOR_ID );
|
|
FIELD_INDEXES.put( TrabalhadoresConsultas.TRABALHADOR_ID, TrabalhadoresConsultas.TRABALHADOR_ID_INDEX );
|
|
FIELD_INDEXES.put( TrabalhadoresConsultas.TRABALHADOR_ID_FULL, TrabalhadoresConsultas.TRABALHADOR_ID_INDEX );
|
|
FIELD_INDEXES.put( TrabalhadoresConsultas.TO_TRABALHADOR_ID, TrabalhadoresConsultas.TO_TRABALHADOR_ID_INDEX );
|
|
FIELD_INDEXES.put( TrabalhadoresConsultas.DATA, TrabalhadoresConsultas.DATA_INDEX );
|
|
FIELD_INDEXES.put( TrabalhadoresConsultas.DATA_FULL, TrabalhadoresConsultas.DATA_INDEX );
|
|
FIELD_INDEXES.put( TrabalhadoresConsultas.ESTADO, TrabalhadoresConsultas.ESTADO_INDEX );
|
|
FIELD_INDEXES.put( TrabalhadoresConsultas.ESTADO_FULL, TrabalhadoresConsultas.ESTADO_INDEX );
|
|
com.evolute.entity.evo.EvoDataObject.register( TrabalhadoresConsultas.CLASS_IDENTIFIER, TrabalhadoresConsultas.PRESTADOR_ID, TrabalhadoresConsultas.TO_PRESTADOR_ID );
|
|
FIELD_INDEXES.put( TrabalhadoresConsultas.PRESTADOR_ID, TrabalhadoresConsultas.PRESTADOR_ID_INDEX );
|
|
FIELD_INDEXES.put( TrabalhadoresConsultas.PRESTADOR_ID_FULL, TrabalhadoresConsultas.PRESTADOR_ID_INDEX );
|
|
FIELD_INDEXES.put( TrabalhadoresConsultas.TO_PRESTADOR_ID, TrabalhadoresConsultas.TO_PRESTADOR_ID_INDEX );
|
|
com.evolute.entity.evo.EvoDataObject.register( TrabalhadoresConsultas.CLASS_IDENTIFIER, TrabalhadoresConsultas.PROCESSO_ID, TrabalhadoresConsultas.TO_PROCESSO_ID );
|
|
FIELD_INDEXES.put( TrabalhadoresConsultas.PROCESSO_ID, TrabalhadoresConsultas.PROCESSO_ID_INDEX );
|
|
FIELD_INDEXES.put( TrabalhadoresConsultas.PROCESSO_ID_FULL, TrabalhadoresConsultas.PROCESSO_ID_INDEX );
|
|
FIELD_INDEXES.put( TrabalhadoresConsultas.TO_PROCESSO_ID, TrabalhadoresConsultas.TO_PROCESSO_ID_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( TrabalhadoresConsultas.class, TrabalhadoresConsultas.TRABALHADOR_ID, siprp.data.outer.TrabalhadoresData.class, siprp.data.outer.TrabalhadoresData.ID );
|
|
|
|
public static final com.evolute.entity.ForeignKey ForeignKeyprestador_idToprestadores =
|
|
new com.evolute.entity.ForeignKey( TrabalhadoresConsultas.class, TrabalhadoresConsultas.PRESTADOR_ID, siprp.data.outer.PrestadoresData.class, siprp.data.outer.PrestadoresData.ID );
|
|
|
|
public static final com.evolute.entity.ForeignKey ForeignKeyprocesso_idTotrabalhadores_processo =
|
|
new com.evolute.entity.ForeignKey( TrabalhadoresConsultas.class, TrabalhadoresConsultas.PROCESSO_ID, siprp.data.outer.TrabalhadoresProcessoData.class, siprp.data.outer.TrabalhadoresProcessoData.ID );
|
|
|
|
public static final String TABLENAME = "trabalhadores_consultas";
|
|
|
|
|
|
public static final String CLASS_IDENTIFIER = "siprp.data.inner.trabalhadores_consultas";
|
|
|
|
public static final int _INVALID__INDEX = -1;
|
|
public static final String ID = "id";
|
|
public static final String ID_FULL = "trabalhadores_consultas.id";
|
|
public static final int ID_INDEX = 0;
|
|
public static final String TRABALHADOR_ID = "trabalhador_id";
|
|
public static final String TRABALHADOR_ID_FULL = "trabalhadores_consultas.trabalhador_id";
|
|
public static final int TRABALHADOR_ID_INDEX = 1;
|
|
public static final String TO_TRABALHADOR_ID = "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_consultas.data";
|
|
public static final int DATA_INDEX = 3;
|
|
public static final String ESTADO = "estado";
|
|
public static final String ESTADO_FULL = "trabalhadores_consultas.estado";
|
|
public static final int ESTADO_INDEX = 4;
|
|
public static final String PRESTADOR_ID = "prestador_id";
|
|
public static final String PRESTADOR_ID_FULL = "trabalhadores_consultas.prestador_id";
|
|
public static final int PRESTADOR_ID_INDEX = 5;
|
|
public static final String TO_PRESTADOR_ID = "to_prestador_id";
|
|
public static final int TO_PRESTADOR_ID_INDEX = 6;
|
|
public static final String PROCESSO_ID = "processo_id";
|
|
public static final String PROCESSO_ID_FULL = "trabalhadores_consultas.processo_id";
|
|
public static final int PROCESSO_ID_INDEX = 7;
|
|
public static final String TO_PROCESSO_ID = "to_processo_id";
|
|
public static final int TO_PROCESSO_ID_INDEX = 8;
|
|
|
|
public static final String FIELD_NAMES[] = new String[]{
|
|
TRABALHADOR_ID, TO_TRABALHADOR_ID, DATA, ESTADO, PRESTADOR_ID, TO_PRESTADOR_ID,
|
|
PROCESSO_ID, TO_PROCESSO_ID, };
|
|
|
|
public static final String FIELD_NAMES_FULL[] = new String[]{
|
|
TABLENAME + "." + TRABALHADOR_ID, TABLENAME + "." + TO_TRABALHADOR_ID, TABLENAME + "." + DATA, TABLENAME + "." + ESTADO, TABLENAME + "." + PRESTADOR_ID, TABLENAME + "." + TO_PRESTADOR_ID,
|
|
TABLENAME + "." + PROCESSO_ID, TABLENAME + "." + TO_PROCESSO_ID, };
|
|
|
|
protected static final String DB_FIELD_NAMES[] = new String[]{
|
|
ID, TRABALHADOR_ID, DATA, ESTADO, PRESTADOR_ID, PROCESSO_ID, };
|
|
|
|
|
|
protected static final String PK_FIELD_NAMES[] = new String[]{
|
|
ID, };
|
|
|
|
|
|
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
|
ID, TRABALHADOR_ID, DATA, ESTADO, PRESTADOR_ID, PROCESSO_ID, };
|
|
|
|
private Integer id;
|
|
private Integer trabalhador_id;
|
|
private siprp.data.outer.TrabalhadoresData to_trabalhador_id;
|
|
private java.util.Date data;
|
|
private Integer estado;
|
|
private Integer prestador_id;
|
|
private siprp.data.outer.PrestadoresData to_prestador_id;
|
|
private Integer processo_id;
|
|
private siprp.data.outer.TrabalhadoresProcessoData to_processo_id;
|
|
|
|
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
|
|
|
public TrabalhadoresConsultas()
|
|
{
|
|
super();
|
|
dirtyProperties = new boolean[]{ false, false, 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
|
|
{
|
|
setLockedForRefresh( true );
|
|
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 java.util.List<siprp.data.outer.TrabalhadoresConsultasDatasData>fromTrabalhadoresConsultasDatas_trabalhadores_consultas_id()
|
|
{
|
|
java.util.List<siprp.data.outer.TrabalhadoresConsultasDatasData> result = null;
|
|
try
|
|
{
|
|
result = fromReference( siprp.data.outer.TrabalhadoresConsultasDatasData.class , getPrimaryKey().getMap().get("id"), "trabalhadores_consultas_id" );
|
|
}
|
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
|
{
|
|
throw new RuntimeException( edex );
|
|
}
|
|
return result;
|
|
}
|
|
|
|
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
|
|
{
|
|
setLockedForRefresh( true );
|
|
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 siprp.data.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( siprp.data.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 java.util.Date getData()
|
|
{
|
|
try
|
|
{
|
|
setLastAccess( System.currentTimeMillis() );
|
|
prepare( DATA );
|
|
}
|
|
catch( java.lang.Exception ex )
|
|
{
|
|
throw new RuntimeException( ex );
|
|
}
|
|
return this.data;
|
|
}
|
|
|
|
public void setData( java.util.Date data )
|
|
{
|
|
try
|
|
{
|
|
setLockedForRefresh( true );
|
|
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 getEstado()
|
|
{
|
|
try
|
|
{
|
|
setLastAccess( System.currentTimeMillis() );
|
|
prepare( ESTADO );
|
|
}
|
|
catch( java.lang.Exception ex )
|
|
{
|
|
throw new RuntimeException( ex );
|
|
}
|
|
return this.estado;
|
|
}
|
|
|
|
public void setEstado( Integer estado )
|
|
{
|
|
try
|
|
{
|
|
setLockedForRefresh( true );
|
|
preProcess( ESTADO, estado );
|
|
}
|
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
|
{
|
|
throw new RuntimeException( edex );
|
|
}
|
|
this.estado = estado;
|
|
LAZY_LOADED_OBJECTS.put( ESTADO, Boolean.TRUE );
|
|
}
|
|
|
|
public Integer getPrestador_id()
|
|
{
|
|
try
|
|
{
|
|
setLastAccess( System.currentTimeMillis() );
|
|
prepare( PRESTADOR_ID );
|
|
}
|
|
catch( java.lang.Exception ex )
|
|
{
|
|
throw new RuntimeException( ex );
|
|
}
|
|
return this.prestador_id;
|
|
}
|
|
|
|
public void setPrestador_id( Integer prestador_id )
|
|
{
|
|
try
|
|
{
|
|
setLockedForRefresh( true );
|
|
preProcess( PRESTADOR_ID, prestador_id );
|
|
}
|
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
|
{
|
|
throw new RuntimeException( edex );
|
|
}
|
|
this.prestador_id = prestador_id;
|
|
LAZY_LOADED_OBJECTS.put( PRESTADOR_ID, Boolean.TRUE );
|
|
}
|
|
|
|
public siprp.data.outer.PrestadoresData toPrestador_id()
|
|
{
|
|
try
|
|
{
|
|
prepare( TO_PRESTADOR_ID );
|
|
}
|
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
|
{
|
|
throw new RuntimeException( edex );
|
|
}
|
|
return this.to_prestador_id;
|
|
}
|
|
|
|
public void setToPrestador_id( siprp.data.outer.PrestadoresData to_prestador_id )
|
|
{
|
|
try
|
|
{
|
|
preProcess( TO_PRESTADOR_ID, to_prestador_id );
|
|
}
|
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
|
{
|
|
throw new RuntimeException( edex );
|
|
}
|
|
this.to_prestador_id = to_prestador_id;
|
|
}
|
|
|
|
public Integer getProcesso_id()
|
|
{
|
|
try
|
|
{
|
|
setLastAccess( System.currentTimeMillis() );
|
|
prepare( PROCESSO_ID );
|
|
}
|
|
catch( java.lang.Exception ex )
|
|
{
|
|
throw new RuntimeException( ex );
|
|
}
|
|
return this.processo_id;
|
|
}
|
|
|
|
public void setProcesso_id( Integer processo_id )
|
|
{
|
|
try
|
|
{
|
|
setLockedForRefresh( true );
|
|
preProcess( PROCESSO_ID, processo_id );
|
|
}
|
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
|
{
|
|
throw new RuntimeException( edex );
|
|
}
|
|
this.processo_id = processo_id;
|
|
LAZY_LOADED_OBJECTS.put( PROCESSO_ID, Boolean.TRUE );
|
|
}
|
|
|
|
public siprp.data.outer.TrabalhadoresProcessoData toProcesso_id()
|
|
{
|
|
try
|
|
{
|
|
prepare( TO_PROCESSO_ID );
|
|
}
|
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
|
{
|
|
throw new RuntimeException( edex );
|
|
}
|
|
return this.to_processo_id;
|
|
}
|
|
|
|
public void setToProcesso_id( siprp.data.outer.TrabalhadoresProcessoData to_processo_id )
|
|
{
|
|
try
|
|
{
|
|
preProcess( TO_PROCESSO_ID, to_processo_id );
|
|
}
|
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
|
{
|
|
throw new RuntimeException( edex );
|
|
}
|
|
this.to_processo_id = to_processo_id;
|
|
}
|
|
|
|
public Object get( String fieldName )
|
|
{
|
|
Object value = null;
|
|
Integer index = getFieldIndex( fieldName );
|
|
switch( index )
|
|
{
|
|
case TrabalhadoresConsultas.ID_INDEX:
|
|
value = getId();
|
|
break;
|
|
case TrabalhadoresConsultas.TRABALHADOR_ID_INDEX:
|
|
value = getTrabalhador_id();
|
|
break;
|
|
case TrabalhadoresConsultas.TO_TRABALHADOR_ID_INDEX:
|
|
value = toTrabalhador_id();
|
|
break;
|
|
case TrabalhadoresConsultas.DATA_INDEX:
|
|
value = getData();
|
|
break;
|
|
case TrabalhadoresConsultas.ESTADO_INDEX:
|
|
value = getEstado();
|
|
break;
|
|
case TrabalhadoresConsultas.PRESTADOR_ID_INDEX:
|
|
value = getPrestador_id();
|
|
break;
|
|
case TrabalhadoresConsultas.TO_PRESTADOR_ID_INDEX:
|
|
value = toPrestador_id();
|
|
break;
|
|
case TrabalhadoresConsultas.PROCESSO_ID_INDEX:
|
|
value = getProcesso_id();
|
|
break;
|
|
case TrabalhadoresConsultas.TO_PROCESSO_ID_INDEX:
|
|
value = toProcesso_id();
|
|
break;
|
|
}
|
|
return value;
|
|
}
|
|
|
|
public Object rawGet( String fieldName )
|
|
{
|
|
Object value = null;
|
|
Integer index = getFieldIndex( fieldName );
|
|
switch( index )
|
|
{
|
|
case TrabalhadoresConsultas.ID_INDEX:
|
|
value = this.id;
|
|
break;
|
|
case TrabalhadoresConsultas.TRABALHADOR_ID_INDEX:
|
|
value = this.trabalhador_id;
|
|
break;
|
|
case TrabalhadoresConsultas.TO_TRABALHADOR_ID_INDEX:
|
|
value = this.to_trabalhador_id;
|
|
break;
|
|
case TrabalhadoresConsultas.DATA_INDEX:
|
|
value = this.data;
|
|
break;
|
|
case TrabalhadoresConsultas.ESTADO_INDEX:
|
|
value = this.estado;
|
|
break;
|
|
case TrabalhadoresConsultas.PRESTADOR_ID_INDEX:
|
|
value = this.prestador_id;
|
|
break;
|
|
case TrabalhadoresConsultas.TO_PRESTADOR_ID_INDEX:
|
|
value = this.to_prestador_id;
|
|
break;
|
|
case TrabalhadoresConsultas.PROCESSO_ID_INDEX:
|
|
value = this.processo_id;
|
|
break;
|
|
case TrabalhadoresConsultas.TO_PROCESSO_ID_INDEX:
|
|
value = this.to_processo_id;
|
|
break;
|
|
}
|
|
return value;
|
|
}
|
|
|
|
public void set( String fieldName, Object value )
|
|
{
|
|
Integer index = getFieldIndex( fieldName );
|
|
switch( index )
|
|
{
|
|
case TrabalhadoresConsultas.ID_INDEX:
|
|
setId( ( Integer ) value );
|
|
break;
|
|
case TrabalhadoresConsultas.TRABALHADOR_ID_INDEX:
|
|
setTrabalhador_id( ( Integer ) value );
|
|
break;
|
|
case TrabalhadoresConsultas.TO_TRABALHADOR_ID_INDEX:
|
|
setToTrabalhador_id( ( siprp.data.outer.TrabalhadoresData ) value );
|
|
break;
|
|
case TrabalhadoresConsultas.DATA_INDEX:
|
|
setData( ( java.util.Date ) value );
|
|
break;
|
|
case TrabalhadoresConsultas.ESTADO_INDEX:
|
|
setEstado( ( Integer ) value );
|
|
break;
|
|
case TrabalhadoresConsultas.PRESTADOR_ID_INDEX:
|
|
setPrestador_id( ( Integer ) value );
|
|
break;
|
|
case TrabalhadoresConsultas.TO_PRESTADOR_ID_INDEX:
|
|
setToPrestador_id( ( siprp.data.outer.PrestadoresData ) value );
|
|
break;
|
|
case TrabalhadoresConsultas.PROCESSO_ID_INDEX:
|
|
setProcesso_id( ( Integer ) value );
|
|
break;
|
|
case TrabalhadoresConsultas.TO_PROCESSO_ID_INDEX:
|
|
setToProcesso_id( ( siprp.data.outer.TrabalhadoresProcessoData ) value );
|
|
break;
|
|
}
|
|
}
|
|
|
|
public void rawSet( String fieldName, Object value )
|
|
{
|
|
Integer index = getFieldIndex( fieldName );
|
|
switch( index )
|
|
{
|
|
case TrabalhadoresConsultas.ID_INDEX:
|
|
this.id = ( Integer ) value;
|
|
break;
|
|
case TrabalhadoresConsultas.TRABALHADOR_ID_INDEX:
|
|
this.trabalhador_id = ( Integer ) value;
|
|
break;
|
|
case TrabalhadoresConsultas.TO_TRABALHADOR_ID_INDEX:
|
|
this.to_trabalhador_id = ( siprp.data.outer.TrabalhadoresData ) value;
|
|
break;
|
|
case TrabalhadoresConsultas.DATA_INDEX:
|
|
this.data = ( java.util.Date ) value;
|
|
break;
|
|
case TrabalhadoresConsultas.ESTADO_INDEX:
|
|
this.estado = ( Integer ) value;
|
|
break;
|
|
case TrabalhadoresConsultas.PRESTADOR_ID_INDEX:
|
|
this.prestador_id = ( Integer ) value;
|
|
break;
|
|
case TrabalhadoresConsultas.TO_PRESTADOR_ID_INDEX:
|
|
this.to_prestador_id = ( siprp.data.outer.PrestadoresData ) value;
|
|
break;
|
|
case TrabalhadoresConsultas.PROCESSO_ID_INDEX:
|
|
this.processo_id = ( Integer ) value;
|
|
break;
|
|
case TrabalhadoresConsultas.TO_PROCESSO_ID_INDEX:
|
|
this.to_processo_id = ( siprp.data.outer.TrabalhadoresProcessoData ) 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 TrabalhadoresConsultas.ID_INDEX:
|
|
theClass = Integer.class;
|
|
break;
|
|
case TrabalhadoresConsultas.TRABALHADOR_ID_INDEX:
|
|
theClass = Integer.class;
|
|
break;
|
|
case TrabalhadoresConsultas.TO_TRABALHADOR_ID_INDEX:
|
|
theClass = siprp.data.outer.TrabalhadoresData.class;
|
|
break;
|
|
case TrabalhadoresConsultas.DATA_INDEX:
|
|
theClass = java.util.Date.class;
|
|
break;
|
|
case TrabalhadoresConsultas.ESTADO_INDEX:
|
|
theClass = Integer.class;
|
|
break;
|
|
case TrabalhadoresConsultas.PRESTADOR_ID_INDEX:
|
|
theClass = Integer.class;
|
|
break;
|
|
case TrabalhadoresConsultas.TO_PRESTADOR_ID_INDEX:
|
|
theClass = siprp.data.outer.PrestadoresData.class;
|
|
break;
|
|
case TrabalhadoresConsultas.PROCESSO_ID_INDEX:
|
|
theClass = Integer.class;
|
|
break;
|
|
case TrabalhadoresConsultas.TO_PROCESSO_ID_INDEX:
|
|
theClass = siprp.data.outer.TrabalhadoresProcessoData.class;
|
|
break;
|
|
}
|
|
return theClass;
|
|
}
|
|
|
|
public Integer getFieldIndex( String fieldName )
|
|
{
|
|
Integer index = FIELD_INDEXES.get( fieldName );
|
|
return index != null ? index : TrabalhadoresConsultas._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, TrabalhadoresConsultas.PK_FIELD_NAMES );
|
|
primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
|
|
}
|
|
setId( ( Integer ) array.get( row, col + 0 ) );
|
|
}
|
|
|
|
@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 );
|
|
}
|
|
}
|
|
}
|