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.
427 lines
9.8 KiB
427 lines
9.8 KiB
/*
|
|
* ExamesPerfis.java
|
|
*
|
|
* Generated by com.evutils.codegen.EntityObjectGenerator
|
|
*
|
|
* Use but DON'T TOUCH
|
|
* -> (can't touch this)
|
|
*/
|
|
package db.data.siprp.inner;
|
|
|
|
|
|
public class ExamesPerfis 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( ExamesPerfis.ID, ExamesPerfis.ID_INDEX );
|
|
FIELD_INDEXES.put( ExamesPerfis.ID_FULL, ExamesPerfis.ID_INDEX );
|
|
FIELD_INDEXES.put( ExamesPerfis.PERFIL, ExamesPerfis.PERFIL_INDEX );
|
|
FIELD_INDEXES.put( ExamesPerfis.PERFIL_FULL, ExamesPerfis.PERFIL_INDEX );
|
|
com.evolute.entity.evo.EvoDataObject.register( ExamesPerfis.CLASS_IDENTIFIER, ExamesPerfis.TIPO, ExamesPerfis.TO_TIPO );
|
|
FIELD_INDEXES.put( ExamesPerfis.TIPO, ExamesPerfis.TIPO_INDEX );
|
|
FIELD_INDEXES.put( ExamesPerfis.TIPO_FULL, ExamesPerfis.TIPO_INDEX );
|
|
FIELD_INDEXES.put( ExamesPerfis.TO_TIPO, ExamesPerfis.TO_TIPO_INDEX );
|
|
FIELD_INDEXES.put( ExamesPerfis.MULTIPLICADOR, ExamesPerfis.MULTIPLICADOR_INDEX );
|
|
FIELD_INDEXES.put( ExamesPerfis.MULTIPLICADOR_FULL, ExamesPerfis.MULTIPLICADOR_INDEX );
|
|
}
|
|
|
|
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
|
|
|
|
|
public static final com.evolute.entity.ForeignKey ForeignKeytipoTotipos_exames_comp =
|
|
new com.evolute.entity.ForeignKey( ExamesPerfis.class, ExamesPerfis.TIPO, db.data.siprp.outer.TiposExamesCompData.class, db.data.siprp.outer.TiposExamesCompData.ID );
|
|
|
|
public static final String TABLENAME = "exames_perfis";
|
|
|
|
|
|
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.exames_perfis";
|
|
|
|
public static final int _INVALID__INDEX = -1;
|
|
public static final String ID = "id";
|
|
public static final String ID_FULL = "exames_perfis.id";
|
|
public static final int ID_INDEX = 0;
|
|
public static final String PERFIL = "perfil";
|
|
public static final String PERFIL_FULL = "exames_perfis.perfil";
|
|
public static final int PERFIL_INDEX = 1;
|
|
public static final String TIPO = "tipo";
|
|
public static final String TIPO_FULL = "exames_perfis.tipo";
|
|
public static final int TIPO_INDEX = 2;
|
|
public static final String TO_TIPO = "to_tipo";
|
|
public static final String TO_TIPO_FULL = "exames_perfis.to_tipo";
|
|
public static final int TO_TIPO_INDEX = 3;
|
|
public static final String MULTIPLICADOR = "multiplicador";
|
|
public static final String MULTIPLICADOR_FULL = "exames_perfis.multiplicador";
|
|
public static final int MULTIPLICADOR_INDEX = 4;
|
|
|
|
public static final String FIELD_NAMES[] = new String[]{
|
|
PERFIL, TIPO, TO_TIPO, MULTIPLICADOR, };
|
|
|
|
public static final String FIELD_NAMES_FULL[] = new String[]{
|
|
TABLENAME + "." + PERFIL, TABLENAME + "." + TIPO, TABLENAME + "." + TO_TIPO, TABLENAME + "." + MULTIPLICADOR, };
|
|
|
|
protected static final String DB_FIELD_NAMES[] = new String[]{
|
|
ID, PERFIL, TIPO, MULTIPLICADOR, };
|
|
|
|
|
|
protected static final String PK_FIELD_NAMES[] = new String[]{
|
|
ID, };
|
|
|
|
|
|
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
|
ID, PERFIL, TIPO, MULTIPLICADOR, };
|
|
|
|
private Integer id;
|
|
private Integer perfil;
|
|
private Integer tipo;
|
|
private db.data.siprp.outer.TiposExamesCompData to_tipo;
|
|
private Integer multiplicador;
|
|
|
|
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
|
|
|
public ExamesPerfis()
|
|
{
|
|
super();
|
|
dirtyProperties = new boolean[]{ 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 getPerfil()
|
|
{
|
|
try
|
|
{
|
|
setLastAccess( System.currentTimeMillis() );
|
|
prepare( PERFIL );
|
|
}
|
|
catch( java.lang.Exception ex )
|
|
{
|
|
throw new RuntimeException( ex );
|
|
}
|
|
return this.perfil;
|
|
}
|
|
|
|
public void setPerfil( Integer perfil )
|
|
{
|
|
try
|
|
{
|
|
preProcess( PERFIL, perfil );
|
|
}
|
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
|
{
|
|
throw new RuntimeException( edex );
|
|
}
|
|
this.perfil = perfil;
|
|
LAZY_LOADED_OBJECTS.put( PERFIL, Boolean.TRUE );
|
|
}
|
|
|
|
public Integer getTipo()
|
|
{
|
|
try
|
|
{
|
|
setLastAccess( System.currentTimeMillis() );
|
|
prepare( TIPO );
|
|
}
|
|
catch( java.lang.Exception ex )
|
|
{
|
|
throw new RuntimeException( ex );
|
|
}
|
|
return this.tipo;
|
|
}
|
|
|
|
public void setTipo( Integer tipo )
|
|
{
|
|
try
|
|
{
|
|
preProcess( TIPO, tipo );
|
|
}
|
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
|
{
|
|
throw new RuntimeException( edex );
|
|
}
|
|
this.tipo = tipo;
|
|
LAZY_LOADED_OBJECTS.put( TIPO, Boolean.TRUE );
|
|
}
|
|
|
|
public db.data.siprp.outer.TiposExamesCompData toTipo()
|
|
{
|
|
try
|
|
{
|
|
prepare( TO_TIPO );
|
|
}
|
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
|
{
|
|
throw new RuntimeException( edex );
|
|
}
|
|
return this.to_tipo;
|
|
}
|
|
|
|
public void setToTipo( db.data.siprp.outer.TiposExamesCompData to_tipo )
|
|
{
|
|
try
|
|
{
|
|
preProcess( TO_TIPO, to_tipo );
|
|
}
|
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
|
{
|
|
throw new RuntimeException( edex );
|
|
}
|
|
this.to_tipo = to_tipo;
|
|
}
|
|
|
|
public Integer getMultiplicador()
|
|
{
|
|
try
|
|
{
|
|
setLastAccess( System.currentTimeMillis() );
|
|
prepare( MULTIPLICADOR );
|
|
}
|
|
catch( java.lang.Exception ex )
|
|
{
|
|
throw new RuntimeException( ex );
|
|
}
|
|
return this.multiplicador;
|
|
}
|
|
|
|
public void setMultiplicador( Integer multiplicador )
|
|
{
|
|
try
|
|
{
|
|
preProcess( MULTIPLICADOR, multiplicador );
|
|
}
|
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
|
{
|
|
throw new RuntimeException( edex );
|
|
}
|
|
this.multiplicador = multiplicador;
|
|
LAZY_LOADED_OBJECTS.put( MULTIPLICADOR, Boolean.TRUE );
|
|
}
|
|
|
|
public Object get( String fieldName )
|
|
{
|
|
Object value = null;
|
|
Integer index = getFieldIndex( fieldName );
|
|
switch( index )
|
|
{
|
|
case ExamesPerfis.ID_INDEX:
|
|
value = getId();
|
|
break;
|
|
case ExamesPerfis.PERFIL_INDEX:
|
|
value = getPerfil();
|
|
break;
|
|
case ExamesPerfis.TIPO_INDEX:
|
|
value = getTipo();
|
|
break;
|
|
case ExamesPerfis.TO_TIPO_INDEX:
|
|
value = toTipo();
|
|
break;
|
|
case ExamesPerfis.MULTIPLICADOR_INDEX:
|
|
value = getMultiplicador();
|
|
break;
|
|
}
|
|
return value;
|
|
}
|
|
|
|
public Object rawGet( String fieldName )
|
|
{
|
|
Object value = null;
|
|
Integer index = getFieldIndex( fieldName );
|
|
switch( index )
|
|
{
|
|
case ExamesPerfis.ID_INDEX:
|
|
value = this.id;
|
|
break;
|
|
case ExamesPerfis.PERFIL_INDEX:
|
|
value = this.perfil;
|
|
break;
|
|
case ExamesPerfis.TIPO_INDEX:
|
|
value = this.tipo;
|
|
break;
|
|
case ExamesPerfis.TO_TIPO_INDEX:
|
|
value = this.to_tipo;
|
|
break;
|
|
case ExamesPerfis.MULTIPLICADOR_INDEX:
|
|
value = this.multiplicador;
|
|
break;
|
|
}
|
|
return value;
|
|
}
|
|
|
|
public void set( String fieldName, Object value )
|
|
{
|
|
Integer index = getFieldIndex( fieldName );
|
|
switch( index )
|
|
{
|
|
case ExamesPerfis.ID_INDEX:
|
|
setId( ( Integer ) value );
|
|
break;
|
|
case ExamesPerfis.PERFIL_INDEX:
|
|
setPerfil( ( Integer ) value );
|
|
break;
|
|
case ExamesPerfis.TIPO_INDEX:
|
|
setTipo( ( Integer ) value );
|
|
break;
|
|
case ExamesPerfis.TO_TIPO_INDEX:
|
|
setToTipo( ( db.data.siprp.outer.TiposExamesCompData ) value );
|
|
break;
|
|
case ExamesPerfis.MULTIPLICADOR_INDEX:
|
|
setMultiplicador( ( Integer ) value );
|
|
break;
|
|
}
|
|
}
|
|
|
|
public void rawSet( String fieldName, Object value )
|
|
{
|
|
Integer index = getFieldIndex( fieldName );
|
|
switch( index )
|
|
{
|
|
case ExamesPerfis.ID_INDEX:
|
|
this.id = ( Integer ) value;
|
|
break;
|
|
case ExamesPerfis.PERFIL_INDEX:
|
|
this.perfil = ( Integer ) value;
|
|
break;
|
|
case ExamesPerfis.TIPO_INDEX:
|
|
this.tipo = ( Integer ) value;
|
|
break;
|
|
case ExamesPerfis.TO_TIPO_INDEX:
|
|
this.to_tipo = ( db.data.siprp.outer.TiposExamesCompData ) value;
|
|
break;
|
|
case ExamesPerfis.MULTIPLICADOR_INDEX:
|
|
this.multiplicador = ( Integer ) 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 ExamesPerfis.ID_INDEX:
|
|
theClass = Integer.class;
|
|
break;
|
|
case ExamesPerfis.PERFIL_INDEX:
|
|
theClass = Integer.class;
|
|
break;
|
|
case ExamesPerfis.TIPO_INDEX:
|
|
theClass = Integer.class;
|
|
break;
|
|
case ExamesPerfis.TO_TIPO_INDEX:
|
|
theClass = db.data.siprp.outer.TiposExamesCompData.class;
|
|
break;
|
|
case ExamesPerfis.MULTIPLICADOR_INDEX:
|
|
theClass = Integer.class;
|
|
break;
|
|
}
|
|
return theClass;
|
|
}
|
|
|
|
public Integer getFieldIndex( String fieldName )
|
|
{
|
|
Integer index = FIELD_INDEXES.get( fieldName );
|
|
return index != null ? index : ExamesPerfis._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, ExamesPerfis.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 );
|
|
}
|
|
}
|
|
}
|