forked from Coded/SIPRP
git-svn-id: https://svn.coded.pt/svn/SIPRP@2061 bb69d46d-e84e-40c8-a05a-06db0d633741
parent
aaa5397670
commit
0f34003092
@ -0,0 +1,467 @@
|
||||
/*
|
||||
* EmpresaInspeccao.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 EmpresaInspeccao 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( EmpresaInspeccao.ID, EmpresaInspeccao.ID_INDEX );
|
||||
FIELD_INDEXES.put( EmpresaInspeccao.ID_FULL, EmpresaInspeccao.ID_INDEX );
|
||||
com.evolute.entity.evo.EvoDataObject.register( EmpresaInspeccao.CLASS_IDENTIFIER, EmpresaInspeccao.EMPRESA_ID, EmpresaInspeccao.TO_EMPRESA_ID );
|
||||
FIELD_INDEXES.put( EmpresaInspeccao.EMPRESA_ID, EmpresaInspeccao.EMPRESA_ID_INDEX );
|
||||
FIELD_INDEXES.put( EmpresaInspeccao.EMPRESA_ID_FULL, EmpresaInspeccao.EMPRESA_ID_INDEX );
|
||||
FIELD_INDEXES.put( EmpresaInspeccao.TO_EMPRESA_ID, EmpresaInspeccao.TO_EMPRESA_ID_INDEX );
|
||||
FIELD_INDEXES.put( EmpresaInspeccao.DATA, EmpresaInspeccao.DATA_INDEX );
|
||||
FIELD_INDEXES.put( EmpresaInspeccao.DATA_FULL, EmpresaInspeccao.DATA_INDEX );
|
||||
FIELD_INDEXES.put( EmpresaInspeccao.PONTOS_SOLICITADOS, EmpresaInspeccao.PONTOS_SOLICITADOS_INDEX );
|
||||
FIELD_INDEXES.put( EmpresaInspeccao.PONTOS_SOLICITADOS_FULL, EmpresaInspeccao.PONTOS_SOLICITADOS_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final com.evolute.entity.ForeignKey ForeignKeyempresa_idToempresas =
|
||||
new com.evolute.entity.ForeignKey( EmpresaInspeccao.class, EmpresaInspeccao.EMPRESA_ID, db.data.siprp_local.outer.EmpresasData.class, db.data.siprp_local.outer.EmpresasData.ID );
|
||||
|
||||
public static final String TABLENAME = "empresa_inspeccao";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp_local.inner.empresa_inspeccao";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "empresa_inspeccao.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String EMPRESA_ID = "empresa_id";
|
||||
public static final String EMPRESA_ID_FULL = "empresa_inspeccao.empresa_id";
|
||||
public static final int EMPRESA_ID_INDEX = 1;
|
||||
public static final String TO_EMPRESA_ID = "to_empresa_id";
|
||||
public static final String TO_EMPRESA_ID_FULL = "empresa_inspeccao.to_empresa_id";
|
||||
public static final int TO_EMPRESA_ID_INDEX = 2;
|
||||
public static final String DATA = "data";
|
||||
public static final String DATA_FULL = "empresa_inspeccao.data";
|
||||
public static final int DATA_INDEX = 3;
|
||||
public static final String PONTOS_SOLICITADOS = "pontos_solicitados";
|
||||
public static final String PONTOS_SOLICITADOS_FULL = "empresa_inspeccao.pontos_solicitados";
|
||||
public static final int PONTOS_SOLICITADOS_INDEX = 4;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
EMPRESA_ID, TO_EMPRESA_ID, DATA, PONTOS_SOLICITADOS, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + EMPRESA_ID, TABLENAME + "." + TO_EMPRESA_ID, TABLENAME + "." + DATA, TABLENAME + "." + PONTOS_SOLICITADOS, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, EMPRESA_ID, DATA, PONTOS_SOLICITADOS, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, EMPRESA_ID, DATA, };
|
||||
|
||||
private Integer id;
|
||||
private Integer empresa_id;
|
||||
private db.data.siprp_local.outer.EmpresasData to_empresa_id;
|
||||
private Date data;
|
||||
private String pontos_solicitados;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public EmpresaInspeccao()
|
||||
{
|
||||
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 java.util.List<db.data.siprp_local.outer.EmpresaInspeccaoFicheiroData>fromEmpresaInspeccaoFicheiro_inspeccao_id()
|
||||
{
|
||||
java.util.List<db.data.siprp_local.outer.EmpresaInspeccaoFicheiroData> result = new java.util.LinkedList< db.data.siprp_local.outer.EmpresaInspeccaoFicheiroData >();
|
||||
if ( getPrimaryKey() != null )
|
||||
{
|
||||
try
|
||||
{
|
||||
result = fromReference( db.data.siprp_local.outer.EmpresaInspeccaoFicheiroData.class , getPrimaryKey().getMap().get("id"), "inspeccao_id" );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public Integer getEmpresa_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( EMPRESA_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.empresa_id;
|
||||
}
|
||||
|
||||
public void setEmpresa_id( Integer empresa_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( EMPRESA_ID, empresa_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.empresa_id = empresa_id;
|
||||
LAZY_LOADED_OBJECTS.put( EMPRESA_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public db.data.siprp_local.outer.EmpresasData toEmpresa_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
prepare( TO_EMPRESA_ID );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return this.to_empresa_id;
|
||||
}
|
||||
|
||||
public void setToEmpresa_id( db.data.siprp_local.outer.EmpresasData to_empresa_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( TO_EMPRESA_ID, to_empresa_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.to_empresa_id = to_empresa_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 String getPontos_solicitados()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( PONTOS_SOLICITADOS );
|
||||
Boolean isLazyLoaded = isPropertyLoaded( PONTOS_SOLICITADOS );
|
||||
if ( ! isLazyLoaded )
|
||||
{
|
||||
this.pontos_solicitados = ( String ) getProvider().loadFieldFromDatabase( PONTOS_SOLICITADOS, this );
|
||||
LAZY_LOADED_OBJECTS.put( PONTOS_SOLICITADOS, Boolean.TRUE );
|
||||
}
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.pontos_solicitados;
|
||||
}
|
||||
|
||||
public void setPontos_solicitados( String pontos_solicitados )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( PONTOS_SOLICITADOS, pontos_solicitados );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.pontos_solicitados = pontos_solicitados;
|
||||
LAZY_LOADED_OBJECTS.put( PONTOS_SOLICITADOS, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case EmpresaInspeccao.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case EmpresaInspeccao.EMPRESA_ID_INDEX:
|
||||
value = getEmpresa_id();
|
||||
break;
|
||||
case EmpresaInspeccao.TO_EMPRESA_ID_INDEX:
|
||||
value = toEmpresa_id();
|
||||
break;
|
||||
case EmpresaInspeccao.DATA_INDEX:
|
||||
value = getData();
|
||||
break;
|
||||
case EmpresaInspeccao.PONTOS_SOLICITADOS_INDEX:
|
||||
value = getPontos_solicitados();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case EmpresaInspeccao.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case EmpresaInspeccao.EMPRESA_ID_INDEX:
|
||||
value = this.empresa_id;
|
||||
break;
|
||||
case EmpresaInspeccao.TO_EMPRESA_ID_INDEX:
|
||||
value = this.to_empresa_id;
|
||||
break;
|
||||
case EmpresaInspeccao.DATA_INDEX:
|
||||
value = this.data;
|
||||
break;
|
||||
case EmpresaInspeccao.PONTOS_SOLICITADOS_INDEX:
|
||||
value = this.pontos_solicitados;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case EmpresaInspeccao.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case EmpresaInspeccao.EMPRESA_ID_INDEX:
|
||||
setEmpresa_id( ( Integer ) value );
|
||||
break;
|
||||
case EmpresaInspeccao.TO_EMPRESA_ID_INDEX:
|
||||
setToEmpresa_id( ( db.data.siprp_local.outer.EmpresasData ) value );
|
||||
break;
|
||||
case EmpresaInspeccao.DATA_INDEX:
|
||||
setData( ( Date ) value );
|
||||
break;
|
||||
case EmpresaInspeccao.PONTOS_SOLICITADOS_INDEX:
|
||||
setPontos_solicitados( ( String ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case EmpresaInspeccao.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case EmpresaInspeccao.EMPRESA_ID_INDEX:
|
||||
this.empresa_id = ( Integer ) value;
|
||||
break;
|
||||
case EmpresaInspeccao.TO_EMPRESA_ID_INDEX:
|
||||
this.to_empresa_id = ( db.data.siprp_local.outer.EmpresasData ) value;
|
||||
break;
|
||||
case EmpresaInspeccao.DATA_INDEX:
|
||||
this.data = ( Date ) value;
|
||||
break;
|
||||
case EmpresaInspeccao.PONTOS_SOLICITADOS_INDEX:
|
||||
this.pontos_solicitados = ( 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 EmpresaInspeccao.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case EmpresaInspeccao.EMPRESA_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case EmpresaInspeccao.TO_EMPRESA_ID_INDEX:
|
||||
theClass = db.data.siprp_local.outer.EmpresasData.class;
|
||||
break;
|
||||
case EmpresaInspeccao.DATA_INDEX:
|
||||
theClass = Date.class;
|
||||
break;
|
||||
case EmpresaInspeccao.PONTOS_SOLICITADOS_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : EmpresaInspeccao._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, EmpresaInspeccao.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( PONTOS_SOLICITADOS, Boolean.FALSE );
|
||||
}
|
||||
|
||||
public boolean isPropertyLoaded( String fieldName )
|
||||
{
|
||||
if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return LAZY_LOADED_OBJECTS.get( fieldName );
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,443 @@
|
||||
/*
|
||||
* EmpresaInspeccaoFicheiro.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp_local.inner;
|
||||
|
||||
|
||||
public class EmpresaInspeccaoFicheiro 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( EmpresaInspeccaoFicheiro.ID, EmpresaInspeccaoFicheiro.ID_INDEX );
|
||||
FIELD_INDEXES.put( EmpresaInspeccaoFicheiro.ID_FULL, EmpresaInspeccaoFicheiro.ID_INDEX );
|
||||
com.evolute.entity.evo.EvoDataObject.register( EmpresaInspeccaoFicheiro.CLASS_IDENTIFIER, EmpresaInspeccaoFicheiro.INSPECCAO_ID, EmpresaInspeccaoFicheiro.TO_INSPECCAO_ID );
|
||||
FIELD_INDEXES.put( EmpresaInspeccaoFicheiro.INSPECCAO_ID, EmpresaInspeccaoFicheiro.INSPECCAO_ID_INDEX );
|
||||
FIELD_INDEXES.put( EmpresaInspeccaoFicheiro.INSPECCAO_ID_FULL, EmpresaInspeccaoFicheiro.INSPECCAO_ID_INDEX );
|
||||
FIELD_INDEXES.put( EmpresaInspeccaoFicheiro.TO_INSPECCAO_ID, EmpresaInspeccaoFicheiro.TO_INSPECCAO_ID_INDEX );
|
||||
com.evolute.entity.evo.EvoDataObject.register( EmpresaInspeccaoFicheiro.CLASS_IDENTIFIER, EmpresaInspeccaoFicheiro.FILE_ID, EmpresaInspeccaoFicheiro.TO_FILE_ID );
|
||||
FIELD_INDEXES.put( EmpresaInspeccaoFicheiro.FILE_ID, EmpresaInspeccaoFicheiro.FILE_ID_INDEX );
|
||||
FIELD_INDEXES.put( EmpresaInspeccaoFicheiro.FILE_ID_FULL, EmpresaInspeccaoFicheiro.FILE_ID_INDEX );
|
||||
FIELD_INDEXES.put( EmpresaInspeccaoFicheiro.TO_FILE_ID, EmpresaInspeccaoFicheiro.TO_FILE_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 ForeignKeyinspeccao_idToempresa_inspeccao =
|
||||
new com.evolute.entity.ForeignKey( EmpresaInspeccaoFicheiro.class, EmpresaInspeccaoFicheiro.INSPECCAO_ID, db.data.siprp_local.outer.EmpresaInspeccaoData.class, db.data.siprp_local.outer.EmpresaInspeccaoData.ID );
|
||||
|
||||
public static final com.evolute.entity.ForeignKey ForeignKeyfile_idTofil_file =
|
||||
new com.evolute.entity.ForeignKey( EmpresaInspeccaoFicheiro.class, EmpresaInspeccaoFicheiro.FILE_ID, db.data.siprp_local.outer.FilFileData.class, db.data.siprp_local.outer.FilFileData.ID );
|
||||
|
||||
public static final String TABLENAME = "empresa_inspeccao_ficheiro";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp_local.inner.empresa_inspeccao_ficheiro";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "empresa_inspeccao_ficheiro.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String INSPECCAO_ID = "inspeccao_id";
|
||||
public static final String INSPECCAO_ID_FULL = "empresa_inspeccao_ficheiro.inspeccao_id";
|
||||
public static final int INSPECCAO_ID_INDEX = 1;
|
||||
public static final String TO_INSPECCAO_ID = "to_inspeccao_id";
|
||||
public static final String TO_INSPECCAO_ID_FULL = "empresa_inspeccao_ficheiro.to_inspeccao_id";
|
||||
public static final int TO_INSPECCAO_ID_INDEX = 2;
|
||||
public static final String FILE_ID = "file_id";
|
||||
public static final String FILE_ID_FULL = "empresa_inspeccao_ficheiro.file_id";
|
||||
public static final int FILE_ID_INDEX = 3;
|
||||
public static final String TO_FILE_ID = "to_file_id";
|
||||
public static final String TO_FILE_ID_FULL = "empresa_inspeccao_ficheiro.to_file_id";
|
||||
public static final int TO_FILE_ID_INDEX = 4;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
INSPECCAO_ID, TO_INSPECCAO_ID, FILE_ID, TO_FILE_ID, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + INSPECCAO_ID, TABLENAME + "." + TO_INSPECCAO_ID, TABLENAME + "." + FILE_ID, TABLENAME + "." + TO_FILE_ID, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, INSPECCAO_ID, FILE_ID, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, INSPECCAO_ID, FILE_ID, };
|
||||
|
||||
private Integer id;
|
||||
private Integer inspeccao_id;
|
||||
private db.data.siprp_local.outer.EmpresaInspeccaoData to_inspeccao_id;
|
||||
private Integer file_id;
|
||||
private db.data.siprp_local.outer.FilFileData to_file_id;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public EmpresaInspeccaoFicheiro()
|
||||
{
|
||||
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 getInspeccao_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( INSPECCAO_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.inspeccao_id;
|
||||
}
|
||||
|
||||
public void setInspeccao_id( Integer inspeccao_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( INSPECCAO_ID, inspeccao_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.inspeccao_id = inspeccao_id;
|
||||
LAZY_LOADED_OBJECTS.put( INSPECCAO_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public db.data.siprp_local.outer.EmpresaInspeccaoData toInspeccao_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
prepare( TO_INSPECCAO_ID );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return this.to_inspeccao_id;
|
||||
}
|
||||
|
||||
public void setToInspeccao_id( db.data.siprp_local.outer.EmpresaInspeccaoData to_inspeccao_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( TO_INSPECCAO_ID, to_inspeccao_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.to_inspeccao_id = to_inspeccao_id;
|
||||
}
|
||||
|
||||
public Integer getFile_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( FILE_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.file_id;
|
||||
}
|
||||
|
||||
public void setFile_id( Integer file_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( FILE_ID, file_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.file_id = file_id;
|
||||
LAZY_LOADED_OBJECTS.put( FILE_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public db.data.siprp_local.outer.FilFileData toFile_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
prepare( TO_FILE_ID );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return this.to_file_id;
|
||||
}
|
||||
|
||||
public void setToFile_id( db.data.siprp_local.outer.FilFileData to_file_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( TO_FILE_ID, to_file_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.to_file_id = to_file_id;
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case EmpresaInspeccaoFicheiro.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case EmpresaInspeccaoFicheiro.INSPECCAO_ID_INDEX:
|
||||
value = getInspeccao_id();
|
||||
break;
|
||||
case EmpresaInspeccaoFicheiro.TO_INSPECCAO_ID_INDEX:
|
||||
value = toInspeccao_id();
|
||||
break;
|
||||
case EmpresaInspeccaoFicheiro.FILE_ID_INDEX:
|
||||
value = getFile_id();
|
||||
break;
|
||||
case EmpresaInspeccaoFicheiro.TO_FILE_ID_INDEX:
|
||||
value = toFile_id();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case EmpresaInspeccaoFicheiro.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case EmpresaInspeccaoFicheiro.INSPECCAO_ID_INDEX:
|
||||
value = this.inspeccao_id;
|
||||
break;
|
||||
case EmpresaInspeccaoFicheiro.TO_INSPECCAO_ID_INDEX:
|
||||
value = this.to_inspeccao_id;
|
||||
break;
|
||||
case EmpresaInspeccaoFicheiro.FILE_ID_INDEX:
|
||||
value = this.file_id;
|
||||
break;
|
||||
case EmpresaInspeccaoFicheiro.TO_FILE_ID_INDEX:
|
||||
value = this.to_file_id;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case EmpresaInspeccaoFicheiro.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case EmpresaInspeccaoFicheiro.INSPECCAO_ID_INDEX:
|
||||
setInspeccao_id( ( Integer ) value );
|
||||
break;
|
||||
case EmpresaInspeccaoFicheiro.TO_INSPECCAO_ID_INDEX:
|
||||
setToInspeccao_id( ( db.data.siprp_local.outer.EmpresaInspeccaoData ) value );
|
||||
break;
|
||||
case EmpresaInspeccaoFicheiro.FILE_ID_INDEX:
|
||||
setFile_id( ( Integer ) value );
|
||||
break;
|
||||
case EmpresaInspeccaoFicheiro.TO_FILE_ID_INDEX:
|
||||
setToFile_id( ( db.data.siprp_local.outer.FilFileData ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case EmpresaInspeccaoFicheiro.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case EmpresaInspeccaoFicheiro.INSPECCAO_ID_INDEX:
|
||||
this.inspeccao_id = ( Integer ) value;
|
||||
break;
|
||||
case EmpresaInspeccaoFicheiro.TO_INSPECCAO_ID_INDEX:
|
||||
this.to_inspeccao_id = ( db.data.siprp_local.outer.EmpresaInspeccaoData ) value;
|
||||
break;
|
||||
case EmpresaInspeccaoFicheiro.FILE_ID_INDEX:
|
||||
this.file_id = ( Integer ) value;
|
||||
break;
|
||||
case EmpresaInspeccaoFicheiro.TO_FILE_ID_INDEX:
|
||||
this.to_file_id = ( db.data.siprp_local.outer.FilFileData ) 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 EmpresaInspeccaoFicheiro.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case EmpresaInspeccaoFicheiro.INSPECCAO_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case EmpresaInspeccaoFicheiro.TO_INSPECCAO_ID_INDEX:
|
||||
theClass = db.data.siprp_local.outer.EmpresaInspeccaoData.class;
|
||||
break;
|
||||
case EmpresaInspeccaoFicheiro.FILE_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case EmpresaInspeccaoFicheiro.TO_FILE_ID_INDEX:
|
||||
theClass = db.data.siprp_local.outer.FilFileData.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : EmpresaInspeccaoFicheiro._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, EmpresaInspeccaoFicheiro.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()
|
||||
{
|
||||
}
|
||||
|
||||
public boolean isPropertyLoaded( String fieldName )
|
||||
{
|
||||
if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return LAZY_LOADED_OBJECTS.get( fieldName );
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,492 @@
|
||||
/*
|
||||
* EmpresaPrecoServicoEstado.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp_local.inner;
|
||||
|
||||
|
||||
public class EmpresaPrecoServicoEstado 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( EmpresaPrecoServicoEstado.ID, EmpresaPrecoServicoEstado.ID_INDEX );
|
||||
FIELD_INDEXES.put( EmpresaPrecoServicoEstado.ID_FULL, EmpresaPrecoServicoEstado.ID_INDEX );
|
||||
com.evolute.entity.evo.EvoDataObject.register( EmpresaPrecoServicoEstado.CLASS_IDENTIFIER, EmpresaPrecoServicoEstado.EMPRESA_ID, EmpresaPrecoServicoEstado.TO_EMPRESA_ID );
|
||||
FIELD_INDEXES.put( EmpresaPrecoServicoEstado.EMPRESA_ID, EmpresaPrecoServicoEstado.EMPRESA_ID_INDEX );
|
||||
FIELD_INDEXES.put( EmpresaPrecoServicoEstado.EMPRESA_ID_FULL, EmpresaPrecoServicoEstado.EMPRESA_ID_INDEX );
|
||||
FIELD_INDEXES.put( EmpresaPrecoServicoEstado.TO_EMPRESA_ID, EmpresaPrecoServicoEstado.TO_EMPRESA_ID_INDEX );
|
||||
com.evolute.entity.evo.EvoDataObject.register( EmpresaPrecoServicoEstado.CLASS_IDENTIFIER, EmpresaPrecoServicoEstado.SERVICO_TIPO_ID, EmpresaPrecoServicoEstado.TO_SERVICO_TIPO_ID );
|
||||
FIELD_INDEXES.put( EmpresaPrecoServicoEstado.SERVICO_TIPO_ID, EmpresaPrecoServicoEstado.SERVICO_TIPO_ID_INDEX );
|
||||
FIELD_INDEXES.put( EmpresaPrecoServicoEstado.SERVICO_TIPO_ID_FULL, EmpresaPrecoServicoEstado.SERVICO_TIPO_ID_INDEX );
|
||||
FIELD_INDEXES.put( EmpresaPrecoServicoEstado.TO_SERVICO_TIPO_ID, EmpresaPrecoServicoEstado.TO_SERVICO_TIPO_ID_INDEX );
|
||||
FIELD_INDEXES.put( EmpresaPrecoServicoEstado.ACTIVO, EmpresaPrecoServicoEstado.ACTIVO_INDEX );
|
||||
FIELD_INDEXES.put( EmpresaPrecoServicoEstado.ACTIVO_FULL, EmpresaPrecoServicoEstado.ACTIVO_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final com.evolute.entity.ForeignKey ForeignKeyempresa_idToempresas =
|
||||
new com.evolute.entity.ForeignKey( EmpresaPrecoServicoEstado.class, EmpresaPrecoServicoEstado.EMPRESA_ID, db.data.siprp_local.outer.EmpresasData.class, db.data.siprp_local.outer.EmpresasData.ID );
|
||||
|
||||
public static final com.evolute.entity.ForeignKey ForeignKeyservico_tipo_idToempresa_preco_servico_tipo =
|
||||
new com.evolute.entity.ForeignKey( EmpresaPrecoServicoEstado.class, EmpresaPrecoServicoEstado.SERVICO_TIPO_ID, db.data.siprp_local.outer.EmpresaPrecoServicoTipoData.class, db.data.siprp_local.outer.EmpresaPrecoServicoTipoData.ID );
|
||||
|
||||
public static final String TABLENAME = "empresa_preco_servico_estado";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp_local.inner.empresa_preco_servico_estado";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "empresa_preco_servico_estado.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String EMPRESA_ID = "empresa_id";
|
||||
public static final String EMPRESA_ID_FULL = "empresa_preco_servico_estado.empresa_id";
|
||||
public static final int EMPRESA_ID_INDEX = 1;
|
||||
public static final String TO_EMPRESA_ID = "to_empresa_id";
|
||||
public static final String TO_EMPRESA_ID_FULL = "empresa_preco_servico_estado.to_empresa_id";
|
||||
public static final int TO_EMPRESA_ID_INDEX = 2;
|
||||
public static final String SERVICO_TIPO_ID = "servico_tipo_id";
|
||||
public static final String SERVICO_TIPO_ID_FULL = "empresa_preco_servico_estado.servico_tipo_id";
|
||||
public static final int SERVICO_TIPO_ID_INDEX = 3;
|
||||
public static final String TO_SERVICO_TIPO_ID = "to_servico_tipo_id";
|
||||
public static final String TO_SERVICO_TIPO_ID_FULL = "empresa_preco_servico_estado.to_servico_tipo_id";
|
||||
public static final int TO_SERVICO_TIPO_ID_INDEX = 4;
|
||||
public static final String ACTIVO = "activo";
|
||||
public static final String ACTIVO_FULL = "empresa_preco_servico_estado.activo";
|
||||
public static final int ACTIVO_INDEX = 5;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
EMPRESA_ID, TO_EMPRESA_ID, SERVICO_TIPO_ID, TO_SERVICO_TIPO_ID, ACTIVO, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + EMPRESA_ID, TABLENAME + "." + TO_EMPRESA_ID, TABLENAME + "." + SERVICO_TIPO_ID, TABLENAME + "." + TO_SERVICO_TIPO_ID, TABLENAME + "." + ACTIVO, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, EMPRESA_ID, SERVICO_TIPO_ID, ACTIVO, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, EMPRESA_ID, SERVICO_TIPO_ID, ACTIVO, };
|
||||
|
||||
private Integer id;
|
||||
private Integer empresa_id;
|
||||
private db.data.siprp_local.outer.EmpresasData to_empresa_id;
|
||||
private Integer servico_tipo_id;
|
||||
private db.data.siprp_local.outer.EmpresaPrecoServicoTipoData to_servico_tipo_id;
|
||||
private Boolean activo;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public EmpresaPrecoServicoEstado()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ 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 getEmpresa_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( EMPRESA_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.empresa_id;
|
||||
}
|
||||
|
||||
public void setEmpresa_id( Integer empresa_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( EMPRESA_ID, empresa_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.empresa_id = empresa_id;
|
||||
LAZY_LOADED_OBJECTS.put( EMPRESA_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public db.data.siprp_local.outer.EmpresasData toEmpresa_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
prepare( TO_EMPRESA_ID );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return this.to_empresa_id;
|
||||
}
|
||||
|
||||
public void setToEmpresa_id( db.data.siprp_local.outer.EmpresasData to_empresa_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( TO_EMPRESA_ID, to_empresa_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.to_empresa_id = to_empresa_id;
|
||||
}
|
||||
|
||||
public Integer getServico_tipo_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( SERVICO_TIPO_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.servico_tipo_id;
|
||||
}
|
||||
|
||||
public void setServico_tipo_id( Integer servico_tipo_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( SERVICO_TIPO_ID, servico_tipo_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.servico_tipo_id = servico_tipo_id;
|
||||
LAZY_LOADED_OBJECTS.put( SERVICO_TIPO_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public db.data.siprp_local.outer.EmpresaPrecoServicoTipoData toServico_tipo_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
prepare( TO_SERVICO_TIPO_ID );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return this.to_servico_tipo_id;
|
||||
}
|
||||
|
||||
public void setToServico_tipo_id( db.data.siprp_local.outer.EmpresaPrecoServicoTipoData to_servico_tipo_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( TO_SERVICO_TIPO_ID, to_servico_tipo_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.to_servico_tipo_id = to_servico_tipo_id;
|
||||
}
|
||||
|
||||
public Boolean getActivo()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ACTIVO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.activo;
|
||||
}
|
||||
|
||||
public void setActivo( Boolean activo )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( ACTIVO, activo );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.activo = activo;
|
||||
LAZY_LOADED_OBJECTS.put( ACTIVO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case EmpresaPrecoServicoEstado.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case EmpresaPrecoServicoEstado.EMPRESA_ID_INDEX:
|
||||
value = getEmpresa_id();
|
||||
break;
|
||||
case EmpresaPrecoServicoEstado.TO_EMPRESA_ID_INDEX:
|
||||
value = toEmpresa_id();
|
||||
break;
|
||||
case EmpresaPrecoServicoEstado.SERVICO_TIPO_ID_INDEX:
|
||||
value = getServico_tipo_id();
|
||||
break;
|
||||
case EmpresaPrecoServicoEstado.TO_SERVICO_TIPO_ID_INDEX:
|
||||
value = toServico_tipo_id();
|
||||
break;
|
||||
case EmpresaPrecoServicoEstado.ACTIVO_INDEX:
|
||||
value = getActivo();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case EmpresaPrecoServicoEstado.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case EmpresaPrecoServicoEstado.EMPRESA_ID_INDEX:
|
||||
value = this.empresa_id;
|
||||
break;
|
||||
case EmpresaPrecoServicoEstado.TO_EMPRESA_ID_INDEX:
|
||||
value = this.to_empresa_id;
|
||||
break;
|
||||
case EmpresaPrecoServicoEstado.SERVICO_TIPO_ID_INDEX:
|
||||
value = this.servico_tipo_id;
|
||||
break;
|
||||
case EmpresaPrecoServicoEstado.TO_SERVICO_TIPO_ID_INDEX:
|
||||
value = this.to_servico_tipo_id;
|
||||
break;
|
||||
case EmpresaPrecoServicoEstado.ACTIVO_INDEX:
|
||||
value = this.activo;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case EmpresaPrecoServicoEstado.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case EmpresaPrecoServicoEstado.EMPRESA_ID_INDEX:
|
||||
setEmpresa_id( ( Integer ) value );
|
||||
break;
|
||||
case EmpresaPrecoServicoEstado.TO_EMPRESA_ID_INDEX:
|
||||
setToEmpresa_id( ( db.data.siprp_local.outer.EmpresasData ) value );
|
||||
break;
|
||||
case EmpresaPrecoServicoEstado.SERVICO_TIPO_ID_INDEX:
|
||||
setServico_tipo_id( ( Integer ) value );
|
||||
break;
|
||||
case EmpresaPrecoServicoEstado.TO_SERVICO_TIPO_ID_INDEX:
|
||||
setToServico_tipo_id( ( db.data.siprp_local.outer.EmpresaPrecoServicoTipoData ) value );
|
||||
break;
|
||||
case EmpresaPrecoServicoEstado.ACTIVO_INDEX:
|
||||
setActivo( ( Boolean ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case EmpresaPrecoServicoEstado.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case EmpresaPrecoServicoEstado.EMPRESA_ID_INDEX:
|
||||
this.empresa_id = ( Integer ) value;
|
||||
break;
|
||||
case EmpresaPrecoServicoEstado.TO_EMPRESA_ID_INDEX:
|
||||
this.to_empresa_id = ( db.data.siprp_local.outer.EmpresasData ) value;
|
||||
break;
|
||||
case EmpresaPrecoServicoEstado.SERVICO_TIPO_ID_INDEX:
|
||||
this.servico_tipo_id = ( Integer ) value;
|
||||
break;
|
||||
case EmpresaPrecoServicoEstado.TO_SERVICO_TIPO_ID_INDEX:
|
||||
this.to_servico_tipo_id = ( db.data.siprp_local.outer.EmpresaPrecoServicoTipoData ) value;
|
||||
break;
|
||||
case EmpresaPrecoServicoEstado.ACTIVO_INDEX:
|
||||
this.activo = ( Boolean ) 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 EmpresaPrecoServicoEstado.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case EmpresaPrecoServicoEstado.EMPRESA_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case EmpresaPrecoServicoEstado.TO_EMPRESA_ID_INDEX:
|
||||
theClass = db.data.siprp_local.outer.EmpresasData.class;
|
||||
break;
|
||||
case EmpresaPrecoServicoEstado.SERVICO_TIPO_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case EmpresaPrecoServicoEstado.TO_SERVICO_TIPO_ID_INDEX:
|
||||
theClass = db.data.siprp_local.outer.EmpresaPrecoServicoTipoData.class;
|
||||
break;
|
||||
case EmpresaPrecoServicoEstado.ACTIVO_INDEX:
|
||||
theClass = Boolean.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : EmpresaPrecoServicoEstado._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, EmpresaPrecoServicoEstado.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()
|
||||
{
|
||||
}
|
||||
|
||||
public boolean isPropertyLoaded( String fieldName )
|
||||
{
|
||||
if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return LAZY_LOADED_OBJECTS.get( fieldName );
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,492 @@
|
||||
/*
|
||||
* EmpresasRu.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp_local.inner;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
|
||||
public class EmpresasRu 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( EmpresasRu.ID, EmpresasRu.ID_INDEX );
|
||||
FIELD_INDEXES.put( EmpresasRu.ID_FULL, EmpresasRu.ID_INDEX );
|
||||
FIELD_INDEXES.put( EmpresasRu.CODIGO, EmpresasRu.CODIGO_INDEX );
|
||||
FIELD_INDEXES.put( EmpresasRu.CODIGO_FULL, EmpresasRu.CODIGO_INDEX );
|
||||
FIELD_INDEXES.put( EmpresasRu.PASS, EmpresasRu.PASS_INDEX );
|
||||
FIELD_INDEXES.put( EmpresasRu.PASS_FULL, EmpresasRu.PASS_INDEX );
|
||||
com.evolute.entity.evo.EvoDataObject.register( EmpresasRu.CLASS_IDENTIFIER, EmpresasRu.EMPRESA_ID, EmpresasRu.TO_EMPRESA_ID );
|
||||
FIELD_INDEXES.put( EmpresasRu.EMPRESA_ID, EmpresasRu.EMPRESA_ID_INDEX );
|
||||
FIELD_INDEXES.put( EmpresasRu.EMPRESA_ID_FULL, EmpresasRu.EMPRESA_ID_INDEX );
|
||||
FIELD_INDEXES.put( EmpresasRu.TO_EMPRESA_ID, EmpresasRu.TO_EMPRESA_ID_INDEX );
|
||||
FIELD_INDEXES.put( EmpresasRu.DATA, EmpresasRu.DATA_INDEX );
|
||||
FIELD_INDEXES.put( EmpresasRu.DATA_FULL, EmpresasRu.DATA_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final com.evolute.entity.ForeignKey ForeignKeyempresa_idToempresas =
|
||||
new com.evolute.entity.ForeignKey( EmpresasRu.class, EmpresasRu.EMPRESA_ID, db.data.siprp_local.outer.EmpresasData.class, db.data.siprp_local.outer.EmpresasData.ID );
|
||||
|
||||
public static final String TABLENAME = "empresas_ru";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp_local.inner.empresas_ru";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "empresas_ru.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String CODIGO = "codigo";
|
||||
public static final String CODIGO_FULL = "empresas_ru.codigo";
|
||||
public static final int CODIGO_INDEX = 1;
|
||||
public static final String PASS = "pass";
|
||||
public static final String PASS_FULL = "empresas_ru.pass";
|
||||
public static final int PASS_INDEX = 2;
|
||||
public static final String EMPRESA_ID = "empresa_id";
|
||||
public static final String EMPRESA_ID_FULL = "empresas_ru.empresa_id";
|
||||
public static final int EMPRESA_ID_INDEX = 3;
|
||||
public static final String TO_EMPRESA_ID = "to_empresa_id";
|
||||
public static final String TO_EMPRESA_ID_FULL = "empresas_ru.to_empresa_id";
|
||||
public static final int TO_EMPRESA_ID_INDEX = 4;
|
||||
public static final String DATA = "data";
|
||||
public static final String DATA_FULL = "empresas_ru.data";
|
||||
public static final int DATA_INDEX = 5;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
CODIGO, PASS, EMPRESA_ID, TO_EMPRESA_ID, DATA, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + CODIGO, TABLENAME + "." + PASS, TABLENAME + "." + EMPRESA_ID, TABLENAME + "." + TO_EMPRESA_ID, TABLENAME + "." + DATA, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, CODIGO, PASS, EMPRESA_ID, DATA, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, CODIGO, PASS, EMPRESA_ID, DATA, };
|
||||
|
||||
private Integer id;
|
||||
private String codigo;
|
||||
private String pass;
|
||||
private Integer empresa_id;
|
||||
private db.data.siprp_local.outer.EmpresasData to_empresa_id;
|
||||
private Timestamp data;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public EmpresasRu()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ 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 String getCodigo()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CODIGO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.codigo;
|
||||
}
|
||||
|
||||
public void setCodigo( String codigo )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CODIGO, codigo );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.codigo = codigo;
|
||||
LAZY_LOADED_OBJECTS.put( CODIGO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getPass()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( PASS );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.pass;
|
||||
}
|
||||
|
||||
public void setPass( String pass )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( PASS, pass );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.pass = pass;
|
||||
LAZY_LOADED_OBJECTS.put( PASS, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getEmpresa_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( EMPRESA_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.empresa_id;
|
||||
}
|
||||
|
||||
public void setEmpresa_id( Integer empresa_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( EMPRESA_ID, empresa_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.empresa_id = empresa_id;
|
||||
LAZY_LOADED_OBJECTS.put( EMPRESA_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public db.data.siprp_local.outer.EmpresasData toEmpresa_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
prepare( TO_EMPRESA_ID );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return this.to_empresa_id;
|
||||
}
|
||||
|
||||
public void setToEmpresa_id( db.data.siprp_local.outer.EmpresasData to_empresa_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( TO_EMPRESA_ID, to_empresa_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.to_empresa_id = to_empresa_id;
|
||||
}
|
||||
|
||||
public Timestamp getData()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DATA );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.data;
|
||||
}
|
||||
|
||||
public void setData( Timestamp 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 Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case EmpresasRu.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case EmpresasRu.CODIGO_INDEX:
|
||||
value = getCodigo();
|
||||
break;
|
||||
case EmpresasRu.PASS_INDEX:
|
||||
value = getPass();
|
||||
break;
|
||||
case EmpresasRu.EMPRESA_ID_INDEX:
|
||||
value = getEmpresa_id();
|
||||
break;
|
||||
case EmpresasRu.TO_EMPRESA_ID_INDEX:
|
||||
value = toEmpresa_id();
|
||||
break;
|
||||
case EmpresasRu.DATA_INDEX:
|
||||
value = getData();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case EmpresasRu.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case EmpresasRu.CODIGO_INDEX:
|
||||
value = this.codigo;
|
||||
break;
|
||||
case EmpresasRu.PASS_INDEX:
|
||||
value = this.pass;
|
||||
break;
|
||||
case EmpresasRu.EMPRESA_ID_INDEX:
|
||||
value = this.empresa_id;
|
||||
break;
|
||||
case EmpresasRu.TO_EMPRESA_ID_INDEX:
|
||||
value = this.to_empresa_id;
|
||||
break;
|
||||
case EmpresasRu.DATA_INDEX:
|
||||
value = this.data;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case EmpresasRu.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case EmpresasRu.CODIGO_INDEX:
|
||||
setCodigo( ( String ) value );
|
||||
break;
|
||||
case EmpresasRu.PASS_INDEX:
|
||||
setPass( ( String ) value );
|
||||
break;
|
||||
case EmpresasRu.EMPRESA_ID_INDEX:
|
||||
setEmpresa_id( ( Integer ) value );
|
||||
break;
|
||||
case EmpresasRu.TO_EMPRESA_ID_INDEX:
|
||||
setToEmpresa_id( ( db.data.siprp_local.outer.EmpresasData ) value );
|
||||
break;
|
||||
case EmpresasRu.DATA_INDEX:
|
||||
setData( ( Timestamp ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case EmpresasRu.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case EmpresasRu.CODIGO_INDEX:
|
||||
this.codigo = ( String ) value;
|
||||
break;
|
||||
case EmpresasRu.PASS_INDEX:
|
||||
this.pass = ( String ) value;
|
||||
break;
|
||||
case EmpresasRu.EMPRESA_ID_INDEX:
|
||||
this.empresa_id = ( Integer ) value;
|
||||
break;
|
||||
case EmpresasRu.TO_EMPRESA_ID_INDEX:
|
||||
this.to_empresa_id = ( db.data.siprp_local.outer.EmpresasData ) value;
|
||||
break;
|
||||
case EmpresasRu.DATA_INDEX:
|
||||
this.data = ( 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 EmpresasRu.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case EmpresasRu.CODIGO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case EmpresasRu.PASS_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case EmpresasRu.EMPRESA_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case EmpresasRu.TO_EMPRESA_ID_INDEX:
|
||||
theClass = db.data.siprp_local.outer.EmpresasData.class;
|
||||
break;
|
||||
case EmpresasRu.DATA_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : EmpresasRu._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, EmpresasRu.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()
|
||||
{
|
||||
}
|
||||
|
||||
public boolean isPropertyLoaded( String fieldName )
|
||||
{
|
||||
if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return LAZY_LOADED_OBJECTS.get( fieldName );
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,594 @@
|
||||
/*
|
||||
* EvoTaskSyncRequest.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp_local.inner;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
|
||||
public class EvoTaskSyncRequest 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( EvoTaskSyncRequest.ID, EvoTaskSyncRequest.ID_INDEX );
|
||||
FIELD_INDEXES.put( EvoTaskSyncRequest.ID_FULL, EvoTaskSyncRequest.ID_INDEX );
|
||||
FIELD_INDEXES.put( EvoTaskSyncRequest.DELETED_STAMP, EvoTaskSyncRequest.DELETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( EvoTaskSyncRequest.DELETED_STAMP_FULL, EvoTaskSyncRequest.DELETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( EvoTaskSyncRequest.TASK_KEY, EvoTaskSyncRequest.TASK_KEY_INDEX );
|
||||
FIELD_INDEXES.put( EvoTaskSyncRequest.TASK_KEY_FULL, EvoTaskSyncRequest.TASK_KEY_INDEX );
|
||||
FIELD_INDEXES.put( EvoTaskSyncRequest.REQUESTED_STAMP, EvoTaskSyncRequest.REQUESTED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( EvoTaskSyncRequest.REQUESTED_STAMP_FULL, EvoTaskSyncRequest.REQUESTED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( EvoTaskSyncRequest.EXPIRES_STAMP, EvoTaskSyncRequest.EXPIRES_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( EvoTaskSyncRequest.EXPIRES_STAMP_FULL, EvoTaskSyncRequest.EXPIRES_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( EvoTaskSyncRequest.COMPLETED_STAMP, EvoTaskSyncRequest.COMPLETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( EvoTaskSyncRequest.COMPLETED_STAMP_FULL, EvoTaskSyncRequest.COMPLETED_STAMP_INDEX );
|
||||
com.evolute.entity.evo.EvoDataObject.register( EvoTaskSyncRequest.CLASS_IDENTIFIER, EvoTaskSyncRequest.STATE_ID, EvoTaskSyncRequest.TO_STATE_ID );
|
||||
FIELD_INDEXES.put( EvoTaskSyncRequest.STATE_ID, EvoTaskSyncRequest.STATE_ID_INDEX );
|
||||
FIELD_INDEXES.put( EvoTaskSyncRequest.STATE_ID_FULL, EvoTaskSyncRequest.STATE_ID_INDEX );
|
||||
FIELD_INDEXES.put( EvoTaskSyncRequest.TO_STATE_ID, EvoTaskSyncRequest.TO_STATE_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 ForeignKeystate_idToevo_task_sync_request_state =
|
||||
new com.evolute.entity.ForeignKey( EvoTaskSyncRequest.class, EvoTaskSyncRequest.STATE_ID, db.data.siprp_local.outer.EvoTaskSyncRequestStateData.class, db.data.siprp_local.outer.EvoTaskSyncRequestStateData.ID );
|
||||
|
||||
public static final String TABLENAME = "evo_task_sync_request";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp_local.inner.evo_task_sync_request";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "evo_task_sync_request.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String DELETED_STAMP = "deleted_stamp";
|
||||
public static final String DELETED_STAMP_FULL = "evo_task_sync_request.deleted_stamp";
|
||||
public static final int DELETED_STAMP_INDEX = 1;
|
||||
public static final String TASK_KEY = "task_key";
|
||||
public static final String TASK_KEY_FULL = "evo_task_sync_request.task_key";
|
||||
public static final int TASK_KEY_INDEX = 2;
|
||||
public static final String REQUESTED_STAMP = "requested_stamp";
|
||||
public static final String REQUESTED_STAMP_FULL = "evo_task_sync_request.requested_stamp";
|
||||
public static final int REQUESTED_STAMP_INDEX = 3;
|
||||
public static final String EXPIRES_STAMP = "expires_stamp";
|
||||
public static final String EXPIRES_STAMP_FULL = "evo_task_sync_request.expires_stamp";
|
||||
public static final int EXPIRES_STAMP_INDEX = 4;
|
||||
public static final String COMPLETED_STAMP = "completed_stamp";
|
||||
public static final String COMPLETED_STAMP_FULL = "evo_task_sync_request.completed_stamp";
|
||||
public static final int COMPLETED_STAMP_INDEX = 5;
|
||||
public static final String STATE_ID = "state_id";
|
||||
public static final String STATE_ID_FULL = "evo_task_sync_request.state_id";
|
||||
public static final int STATE_ID_INDEX = 6;
|
||||
public static final String TO_STATE_ID = "to_state_id";
|
||||
public static final String TO_STATE_ID_FULL = "evo_task_sync_request.to_state_id";
|
||||
public static final int TO_STATE_ID_INDEX = 7;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
DELETED_STAMP, TASK_KEY, REQUESTED_STAMP, EXPIRES_STAMP, COMPLETED_STAMP,
|
||||
STATE_ID, TO_STATE_ID, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + DELETED_STAMP, TABLENAME + "." + TASK_KEY, TABLENAME + "." + REQUESTED_STAMP, TABLENAME + "." + EXPIRES_STAMP, TABLENAME + "." + COMPLETED_STAMP,
|
||||
TABLENAME + "." + STATE_ID, TABLENAME + "." + TO_STATE_ID, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, DELETED_STAMP, TASK_KEY, REQUESTED_STAMP, EXPIRES_STAMP, COMPLETED_STAMP,
|
||||
STATE_ID, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, DELETED_STAMP, TASK_KEY, REQUESTED_STAMP, EXPIRES_STAMP, COMPLETED_STAMP,
|
||||
STATE_ID, };
|
||||
|
||||
private Integer id;
|
||||
private Timestamp deleted_stamp;
|
||||
private String task_key;
|
||||
private Timestamp requested_stamp;
|
||||
private Timestamp expires_stamp;
|
||||
private Timestamp completed_stamp;
|
||||
private Integer state_id;
|
||||
private db.data.siprp_local.outer.EvoTaskSyncRequestStateData to_state_id;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public EvoTaskSyncRequest()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ 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
|
||||
{
|
||||
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 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( 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 String getTask_key()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( TASK_KEY );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.task_key;
|
||||
}
|
||||
|
||||
public void setTask_key( String task_key )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( TASK_KEY, task_key );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.task_key = task_key;
|
||||
LAZY_LOADED_OBJECTS.put( TASK_KEY, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Timestamp getRequested_stamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( REQUESTED_STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.requested_stamp;
|
||||
}
|
||||
|
||||
public void setRequested_stamp( Timestamp requested_stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( REQUESTED_STAMP, requested_stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.requested_stamp = requested_stamp;
|
||||
LAZY_LOADED_OBJECTS.put( REQUESTED_STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Timestamp getExpires_stamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( EXPIRES_STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.expires_stamp;
|
||||
}
|
||||
|
||||
public void setExpires_stamp( Timestamp expires_stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( EXPIRES_STAMP, expires_stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.expires_stamp = expires_stamp;
|
||||
LAZY_LOADED_OBJECTS.put( EXPIRES_STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Timestamp getCompleted_stamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( COMPLETED_STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.completed_stamp;
|
||||
}
|
||||
|
||||
public void setCompleted_stamp( Timestamp completed_stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( COMPLETED_STAMP, completed_stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.completed_stamp = completed_stamp;
|
||||
LAZY_LOADED_OBJECTS.put( COMPLETED_STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getState_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( STATE_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.state_id;
|
||||
}
|
||||
|
||||
public void setState_id( Integer state_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( STATE_ID, state_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.state_id = state_id;
|
||||
LAZY_LOADED_OBJECTS.put( STATE_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public db.data.siprp_local.outer.EvoTaskSyncRequestStateData toState_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
prepare( TO_STATE_ID );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return this.to_state_id;
|
||||
}
|
||||
|
||||
public void setToState_id( db.data.siprp_local.outer.EvoTaskSyncRequestStateData to_state_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( TO_STATE_ID, to_state_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.to_state_id = to_state_id;
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case EvoTaskSyncRequest.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case EvoTaskSyncRequest.DELETED_STAMP_INDEX:
|
||||
value = getDeleted_stamp();
|
||||
break;
|
||||
case EvoTaskSyncRequest.TASK_KEY_INDEX:
|
||||
value = getTask_key();
|
||||
break;
|
||||
case EvoTaskSyncRequest.REQUESTED_STAMP_INDEX:
|
||||
value = getRequested_stamp();
|
||||
break;
|
||||
case EvoTaskSyncRequest.EXPIRES_STAMP_INDEX:
|
||||
value = getExpires_stamp();
|
||||
break;
|
||||
case EvoTaskSyncRequest.COMPLETED_STAMP_INDEX:
|
||||
value = getCompleted_stamp();
|
||||
break;
|
||||
case EvoTaskSyncRequest.STATE_ID_INDEX:
|
||||
value = getState_id();
|
||||
break;
|
||||
case EvoTaskSyncRequest.TO_STATE_ID_INDEX:
|
||||
value = toState_id();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case EvoTaskSyncRequest.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case EvoTaskSyncRequest.DELETED_STAMP_INDEX:
|
||||
value = this.deleted_stamp;
|
||||
break;
|
||||
case EvoTaskSyncRequest.TASK_KEY_INDEX:
|
||||
value = this.task_key;
|
||||
break;
|
||||
case EvoTaskSyncRequest.REQUESTED_STAMP_INDEX:
|
||||
value = this.requested_stamp;
|
||||
break;
|
||||
case EvoTaskSyncRequest.EXPIRES_STAMP_INDEX:
|
||||
value = this.expires_stamp;
|
||||
break;
|
||||
case EvoTaskSyncRequest.COMPLETED_STAMP_INDEX:
|
||||
value = this.completed_stamp;
|
||||
break;
|
||||
case EvoTaskSyncRequest.STATE_ID_INDEX:
|
||||
value = this.state_id;
|
||||
break;
|
||||
case EvoTaskSyncRequest.TO_STATE_ID_INDEX:
|
||||
value = this.to_state_id;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case EvoTaskSyncRequest.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case EvoTaskSyncRequest.DELETED_STAMP_INDEX:
|
||||
setDeleted_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case EvoTaskSyncRequest.TASK_KEY_INDEX:
|
||||
setTask_key( ( String ) value );
|
||||
break;
|
||||
case EvoTaskSyncRequest.REQUESTED_STAMP_INDEX:
|
||||
setRequested_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case EvoTaskSyncRequest.EXPIRES_STAMP_INDEX:
|
||||
setExpires_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case EvoTaskSyncRequest.COMPLETED_STAMP_INDEX:
|
||||
setCompleted_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case EvoTaskSyncRequest.STATE_ID_INDEX:
|
||||
setState_id( ( Integer ) value );
|
||||
break;
|
||||
case EvoTaskSyncRequest.TO_STATE_ID_INDEX:
|
||||
setToState_id( ( db.data.siprp_local.outer.EvoTaskSyncRequestStateData ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case EvoTaskSyncRequest.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case EvoTaskSyncRequest.DELETED_STAMP_INDEX:
|
||||
this.deleted_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case EvoTaskSyncRequest.TASK_KEY_INDEX:
|
||||
this.task_key = ( String ) value;
|
||||
break;
|
||||
case EvoTaskSyncRequest.REQUESTED_STAMP_INDEX:
|
||||
this.requested_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case EvoTaskSyncRequest.EXPIRES_STAMP_INDEX:
|
||||
this.expires_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case EvoTaskSyncRequest.COMPLETED_STAMP_INDEX:
|
||||
this.completed_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case EvoTaskSyncRequest.STATE_ID_INDEX:
|
||||
this.state_id = ( Integer ) value;
|
||||
break;
|
||||
case EvoTaskSyncRequest.TO_STATE_ID_INDEX:
|
||||
this.to_state_id = ( db.data.siprp_local.outer.EvoTaskSyncRequestStateData ) 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 EvoTaskSyncRequest.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case EvoTaskSyncRequest.DELETED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case EvoTaskSyncRequest.TASK_KEY_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case EvoTaskSyncRequest.REQUESTED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case EvoTaskSyncRequest.EXPIRES_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case EvoTaskSyncRequest.COMPLETED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case EvoTaskSyncRequest.STATE_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case EvoTaskSyncRequest.TO_STATE_ID_INDEX:
|
||||
theClass = db.data.siprp_local.outer.EvoTaskSyncRequestStateData.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : EvoTaskSyncRequest._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, EvoTaskSyncRequest.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()
|
||||
{
|
||||
}
|
||||
|
||||
public boolean isPropertyLoaded( String fieldName )
|
||||
{
|
||||
if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return LAZY_LOADED_OBJECTS.get( fieldName );
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,459 @@
|
||||
/*
|
||||
* EvoTaskSyncRequestState.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp_local.inner;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
|
||||
public class EvoTaskSyncRequestState 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( EvoTaskSyncRequestState.ID, EvoTaskSyncRequestState.ID_INDEX );
|
||||
FIELD_INDEXES.put( EvoTaskSyncRequestState.ID_FULL, EvoTaskSyncRequestState.ID_INDEX );
|
||||
FIELD_INDEXES.put( EvoTaskSyncRequestState.DELETED_STAMP, EvoTaskSyncRequestState.DELETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( EvoTaskSyncRequestState.DELETED_STAMP_FULL, EvoTaskSyncRequestState.DELETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( EvoTaskSyncRequestState.ORDEM, EvoTaskSyncRequestState.ORDEM_INDEX );
|
||||
FIELD_INDEXES.put( EvoTaskSyncRequestState.ORDEM_FULL, EvoTaskSyncRequestState.ORDEM_INDEX );
|
||||
FIELD_INDEXES.put( EvoTaskSyncRequestState.DESCRIPTION, EvoTaskSyncRequestState.DESCRIPTION_INDEX );
|
||||
FIELD_INDEXES.put( EvoTaskSyncRequestState.DESCRIPTION_FULL, EvoTaskSyncRequestState.DESCRIPTION_INDEX );
|
||||
FIELD_INDEXES.put( EvoTaskSyncRequestState.CODE, EvoTaskSyncRequestState.CODE_INDEX );
|
||||
FIELD_INDEXES.put( EvoTaskSyncRequestState.CODE_FULL, EvoTaskSyncRequestState.CODE_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final String TABLENAME = "evo_task_sync_request_state";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp_local.inner.evo_task_sync_request_state";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "evo_task_sync_request_state.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String DELETED_STAMP = "deleted_stamp";
|
||||
public static final String DELETED_STAMP_FULL = "evo_task_sync_request_state.deleted_stamp";
|
||||
public static final int DELETED_STAMP_INDEX = 1;
|
||||
public static final String ORDEM = "ordem";
|
||||
public static final String ORDEM_FULL = "evo_task_sync_request_state.ordem";
|
||||
public static final int ORDEM_INDEX = 2;
|
||||
public static final String DESCRIPTION = "description";
|
||||
public static final String DESCRIPTION_FULL = "evo_task_sync_request_state.description";
|
||||
public static final int DESCRIPTION_INDEX = 3;
|
||||
public static final String CODE = "code";
|
||||
public static final String CODE_FULL = "evo_task_sync_request_state.code";
|
||||
public static final int CODE_INDEX = 4;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
DELETED_STAMP, ORDEM, DESCRIPTION, CODE, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + DELETED_STAMP, TABLENAME + "." + ORDEM, TABLENAME + "." + DESCRIPTION, TABLENAME + "." + CODE, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, DELETED_STAMP, ORDEM, DESCRIPTION, CODE, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, DELETED_STAMP, ORDEM, DESCRIPTION, CODE, };
|
||||
|
||||
private Integer id;
|
||||
private Timestamp deleted_stamp;
|
||||
private Integer ordem;
|
||||
private String description;
|
||||
private String code;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public EvoTaskSyncRequestState()
|
||||
{
|
||||
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 java.util.List<db.data.siprp_local.outer.EvoTaskSyncRequestData>fromEvoTaskSyncRequest_state_id()
|
||||
{
|
||||
java.util.List<db.data.siprp_local.outer.EvoTaskSyncRequestData> result = new java.util.LinkedList< db.data.siprp_local.outer.EvoTaskSyncRequestData >();
|
||||
if ( getPrimaryKey() != null )
|
||||
{
|
||||
try
|
||||
{
|
||||
result = fromReference( db.data.siprp_local.outer.EvoTaskSyncRequestData.class , getPrimaryKey().getMap().get("id"), "state_id" );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public 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( 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 Integer getOrdem()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ORDEM );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.ordem;
|
||||
}
|
||||
|
||||
public void setOrdem( Integer ordem )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( ORDEM, ordem );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.ordem = ordem;
|
||||
LAZY_LOADED_OBJECTS.put( ORDEM, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getDescription()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DESCRIPTION );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.description;
|
||||
}
|
||||
|
||||
public void setDescription( String description )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DESCRIPTION, description );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.description = description;
|
||||
LAZY_LOADED_OBJECTS.put( DESCRIPTION, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getCode()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CODE );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public void setCode( String code )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CODE, code );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.code = code;
|
||||
LAZY_LOADED_OBJECTS.put( CODE, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case EvoTaskSyncRequestState.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case EvoTaskSyncRequestState.DELETED_STAMP_INDEX:
|
||||
value = getDeleted_stamp();
|
||||
break;
|
||||
case EvoTaskSyncRequestState.ORDEM_INDEX:
|
||||
value = getOrdem();
|
||||
break;
|
||||
case EvoTaskSyncRequestState.DESCRIPTION_INDEX:
|
||||
value = getDescription();
|
||||
break;
|
||||
case EvoTaskSyncRequestState.CODE_INDEX:
|
||||
value = getCode();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case EvoTaskSyncRequestState.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case EvoTaskSyncRequestState.DELETED_STAMP_INDEX:
|
||||
value = this.deleted_stamp;
|
||||
break;
|
||||
case EvoTaskSyncRequestState.ORDEM_INDEX:
|
||||
value = this.ordem;
|
||||
break;
|
||||
case EvoTaskSyncRequestState.DESCRIPTION_INDEX:
|
||||
value = this.description;
|
||||
break;
|
||||
case EvoTaskSyncRequestState.CODE_INDEX:
|
||||
value = this.code;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case EvoTaskSyncRequestState.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case EvoTaskSyncRequestState.DELETED_STAMP_INDEX:
|
||||
setDeleted_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case EvoTaskSyncRequestState.ORDEM_INDEX:
|
||||
setOrdem( ( Integer ) value );
|
||||
break;
|
||||
case EvoTaskSyncRequestState.DESCRIPTION_INDEX:
|
||||
setDescription( ( String ) value );
|
||||
break;
|
||||
case EvoTaskSyncRequestState.CODE_INDEX:
|
||||
setCode( ( String ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case EvoTaskSyncRequestState.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case EvoTaskSyncRequestState.DELETED_STAMP_INDEX:
|
||||
this.deleted_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case EvoTaskSyncRequestState.ORDEM_INDEX:
|
||||
this.ordem = ( Integer ) value;
|
||||
break;
|
||||
case EvoTaskSyncRequestState.DESCRIPTION_INDEX:
|
||||
this.description = ( String ) value;
|
||||
break;
|
||||
case EvoTaskSyncRequestState.CODE_INDEX:
|
||||
this.code = ( 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 EvoTaskSyncRequestState.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case EvoTaskSyncRequestState.DELETED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case EvoTaskSyncRequestState.ORDEM_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case EvoTaskSyncRequestState.DESCRIPTION_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case EvoTaskSyncRequestState.CODE_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : EvoTaskSyncRequestState._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, EvoTaskSyncRequestState.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()
|
||||
{
|
||||
}
|
||||
|
||||
public boolean isPropertyLoaded( String fieldName )
|
||||
{
|
||||
if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return LAZY_LOADED_OBJECTS.get( fieldName );
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,841 @@
|
||||
/*
|
||||
* EvoUsrPrefs.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp_local.inner;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
|
||||
public class EvoUsrPrefs 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( EvoUsrPrefs.ID, EvoUsrPrefs.ID_INDEX );
|
||||
FIELD_INDEXES.put( EvoUsrPrefs.ID_FULL, EvoUsrPrefs.ID_INDEX );
|
||||
com.evolute.entity.evo.EvoDataObject.register( EvoUsrPrefs.CLASS_IDENTIFIER, EvoUsrPrefs.USER_ID, EvoUsrPrefs.TO_USER_ID );
|
||||
FIELD_INDEXES.put( EvoUsrPrefs.USER_ID, EvoUsrPrefs.USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( EvoUsrPrefs.USER_ID_FULL, EvoUsrPrefs.USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( EvoUsrPrefs.TO_USER_ID, EvoUsrPrefs.TO_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( EvoUsrPrefs.CHAVE, EvoUsrPrefs.CHAVE_INDEX );
|
||||
FIELD_INDEXES.put( EvoUsrPrefs.CHAVE_FULL, EvoUsrPrefs.CHAVE_INDEX );
|
||||
FIELD_INDEXES.put( EvoUsrPrefs.VALOR, EvoUsrPrefs.VALOR_INDEX );
|
||||
FIELD_INDEXES.put( EvoUsrPrefs.VALOR_FULL, EvoUsrPrefs.VALOR_INDEX );
|
||||
FIELD_INDEXES.put( EvoUsrPrefs.DESCRICAO, EvoUsrPrefs.DESCRICAO_INDEX );
|
||||
FIELD_INDEXES.put( EvoUsrPrefs.DESCRICAO_FULL, EvoUsrPrefs.DESCRICAO_INDEX );
|
||||
FIELD_INDEXES.put( EvoUsrPrefs.CREATED_STAMP, EvoUsrPrefs.CREATED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( EvoUsrPrefs.CREATED_STAMP_FULL, EvoUsrPrefs.CREATED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( EvoUsrPrefs.UPDATED_STAMP, EvoUsrPrefs.UPDATED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( EvoUsrPrefs.UPDATED_STAMP_FULL, EvoUsrPrefs.UPDATED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( EvoUsrPrefs.DELETED_STAMP, EvoUsrPrefs.DELETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( EvoUsrPrefs.DELETED_STAMP_FULL, EvoUsrPrefs.DELETED_STAMP_INDEX );
|
||||
com.evolute.entity.evo.EvoDataObject.register( EvoUsrPrefs.CLASS_IDENTIFIER, EvoUsrPrefs.CREATED_USER, EvoUsrPrefs.TO_CREATED_USER );
|
||||
FIELD_INDEXES.put( EvoUsrPrefs.CREATED_USER, EvoUsrPrefs.CREATED_USER_INDEX );
|
||||
FIELD_INDEXES.put( EvoUsrPrefs.CREATED_USER_FULL, EvoUsrPrefs.CREATED_USER_INDEX );
|
||||
FIELD_INDEXES.put( EvoUsrPrefs.TO_CREATED_USER, EvoUsrPrefs.TO_CREATED_USER_INDEX );
|
||||
FIELD_INDEXES.put( EvoUsrPrefs.UPDATED_USER, EvoUsrPrefs.UPDATED_USER_INDEX );
|
||||
FIELD_INDEXES.put( EvoUsrPrefs.UPDATED_USER_FULL, EvoUsrPrefs.UPDATED_USER_INDEX );
|
||||
FIELD_INDEXES.put( EvoUsrPrefs.DELETED_USER, EvoUsrPrefs.DELETED_USER_INDEX );
|
||||
FIELD_INDEXES.put( EvoUsrPrefs.DELETED_USER_FULL, EvoUsrPrefs.DELETED_USER_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final com.evolute.entity.ForeignKey ForeignKeyuser_idToevo_usr_user =
|
||||
new com.evolute.entity.ForeignKey( EvoUsrPrefs.class, EvoUsrPrefs.USER_ID, db.data.siprp_local.outer.EvoUsrUserData.class, db.data.siprp_local.outer.EvoUsrUserData.ID );
|
||||
|
||||
public static final com.evolute.entity.ForeignKey ForeignKeycreated_userToevo_usr_user =
|
||||
new com.evolute.entity.ForeignKey( EvoUsrPrefs.class, EvoUsrPrefs.CREATED_USER, db.data.siprp_local.outer.EvoUsrUserData.class, db.data.siprp_local.outer.EvoUsrUserData.ID );
|
||||
|
||||
public static final String TABLENAME = "evo_usr_prefs";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp_local.inner.evo_usr_prefs";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "evo_usr_prefs.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String USER_ID = "user_id";
|
||||
public static final String USER_ID_FULL = "evo_usr_prefs.user_id";
|
||||
public static final int USER_ID_INDEX = 1;
|
||||
public static final String TO_USER_ID = "to_user_id";
|
||||
public static final String TO_USER_ID_FULL = "evo_usr_prefs.to_user_id";
|
||||
public static final int TO_USER_ID_INDEX = 2;
|
||||
public static final String CHAVE = "chave";
|
||||
public static final String CHAVE_FULL = "evo_usr_prefs.chave";
|
||||
public static final int CHAVE_INDEX = 3;
|
||||
public static final String VALOR = "valor";
|
||||
public static final String VALOR_FULL = "evo_usr_prefs.valor";
|
||||
public static final int VALOR_INDEX = 4;
|
||||
public static final String DESCRICAO = "descricao";
|
||||
public static final String DESCRICAO_FULL = "evo_usr_prefs.descricao";
|
||||
public static final int DESCRICAO_INDEX = 5;
|
||||
public static final String CREATED_STAMP = "created_stamp";
|
||||
public static final String CREATED_STAMP_FULL = "evo_usr_prefs.created_stamp";
|
||||
public static final int CREATED_STAMP_INDEX = 6;
|
||||
public static final String UPDATED_STAMP = "updated_stamp";
|
||||
public static final String UPDATED_STAMP_FULL = "evo_usr_prefs.updated_stamp";
|
||||
public static final int UPDATED_STAMP_INDEX = 7;
|
||||
public static final String DELETED_STAMP = "deleted_stamp";
|
||||
public static final String DELETED_STAMP_FULL = "evo_usr_prefs.deleted_stamp";
|
||||
public static final int DELETED_STAMP_INDEX = 8;
|
||||
public static final String CREATED_USER = "created_user";
|
||||
public static final String CREATED_USER_FULL = "evo_usr_prefs.created_user";
|
||||
public static final int CREATED_USER_INDEX = 9;
|
||||
public static final String TO_CREATED_USER = "to_created_user";
|
||||
public static final String TO_CREATED_USER_FULL = "evo_usr_prefs.to_created_user";
|
||||
public static final int TO_CREATED_USER_INDEX = 10;
|
||||
public static final String UPDATED_USER = "updated_user";
|
||||
public static final String UPDATED_USER_FULL = "evo_usr_prefs.updated_user";
|
||||
public static final int UPDATED_USER_INDEX = 11;
|
||||
public static final String DELETED_USER = "deleted_user";
|
||||
public static final String DELETED_USER_FULL = "evo_usr_prefs.deleted_user";
|
||||
public static final int DELETED_USER_INDEX = 12;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
USER_ID, TO_USER_ID, CHAVE, VALOR, DESCRICAO, CREATED_STAMP, UPDATED_STAMP,
|
||||
DELETED_STAMP, CREATED_USER, TO_CREATED_USER, UPDATED_USER, DELETED_USER, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + USER_ID, TABLENAME + "." + TO_USER_ID, TABLENAME + "." + CHAVE, TABLENAME + "." + VALOR, TABLENAME + "." + DESCRICAO, TABLENAME + "." + CREATED_STAMP, TABLENAME + "." + UPDATED_STAMP,
|
||||
TABLENAME + "." + DELETED_STAMP, TABLENAME + "." + CREATED_USER, TABLENAME + "." + TO_CREATED_USER, TABLENAME + "." + UPDATED_USER, TABLENAME + "." + DELETED_USER, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, USER_ID, CHAVE, VALOR, DESCRICAO, CREATED_STAMP, UPDATED_STAMP, DELETED_STAMP,
|
||||
CREATED_USER, UPDATED_USER, DELETED_USER, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, USER_ID, CHAVE, VALOR, DESCRICAO, CREATED_STAMP, UPDATED_STAMP, DELETED_STAMP,
|
||||
CREATED_USER, UPDATED_USER, DELETED_USER, };
|
||||
|
||||
private Integer id;
|
||||
private Integer user_id;
|
||||
private db.data.siprp_local.outer.EvoUsrUserData to_user_id;
|
||||
private String chave;
|
||||
private String valor;
|
||||
private String descricao;
|
||||
private Timestamp created_stamp;
|
||||
private Timestamp updated_stamp;
|
||||
private Timestamp deleted_stamp;
|
||||
private Integer created_user;
|
||||
private db.data.siprp_local.outer.EvoUsrUserData to_created_user;
|
||||
private Integer updated_user;
|
||||
private Integer deleted_user;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public EvoUsrPrefs()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, false, false,
|
||||
false, 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
|
||||
{
|
||||
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 getUser_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( USER_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.user_id;
|
||||
}
|
||||
|
||||
public void setUser_id( Integer user_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( USER_ID, user_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.user_id = user_id;
|
||||
LAZY_LOADED_OBJECTS.put( USER_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public db.data.siprp_local.outer.EvoUsrUserData toUser_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
prepare( TO_USER_ID );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return this.to_user_id;
|
||||
}
|
||||
|
||||
public void setToUser_id( db.data.siprp_local.outer.EvoUsrUserData to_user_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( TO_USER_ID, to_user_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.to_user_id = to_user_id;
|
||||
}
|
||||
|
||||
public String getChave()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CHAVE );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.chave;
|
||||
}
|
||||
|
||||
public void setChave( String chave )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CHAVE, chave );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.chave = chave;
|
||||
LAZY_LOADED_OBJECTS.put( CHAVE, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getValor()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( VALOR );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.valor;
|
||||
}
|
||||
|
||||
public void setValor( String valor )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( VALOR, valor );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.valor = valor;
|
||||
LAZY_LOADED_OBJECTS.put( VALOR, 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 Timestamp getCreated_stamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CREATED_STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.created_stamp;
|
||||
}
|
||||
|
||||
public void setCreated_stamp( Timestamp created_stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CREATED_STAMP, created_stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.created_stamp = created_stamp;
|
||||
LAZY_LOADED_OBJECTS.put( CREATED_STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Timestamp getUpdated_stamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( UPDATED_STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.updated_stamp;
|
||||
}
|
||||
|
||||
public void setUpdated_stamp( Timestamp updated_stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( UPDATED_STAMP, updated_stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.updated_stamp = updated_stamp;
|
||||
LAZY_LOADED_OBJECTS.put( UPDATED_STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public 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( 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 Integer getCreated_user()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CREATED_USER );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.created_user;
|
||||
}
|
||||
|
||||
public void setCreated_user( Integer created_user )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CREATED_USER, created_user );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.created_user = created_user;
|
||||
LAZY_LOADED_OBJECTS.put( CREATED_USER, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public db.data.siprp_local.outer.EvoUsrUserData toCreated_user()
|
||||
{
|
||||
try
|
||||
{
|
||||
prepare( TO_CREATED_USER );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return this.to_created_user;
|
||||
}
|
||||
|
||||
public void setToCreated_user( db.data.siprp_local.outer.EvoUsrUserData to_created_user )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( TO_CREATED_USER, to_created_user );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.to_created_user = to_created_user;
|
||||
}
|
||||
|
||||
public Integer getUpdated_user()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( UPDATED_USER );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.updated_user;
|
||||
}
|
||||
|
||||
public void setUpdated_user( Integer updated_user )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( UPDATED_USER, updated_user );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.updated_user = updated_user;
|
||||
LAZY_LOADED_OBJECTS.put( UPDATED_USER, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getDeleted_user()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DELETED_USER );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.deleted_user;
|
||||
}
|
||||
|
||||
public void setDeleted_user( Integer deleted_user )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DELETED_USER, deleted_user );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.deleted_user = deleted_user;
|
||||
LAZY_LOADED_OBJECTS.put( DELETED_USER, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case EvoUsrPrefs.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case EvoUsrPrefs.USER_ID_INDEX:
|
||||
value = getUser_id();
|
||||
break;
|
||||
case EvoUsrPrefs.TO_USER_ID_INDEX:
|
||||
value = toUser_id();
|
||||
break;
|
||||
case EvoUsrPrefs.CHAVE_INDEX:
|
||||
value = getChave();
|
||||
break;
|
||||
case EvoUsrPrefs.VALOR_INDEX:
|
||||
value = getValor();
|
||||
break;
|
||||
case EvoUsrPrefs.DESCRICAO_INDEX:
|
||||
value = getDescricao();
|
||||
break;
|
||||
case EvoUsrPrefs.CREATED_STAMP_INDEX:
|
||||
value = getCreated_stamp();
|
||||
break;
|
||||
case EvoUsrPrefs.UPDATED_STAMP_INDEX:
|
||||
value = getUpdated_stamp();
|
||||
break;
|
||||
case EvoUsrPrefs.DELETED_STAMP_INDEX:
|
||||
value = getDeleted_stamp();
|
||||
break;
|
||||
case EvoUsrPrefs.CREATED_USER_INDEX:
|
||||
value = getCreated_user();
|
||||
break;
|
||||
case EvoUsrPrefs.TO_CREATED_USER_INDEX:
|
||||
value = toCreated_user();
|
||||
break;
|
||||
case EvoUsrPrefs.UPDATED_USER_INDEX:
|
||||
value = getUpdated_user();
|
||||
break;
|
||||
case EvoUsrPrefs.DELETED_USER_INDEX:
|
||||
value = getDeleted_user();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case EvoUsrPrefs.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case EvoUsrPrefs.USER_ID_INDEX:
|
||||
value = this.user_id;
|
||||
break;
|
||||
case EvoUsrPrefs.TO_USER_ID_INDEX:
|
||||
value = this.to_user_id;
|
||||
break;
|
||||
case EvoUsrPrefs.CHAVE_INDEX:
|
||||
value = this.chave;
|
||||
break;
|
||||
case EvoUsrPrefs.VALOR_INDEX:
|
||||
value = this.valor;
|
||||
break;
|
||||
case EvoUsrPrefs.DESCRICAO_INDEX:
|
||||
value = this.descricao;
|
||||
break;
|
||||
case EvoUsrPrefs.CREATED_STAMP_INDEX:
|
||||
value = this.created_stamp;
|
||||
break;
|
||||
case EvoUsrPrefs.UPDATED_STAMP_INDEX:
|
||||
value = this.updated_stamp;
|
||||
break;
|
||||
case EvoUsrPrefs.DELETED_STAMP_INDEX:
|
||||
value = this.deleted_stamp;
|
||||
break;
|
||||
case EvoUsrPrefs.CREATED_USER_INDEX:
|
||||
value = this.created_user;
|
||||
break;
|
||||
case EvoUsrPrefs.TO_CREATED_USER_INDEX:
|
||||
value = this.to_created_user;
|
||||
break;
|
||||
case EvoUsrPrefs.UPDATED_USER_INDEX:
|
||||
value = this.updated_user;
|
||||
break;
|
||||
case EvoUsrPrefs.DELETED_USER_INDEX:
|
||||
value = this.deleted_user;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case EvoUsrPrefs.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case EvoUsrPrefs.USER_ID_INDEX:
|
||||
setUser_id( ( Integer ) value );
|
||||
break;
|
||||
case EvoUsrPrefs.TO_USER_ID_INDEX:
|
||||
setToUser_id( ( db.data.siprp_local.outer.EvoUsrUserData ) value );
|
||||
break;
|
||||
case EvoUsrPrefs.CHAVE_INDEX:
|
||||
setChave( ( String ) value );
|
||||
break;
|
||||
case EvoUsrPrefs.VALOR_INDEX:
|
||||
setValor( ( String ) value );
|
||||
break;
|
||||
case EvoUsrPrefs.DESCRICAO_INDEX:
|
||||
setDescricao( ( String ) value );
|
||||
break;
|
||||
case EvoUsrPrefs.CREATED_STAMP_INDEX:
|
||||
setCreated_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case EvoUsrPrefs.UPDATED_STAMP_INDEX:
|
||||
setUpdated_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case EvoUsrPrefs.DELETED_STAMP_INDEX:
|
||||
setDeleted_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case EvoUsrPrefs.CREATED_USER_INDEX:
|
||||
setCreated_user( ( Integer ) value );
|
||||
break;
|
||||
case EvoUsrPrefs.TO_CREATED_USER_INDEX:
|
||||
setToCreated_user( ( db.data.siprp_local.outer.EvoUsrUserData ) value );
|
||||
break;
|
||||
case EvoUsrPrefs.UPDATED_USER_INDEX:
|
||||
setUpdated_user( ( Integer ) value );
|
||||
break;
|
||||
case EvoUsrPrefs.DELETED_USER_INDEX:
|
||||
setDeleted_user( ( Integer ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case EvoUsrPrefs.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case EvoUsrPrefs.USER_ID_INDEX:
|
||||
this.user_id = ( Integer ) value;
|
||||
break;
|
||||
case EvoUsrPrefs.TO_USER_ID_INDEX:
|
||||
this.to_user_id = ( db.data.siprp_local.outer.EvoUsrUserData ) value;
|
||||
break;
|
||||
case EvoUsrPrefs.CHAVE_INDEX:
|
||||
this.chave = ( String ) value;
|
||||
break;
|
||||
case EvoUsrPrefs.VALOR_INDEX:
|
||||
this.valor = ( String ) value;
|
||||
break;
|
||||
case EvoUsrPrefs.DESCRICAO_INDEX:
|
||||
this.descricao = ( String ) value;
|
||||
break;
|
||||
case EvoUsrPrefs.CREATED_STAMP_INDEX:
|
||||
this.created_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case EvoUsrPrefs.UPDATED_STAMP_INDEX:
|
||||
this.updated_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case EvoUsrPrefs.DELETED_STAMP_INDEX:
|
||||
this.deleted_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case EvoUsrPrefs.CREATED_USER_INDEX:
|
||||
this.created_user = ( Integer ) value;
|
||||
break;
|
||||
case EvoUsrPrefs.TO_CREATED_USER_INDEX:
|
||||
this.to_created_user = ( db.data.siprp_local.outer.EvoUsrUserData ) value;
|
||||
break;
|
||||
case EvoUsrPrefs.UPDATED_USER_INDEX:
|
||||
this.updated_user = ( Integer ) value;
|
||||
break;
|
||||
case EvoUsrPrefs.DELETED_USER_INDEX:
|
||||
this.deleted_user = ( 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 EvoUsrPrefs.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case EvoUsrPrefs.USER_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case EvoUsrPrefs.TO_USER_ID_INDEX:
|
||||
theClass = db.data.siprp_local.outer.EvoUsrUserData.class;
|
||||
break;
|
||||
case EvoUsrPrefs.CHAVE_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case EvoUsrPrefs.VALOR_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case EvoUsrPrefs.DESCRICAO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case EvoUsrPrefs.CREATED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case EvoUsrPrefs.UPDATED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case EvoUsrPrefs.DELETED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case EvoUsrPrefs.CREATED_USER_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case EvoUsrPrefs.TO_CREATED_USER_INDEX:
|
||||
theClass = db.data.siprp_local.outer.EvoUsrUserData.class;
|
||||
break;
|
||||
case EvoUsrPrefs.UPDATED_USER_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case EvoUsrPrefs.DELETED_USER_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : EvoUsrPrefs._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, EvoUsrPrefs.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()
|
||||
{
|
||||
}
|
||||
|
||||
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