git-svn-id: https://svn.coded.pt/svn/SIPRP@2065 bb69d46d-e84e-40c8-a05a-06db0d633741

0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Frederico Palma 11 years ago
parent 8e048764b0
commit d4d9ff6a60

@ -1,330 +0,0 @@
/*
* EvoUpdate.java
*
* Generated by com.evutils.codegen.EntityObjectGenerator
*
* Use but DON'T TOUCH
* -> (can't touch this)
*/
package db.data.siprp_local.inner;
public class EvoUpdate 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( EvoUpdate.ID, EvoUpdate.ID_INDEX );
FIELD_INDEXES.put( EvoUpdate.ID_FULL, EvoUpdate.ID_INDEX );
FIELD_INDEXES.put( EvoUpdate.TIME, EvoUpdate.TIME_INDEX );
FIELD_INDEXES.put( EvoUpdate.TIME_FULL, EvoUpdate.TIME_INDEX );
FIELD_INDEXES.put( EvoUpdate.DUMMY, EvoUpdate.DUMMY_INDEX );
FIELD_INDEXES.put( EvoUpdate.DUMMY_FULL, EvoUpdate.DUMMY_INDEX );
}
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
public static final String TABLENAME = "evo_update";
public static final String CLASS_IDENTIFIER = "db.data.siprp_local.inner.evo_update";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";
public static final String ID_FULL = "evo_update.id";
public static final int ID_INDEX = 0;
public static final String TIME = "time";
public static final String TIME_FULL = "evo_update.time";
public static final int TIME_INDEX = 1;
public static final String DUMMY = "dummy";
public static final String DUMMY_FULL = "evo_update.dummy";
public static final int DUMMY_INDEX = 2;
public static final String FIELD_NAMES[] = new String[]{
TIME, DUMMY, };
public static final String FIELD_NAMES_FULL[] = new String[]{
TABLENAME + "." + TIME, TABLENAME + "." + DUMMY, };
protected static final String DB_FIELD_NAMES[] = new String[]{
ID, TIME, DUMMY, };
protected static final String PK_FIELD_NAMES[] = new String[]{
ID, };
public static final String DEFAULT_LOAD_SET[] = new String[] {
ID, TIME, DUMMY, };
private Integer id;
private java.sql.Timestamp time;
private Integer dummy;
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
public EvoUpdate()
{
super();
dirtyProperties = new boolean[]{ false, false, false };
}
public Integer getId()
{
try
{
setLastAccess( System.currentTimeMillis() );
prepare( ID );
}
catch( java.lang.Exception ex )
{
throw new RuntimeException( ex );
}
return this.id;
}
public void setId( Integer id )
{
try
{
setLockedForRefresh( true );
preProcess( ID, id );
}
catch( com.evolute.entity.evo.EvoDataException edex )
{
throw new RuntimeException( edex );
}
this.id = id;
LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
}
public java.sql.Timestamp getTime()
{
try
{
setLastAccess( System.currentTimeMillis() );
prepare( TIME );
}
catch( java.lang.Exception ex )
{
throw new RuntimeException( ex );
}
return this.time;
}
public void setTime( java.sql.Timestamp time )
{
try
{
setLockedForRefresh( true );
preProcess( TIME, time );
}
catch( com.evolute.entity.evo.EvoDataException edex )
{
throw new RuntimeException( edex );
}
this.time = time;
LAZY_LOADED_OBJECTS.put( TIME, Boolean.TRUE );
}
public Integer getDummy()
{
try
{
setLastAccess( System.currentTimeMillis() );
prepare( DUMMY );
}
catch( java.lang.Exception ex )
{
throw new RuntimeException( ex );
}
return this.dummy;
}
public void setDummy( Integer dummy )
{
try
{
setLockedForRefresh( true );
preProcess( DUMMY, dummy );
}
catch( com.evolute.entity.evo.EvoDataException edex )
{
throw new RuntimeException( edex );
}
this.dummy = dummy;
LAZY_LOADED_OBJECTS.put( DUMMY, Boolean.TRUE );
}
public Object get( String fieldName )
{
Object value = null;
Integer index = getFieldIndex( fieldName );
switch( index )
{
case EvoUpdate.ID_INDEX:
value = getId();
break;
case EvoUpdate.TIME_INDEX:
value = getTime();
break;
case EvoUpdate.DUMMY_INDEX:
value = getDummy();
break;
}
return value;
}
public Object rawGet( String fieldName )
{
Object value = null;
Integer index = getFieldIndex( fieldName );
switch( index )
{
case EvoUpdate.ID_INDEX:
value = this.id;
break;
case EvoUpdate.TIME_INDEX:
value = this.time;
break;
case EvoUpdate.DUMMY_INDEX:
value = this.dummy;
break;
}
return value;
}
public void set( String fieldName, Object value )
{
Integer index = getFieldIndex( fieldName );
switch( index )
{
case EvoUpdate.ID_INDEX:
setId( ( Integer ) value );
break;
case EvoUpdate.TIME_INDEX:
setTime( ( java.sql.Timestamp ) value );
break;
case EvoUpdate.DUMMY_INDEX:
setDummy( ( Integer ) value );
break;
}
}
public void rawSet( String fieldName, Object value )
{
Integer index = getFieldIndex( fieldName );
switch( index )
{
case EvoUpdate.ID_INDEX:
this.id = ( Integer ) value;
break;
case EvoUpdate.TIME_INDEX:
this.time = ( java.sql.Timestamp ) value;
break;
case EvoUpdate.DUMMY_INDEX:
this.dummy = ( 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 EvoUpdate.ID_INDEX:
theClass = Integer.class;
break;
case EvoUpdate.TIME_INDEX:
theClass = java.sql.Timestamp.class;
break;
case EvoUpdate.DUMMY_INDEX:
theClass = Integer.class;
break;
}
return theClass;
}
public Integer getFieldIndex( String fieldName )
{
Integer index = FIELD_INDEXES.get( fieldName );
return index != null ? index : EvoUpdate._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, EvoUpdate.PK_FIELD_NAMES );
primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
}
setId( ( Integer ) array.get( row, col + 0 ) );
}
@Override
public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
{
return primaryKey;
}
public void initLazyLoadFields()
{
}
public boolean isPropertyLoaded( String fieldName )
{
if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
{
return true;
}
else
{
return LAZY_LOADED_OBJECTS.get( fieldName );
}
}
}
Loading…
Cancel
Save