forked from Coded/SIPRP
git-svn-id: https://svn.coded.pt/svn/SIPRP@1601 bb69d46d-e84e-40c8-a05a-06db0d633741
parent
3a8d5cca30
commit
43be0755ab
Binary file not shown.
@ -1,8 +1,8 @@
|
|||||||
build.xml.data.CRC32=62e730b3
|
build.xml.data.CRC32=a4c2779c
|
||||||
build.xml.script.CRC32=50b8b881
|
build.xml.script.CRC32=50b8b881
|
||||||
build.xml.stylesheet.CRC32=c0ebde35@1.15.2.1
|
build.xml.stylesheet.CRC32=c0ebde35@1.15.2.1
|
||||||
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
|
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
|
||||||
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
|
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
|
||||||
nbproject/build-impl.xml.data.CRC32=62e730b3
|
nbproject/build-impl.xml.data.CRC32=a4c2779c
|
||||||
nbproject/build-impl.xml.script.CRC32=1fbdeec4
|
nbproject/build-impl.xml.script.CRC32=34b43bcc
|
||||||
nbproject/build-impl.xml.stylesheet.CRC32=8ab4467e@1.15.2.1
|
nbproject/build-impl.xml.stylesheet.CRC32=8ab4467e@1.15.2.1
|
||||||
|
|||||||
@ -0,0 +1,533 @@
|
|||||||
|
/*
|
||||||
|
* AptOutrasVacina.java
|
||||||
|
*
|
||||||
|
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||||
|
*
|
||||||
|
* Use but DON'T TOUCH
|
||||||
|
* -> (can't touch this)
|
||||||
|
*/
|
||||||
|
package db.data.siprp_local.inner;
|
||||||
|
|
||||||
|
|
||||||
|
public class AptOutrasVacina 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( AptOutrasVacina.ID, AptOutrasVacina.ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( AptOutrasVacina.ID_FULL, AptOutrasVacina.ID_INDEX );
|
||||||
|
com.evolute.entity.evo.EvoDataObject.register( AptOutrasVacina.CLASS_IDENTIFIER, AptOutrasVacina.APPOINTMENT_ID, AptOutrasVacina.TO_APPOINTMENT_ID );
|
||||||
|
FIELD_INDEXES.put( AptOutrasVacina.APPOINTMENT_ID, AptOutrasVacina.APPOINTMENT_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( AptOutrasVacina.APPOINTMENT_ID_FULL, AptOutrasVacina.APPOINTMENT_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( AptOutrasVacina.TO_APPOINTMENT_ID, AptOutrasVacina.TO_APPOINTMENT_ID_INDEX );
|
||||||
|
com.evolute.entity.evo.EvoDataObject.register( AptOutrasVacina.CLASS_IDENTIFIER, AptOutrasVacina.TRABALHADOR_ID, AptOutrasVacina.TO_TRABALHADOR_ID );
|
||||||
|
FIELD_INDEXES.put( AptOutrasVacina.TRABALHADOR_ID, AptOutrasVacina.TRABALHADOR_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( AptOutrasVacina.TRABALHADOR_ID_FULL, AptOutrasVacina.TRABALHADOR_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( AptOutrasVacina.TO_TRABALHADOR_ID, AptOutrasVacina.TO_TRABALHADOR_ID_INDEX );
|
||||||
|
com.evolute.entity.evo.EvoDataObject.register( AptOutrasVacina.CLASS_IDENTIFIER, AptOutrasVacina.VACINA_TIPO, AptOutrasVacina.TO_VACINA_TIPO );
|
||||||
|
FIELD_INDEXES.put( AptOutrasVacina.VACINA_TIPO, AptOutrasVacina.VACINA_TIPO_INDEX );
|
||||||
|
FIELD_INDEXES.put( AptOutrasVacina.VACINA_TIPO_FULL, AptOutrasVacina.VACINA_TIPO_INDEX );
|
||||||
|
FIELD_INDEXES.put( AptOutrasVacina.TO_VACINA_TIPO, AptOutrasVacina.TO_VACINA_TIPO_INDEX );
|
||||||
|
}
|
||||||
|
|
||||||
|
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||||
|
|
||||||
|
|
||||||
|
public static final com.evolute.entity.ForeignKey ForeignKeyappointment_idToapt_appointment =
|
||||||
|
new com.evolute.entity.ForeignKey( AptOutrasVacina.class, AptOutrasVacina.APPOINTMENT_ID, db.data.siprp_local.outer.AptAppointmentData.class, db.data.siprp_local.outer.AptAppointmentData.ID );
|
||||||
|
|
||||||
|
public static final com.evolute.entity.ForeignKey ForeignKeytrabalhador_idTotrabalhadores =
|
||||||
|
new com.evolute.entity.ForeignKey( AptOutrasVacina.class, AptOutrasVacina.TRABALHADOR_ID, db.data.siprp_local.outer.TrabalhadoresData.class, db.data.siprp_local.outer.TrabalhadoresData.ID );
|
||||||
|
|
||||||
|
public static final com.evolute.entity.ForeignKey ForeignKeyvacina_tipoTomed_vacina_tipo =
|
||||||
|
new com.evolute.entity.ForeignKey( AptOutrasVacina.class, AptOutrasVacina.VACINA_TIPO, db.data.siprp_local.outer.MedVacinaTipoData.class, db.data.siprp_local.outer.MedVacinaTipoData.ORDEM );
|
||||||
|
|
||||||
|
public static final String TABLENAME = "apt_outras_vacina";
|
||||||
|
|
||||||
|
|
||||||
|
public static final String CLASS_IDENTIFIER = "db.data.siprp_local.inner.apt_outras_vacina";
|
||||||
|
|
||||||
|
public static final int _INVALID__INDEX = -1;
|
||||||
|
public static final String ID = "id";
|
||||||
|
public static final String ID_FULL = "apt_outras_vacina.id";
|
||||||
|
public static final int ID_INDEX = 0;
|
||||||
|
public static final String APPOINTMENT_ID = "appointment_id";
|
||||||
|
public static final String APPOINTMENT_ID_FULL = "apt_outras_vacina.appointment_id";
|
||||||
|
public static final int APPOINTMENT_ID_INDEX = 1;
|
||||||
|
public static final String TO_APPOINTMENT_ID = "to_appointment_id";
|
||||||
|
public static final String TO_APPOINTMENT_ID_FULL = "apt_outras_vacina.to_appointment_id";
|
||||||
|
public static final int TO_APPOINTMENT_ID_INDEX = 2;
|
||||||
|
public static final String TRABALHADOR_ID = "trabalhador_id";
|
||||||
|
public static final String TRABALHADOR_ID_FULL = "apt_outras_vacina.trabalhador_id";
|
||||||
|
public static final int TRABALHADOR_ID_INDEX = 3;
|
||||||
|
public static final String TO_TRABALHADOR_ID = "to_trabalhador_id";
|
||||||
|
public static final String TO_TRABALHADOR_ID_FULL = "apt_outras_vacina.to_trabalhador_id";
|
||||||
|
public static final int TO_TRABALHADOR_ID_INDEX = 4;
|
||||||
|
public static final String VACINA_TIPO = "vacina_tipo";
|
||||||
|
public static final String VACINA_TIPO_FULL = "apt_outras_vacina.vacina_tipo";
|
||||||
|
public static final int VACINA_TIPO_INDEX = 5;
|
||||||
|
public static final String TO_VACINA_TIPO = "to_vacina_tipo";
|
||||||
|
public static final String TO_VACINA_TIPO_FULL = "apt_outras_vacina.to_vacina_tipo";
|
||||||
|
public static final int TO_VACINA_TIPO_INDEX = 6;
|
||||||
|
|
||||||
|
public static final String FIELD_NAMES[] = new String[]{
|
||||||
|
APPOINTMENT_ID, TO_APPOINTMENT_ID, TRABALHADOR_ID, TO_TRABALHADOR_ID,
|
||||||
|
VACINA_TIPO, TO_VACINA_TIPO, };
|
||||||
|
|
||||||
|
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||||
|
TABLENAME + "." + APPOINTMENT_ID, TABLENAME + "." + TO_APPOINTMENT_ID, TABLENAME + "." + TRABALHADOR_ID, TABLENAME + "." + TO_TRABALHADOR_ID,
|
||||||
|
TABLENAME + "." + VACINA_TIPO, TABLENAME + "." + TO_VACINA_TIPO, };
|
||||||
|
|
||||||
|
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||||
|
ID, APPOINTMENT_ID, TRABALHADOR_ID, VACINA_TIPO, };
|
||||||
|
|
||||||
|
|
||||||
|
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||||
|
ID, };
|
||||||
|
|
||||||
|
|
||||||
|
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||||
|
ID, APPOINTMENT_ID, TRABALHADOR_ID, VACINA_TIPO, };
|
||||||
|
|
||||||
|
private Integer id;
|
||||||
|
private Integer appointment_id;
|
||||||
|
private db.data.siprp_local.outer.AptAppointmentData to_appointment_id;
|
||||||
|
private Integer trabalhador_id;
|
||||||
|
private db.data.siprp_local.outer.TrabalhadoresData to_trabalhador_id;
|
||||||
|
private Integer vacina_tipo;
|
||||||
|
private db.data.siprp_local.outer.MedVacinaTipoData to_vacina_tipo;
|
||||||
|
|
||||||
|
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||||
|
|
||||||
|
public AptOutrasVacina()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
dirtyProperties = new boolean[]{ false, false, false,
|
||||||
|
false, false, false, false };
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getId()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLastAccess( System.currentTimeMillis() );
|
||||||
|
prepare( ID );
|
||||||
|
}
|
||||||
|
catch( java.lang.Exception ex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( ex );
|
||||||
|
}
|
||||||
|
return this.id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId( Integer id )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
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 Integer getAppointment_id()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLastAccess( System.currentTimeMillis() );
|
||||||
|
prepare( APPOINTMENT_ID );
|
||||||
|
}
|
||||||
|
catch( java.lang.Exception ex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( ex );
|
||||||
|
}
|
||||||
|
return this.appointment_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAppointment_id( Integer appointment_id )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
preProcess( APPOINTMENT_ID, appointment_id );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.appointment_id = appointment_id;
|
||||||
|
LAZY_LOADED_OBJECTS.put( APPOINTMENT_ID, Boolean.TRUE );
|
||||||
|
}
|
||||||
|
|
||||||
|
public db.data.siprp_local.outer.AptAppointmentData toAppointment_id()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
prepare( TO_APPOINTMENT_ID );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
return this.to_appointment_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setToAppointment_id( db.data.siprp_local.outer.AptAppointmentData to_appointment_id )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
preProcess( TO_APPOINTMENT_ID, to_appointment_id );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.to_appointment_id = to_appointment_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getTrabalhador_id()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLastAccess( System.currentTimeMillis() );
|
||||||
|
prepare( TRABALHADOR_ID );
|
||||||
|
}
|
||||||
|
catch( java.lang.Exception ex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( ex );
|
||||||
|
}
|
||||||
|
return this.trabalhador_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTrabalhador_id( Integer trabalhador_id )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
preProcess( TRABALHADOR_ID, trabalhador_id );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.trabalhador_id = trabalhador_id;
|
||||||
|
LAZY_LOADED_OBJECTS.put( TRABALHADOR_ID, Boolean.TRUE );
|
||||||
|
}
|
||||||
|
|
||||||
|
public db.data.siprp_local.outer.TrabalhadoresData toTrabalhador_id()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
prepare( TO_TRABALHADOR_ID );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
return this.to_trabalhador_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setToTrabalhador_id( db.data.siprp_local.outer.TrabalhadoresData to_trabalhador_id )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
preProcess( TO_TRABALHADOR_ID, to_trabalhador_id );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.to_trabalhador_id = to_trabalhador_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getVacina_tipo()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLastAccess( System.currentTimeMillis() );
|
||||||
|
prepare( VACINA_TIPO );
|
||||||
|
}
|
||||||
|
catch( java.lang.Exception ex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( ex );
|
||||||
|
}
|
||||||
|
return this.vacina_tipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setVacina_tipo( Integer vacina_tipo )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
preProcess( VACINA_TIPO, vacina_tipo );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.vacina_tipo = vacina_tipo;
|
||||||
|
LAZY_LOADED_OBJECTS.put( VACINA_TIPO, Boolean.TRUE );
|
||||||
|
}
|
||||||
|
|
||||||
|
public db.data.siprp_local.outer.MedVacinaTipoData toVacina_tipo()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
prepare( TO_VACINA_TIPO );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
return this.to_vacina_tipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setToVacina_tipo( db.data.siprp_local.outer.MedVacinaTipoData to_vacina_tipo )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
preProcess( TO_VACINA_TIPO, to_vacina_tipo );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.to_vacina_tipo = to_vacina_tipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object get( String fieldName )
|
||||||
|
{
|
||||||
|
Object value = null;
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case AptOutrasVacina.ID_INDEX:
|
||||||
|
value = getId();
|
||||||
|
break;
|
||||||
|
case AptOutrasVacina.APPOINTMENT_ID_INDEX:
|
||||||
|
value = getAppointment_id();
|
||||||
|
break;
|
||||||
|
case AptOutrasVacina.TO_APPOINTMENT_ID_INDEX:
|
||||||
|
value = toAppointment_id();
|
||||||
|
break;
|
||||||
|
case AptOutrasVacina.TRABALHADOR_ID_INDEX:
|
||||||
|
value = getTrabalhador_id();
|
||||||
|
break;
|
||||||
|
case AptOutrasVacina.TO_TRABALHADOR_ID_INDEX:
|
||||||
|
value = toTrabalhador_id();
|
||||||
|
break;
|
||||||
|
case AptOutrasVacina.VACINA_TIPO_INDEX:
|
||||||
|
value = getVacina_tipo();
|
||||||
|
break;
|
||||||
|
case AptOutrasVacina.TO_VACINA_TIPO_INDEX:
|
||||||
|
value = toVacina_tipo();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object rawGet( String fieldName )
|
||||||
|
{
|
||||||
|
Object value = null;
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case AptOutrasVacina.ID_INDEX:
|
||||||
|
value = this.id;
|
||||||
|
break;
|
||||||
|
case AptOutrasVacina.APPOINTMENT_ID_INDEX:
|
||||||
|
value = this.appointment_id;
|
||||||
|
break;
|
||||||
|
case AptOutrasVacina.TO_APPOINTMENT_ID_INDEX:
|
||||||
|
value = this.to_appointment_id;
|
||||||
|
break;
|
||||||
|
case AptOutrasVacina.TRABALHADOR_ID_INDEX:
|
||||||
|
value = this.trabalhador_id;
|
||||||
|
break;
|
||||||
|
case AptOutrasVacina.TO_TRABALHADOR_ID_INDEX:
|
||||||
|
value = this.to_trabalhador_id;
|
||||||
|
break;
|
||||||
|
case AptOutrasVacina.VACINA_TIPO_INDEX:
|
||||||
|
value = this.vacina_tipo;
|
||||||
|
break;
|
||||||
|
case AptOutrasVacina.TO_VACINA_TIPO_INDEX:
|
||||||
|
value = this.to_vacina_tipo;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void set( String fieldName, Object value )
|
||||||
|
{
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case AptOutrasVacina.ID_INDEX:
|
||||||
|
setId( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case AptOutrasVacina.APPOINTMENT_ID_INDEX:
|
||||||
|
setAppointment_id( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case AptOutrasVacina.TO_APPOINTMENT_ID_INDEX:
|
||||||
|
setToAppointment_id( ( db.data.siprp_local.outer.AptAppointmentData ) value );
|
||||||
|
break;
|
||||||
|
case AptOutrasVacina.TRABALHADOR_ID_INDEX:
|
||||||
|
setTrabalhador_id( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case AptOutrasVacina.TO_TRABALHADOR_ID_INDEX:
|
||||||
|
setToTrabalhador_id( ( db.data.siprp_local.outer.TrabalhadoresData ) value );
|
||||||
|
break;
|
||||||
|
case AptOutrasVacina.VACINA_TIPO_INDEX:
|
||||||
|
setVacina_tipo( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case AptOutrasVacina.TO_VACINA_TIPO_INDEX:
|
||||||
|
setToVacina_tipo( ( db.data.siprp_local.outer.MedVacinaTipoData ) value );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void rawSet( String fieldName, Object value )
|
||||||
|
{
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case AptOutrasVacina.ID_INDEX:
|
||||||
|
this.id = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case AptOutrasVacina.APPOINTMENT_ID_INDEX:
|
||||||
|
this.appointment_id = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case AptOutrasVacina.TO_APPOINTMENT_ID_INDEX:
|
||||||
|
this.to_appointment_id = ( db.data.siprp_local.outer.AptAppointmentData ) value;
|
||||||
|
break;
|
||||||
|
case AptOutrasVacina.TRABALHADOR_ID_INDEX:
|
||||||
|
this.trabalhador_id = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case AptOutrasVacina.TO_TRABALHADOR_ID_INDEX:
|
||||||
|
this.to_trabalhador_id = ( db.data.siprp_local.outer.TrabalhadoresData ) value;
|
||||||
|
break;
|
||||||
|
case AptOutrasVacina.VACINA_TIPO_INDEX:
|
||||||
|
this.vacina_tipo = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case AptOutrasVacina.TO_VACINA_TIPO_INDEX:
|
||||||
|
this.to_vacina_tipo = ( db.data.siprp_local.outer.MedVacinaTipoData ) 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 AptOutrasVacina.ID_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case AptOutrasVacina.APPOINTMENT_ID_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case AptOutrasVacina.TO_APPOINTMENT_ID_INDEX:
|
||||||
|
theClass = db.data.siprp_local.outer.AptAppointmentData.class;
|
||||||
|
break;
|
||||||
|
case AptOutrasVacina.TRABALHADOR_ID_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case AptOutrasVacina.TO_TRABALHADOR_ID_INDEX:
|
||||||
|
theClass = db.data.siprp_local.outer.TrabalhadoresData.class;
|
||||||
|
break;
|
||||||
|
case AptOutrasVacina.VACINA_TIPO_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case AptOutrasVacina.TO_VACINA_TIPO_INDEX:
|
||||||
|
theClass = db.data.siprp_local.outer.MedVacinaTipoData.class;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return theClass;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getFieldIndex( String fieldName )
|
||||||
|
{
|
||||||
|
Integer index = FIELD_INDEXES.get( fieldName );
|
||||||
|
return index != null ? index : AptOutrasVacina._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, AptOutrasVacina.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 );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,431 @@
|
|||||||
|
/*
|
||||||
|
* AptOutrasViajante.java
|
||||||
|
*
|
||||||
|
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||||
|
*
|
||||||
|
* Use but DON'T TOUCH
|
||||||
|
* -> (can't touch this)
|
||||||
|
*/
|
||||||
|
package db.data.siprp_local.inner;
|
||||||
|
|
||||||
|
|
||||||
|
public class AptOutrasViajante 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( AptOutrasViajante.ID, AptOutrasViajante.ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( AptOutrasViajante.ID_FULL, AptOutrasViajante.ID_INDEX );
|
||||||
|
com.evolute.entity.evo.EvoDataObject.register( AptOutrasViajante.CLASS_IDENTIFIER, AptOutrasViajante.APPOINTMENT_ID, AptOutrasViajante.TO_APPOINTMENT_ID );
|
||||||
|
FIELD_INDEXES.put( AptOutrasViajante.APPOINTMENT_ID, AptOutrasViajante.APPOINTMENT_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( AptOutrasViajante.APPOINTMENT_ID_FULL, AptOutrasViajante.APPOINTMENT_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( AptOutrasViajante.TO_APPOINTMENT_ID, AptOutrasViajante.TO_APPOINTMENT_ID_INDEX );
|
||||||
|
com.evolute.entity.evo.EvoDataObject.register( AptOutrasViajante.CLASS_IDENTIFIER, AptOutrasViajante.TRABALHADOR_ID, AptOutrasViajante.TO_TRABALHADOR_ID );
|
||||||
|
FIELD_INDEXES.put( AptOutrasViajante.TRABALHADOR_ID, AptOutrasViajante.TRABALHADOR_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( AptOutrasViajante.TRABALHADOR_ID_FULL, AptOutrasViajante.TRABALHADOR_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( AptOutrasViajante.TO_TRABALHADOR_ID, AptOutrasViajante.TO_TRABALHADOR_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 ForeignKeyappointment_idToapt_appointment =
|
||||||
|
new com.evolute.entity.ForeignKey( AptOutrasViajante.class, AptOutrasViajante.APPOINTMENT_ID, db.data.siprp_local.outer.AptAppointmentData.class, db.data.siprp_local.outer.AptAppointmentData.ID );
|
||||||
|
|
||||||
|
public static final com.evolute.entity.ForeignKey ForeignKeytrabalhador_idTotrabalhadores =
|
||||||
|
new com.evolute.entity.ForeignKey( AptOutrasViajante.class, AptOutrasViajante.TRABALHADOR_ID, db.data.siprp_local.outer.TrabalhadoresData.class, db.data.siprp_local.outer.TrabalhadoresData.ID );
|
||||||
|
|
||||||
|
public static final String TABLENAME = "apt_outras_viajante";
|
||||||
|
|
||||||
|
|
||||||
|
public static final String CLASS_IDENTIFIER = "db.data.siprp_local.inner.apt_outras_viajante";
|
||||||
|
|
||||||
|
public static final int _INVALID__INDEX = -1;
|
||||||
|
public static final String ID = "id";
|
||||||
|
public static final String ID_FULL = "apt_outras_viajante.id";
|
||||||
|
public static final int ID_INDEX = 0;
|
||||||
|
public static final String APPOINTMENT_ID = "appointment_id";
|
||||||
|
public static final String APPOINTMENT_ID_FULL = "apt_outras_viajante.appointment_id";
|
||||||
|
public static final int APPOINTMENT_ID_INDEX = 1;
|
||||||
|
public static final String TO_APPOINTMENT_ID = "to_appointment_id";
|
||||||
|
public static final String TO_APPOINTMENT_ID_FULL = "apt_outras_viajante.to_appointment_id";
|
||||||
|
public static final int TO_APPOINTMENT_ID_INDEX = 2;
|
||||||
|
public static final String TRABALHADOR_ID = "trabalhador_id";
|
||||||
|
public static final String TRABALHADOR_ID_FULL = "apt_outras_viajante.trabalhador_id";
|
||||||
|
public static final int TRABALHADOR_ID_INDEX = 3;
|
||||||
|
public static final String TO_TRABALHADOR_ID = "to_trabalhador_id";
|
||||||
|
public static final String TO_TRABALHADOR_ID_FULL = "apt_outras_viajante.to_trabalhador_id";
|
||||||
|
public static final int TO_TRABALHADOR_ID_INDEX = 4;
|
||||||
|
|
||||||
|
public static final String FIELD_NAMES[] = new String[]{
|
||||||
|
APPOINTMENT_ID, TO_APPOINTMENT_ID, TRABALHADOR_ID, TO_TRABALHADOR_ID, };
|
||||||
|
|
||||||
|
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||||
|
TABLENAME + "." + APPOINTMENT_ID, TABLENAME + "." + TO_APPOINTMENT_ID, TABLENAME + "." + TRABALHADOR_ID, TABLENAME + "." + TO_TRABALHADOR_ID, };
|
||||||
|
|
||||||
|
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||||
|
ID, APPOINTMENT_ID, TRABALHADOR_ID, };
|
||||||
|
|
||||||
|
|
||||||
|
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||||
|
ID, };
|
||||||
|
|
||||||
|
|
||||||
|
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||||
|
ID, APPOINTMENT_ID, TRABALHADOR_ID, };
|
||||||
|
|
||||||
|
private Integer id;
|
||||||
|
private Integer appointment_id;
|
||||||
|
private db.data.siprp_local.outer.AptAppointmentData to_appointment_id;
|
||||||
|
private Integer trabalhador_id;
|
||||||
|
private db.data.siprp_local.outer.TrabalhadoresData to_trabalhador_id;
|
||||||
|
|
||||||
|
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||||
|
|
||||||
|
public AptOutrasViajante()
|
||||||
|
{
|
||||||
|
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
|
||||||
|
{
|
||||||
|
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 Integer getAppointment_id()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLastAccess( System.currentTimeMillis() );
|
||||||
|
prepare( APPOINTMENT_ID );
|
||||||
|
}
|
||||||
|
catch( java.lang.Exception ex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( ex );
|
||||||
|
}
|
||||||
|
return this.appointment_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAppointment_id( Integer appointment_id )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
preProcess( APPOINTMENT_ID, appointment_id );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.appointment_id = appointment_id;
|
||||||
|
LAZY_LOADED_OBJECTS.put( APPOINTMENT_ID, Boolean.TRUE );
|
||||||
|
}
|
||||||
|
|
||||||
|
public db.data.siprp_local.outer.AptAppointmentData toAppointment_id()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
prepare( TO_APPOINTMENT_ID );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
return this.to_appointment_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setToAppointment_id( db.data.siprp_local.outer.AptAppointmentData to_appointment_id )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
preProcess( TO_APPOINTMENT_ID, to_appointment_id );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.to_appointment_id = to_appointment_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getTrabalhador_id()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLastAccess( System.currentTimeMillis() );
|
||||||
|
prepare( TRABALHADOR_ID );
|
||||||
|
}
|
||||||
|
catch( java.lang.Exception ex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( ex );
|
||||||
|
}
|
||||||
|
return this.trabalhador_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTrabalhador_id( Integer trabalhador_id )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
preProcess( TRABALHADOR_ID, trabalhador_id );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.trabalhador_id = trabalhador_id;
|
||||||
|
LAZY_LOADED_OBJECTS.put( TRABALHADOR_ID, Boolean.TRUE );
|
||||||
|
}
|
||||||
|
|
||||||
|
public db.data.siprp_local.outer.TrabalhadoresData toTrabalhador_id()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
prepare( TO_TRABALHADOR_ID );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
return this.to_trabalhador_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setToTrabalhador_id( db.data.siprp_local.outer.TrabalhadoresData to_trabalhador_id )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
preProcess( TO_TRABALHADOR_ID, to_trabalhador_id );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.to_trabalhador_id = to_trabalhador_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object get( String fieldName )
|
||||||
|
{
|
||||||
|
Object value = null;
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case AptOutrasViajante.ID_INDEX:
|
||||||
|
value = getId();
|
||||||
|
break;
|
||||||
|
case AptOutrasViajante.APPOINTMENT_ID_INDEX:
|
||||||
|
value = getAppointment_id();
|
||||||
|
break;
|
||||||
|
case AptOutrasViajante.TO_APPOINTMENT_ID_INDEX:
|
||||||
|
value = toAppointment_id();
|
||||||
|
break;
|
||||||
|
case AptOutrasViajante.TRABALHADOR_ID_INDEX:
|
||||||
|
value = getTrabalhador_id();
|
||||||
|
break;
|
||||||
|
case AptOutrasViajante.TO_TRABALHADOR_ID_INDEX:
|
||||||
|
value = toTrabalhador_id();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object rawGet( String fieldName )
|
||||||
|
{
|
||||||
|
Object value = null;
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case AptOutrasViajante.ID_INDEX:
|
||||||
|
value = this.id;
|
||||||
|
break;
|
||||||
|
case AptOutrasViajante.APPOINTMENT_ID_INDEX:
|
||||||
|
value = this.appointment_id;
|
||||||
|
break;
|
||||||
|
case AptOutrasViajante.TO_APPOINTMENT_ID_INDEX:
|
||||||
|
value = this.to_appointment_id;
|
||||||
|
break;
|
||||||
|
case AptOutrasViajante.TRABALHADOR_ID_INDEX:
|
||||||
|
value = this.trabalhador_id;
|
||||||
|
break;
|
||||||
|
case AptOutrasViajante.TO_TRABALHADOR_ID_INDEX:
|
||||||
|
value = this.to_trabalhador_id;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void set( String fieldName, Object value )
|
||||||
|
{
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case AptOutrasViajante.ID_INDEX:
|
||||||
|
setId( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case AptOutrasViajante.APPOINTMENT_ID_INDEX:
|
||||||
|
setAppointment_id( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case AptOutrasViajante.TO_APPOINTMENT_ID_INDEX:
|
||||||
|
setToAppointment_id( ( db.data.siprp_local.outer.AptAppointmentData ) value );
|
||||||
|
break;
|
||||||
|
case AptOutrasViajante.TRABALHADOR_ID_INDEX:
|
||||||
|
setTrabalhador_id( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case AptOutrasViajante.TO_TRABALHADOR_ID_INDEX:
|
||||||
|
setToTrabalhador_id( ( db.data.siprp_local.outer.TrabalhadoresData ) value );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void rawSet( String fieldName, Object value )
|
||||||
|
{
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case AptOutrasViajante.ID_INDEX:
|
||||||
|
this.id = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case AptOutrasViajante.APPOINTMENT_ID_INDEX:
|
||||||
|
this.appointment_id = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case AptOutrasViajante.TO_APPOINTMENT_ID_INDEX:
|
||||||
|
this.to_appointment_id = ( db.data.siprp_local.outer.AptAppointmentData ) value;
|
||||||
|
break;
|
||||||
|
case AptOutrasViajante.TRABALHADOR_ID_INDEX:
|
||||||
|
this.trabalhador_id = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case AptOutrasViajante.TO_TRABALHADOR_ID_INDEX:
|
||||||
|
this.to_trabalhador_id = ( db.data.siprp_local.outer.TrabalhadoresData ) 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 AptOutrasViajante.ID_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case AptOutrasViajante.APPOINTMENT_ID_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case AptOutrasViajante.TO_APPOINTMENT_ID_INDEX:
|
||||||
|
theClass = db.data.siprp_local.outer.AptAppointmentData.class;
|
||||||
|
break;
|
||||||
|
case AptOutrasViajante.TRABALHADOR_ID_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case AptOutrasViajante.TO_TRABALHADOR_ID_INDEX:
|
||||||
|
theClass = db.data.siprp_local.outer.TrabalhadoresData.class;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return theClass;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getFieldIndex( String fieldName )
|
||||||
|
{
|
||||||
|
Integer index = FIELD_INDEXES.get( fieldName );
|
||||||
|
return index != null ? index : AptOutrasViajante._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, AptOutrasViajante.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 );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,297 @@
|
|||||||
|
/*
|
||||||
|
* CurQuestionario.java
|
||||||
|
*
|
||||||
|
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||||
|
*
|
||||||
|
* Use but DON'T TOUCH
|
||||||
|
* -> (can't touch this)
|
||||||
|
*/
|
||||||
|
package db.data.siprp_local.inner;
|
||||||
|
|
||||||
|
|
||||||
|
public class CurQuestionario 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( CurQuestionario.ID, CurQuestionario.ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( CurQuestionario.ID_FULL, CurQuestionario.ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( CurQuestionario.NOME, CurQuestionario.NOME_INDEX );
|
||||||
|
FIELD_INDEXES.put( CurQuestionario.NOME_FULL, CurQuestionario.NOME_INDEX );
|
||||||
|
}
|
||||||
|
|
||||||
|
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||||
|
|
||||||
|
|
||||||
|
public static final String TABLENAME = "cur_questionario";
|
||||||
|
|
||||||
|
|
||||||
|
public static final String CLASS_IDENTIFIER = "db.data.siprp_local.inner.cur_questionario";
|
||||||
|
|
||||||
|
public static final int _INVALID__INDEX = -1;
|
||||||
|
public static final String ID = "id";
|
||||||
|
public static final String ID_FULL = "cur_questionario.id";
|
||||||
|
public static final int ID_INDEX = 0;
|
||||||
|
public static final String NOME = "nome";
|
||||||
|
public static final String NOME_FULL = "cur_questionario.nome";
|
||||||
|
public static final int NOME_INDEX = 1;
|
||||||
|
|
||||||
|
public static final String FIELD_NAMES[] = new String[]{
|
||||||
|
NOME, };
|
||||||
|
|
||||||
|
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||||
|
TABLENAME + "." + NOME, };
|
||||||
|
|
||||||
|
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||||
|
ID, NOME, };
|
||||||
|
|
||||||
|
|
||||||
|
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||||
|
ID, };
|
||||||
|
|
||||||
|
|
||||||
|
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||||
|
ID, NOME, };
|
||||||
|
|
||||||
|
private Integer id;
|
||||||
|
private String nome;
|
||||||
|
|
||||||
|
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||||
|
|
||||||
|
public CurQuestionario()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
dirtyProperties = new boolean[]{ false, false };
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getId()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLastAccess( System.currentTimeMillis() );
|
||||||
|
prepare( ID );
|
||||||
|
}
|
||||||
|
catch( java.lang.Exception ex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( ex );
|
||||||
|
}
|
||||||
|
return this.id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId( Integer id )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
preProcess( ID, id );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.id = id;
|
||||||
|
LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
|
||||||
|
}
|
||||||
|
|
||||||
|
public java.util.List<db.data.siprp_local.outer.CurQuestionarioPerguntaData>fromCurQuestionarioPergunta_questionario_id()
|
||||||
|
{
|
||||||
|
java.util.List<db.data.siprp_local.outer.CurQuestionarioPerguntaData> result = new java.util.LinkedList< db.data.siprp_local.outer.CurQuestionarioPerguntaData >();
|
||||||
|
if ( getPrimaryKey() != null )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
result = fromReference( db.data.siprp_local.outer.CurQuestionarioPerguntaData.class , getPrimaryKey().getMap().get("id"), "questionario_id" );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNome()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLastAccess( System.currentTimeMillis() );
|
||||||
|
prepare( NOME );
|
||||||
|
}
|
||||||
|
catch( java.lang.Exception ex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( ex );
|
||||||
|
}
|
||||||
|
return this.nome;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNome( String nome )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
preProcess( NOME, nome );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.nome = nome;
|
||||||
|
LAZY_LOADED_OBJECTS.put( NOME, Boolean.TRUE );
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object get( String fieldName )
|
||||||
|
{
|
||||||
|
Object value = null;
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case CurQuestionario.ID_INDEX:
|
||||||
|
value = getId();
|
||||||
|
break;
|
||||||
|
case CurQuestionario.NOME_INDEX:
|
||||||
|
value = getNome();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object rawGet( String fieldName )
|
||||||
|
{
|
||||||
|
Object value = null;
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case CurQuestionario.ID_INDEX:
|
||||||
|
value = this.id;
|
||||||
|
break;
|
||||||
|
case CurQuestionario.NOME_INDEX:
|
||||||
|
value = this.nome;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void set( String fieldName, Object value )
|
||||||
|
{
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case CurQuestionario.ID_INDEX:
|
||||||
|
setId( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case CurQuestionario.NOME_INDEX:
|
||||||
|
setNome( ( String ) value );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void rawSet( String fieldName, Object value )
|
||||||
|
{
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case CurQuestionario.ID_INDEX:
|
||||||
|
this.id = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case CurQuestionario.NOME_INDEX:
|
||||||
|
this.nome = ( 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 CurQuestionario.ID_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case CurQuestionario.NOME_INDEX:
|
||||||
|
theClass = String.class;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return theClass;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getFieldIndex( String fieldName )
|
||||||
|
{
|
||||||
|
Integer index = FIELD_INDEXES.get( fieldName );
|
||||||
|
return index != null ? index : CurQuestionario._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, CurQuestionario.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 );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,398 @@
|
|||||||
|
/*
|
||||||
|
* CurQuestionarioPergunta.java
|
||||||
|
*
|
||||||
|
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||||
|
*
|
||||||
|
* Use but DON'T TOUCH
|
||||||
|
* -> (can't touch this)
|
||||||
|
*/
|
||||||
|
package db.data.siprp_local.inner;
|
||||||
|
|
||||||
|
|
||||||
|
public class CurQuestionarioPergunta 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( CurQuestionarioPergunta.ID, CurQuestionarioPergunta.ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( CurQuestionarioPergunta.ID_FULL, CurQuestionarioPergunta.ID_INDEX );
|
||||||
|
com.evolute.entity.evo.EvoDataObject.register( CurQuestionarioPergunta.CLASS_IDENTIFIER, CurQuestionarioPergunta.QUESTIONARIO_ID, CurQuestionarioPergunta.TO_QUESTIONARIO_ID );
|
||||||
|
FIELD_INDEXES.put( CurQuestionarioPergunta.QUESTIONARIO_ID, CurQuestionarioPergunta.QUESTIONARIO_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( CurQuestionarioPergunta.QUESTIONARIO_ID_FULL, CurQuestionarioPergunta.QUESTIONARIO_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( CurQuestionarioPergunta.TO_QUESTIONARIO_ID, CurQuestionarioPergunta.TO_QUESTIONARIO_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( CurQuestionarioPergunta.DESCRICAO, CurQuestionarioPergunta.DESCRICAO_INDEX );
|
||||||
|
FIELD_INDEXES.put( CurQuestionarioPergunta.DESCRICAO_FULL, CurQuestionarioPergunta.DESCRICAO_INDEX );
|
||||||
|
}
|
||||||
|
|
||||||
|
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||||
|
|
||||||
|
|
||||||
|
public static final com.evolute.entity.ForeignKey ForeignKeyquestionario_idTocur_questionario =
|
||||||
|
new com.evolute.entity.ForeignKey( CurQuestionarioPergunta.class, CurQuestionarioPergunta.QUESTIONARIO_ID, db.data.siprp_local.outer.CurQuestionarioData.class, db.data.siprp_local.outer.CurQuestionarioData.ID );
|
||||||
|
|
||||||
|
public static final String TABLENAME = "cur_questionario_pergunta";
|
||||||
|
|
||||||
|
|
||||||
|
public static final String CLASS_IDENTIFIER = "db.data.siprp_local.inner.cur_questionario_pergunta";
|
||||||
|
|
||||||
|
public static final int _INVALID__INDEX = -1;
|
||||||
|
public static final String ID = "id";
|
||||||
|
public static final String ID_FULL = "cur_questionario_pergunta.id";
|
||||||
|
public static final int ID_INDEX = 0;
|
||||||
|
public static final String QUESTIONARIO_ID = "questionario_id";
|
||||||
|
public static final String QUESTIONARIO_ID_FULL = "cur_questionario_pergunta.questionario_id";
|
||||||
|
public static final int QUESTIONARIO_ID_INDEX = 1;
|
||||||
|
public static final String TO_QUESTIONARIO_ID = "to_questionario_id";
|
||||||
|
public static final String TO_QUESTIONARIO_ID_FULL = "cur_questionario_pergunta.to_questionario_id";
|
||||||
|
public static final int TO_QUESTIONARIO_ID_INDEX = 2;
|
||||||
|
public static final String DESCRICAO = "descricao";
|
||||||
|
public static final String DESCRICAO_FULL = "cur_questionario_pergunta.descricao";
|
||||||
|
public static final int DESCRICAO_INDEX = 3;
|
||||||
|
|
||||||
|
public static final String FIELD_NAMES[] = new String[]{
|
||||||
|
QUESTIONARIO_ID, TO_QUESTIONARIO_ID, DESCRICAO, };
|
||||||
|
|
||||||
|
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||||
|
TABLENAME + "." + QUESTIONARIO_ID, TABLENAME + "." + TO_QUESTIONARIO_ID, TABLENAME + "." + DESCRICAO, };
|
||||||
|
|
||||||
|
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||||
|
ID, QUESTIONARIO_ID, DESCRICAO, };
|
||||||
|
|
||||||
|
|
||||||
|
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||||
|
ID, };
|
||||||
|
|
||||||
|
|
||||||
|
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||||
|
ID, QUESTIONARIO_ID, DESCRICAO, };
|
||||||
|
|
||||||
|
private Integer id;
|
||||||
|
private Integer questionario_id;
|
||||||
|
private db.data.siprp_local.outer.CurQuestionarioData to_questionario_id;
|
||||||
|
private String descricao;
|
||||||
|
|
||||||
|
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||||
|
|
||||||
|
public CurQuestionarioPergunta()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
dirtyProperties = new boolean[]{ false, false, false,
|
||||||
|
false };
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getId()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLastAccess( System.currentTimeMillis() );
|
||||||
|
prepare( ID );
|
||||||
|
}
|
||||||
|
catch( java.lang.Exception ex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( ex );
|
||||||
|
}
|
||||||
|
return this.id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId( Integer id )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
preProcess( ID, id );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.id = id;
|
||||||
|
LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
|
||||||
|
}
|
||||||
|
|
||||||
|
public java.util.List<db.data.siprp_local.outer.CurQuestionarioRespostaData>fromCurQuestionarioResposta_pergunta_id()
|
||||||
|
{
|
||||||
|
java.util.List<db.data.siprp_local.outer.CurQuestionarioRespostaData> result = new java.util.LinkedList< db.data.siprp_local.outer.CurQuestionarioRespostaData >();
|
||||||
|
if ( getPrimaryKey() != null )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
result = fromReference( db.data.siprp_local.outer.CurQuestionarioRespostaData.class , getPrimaryKey().getMap().get("id"), "pergunta_id" );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getQuestionario_id()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLastAccess( System.currentTimeMillis() );
|
||||||
|
prepare( QUESTIONARIO_ID );
|
||||||
|
}
|
||||||
|
catch( java.lang.Exception ex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( ex );
|
||||||
|
}
|
||||||
|
return this.questionario_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setQuestionario_id( Integer questionario_id )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
preProcess( QUESTIONARIO_ID, questionario_id );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.questionario_id = questionario_id;
|
||||||
|
LAZY_LOADED_OBJECTS.put( QUESTIONARIO_ID, Boolean.TRUE );
|
||||||
|
}
|
||||||
|
|
||||||
|
public db.data.siprp_local.outer.CurQuestionarioData toQuestionario_id()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
prepare( TO_QUESTIONARIO_ID );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
return this.to_questionario_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setToQuestionario_id( db.data.siprp_local.outer.CurQuestionarioData to_questionario_id )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
preProcess( TO_QUESTIONARIO_ID, to_questionario_id );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.to_questionario_id = to_questionario_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
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 Object get( String fieldName )
|
||||||
|
{
|
||||||
|
Object value = null;
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case CurQuestionarioPergunta.ID_INDEX:
|
||||||
|
value = getId();
|
||||||
|
break;
|
||||||
|
case CurQuestionarioPergunta.QUESTIONARIO_ID_INDEX:
|
||||||
|
value = getQuestionario_id();
|
||||||
|
break;
|
||||||
|
case CurQuestionarioPergunta.TO_QUESTIONARIO_ID_INDEX:
|
||||||
|
value = toQuestionario_id();
|
||||||
|
break;
|
||||||
|
case CurQuestionarioPergunta.DESCRICAO_INDEX:
|
||||||
|
value = getDescricao();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object rawGet( String fieldName )
|
||||||
|
{
|
||||||
|
Object value = null;
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case CurQuestionarioPergunta.ID_INDEX:
|
||||||
|
value = this.id;
|
||||||
|
break;
|
||||||
|
case CurQuestionarioPergunta.QUESTIONARIO_ID_INDEX:
|
||||||
|
value = this.questionario_id;
|
||||||
|
break;
|
||||||
|
case CurQuestionarioPergunta.TO_QUESTIONARIO_ID_INDEX:
|
||||||
|
value = this.to_questionario_id;
|
||||||
|
break;
|
||||||
|
case CurQuestionarioPergunta.DESCRICAO_INDEX:
|
||||||
|
value = this.descricao;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void set( String fieldName, Object value )
|
||||||
|
{
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case CurQuestionarioPergunta.ID_INDEX:
|
||||||
|
setId( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case CurQuestionarioPergunta.QUESTIONARIO_ID_INDEX:
|
||||||
|
setQuestionario_id( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case CurQuestionarioPergunta.TO_QUESTIONARIO_ID_INDEX:
|
||||||
|
setToQuestionario_id( ( db.data.siprp_local.outer.CurQuestionarioData ) value );
|
||||||
|
break;
|
||||||
|
case CurQuestionarioPergunta.DESCRICAO_INDEX:
|
||||||
|
setDescricao( ( String ) value );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void rawSet( String fieldName, Object value )
|
||||||
|
{
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case CurQuestionarioPergunta.ID_INDEX:
|
||||||
|
this.id = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case CurQuestionarioPergunta.QUESTIONARIO_ID_INDEX:
|
||||||
|
this.questionario_id = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case CurQuestionarioPergunta.TO_QUESTIONARIO_ID_INDEX:
|
||||||
|
this.to_questionario_id = ( db.data.siprp_local.outer.CurQuestionarioData ) value;
|
||||||
|
break;
|
||||||
|
case CurQuestionarioPergunta.DESCRICAO_INDEX:
|
||||||
|
this.descricao = ( 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 CurQuestionarioPergunta.ID_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case CurQuestionarioPergunta.QUESTIONARIO_ID_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case CurQuestionarioPergunta.TO_QUESTIONARIO_ID_INDEX:
|
||||||
|
theClass = db.data.siprp_local.outer.CurQuestionarioData.class;
|
||||||
|
break;
|
||||||
|
case CurQuestionarioPergunta.DESCRICAO_INDEX:
|
||||||
|
theClass = String.class;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return theClass;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getFieldIndex( String fieldName )
|
||||||
|
{
|
||||||
|
Integer index = FIELD_INDEXES.get( fieldName );
|
||||||
|
return index != null ? index : CurQuestionarioPergunta._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, CurQuestionarioPergunta.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 );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,583 @@
|
|||||||
|
/*
|
||||||
|
* CurQuestionarioResposta.java
|
||||||
|
*
|
||||||
|
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||||
|
*
|
||||||
|
* Use but DON'T TOUCH
|
||||||
|
* -> (can't touch this)
|
||||||
|
*/
|
||||||
|
package db.data.siprp_local.inner;
|
||||||
|
|
||||||
|
|
||||||
|
public class CurQuestionarioResposta 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( CurQuestionarioResposta.ID, CurQuestionarioResposta.ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( CurQuestionarioResposta.ID_FULL, CurQuestionarioResposta.ID_INDEX );
|
||||||
|
com.evolute.entity.evo.EvoDataObject.register( CurQuestionarioResposta.CLASS_IDENTIFIER, CurQuestionarioResposta.PERGUNTA_ID, CurQuestionarioResposta.TO_PERGUNTA_ID );
|
||||||
|
FIELD_INDEXES.put( CurQuestionarioResposta.PERGUNTA_ID, CurQuestionarioResposta.PERGUNTA_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( CurQuestionarioResposta.PERGUNTA_ID_FULL, CurQuestionarioResposta.PERGUNTA_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( CurQuestionarioResposta.TO_PERGUNTA_ID, CurQuestionarioResposta.TO_PERGUNTA_ID_INDEX );
|
||||||
|
com.evolute.entity.evo.EvoDataObject.register( CurQuestionarioResposta.CLASS_IDENTIFIER, CurQuestionarioResposta.FORMANDO_ID, CurQuestionarioResposta.TO_FORMANDO_ID );
|
||||||
|
FIELD_INDEXES.put( CurQuestionarioResposta.FORMANDO_ID, CurQuestionarioResposta.FORMANDO_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( CurQuestionarioResposta.FORMANDO_ID_FULL, CurQuestionarioResposta.FORMANDO_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( CurQuestionarioResposta.TO_FORMANDO_ID, CurQuestionarioResposta.TO_FORMANDO_ID_INDEX );
|
||||||
|
com.evolute.entity.evo.EvoDataObject.register( CurQuestionarioResposta.CLASS_IDENTIFIER, CurQuestionarioResposta.CURSO_ID, CurQuestionarioResposta.TO_CURSO_ID );
|
||||||
|
FIELD_INDEXES.put( CurQuestionarioResposta.CURSO_ID, CurQuestionarioResposta.CURSO_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( CurQuestionarioResposta.CURSO_ID_FULL, CurQuestionarioResposta.CURSO_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( CurQuestionarioResposta.TO_CURSO_ID, CurQuestionarioResposta.TO_CURSO_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( CurQuestionarioResposta.RESPOSTA, CurQuestionarioResposta.RESPOSTA_INDEX );
|
||||||
|
FIELD_INDEXES.put( CurQuestionarioResposta.RESPOSTA_FULL, CurQuestionarioResposta.RESPOSTA_INDEX );
|
||||||
|
}
|
||||||
|
|
||||||
|
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||||
|
|
||||||
|
|
||||||
|
public static final com.evolute.entity.ForeignKey ForeignKeypergunta_idTocur_questionario_pergunta =
|
||||||
|
new com.evolute.entity.ForeignKey( CurQuestionarioResposta.class, CurQuestionarioResposta.PERGUNTA_ID, db.data.siprp_local.outer.CurQuestionarioPerguntaData.class, db.data.siprp_local.outer.CurQuestionarioPerguntaData.ID );
|
||||||
|
|
||||||
|
public static final com.evolute.entity.ForeignKey ForeignKeyformando_idTocur_formandos =
|
||||||
|
new com.evolute.entity.ForeignKey( CurQuestionarioResposta.class, CurQuestionarioResposta.FORMANDO_ID, db.data.siprp_local.outer.CurFormandosData.class, db.data.siprp_local.outer.CurFormandosData.ID );
|
||||||
|
|
||||||
|
public static final com.evolute.entity.ForeignKey ForeignKeycurso_idTocur_cursos =
|
||||||
|
new com.evolute.entity.ForeignKey( CurQuestionarioResposta.class, CurQuestionarioResposta.CURSO_ID, db.data.siprp_local.outer.CurCursosData.class, db.data.siprp_local.outer.CurCursosData.ID );
|
||||||
|
|
||||||
|
public static final String TABLENAME = "cur_questionario_resposta";
|
||||||
|
|
||||||
|
|
||||||
|
public static final String CLASS_IDENTIFIER = "db.data.siprp_local.inner.cur_questionario_resposta";
|
||||||
|
|
||||||
|
public static final int _INVALID__INDEX = -1;
|
||||||
|
public static final String ID = "id";
|
||||||
|
public static final String ID_FULL = "cur_questionario_resposta.id";
|
||||||
|
public static final int ID_INDEX = 0;
|
||||||
|
public static final String PERGUNTA_ID = "pergunta_id";
|
||||||
|
public static final String PERGUNTA_ID_FULL = "cur_questionario_resposta.pergunta_id";
|
||||||
|
public static final int PERGUNTA_ID_INDEX = 1;
|
||||||
|
public static final String TO_PERGUNTA_ID = "to_pergunta_id";
|
||||||
|
public static final String TO_PERGUNTA_ID_FULL = "cur_questionario_resposta.to_pergunta_id";
|
||||||
|
public static final int TO_PERGUNTA_ID_INDEX = 2;
|
||||||
|
public static final String FORMANDO_ID = "formando_id";
|
||||||
|
public static final String FORMANDO_ID_FULL = "cur_questionario_resposta.formando_id";
|
||||||
|
public static final int FORMANDO_ID_INDEX = 3;
|
||||||
|
public static final String TO_FORMANDO_ID = "to_formando_id";
|
||||||
|
public static final String TO_FORMANDO_ID_FULL = "cur_questionario_resposta.to_formando_id";
|
||||||
|
public static final int TO_FORMANDO_ID_INDEX = 4;
|
||||||
|
public static final String CURSO_ID = "curso_id";
|
||||||
|
public static final String CURSO_ID_FULL = "cur_questionario_resposta.curso_id";
|
||||||
|
public static final int CURSO_ID_INDEX = 5;
|
||||||
|
public static final String TO_CURSO_ID = "to_curso_id";
|
||||||
|
public static final String TO_CURSO_ID_FULL = "cur_questionario_resposta.to_curso_id";
|
||||||
|
public static final int TO_CURSO_ID_INDEX = 6;
|
||||||
|
public static final String RESPOSTA = "resposta";
|
||||||
|
public static final String RESPOSTA_FULL = "cur_questionario_resposta.resposta";
|
||||||
|
public static final int RESPOSTA_INDEX = 7;
|
||||||
|
|
||||||
|
public static final String FIELD_NAMES[] = new String[]{
|
||||||
|
PERGUNTA_ID, TO_PERGUNTA_ID, FORMANDO_ID, TO_FORMANDO_ID, CURSO_ID, TO_CURSO_ID,
|
||||||
|
RESPOSTA, };
|
||||||
|
|
||||||
|
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||||
|
TABLENAME + "." + PERGUNTA_ID, TABLENAME + "." + TO_PERGUNTA_ID, TABLENAME + "." + FORMANDO_ID, TABLENAME + "." + TO_FORMANDO_ID, TABLENAME + "." + CURSO_ID, TABLENAME + "." + TO_CURSO_ID,
|
||||||
|
TABLENAME + "." + RESPOSTA, };
|
||||||
|
|
||||||
|
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||||
|
ID, PERGUNTA_ID, FORMANDO_ID, CURSO_ID, RESPOSTA, };
|
||||||
|
|
||||||
|
|
||||||
|
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||||
|
ID, };
|
||||||
|
|
||||||
|
|
||||||
|
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||||
|
ID, PERGUNTA_ID, FORMANDO_ID, CURSO_ID, RESPOSTA, };
|
||||||
|
|
||||||
|
private Integer id;
|
||||||
|
private Integer pergunta_id;
|
||||||
|
private db.data.siprp_local.outer.CurQuestionarioPerguntaData to_pergunta_id;
|
||||||
|
private Integer formando_id;
|
||||||
|
private db.data.siprp_local.outer.CurFormandosData to_formando_id;
|
||||||
|
private Integer curso_id;
|
||||||
|
private db.data.siprp_local.outer.CurCursosData to_curso_id;
|
||||||
|
private Integer resposta;
|
||||||
|
|
||||||
|
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||||
|
|
||||||
|
public CurQuestionarioResposta()
|
||||||
|
{
|
||||||
|
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
|
||||||
|
{
|
||||||
|
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 Integer getPergunta_id()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLastAccess( System.currentTimeMillis() );
|
||||||
|
prepare( PERGUNTA_ID );
|
||||||
|
}
|
||||||
|
catch( java.lang.Exception ex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( ex );
|
||||||
|
}
|
||||||
|
return this.pergunta_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPergunta_id( Integer pergunta_id )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
preProcess( PERGUNTA_ID, pergunta_id );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.pergunta_id = pergunta_id;
|
||||||
|
LAZY_LOADED_OBJECTS.put( PERGUNTA_ID, Boolean.TRUE );
|
||||||
|
}
|
||||||
|
|
||||||
|
public db.data.siprp_local.outer.CurQuestionarioPerguntaData toPergunta_id()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
prepare( TO_PERGUNTA_ID );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
return this.to_pergunta_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setToPergunta_id( db.data.siprp_local.outer.CurQuestionarioPerguntaData to_pergunta_id )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
preProcess( TO_PERGUNTA_ID, to_pergunta_id );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.to_pergunta_id = to_pergunta_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getFormando_id()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLastAccess( System.currentTimeMillis() );
|
||||||
|
prepare( FORMANDO_ID );
|
||||||
|
}
|
||||||
|
catch( java.lang.Exception ex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( ex );
|
||||||
|
}
|
||||||
|
return this.formando_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFormando_id( Integer formando_id )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
preProcess( FORMANDO_ID, formando_id );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.formando_id = formando_id;
|
||||||
|
LAZY_LOADED_OBJECTS.put( FORMANDO_ID, Boolean.TRUE );
|
||||||
|
}
|
||||||
|
|
||||||
|
public db.data.siprp_local.outer.CurFormandosData toFormando_id()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
prepare( TO_FORMANDO_ID );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
return this.to_formando_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setToFormando_id( db.data.siprp_local.outer.CurFormandosData to_formando_id )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
preProcess( TO_FORMANDO_ID, to_formando_id );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.to_formando_id = to_formando_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getCurso_id()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLastAccess( System.currentTimeMillis() );
|
||||||
|
prepare( CURSO_ID );
|
||||||
|
}
|
||||||
|
catch( java.lang.Exception ex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( ex );
|
||||||
|
}
|
||||||
|
return this.curso_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurso_id( Integer curso_id )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
preProcess( CURSO_ID, curso_id );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.curso_id = curso_id;
|
||||||
|
LAZY_LOADED_OBJECTS.put( CURSO_ID, Boolean.TRUE );
|
||||||
|
}
|
||||||
|
|
||||||
|
public db.data.siprp_local.outer.CurCursosData toCurso_id()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
prepare( TO_CURSO_ID );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
return this.to_curso_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setToCurso_id( db.data.siprp_local.outer.CurCursosData to_curso_id )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
preProcess( TO_CURSO_ID, to_curso_id );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.to_curso_id = to_curso_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getResposta()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLastAccess( System.currentTimeMillis() );
|
||||||
|
prepare( RESPOSTA );
|
||||||
|
}
|
||||||
|
catch( java.lang.Exception ex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( ex );
|
||||||
|
}
|
||||||
|
return this.resposta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setResposta( Integer resposta )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
preProcess( RESPOSTA, resposta );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.resposta = resposta;
|
||||||
|
LAZY_LOADED_OBJECTS.put( RESPOSTA, Boolean.TRUE );
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object get( String fieldName )
|
||||||
|
{
|
||||||
|
Object value = null;
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case CurQuestionarioResposta.ID_INDEX:
|
||||||
|
value = getId();
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.PERGUNTA_ID_INDEX:
|
||||||
|
value = getPergunta_id();
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.TO_PERGUNTA_ID_INDEX:
|
||||||
|
value = toPergunta_id();
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.FORMANDO_ID_INDEX:
|
||||||
|
value = getFormando_id();
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.TO_FORMANDO_ID_INDEX:
|
||||||
|
value = toFormando_id();
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.CURSO_ID_INDEX:
|
||||||
|
value = getCurso_id();
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.TO_CURSO_ID_INDEX:
|
||||||
|
value = toCurso_id();
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.RESPOSTA_INDEX:
|
||||||
|
value = getResposta();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object rawGet( String fieldName )
|
||||||
|
{
|
||||||
|
Object value = null;
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case CurQuestionarioResposta.ID_INDEX:
|
||||||
|
value = this.id;
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.PERGUNTA_ID_INDEX:
|
||||||
|
value = this.pergunta_id;
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.TO_PERGUNTA_ID_INDEX:
|
||||||
|
value = this.to_pergunta_id;
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.FORMANDO_ID_INDEX:
|
||||||
|
value = this.formando_id;
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.TO_FORMANDO_ID_INDEX:
|
||||||
|
value = this.to_formando_id;
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.CURSO_ID_INDEX:
|
||||||
|
value = this.curso_id;
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.TO_CURSO_ID_INDEX:
|
||||||
|
value = this.to_curso_id;
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.RESPOSTA_INDEX:
|
||||||
|
value = this.resposta;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void set( String fieldName, Object value )
|
||||||
|
{
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case CurQuestionarioResposta.ID_INDEX:
|
||||||
|
setId( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.PERGUNTA_ID_INDEX:
|
||||||
|
setPergunta_id( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.TO_PERGUNTA_ID_INDEX:
|
||||||
|
setToPergunta_id( ( db.data.siprp_local.outer.CurQuestionarioPerguntaData ) value );
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.FORMANDO_ID_INDEX:
|
||||||
|
setFormando_id( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.TO_FORMANDO_ID_INDEX:
|
||||||
|
setToFormando_id( ( db.data.siprp_local.outer.CurFormandosData ) value );
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.CURSO_ID_INDEX:
|
||||||
|
setCurso_id( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.TO_CURSO_ID_INDEX:
|
||||||
|
setToCurso_id( ( db.data.siprp_local.outer.CurCursosData ) value );
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.RESPOSTA_INDEX:
|
||||||
|
setResposta( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void rawSet( String fieldName, Object value )
|
||||||
|
{
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case CurQuestionarioResposta.ID_INDEX:
|
||||||
|
this.id = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.PERGUNTA_ID_INDEX:
|
||||||
|
this.pergunta_id = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.TO_PERGUNTA_ID_INDEX:
|
||||||
|
this.to_pergunta_id = ( db.data.siprp_local.outer.CurQuestionarioPerguntaData ) value;
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.FORMANDO_ID_INDEX:
|
||||||
|
this.formando_id = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.TO_FORMANDO_ID_INDEX:
|
||||||
|
this.to_formando_id = ( db.data.siprp_local.outer.CurFormandosData ) value;
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.CURSO_ID_INDEX:
|
||||||
|
this.curso_id = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.TO_CURSO_ID_INDEX:
|
||||||
|
this.to_curso_id = ( db.data.siprp_local.outer.CurCursosData ) value;
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.RESPOSTA_INDEX:
|
||||||
|
this.resposta = ( 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 CurQuestionarioResposta.ID_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.PERGUNTA_ID_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.TO_PERGUNTA_ID_INDEX:
|
||||||
|
theClass = db.data.siprp_local.outer.CurQuestionarioPerguntaData.class;
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.FORMANDO_ID_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.TO_FORMANDO_ID_INDEX:
|
||||||
|
theClass = db.data.siprp_local.outer.CurFormandosData.class;
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.CURSO_ID_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.TO_CURSO_ID_INDEX:
|
||||||
|
theClass = db.data.siprp_local.outer.CurCursosData.class;
|
||||||
|
break;
|
||||||
|
case CurQuestionarioResposta.RESPOSTA_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return theClass;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getFieldIndex( String fieldName )
|
||||||
|
{
|
||||||
|
Integer index = FIELD_INDEXES.get( fieldName );
|
||||||
|
return index != null ? index : CurQuestionarioResposta._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, CurQuestionarioResposta.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 );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,481 @@
|
|||||||
|
/*
|
||||||
|
* EvoUsrPreferences.java
|
||||||
|
*
|
||||||
|
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||||
|
*
|
||||||
|
* Use but DON'T TOUCH
|
||||||
|
* -> (can't touch this)
|
||||||
|
*/
|
||||||
|
package db.data.siprp_local.inner;
|
||||||
|
|
||||||
|
|
||||||
|
public class EvoUsrPreferences 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( EvoUsrPreferences.ID, EvoUsrPreferences.ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( EvoUsrPreferences.ID_FULL, EvoUsrPreferences.ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( EvoUsrPreferences.DELETED_STAMP, EvoUsrPreferences.DELETED_STAMP_INDEX );
|
||||||
|
FIELD_INDEXES.put( EvoUsrPreferences.DELETED_STAMP_FULL, EvoUsrPreferences.DELETED_STAMP_INDEX );
|
||||||
|
com.evolute.entity.evo.EvoDataObject.register( EvoUsrPreferences.CLASS_IDENTIFIER, EvoUsrPreferences.USER_ID, EvoUsrPreferences.TO_USER_ID );
|
||||||
|
FIELD_INDEXES.put( EvoUsrPreferences.USER_ID, EvoUsrPreferences.USER_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( EvoUsrPreferences.USER_ID_FULL, EvoUsrPreferences.USER_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( EvoUsrPreferences.TO_USER_ID, EvoUsrPreferences.TO_USER_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( EvoUsrPreferences.PROPERTY, EvoUsrPreferences.PROPERTY_INDEX );
|
||||||
|
FIELD_INDEXES.put( EvoUsrPreferences.PROPERTY_FULL, EvoUsrPreferences.PROPERTY_INDEX );
|
||||||
|
FIELD_INDEXES.put( EvoUsrPreferences.VALUE, EvoUsrPreferences.VALUE_INDEX );
|
||||||
|
FIELD_INDEXES.put( EvoUsrPreferences.VALUE_FULL, EvoUsrPreferences.VALUE_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( EvoUsrPreferences.class, EvoUsrPreferences.USER_ID, db.data.siprp_local.outer.EvoUsrUserData.class, db.data.siprp_local.outer.EvoUsrUserData.ID );
|
||||||
|
|
||||||
|
public static final String TABLENAME = "evo_usr_preferences";
|
||||||
|
|
||||||
|
|
||||||
|
public static final String CLASS_IDENTIFIER = "db.data.siprp_local.inner.evo_usr_preferences";
|
||||||
|
|
||||||
|
public static final int _INVALID__INDEX = -1;
|
||||||
|
public static final String ID = "id";
|
||||||
|
public static final String ID_FULL = "evo_usr_preferences.id";
|
||||||
|
public static final int ID_INDEX = 0;
|
||||||
|
public static final String DELETED_STAMP = "deleted_stamp";
|
||||||
|
public static final String DELETED_STAMP_FULL = "evo_usr_preferences.deleted_stamp";
|
||||||
|
public static final int DELETED_STAMP_INDEX = 1;
|
||||||
|
public static final String USER_ID = "user_id";
|
||||||
|
public static final String USER_ID_FULL = "evo_usr_preferences.user_id";
|
||||||
|
public static final int USER_ID_INDEX = 2;
|
||||||
|
public static final String TO_USER_ID = "to_user_id";
|
||||||
|
public static final String TO_USER_ID_FULL = "evo_usr_preferences.to_user_id";
|
||||||
|
public static final int TO_USER_ID_INDEX = 3;
|
||||||
|
public static final String PROPERTY = "property";
|
||||||
|
public static final String PROPERTY_FULL = "evo_usr_preferences.property";
|
||||||
|
public static final int PROPERTY_INDEX = 4;
|
||||||
|
public static final String VALUE = "value";
|
||||||
|
public static final String VALUE_FULL = "evo_usr_preferences.value";
|
||||||
|
public static final int VALUE_INDEX = 5;
|
||||||
|
|
||||||
|
public static final String FIELD_NAMES[] = new String[]{
|
||||||
|
DELETED_STAMP, USER_ID, TO_USER_ID, PROPERTY, VALUE, };
|
||||||
|
|
||||||
|
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||||
|
TABLENAME + "." + DELETED_STAMP, TABLENAME + "." + USER_ID, TABLENAME + "." + TO_USER_ID, TABLENAME + "." + PROPERTY, TABLENAME + "." + VALUE, };
|
||||||
|
|
||||||
|
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||||
|
ID, DELETED_STAMP, USER_ID, PROPERTY, VALUE, };
|
||||||
|
|
||||||
|
|
||||||
|
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||||
|
ID, };
|
||||||
|
|
||||||
|
|
||||||
|
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||||
|
ID, DELETED_STAMP, USER_ID, PROPERTY, VALUE, };
|
||||||
|
|
||||||
|
private Integer id;
|
||||||
|
private java.sql.Timestamp deleted_stamp;
|
||||||
|
private Integer user_id;
|
||||||
|
private db.data.siprp_local.outer.EvoUsrUserData to_user_id;
|
||||||
|
private String property;
|
||||||
|
private String value;
|
||||||
|
|
||||||
|
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||||
|
|
||||||
|
public EvoUsrPreferences()
|
||||||
|
{
|
||||||
|
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
|
||||||
|
{
|
||||||
|
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 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( java.sql.Timestamp deleted_stamp )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
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 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
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
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 getProperty()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLastAccess( System.currentTimeMillis() );
|
||||||
|
prepare( PROPERTY );
|
||||||
|
}
|
||||||
|
catch( java.lang.Exception ex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( ex );
|
||||||
|
}
|
||||||
|
return this.property;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProperty( String property )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
preProcess( PROPERTY, property );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.property = property;
|
||||||
|
LAZY_LOADED_OBJECTS.put( PROPERTY, Boolean.TRUE );
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getValue()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLastAccess( System.currentTimeMillis() );
|
||||||
|
prepare( VALUE );
|
||||||
|
}
|
||||||
|
catch( java.lang.Exception ex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( ex );
|
||||||
|
}
|
||||||
|
return this.value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValue( String value )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
preProcess( VALUE, value );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.value = value;
|
||||||
|
LAZY_LOADED_OBJECTS.put( VALUE, Boolean.TRUE );
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object get( String fieldName )
|
||||||
|
{
|
||||||
|
Object value = null;
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case EvoUsrPreferences.ID_INDEX:
|
||||||
|
value = getId();
|
||||||
|
break;
|
||||||
|
case EvoUsrPreferences.DELETED_STAMP_INDEX:
|
||||||
|
value = getDeleted_stamp();
|
||||||
|
break;
|
||||||
|
case EvoUsrPreferences.USER_ID_INDEX:
|
||||||
|
value = getUser_id();
|
||||||
|
break;
|
||||||
|
case EvoUsrPreferences.TO_USER_ID_INDEX:
|
||||||
|
value = toUser_id();
|
||||||
|
break;
|
||||||
|
case EvoUsrPreferences.PROPERTY_INDEX:
|
||||||
|
value = getProperty();
|
||||||
|
break;
|
||||||
|
case EvoUsrPreferences.VALUE_INDEX:
|
||||||
|
value = getValue();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object rawGet( String fieldName )
|
||||||
|
{
|
||||||
|
Object value = null;
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case EvoUsrPreferences.ID_INDEX:
|
||||||
|
value = this.id;
|
||||||
|
break;
|
||||||
|
case EvoUsrPreferences.DELETED_STAMP_INDEX:
|
||||||
|
value = this.deleted_stamp;
|
||||||
|
break;
|
||||||
|
case EvoUsrPreferences.USER_ID_INDEX:
|
||||||
|
value = this.user_id;
|
||||||
|
break;
|
||||||
|
case EvoUsrPreferences.TO_USER_ID_INDEX:
|
||||||
|
value = this.to_user_id;
|
||||||
|
break;
|
||||||
|
case EvoUsrPreferences.PROPERTY_INDEX:
|
||||||
|
value = this.property;
|
||||||
|
break;
|
||||||
|
case EvoUsrPreferences.VALUE_INDEX:
|
||||||
|
value = this.value;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void set( String fieldName, Object value )
|
||||||
|
{
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case EvoUsrPreferences.ID_INDEX:
|
||||||
|
setId( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case EvoUsrPreferences.DELETED_STAMP_INDEX:
|
||||||
|
setDeleted_stamp( ( java.sql.Timestamp ) value );
|
||||||
|
break;
|
||||||
|
case EvoUsrPreferences.USER_ID_INDEX:
|
||||||
|
setUser_id( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case EvoUsrPreferences.TO_USER_ID_INDEX:
|
||||||
|
setToUser_id( ( db.data.siprp_local.outer.EvoUsrUserData ) value );
|
||||||
|
break;
|
||||||
|
case EvoUsrPreferences.PROPERTY_INDEX:
|
||||||
|
setProperty( ( String ) value );
|
||||||
|
break;
|
||||||
|
case EvoUsrPreferences.VALUE_INDEX:
|
||||||
|
setValue( ( String ) value );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void rawSet( String fieldName, Object value )
|
||||||
|
{
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case EvoUsrPreferences.ID_INDEX:
|
||||||
|
this.id = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case EvoUsrPreferences.DELETED_STAMP_INDEX:
|
||||||
|
this.deleted_stamp = ( java.sql.Timestamp ) value;
|
||||||
|
break;
|
||||||
|
case EvoUsrPreferences.USER_ID_INDEX:
|
||||||
|
this.user_id = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case EvoUsrPreferences.TO_USER_ID_INDEX:
|
||||||
|
this.to_user_id = ( db.data.siprp_local.outer.EvoUsrUserData ) value;
|
||||||
|
break;
|
||||||
|
case EvoUsrPreferences.PROPERTY_INDEX:
|
||||||
|
this.property = ( String ) value;
|
||||||
|
break;
|
||||||
|
case EvoUsrPreferences.VALUE_INDEX:
|
||||||
|
this.value = ( 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 EvoUsrPreferences.ID_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case EvoUsrPreferences.DELETED_STAMP_INDEX:
|
||||||
|
theClass = java.sql.Timestamp.class;
|
||||||
|
break;
|
||||||
|
case EvoUsrPreferences.USER_ID_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case EvoUsrPreferences.TO_USER_ID_INDEX:
|
||||||
|
theClass = db.data.siprp_local.outer.EvoUsrUserData.class;
|
||||||
|
break;
|
||||||
|
case EvoUsrPreferences.PROPERTY_INDEX:
|
||||||
|
theClass = String.class;
|
||||||
|
break;
|
||||||
|
case EvoUsrPreferences.VALUE_INDEX:
|
||||||
|
theClass = String.class;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return theClass;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getFieldIndex( String fieldName )
|
||||||
|
{
|
||||||
|
Integer index = FIELD_INDEXES.get( fieldName );
|
||||||
|
return index != null ? index : EvoUsrPreferences._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, EvoUsrPreferences.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 );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,448 @@
|
|||||||
|
/*
|
||||||
|
* FilCategorias.java
|
||||||
|
*
|
||||||
|
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||||
|
*
|
||||||
|
* Use but DON'T TOUCH
|
||||||
|
* -> (can't touch this)
|
||||||
|
*/
|
||||||
|
package db.data.siprp_local.inner;
|
||||||
|
|
||||||
|
|
||||||
|
public class FilCategorias 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( FilCategorias.ID, FilCategorias.ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( FilCategorias.ID_FULL, FilCategorias.ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( FilCategorias.CODIGO, FilCategorias.CODIGO_INDEX );
|
||||||
|
FIELD_INDEXES.put( FilCategorias.CODIGO_FULL, FilCategorias.CODIGO_INDEX );
|
||||||
|
FIELD_INDEXES.put( FilCategorias.DESCRICAO, FilCategorias.DESCRICAO_INDEX );
|
||||||
|
FIELD_INDEXES.put( FilCategorias.DESCRICAO_FULL, FilCategorias.DESCRICAO_INDEX );
|
||||||
|
FIELD_INDEXES.put( FilCategorias.ORDEM, FilCategorias.ORDEM_INDEX );
|
||||||
|
FIELD_INDEXES.put( FilCategorias.ORDEM_FULL, FilCategorias.ORDEM_INDEX );
|
||||||
|
FIELD_INDEXES.put( FilCategorias.DELETED_STAMP, FilCategorias.DELETED_STAMP_INDEX );
|
||||||
|
FIELD_INDEXES.put( FilCategorias.DELETED_STAMP_FULL, FilCategorias.DELETED_STAMP_INDEX );
|
||||||
|
}
|
||||||
|
|
||||||
|
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||||
|
|
||||||
|
|
||||||
|
public static final String TABLENAME = "fil_categorias";
|
||||||
|
|
||||||
|
|
||||||
|
public static final String CLASS_IDENTIFIER = "db.data.siprp_local.inner.fil_categorias";
|
||||||
|
|
||||||
|
public static final int _INVALID__INDEX = -1;
|
||||||
|
public static final String ID = "id";
|
||||||
|
public static final String ID_FULL = "fil_categorias.id";
|
||||||
|
public static final int ID_INDEX = 0;
|
||||||
|
public static final String CODIGO = "codigo";
|
||||||
|
public static final String CODIGO_FULL = "fil_categorias.codigo";
|
||||||
|
public static final int CODIGO_INDEX = 1;
|
||||||
|
public static final String DESCRICAO = "descricao";
|
||||||
|
public static final String DESCRICAO_FULL = "fil_categorias.descricao";
|
||||||
|
public static final int DESCRICAO_INDEX = 2;
|
||||||
|
public static final String ORDEM = "ordem";
|
||||||
|
public static final String ORDEM_FULL = "fil_categorias.ordem";
|
||||||
|
public static final int ORDEM_INDEX = 3;
|
||||||
|
public static final String DELETED_STAMP = "deleted_stamp";
|
||||||
|
public static final String DELETED_STAMP_FULL = "fil_categorias.deleted_stamp";
|
||||||
|
public static final int DELETED_STAMP_INDEX = 4;
|
||||||
|
|
||||||
|
public static final String FIELD_NAMES[] = new String[]{
|
||||||
|
CODIGO, DESCRICAO, ORDEM, DELETED_STAMP, };
|
||||||
|
|
||||||
|
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||||
|
TABLENAME + "." + CODIGO, TABLENAME + "." + DESCRICAO, TABLENAME + "." + ORDEM, TABLENAME + "." + DELETED_STAMP, };
|
||||||
|
|
||||||
|
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||||
|
ID, CODIGO, DESCRICAO, ORDEM, DELETED_STAMP, };
|
||||||
|
|
||||||
|
|
||||||
|
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||||
|
ID, };
|
||||||
|
|
||||||
|
|
||||||
|
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||||
|
ID, CODIGO, DESCRICAO, ORDEM, DELETED_STAMP, };
|
||||||
|
|
||||||
|
private Integer id;
|
||||||
|
private String codigo;
|
||||||
|
private String descricao;
|
||||||
|
private Integer ordem;
|
||||||
|
private java.sql.Timestamp deleted_stamp;
|
||||||
|
|
||||||
|
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||||
|
|
||||||
|
public FilCategorias()
|
||||||
|
{
|
||||||
|
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
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
preProcess( ID, id );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.id = id;
|
||||||
|
LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
|
||||||
|
}
|
||||||
|
|
||||||
|
public java.util.List<db.data.siprp_local.outer.FilFileEmpresaData>fromFilFileEmpresa_categoria_id()
|
||||||
|
{
|
||||||
|
java.util.List<db.data.siprp_local.outer.FilFileEmpresaData> result = new java.util.LinkedList< db.data.siprp_local.outer.FilFileEmpresaData >();
|
||||||
|
if ( getPrimaryKey() != null )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
result = fromReference( db.data.siprp_local.outer.FilFileEmpresaData.class , getPrimaryKey().getMap().get("id"), "categoria_id" );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
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 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
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
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 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
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
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 java.sql.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( java.sql.Timestamp deleted_stamp )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
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 Object get( String fieldName )
|
||||||
|
{
|
||||||
|
Object value = null;
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case FilCategorias.ID_INDEX:
|
||||||
|
value = getId();
|
||||||
|
break;
|
||||||
|
case FilCategorias.CODIGO_INDEX:
|
||||||
|
value = getCodigo();
|
||||||
|
break;
|
||||||
|
case FilCategorias.DESCRICAO_INDEX:
|
||||||
|
value = getDescricao();
|
||||||
|
break;
|
||||||
|
case FilCategorias.ORDEM_INDEX:
|
||||||
|
value = getOrdem();
|
||||||
|
break;
|
||||||
|
case FilCategorias.DELETED_STAMP_INDEX:
|
||||||
|
value = getDeleted_stamp();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object rawGet( String fieldName )
|
||||||
|
{
|
||||||
|
Object value = null;
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case FilCategorias.ID_INDEX:
|
||||||
|
value = this.id;
|
||||||
|
break;
|
||||||
|
case FilCategorias.CODIGO_INDEX:
|
||||||
|
value = this.codigo;
|
||||||
|
break;
|
||||||
|
case FilCategorias.DESCRICAO_INDEX:
|
||||||
|
value = this.descricao;
|
||||||
|
break;
|
||||||
|
case FilCategorias.ORDEM_INDEX:
|
||||||
|
value = this.ordem;
|
||||||
|
break;
|
||||||
|
case FilCategorias.DELETED_STAMP_INDEX:
|
||||||
|
value = this.deleted_stamp;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void set( String fieldName, Object value )
|
||||||
|
{
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case FilCategorias.ID_INDEX:
|
||||||
|
setId( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case FilCategorias.CODIGO_INDEX:
|
||||||
|
setCodigo( ( String ) value );
|
||||||
|
break;
|
||||||
|
case FilCategorias.DESCRICAO_INDEX:
|
||||||
|
setDescricao( ( String ) value );
|
||||||
|
break;
|
||||||
|
case FilCategorias.ORDEM_INDEX:
|
||||||
|
setOrdem( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case FilCategorias.DELETED_STAMP_INDEX:
|
||||||
|
setDeleted_stamp( ( java.sql.Timestamp ) value );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void rawSet( String fieldName, Object value )
|
||||||
|
{
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case FilCategorias.ID_INDEX:
|
||||||
|
this.id = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case FilCategorias.CODIGO_INDEX:
|
||||||
|
this.codigo = ( String ) value;
|
||||||
|
break;
|
||||||
|
case FilCategorias.DESCRICAO_INDEX:
|
||||||
|
this.descricao = ( String ) value;
|
||||||
|
break;
|
||||||
|
case FilCategorias.ORDEM_INDEX:
|
||||||
|
this.ordem = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case FilCategorias.DELETED_STAMP_INDEX:
|
||||||
|
this.deleted_stamp = ( java.sql.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 FilCategorias.ID_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case FilCategorias.CODIGO_INDEX:
|
||||||
|
theClass = String.class;
|
||||||
|
break;
|
||||||
|
case FilCategorias.DESCRICAO_INDEX:
|
||||||
|
theClass = String.class;
|
||||||
|
break;
|
||||||
|
case FilCategorias.ORDEM_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case FilCategorias.DELETED_STAMP_INDEX:
|
||||||
|
theClass = java.sql.Timestamp.class;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return theClass;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getFieldIndex( String fieldName )
|
||||||
|
{
|
||||||
|
Integer index = FIELD_INDEXES.get( fieldName );
|
||||||
|
return index != null ? index : FilCategorias._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, FilCategorias.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 );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,531 @@
|
|||||||
|
/*
|
||||||
|
* FilFileEmpresa.java
|
||||||
|
*
|
||||||
|
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||||
|
*
|
||||||
|
* Use but DON'T TOUCH
|
||||||
|
* -> (can't touch this)
|
||||||
|
*/
|
||||||
|
package db.data.siprp_local.inner;
|
||||||
|
|
||||||
|
|
||||||
|
public class FilFileEmpresa 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( FilFileEmpresa.ID, FilFileEmpresa.ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( FilFileEmpresa.ID_FULL, FilFileEmpresa.ID_INDEX );
|
||||||
|
com.evolute.entity.evo.EvoDataObject.register( FilFileEmpresa.CLASS_IDENTIFIER, FilFileEmpresa.FILE_ID, FilFileEmpresa.TO_FILE_ID );
|
||||||
|
FIELD_INDEXES.put( FilFileEmpresa.FILE_ID, FilFileEmpresa.FILE_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( FilFileEmpresa.FILE_ID_FULL, FilFileEmpresa.FILE_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( FilFileEmpresa.TO_FILE_ID, FilFileEmpresa.TO_FILE_ID_INDEX );
|
||||||
|
com.evolute.entity.evo.EvoDataObject.register( FilFileEmpresa.CLASS_IDENTIFIER, FilFileEmpresa.EMPRESA_ID, FilFileEmpresa.TO_EMPRESA_ID );
|
||||||
|
FIELD_INDEXES.put( FilFileEmpresa.EMPRESA_ID, FilFileEmpresa.EMPRESA_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( FilFileEmpresa.EMPRESA_ID_FULL, FilFileEmpresa.EMPRESA_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( FilFileEmpresa.TO_EMPRESA_ID, FilFileEmpresa.TO_EMPRESA_ID_INDEX );
|
||||||
|
com.evolute.entity.evo.EvoDataObject.register( FilFileEmpresa.CLASS_IDENTIFIER, FilFileEmpresa.CATEGORIA_ID, FilFileEmpresa.TO_CATEGORIA_ID );
|
||||||
|
FIELD_INDEXES.put( FilFileEmpresa.CATEGORIA_ID, FilFileEmpresa.CATEGORIA_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( FilFileEmpresa.CATEGORIA_ID_FULL, FilFileEmpresa.CATEGORIA_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( FilFileEmpresa.TO_CATEGORIA_ID, FilFileEmpresa.TO_CATEGORIA_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 ForeignKeyfile_idTofil_file =
|
||||||
|
new com.evolute.entity.ForeignKey( FilFileEmpresa.class, FilFileEmpresa.FILE_ID, db.data.siprp_local.outer.FilFileData.class, db.data.siprp_local.outer.FilFileData.ID );
|
||||||
|
|
||||||
|
public static final com.evolute.entity.ForeignKey ForeignKeyempresa_idToempresas =
|
||||||
|
new com.evolute.entity.ForeignKey( FilFileEmpresa.class, FilFileEmpresa.EMPRESA_ID, db.data.siprp_local.outer.EmpresasData.class, db.data.siprp_local.outer.EmpresasData.ID );
|
||||||
|
|
||||||
|
public static final com.evolute.entity.ForeignKey ForeignKeycategoria_idTofil_categorias =
|
||||||
|
new com.evolute.entity.ForeignKey( FilFileEmpresa.class, FilFileEmpresa.CATEGORIA_ID, db.data.siprp_local.outer.FilCategoriasData.class, db.data.siprp_local.outer.FilCategoriasData.ID );
|
||||||
|
|
||||||
|
public static final String TABLENAME = "fil_file_empresa";
|
||||||
|
|
||||||
|
|
||||||
|
public static final String CLASS_IDENTIFIER = "db.data.siprp_local.inner.fil_file_empresa";
|
||||||
|
|
||||||
|
public static final int _INVALID__INDEX = -1;
|
||||||
|
public static final String ID = "id";
|
||||||
|
public static final String ID_FULL = "fil_file_empresa.id";
|
||||||
|
public static final int ID_INDEX = 0;
|
||||||
|
public static final String FILE_ID = "file_id";
|
||||||
|
public static final String FILE_ID_FULL = "fil_file_empresa.file_id";
|
||||||
|
public static final int FILE_ID_INDEX = 1;
|
||||||
|
public static final String TO_FILE_ID = "to_file_id";
|
||||||
|
public static final String TO_FILE_ID_FULL = "fil_file_empresa.to_file_id";
|
||||||
|
public static final int TO_FILE_ID_INDEX = 2;
|
||||||
|
public static final String EMPRESA_ID = "empresa_id";
|
||||||
|
public static final String EMPRESA_ID_FULL = "fil_file_empresa.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 = "fil_file_empresa.to_empresa_id";
|
||||||
|
public static final int TO_EMPRESA_ID_INDEX = 4;
|
||||||
|
public static final String CATEGORIA_ID = "categoria_id";
|
||||||
|
public static final String CATEGORIA_ID_FULL = "fil_file_empresa.categoria_id";
|
||||||
|
public static final int CATEGORIA_ID_INDEX = 5;
|
||||||
|
public static final String TO_CATEGORIA_ID = "to_categoria_id";
|
||||||
|
public static final String TO_CATEGORIA_ID_FULL = "fil_file_empresa.to_categoria_id";
|
||||||
|
public static final int TO_CATEGORIA_ID_INDEX = 6;
|
||||||
|
|
||||||
|
public static final String FIELD_NAMES[] = new String[]{
|
||||||
|
FILE_ID, TO_FILE_ID, EMPRESA_ID, TO_EMPRESA_ID, CATEGORIA_ID, TO_CATEGORIA_ID, };
|
||||||
|
|
||||||
|
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||||
|
TABLENAME + "." + FILE_ID, TABLENAME + "." + TO_FILE_ID, TABLENAME + "." + EMPRESA_ID, TABLENAME + "." + TO_EMPRESA_ID, TABLENAME + "." + CATEGORIA_ID, TABLENAME + "." + TO_CATEGORIA_ID, };
|
||||||
|
|
||||||
|
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||||
|
ID, FILE_ID, EMPRESA_ID, CATEGORIA_ID, };
|
||||||
|
|
||||||
|
|
||||||
|
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||||
|
ID, };
|
||||||
|
|
||||||
|
|
||||||
|
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||||
|
ID, FILE_ID, EMPRESA_ID, CATEGORIA_ID, };
|
||||||
|
|
||||||
|
private Integer id;
|
||||||
|
private Integer file_id;
|
||||||
|
private db.data.siprp_local.outer.FilFileData to_file_id;
|
||||||
|
private Integer empresa_id;
|
||||||
|
private db.data.siprp_local.outer.EmpresasData to_empresa_id;
|
||||||
|
private Integer categoria_id;
|
||||||
|
private db.data.siprp_local.outer.FilCategoriasData to_categoria_id;
|
||||||
|
|
||||||
|
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||||
|
|
||||||
|
public FilFileEmpresa()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
dirtyProperties = new boolean[]{ false, false, false,
|
||||||
|
false, false, false, false };
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getId()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLastAccess( System.currentTimeMillis() );
|
||||||
|
prepare( ID );
|
||||||
|
}
|
||||||
|
catch( java.lang.Exception ex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( ex );
|
||||||
|
}
|
||||||
|
return this.id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId( Integer id )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
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 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
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
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 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
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
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 getCategoria_id()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLastAccess( System.currentTimeMillis() );
|
||||||
|
prepare( CATEGORIA_ID );
|
||||||
|
}
|
||||||
|
catch( java.lang.Exception ex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( ex );
|
||||||
|
}
|
||||||
|
return this.categoria_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCategoria_id( Integer categoria_id )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
preProcess( CATEGORIA_ID, categoria_id );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.categoria_id = categoria_id;
|
||||||
|
LAZY_LOADED_OBJECTS.put( CATEGORIA_ID, Boolean.TRUE );
|
||||||
|
}
|
||||||
|
|
||||||
|
public db.data.siprp_local.outer.FilCategoriasData toCategoria_id()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
prepare( TO_CATEGORIA_ID );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
return this.to_categoria_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setToCategoria_id( db.data.siprp_local.outer.FilCategoriasData to_categoria_id )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
preProcess( TO_CATEGORIA_ID, to_categoria_id );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.to_categoria_id = to_categoria_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object get( String fieldName )
|
||||||
|
{
|
||||||
|
Object value = null;
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case FilFileEmpresa.ID_INDEX:
|
||||||
|
value = getId();
|
||||||
|
break;
|
||||||
|
case FilFileEmpresa.FILE_ID_INDEX:
|
||||||
|
value = getFile_id();
|
||||||
|
break;
|
||||||
|
case FilFileEmpresa.TO_FILE_ID_INDEX:
|
||||||
|
value = toFile_id();
|
||||||
|
break;
|
||||||
|
case FilFileEmpresa.EMPRESA_ID_INDEX:
|
||||||
|
value = getEmpresa_id();
|
||||||
|
break;
|
||||||
|
case FilFileEmpresa.TO_EMPRESA_ID_INDEX:
|
||||||
|
value = toEmpresa_id();
|
||||||
|
break;
|
||||||
|
case FilFileEmpresa.CATEGORIA_ID_INDEX:
|
||||||
|
value = getCategoria_id();
|
||||||
|
break;
|
||||||
|
case FilFileEmpresa.TO_CATEGORIA_ID_INDEX:
|
||||||
|
value = toCategoria_id();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object rawGet( String fieldName )
|
||||||
|
{
|
||||||
|
Object value = null;
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case FilFileEmpresa.ID_INDEX:
|
||||||
|
value = this.id;
|
||||||
|
break;
|
||||||
|
case FilFileEmpresa.FILE_ID_INDEX:
|
||||||
|
value = this.file_id;
|
||||||
|
break;
|
||||||
|
case FilFileEmpresa.TO_FILE_ID_INDEX:
|
||||||
|
value = this.to_file_id;
|
||||||
|
break;
|
||||||
|
case FilFileEmpresa.EMPRESA_ID_INDEX:
|
||||||
|
value = this.empresa_id;
|
||||||
|
break;
|
||||||
|
case FilFileEmpresa.TO_EMPRESA_ID_INDEX:
|
||||||
|
value = this.to_empresa_id;
|
||||||
|
break;
|
||||||
|
case FilFileEmpresa.CATEGORIA_ID_INDEX:
|
||||||
|
value = this.categoria_id;
|
||||||
|
break;
|
||||||
|
case FilFileEmpresa.TO_CATEGORIA_ID_INDEX:
|
||||||
|
value = this.to_categoria_id;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void set( String fieldName, Object value )
|
||||||
|
{
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case FilFileEmpresa.ID_INDEX:
|
||||||
|
setId( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case FilFileEmpresa.FILE_ID_INDEX:
|
||||||
|
setFile_id( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case FilFileEmpresa.TO_FILE_ID_INDEX:
|
||||||
|
setToFile_id( ( db.data.siprp_local.outer.FilFileData ) value );
|
||||||
|
break;
|
||||||
|
case FilFileEmpresa.EMPRESA_ID_INDEX:
|
||||||
|
setEmpresa_id( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case FilFileEmpresa.TO_EMPRESA_ID_INDEX:
|
||||||
|
setToEmpresa_id( ( db.data.siprp_local.outer.EmpresasData ) value );
|
||||||
|
break;
|
||||||
|
case FilFileEmpresa.CATEGORIA_ID_INDEX:
|
||||||
|
setCategoria_id( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case FilFileEmpresa.TO_CATEGORIA_ID_INDEX:
|
||||||
|
setToCategoria_id( ( db.data.siprp_local.outer.FilCategoriasData ) value );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void rawSet( String fieldName, Object value )
|
||||||
|
{
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case FilFileEmpresa.ID_INDEX:
|
||||||
|
this.id = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case FilFileEmpresa.FILE_ID_INDEX:
|
||||||
|
this.file_id = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case FilFileEmpresa.TO_FILE_ID_INDEX:
|
||||||
|
this.to_file_id = ( db.data.siprp_local.outer.FilFileData ) value;
|
||||||
|
break;
|
||||||
|
case FilFileEmpresa.EMPRESA_ID_INDEX:
|
||||||
|
this.empresa_id = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case FilFileEmpresa.TO_EMPRESA_ID_INDEX:
|
||||||
|
this.to_empresa_id = ( db.data.siprp_local.outer.EmpresasData ) value;
|
||||||
|
break;
|
||||||
|
case FilFileEmpresa.CATEGORIA_ID_INDEX:
|
||||||
|
this.categoria_id = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case FilFileEmpresa.TO_CATEGORIA_ID_INDEX:
|
||||||
|
this.to_categoria_id = ( db.data.siprp_local.outer.FilCategoriasData ) 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 FilFileEmpresa.ID_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case FilFileEmpresa.FILE_ID_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case FilFileEmpresa.TO_FILE_ID_INDEX:
|
||||||
|
theClass = db.data.siprp_local.outer.FilFileData.class;
|
||||||
|
break;
|
||||||
|
case FilFileEmpresa.EMPRESA_ID_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case FilFileEmpresa.TO_EMPRESA_ID_INDEX:
|
||||||
|
theClass = db.data.siprp_local.outer.EmpresasData.class;
|
||||||
|
break;
|
||||||
|
case FilFileEmpresa.CATEGORIA_ID_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case FilFileEmpresa.TO_CATEGORIA_ID_INDEX:
|
||||||
|
theClass = db.data.siprp_local.outer.FilCategoriasData.class;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return theClass;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getFieldIndex( String fieldName )
|
||||||
|
{
|
||||||
|
Integer index = FIELD_INDEXES.get( fieldName );
|
||||||
|
return index != null ? index : FilFileEmpresa._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, FilFileEmpresa.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 );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,431 @@
|
|||||||
|
/*
|
||||||
|
* FilFileMarcacoesEstabelecimento.java
|
||||||
|
*
|
||||||
|
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||||
|
*
|
||||||
|
* Use but DON'T TOUCH
|
||||||
|
* -> (can't touch this)
|
||||||
|
*/
|
||||||
|
package db.data.siprp_local.inner;
|
||||||
|
|
||||||
|
|
||||||
|
public class FilFileMarcacoesEstabelecimento 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( FilFileMarcacoesEstabelecimento.ID, FilFileMarcacoesEstabelecimento.ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( FilFileMarcacoesEstabelecimento.ID_FULL, FilFileMarcacoesEstabelecimento.ID_INDEX );
|
||||||
|
com.evolute.entity.evo.EvoDataObject.register( FilFileMarcacoesEstabelecimento.CLASS_IDENTIFIER, FilFileMarcacoesEstabelecimento.FILE_ID, FilFileMarcacoesEstabelecimento.TO_FILE_ID );
|
||||||
|
FIELD_INDEXES.put( FilFileMarcacoesEstabelecimento.FILE_ID, FilFileMarcacoesEstabelecimento.FILE_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( FilFileMarcacoesEstabelecimento.FILE_ID_FULL, FilFileMarcacoesEstabelecimento.FILE_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( FilFileMarcacoesEstabelecimento.TO_FILE_ID, FilFileMarcacoesEstabelecimento.TO_FILE_ID_INDEX );
|
||||||
|
com.evolute.entity.evo.EvoDataObject.register( FilFileMarcacoesEstabelecimento.CLASS_IDENTIFIER, FilFileMarcacoesEstabelecimento.MARCACAO_ID, FilFileMarcacoesEstabelecimento.TO_MARCACAO_ID );
|
||||||
|
FIELD_INDEXES.put( FilFileMarcacoesEstabelecimento.MARCACAO_ID, FilFileMarcacoesEstabelecimento.MARCACAO_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( FilFileMarcacoesEstabelecimento.MARCACAO_ID_FULL, FilFileMarcacoesEstabelecimento.MARCACAO_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( FilFileMarcacoesEstabelecimento.TO_MARCACAO_ID, FilFileMarcacoesEstabelecimento.TO_MARCACAO_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 ForeignKeyfile_idTofil_file =
|
||||||
|
new com.evolute.entity.ForeignKey( FilFileMarcacoesEstabelecimento.class, FilFileMarcacoesEstabelecimento.FILE_ID, db.data.siprp_local.outer.FilFileData.class, db.data.siprp_local.outer.FilFileData.ID );
|
||||||
|
|
||||||
|
public static final com.evolute.entity.ForeignKey ForeignKeymarcacao_idTomarcacoes_estabelecimento =
|
||||||
|
new com.evolute.entity.ForeignKey( FilFileMarcacoesEstabelecimento.class, FilFileMarcacoesEstabelecimento.MARCACAO_ID, db.data.siprp_local.outer.MarcacoesEstabelecimentoData.class, db.data.siprp_local.outer.MarcacoesEstabelecimentoData.ID );
|
||||||
|
|
||||||
|
public static final String TABLENAME = "fil_file_marcacoes_estabelecimento";
|
||||||
|
|
||||||
|
|
||||||
|
public static final String CLASS_IDENTIFIER = "db.data.siprp_local.inner.fil_file_marcacoes_estabelecimento";
|
||||||
|
|
||||||
|
public static final int _INVALID__INDEX = -1;
|
||||||
|
public static final String ID = "id";
|
||||||
|
public static final String ID_FULL = "fil_file_marcacoes_estabelecimento.id";
|
||||||
|
public static final int ID_INDEX = 0;
|
||||||
|
public static final String FILE_ID = "file_id";
|
||||||
|
public static final String FILE_ID_FULL = "fil_file_marcacoes_estabelecimento.file_id";
|
||||||
|
public static final int FILE_ID_INDEX = 1;
|
||||||
|
public static final String TO_FILE_ID = "to_file_id";
|
||||||
|
public static final String TO_FILE_ID_FULL = "fil_file_marcacoes_estabelecimento.to_file_id";
|
||||||
|
public static final int TO_FILE_ID_INDEX = 2;
|
||||||
|
public static final String MARCACAO_ID = "marcacao_id";
|
||||||
|
public static final String MARCACAO_ID_FULL = "fil_file_marcacoes_estabelecimento.marcacao_id";
|
||||||
|
public static final int MARCACAO_ID_INDEX = 3;
|
||||||
|
public static final String TO_MARCACAO_ID = "to_marcacao_id";
|
||||||
|
public static final String TO_MARCACAO_ID_FULL = "fil_file_marcacoes_estabelecimento.to_marcacao_id";
|
||||||
|
public static final int TO_MARCACAO_ID_INDEX = 4;
|
||||||
|
|
||||||
|
public static final String FIELD_NAMES[] = new String[]{
|
||||||
|
FILE_ID, TO_FILE_ID, MARCACAO_ID, TO_MARCACAO_ID, };
|
||||||
|
|
||||||
|
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||||
|
TABLENAME + "." + FILE_ID, TABLENAME + "." + TO_FILE_ID, TABLENAME + "." + MARCACAO_ID, TABLENAME + "." + TO_MARCACAO_ID, };
|
||||||
|
|
||||||
|
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||||
|
ID, FILE_ID, MARCACAO_ID, };
|
||||||
|
|
||||||
|
|
||||||
|
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||||
|
ID, };
|
||||||
|
|
||||||
|
|
||||||
|
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||||
|
ID, FILE_ID, MARCACAO_ID, };
|
||||||
|
|
||||||
|
private Integer id;
|
||||||
|
private Integer file_id;
|
||||||
|
private db.data.siprp_local.outer.FilFileData to_file_id;
|
||||||
|
private Integer marcacao_id;
|
||||||
|
private db.data.siprp_local.outer.MarcacoesEstabelecimentoData to_marcacao_id;
|
||||||
|
|
||||||
|
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||||
|
|
||||||
|
public FilFileMarcacoesEstabelecimento()
|
||||||
|
{
|
||||||
|
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
|
||||||
|
{
|
||||||
|
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 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
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
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 Integer getMarcacao_id()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLastAccess( System.currentTimeMillis() );
|
||||||
|
prepare( MARCACAO_ID );
|
||||||
|
}
|
||||||
|
catch( java.lang.Exception ex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( ex );
|
||||||
|
}
|
||||||
|
return this.marcacao_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMarcacao_id( Integer marcacao_id )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
preProcess( MARCACAO_ID, marcacao_id );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.marcacao_id = marcacao_id;
|
||||||
|
LAZY_LOADED_OBJECTS.put( MARCACAO_ID, Boolean.TRUE );
|
||||||
|
}
|
||||||
|
|
||||||
|
public db.data.siprp_local.outer.MarcacoesEstabelecimentoData toMarcacao_id()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
prepare( TO_MARCACAO_ID );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
return this.to_marcacao_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setToMarcacao_id( db.data.siprp_local.outer.MarcacoesEstabelecimentoData to_marcacao_id )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
preProcess( TO_MARCACAO_ID, to_marcacao_id );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.to_marcacao_id = to_marcacao_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object get( String fieldName )
|
||||||
|
{
|
||||||
|
Object value = null;
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case FilFileMarcacoesEstabelecimento.ID_INDEX:
|
||||||
|
value = getId();
|
||||||
|
break;
|
||||||
|
case FilFileMarcacoesEstabelecimento.FILE_ID_INDEX:
|
||||||
|
value = getFile_id();
|
||||||
|
break;
|
||||||
|
case FilFileMarcacoesEstabelecimento.TO_FILE_ID_INDEX:
|
||||||
|
value = toFile_id();
|
||||||
|
break;
|
||||||
|
case FilFileMarcacoesEstabelecimento.MARCACAO_ID_INDEX:
|
||||||
|
value = getMarcacao_id();
|
||||||
|
break;
|
||||||
|
case FilFileMarcacoesEstabelecimento.TO_MARCACAO_ID_INDEX:
|
||||||
|
value = toMarcacao_id();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object rawGet( String fieldName )
|
||||||
|
{
|
||||||
|
Object value = null;
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case FilFileMarcacoesEstabelecimento.ID_INDEX:
|
||||||
|
value = this.id;
|
||||||
|
break;
|
||||||
|
case FilFileMarcacoesEstabelecimento.FILE_ID_INDEX:
|
||||||
|
value = this.file_id;
|
||||||
|
break;
|
||||||
|
case FilFileMarcacoesEstabelecimento.TO_FILE_ID_INDEX:
|
||||||
|
value = this.to_file_id;
|
||||||
|
break;
|
||||||
|
case FilFileMarcacoesEstabelecimento.MARCACAO_ID_INDEX:
|
||||||
|
value = this.marcacao_id;
|
||||||
|
break;
|
||||||
|
case FilFileMarcacoesEstabelecimento.TO_MARCACAO_ID_INDEX:
|
||||||
|
value = this.to_marcacao_id;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void set( String fieldName, Object value )
|
||||||
|
{
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case FilFileMarcacoesEstabelecimento.ID_INDEX:
|
||||||
|
setId( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case FilFileMarcacoesEstabelecimento.FILE_ID_INDEX:
|
||||||
|
setFile_id( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case FilFileMarcacoesEstabelecimento.TO_FILE_ID_INDEX:
|
||||||
|
setToFile_id( ( db.data.siprp_local.outer.FilFileData ) value );
|
||||||
|
break;
|
||||||
|
case FilFileMarcacoesEstabelecimento.MARCACAO_ID_INDEX:
|
||||||
|
setMarcacao_id( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case FilFileMarcacoesEstabelecimento.TO_MARCACAO_ID_INDEX:
|
||||||
|
setToMarcacao_id( ( db.data.siprp_local.outer.MarcacoesEstabelecimentoData ) value );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void rawSet( String fieldName, Object value )
|
||||||
|
{
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case FilFileMarcacoesEstabelecimento.ID_INDEX:
|
||||||
|
this.id = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case FilFileMarcacoesEstabelecimento.FILE_ID_INDEX:
|
||||||
|
this.file_id = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case FilFileMarcacoesEstabelecimento.TO_FILE_ID_INDEX:
|
||||||
|
this.to_file_id = ( db.data.siprp_local.outer.FilFileData ) value;
|
||||||
|
break;
|
||||||
|
case FilFileMarcacoesEstabelecimento.MARCACAO_ID_INDEX:
|
||||||
|
this.marcacao_id = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case FilFileMarcacoesEstabelecimento.TO_MARCACAO_ID_INDEX:
|
||||||
|
this.to_marcacao_id = ( db.data.siprp_local.outer.MarcacoesEstabelecimentoData ) 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 FilFileMarcacoesEstabelecimento.ID_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case FilFileMarcacoesEstabelecimento.FILE_ID_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case FilFileMarcacoesEstabelecimento.TO_FILE_ID_INDEX:
|
||||||
|
theClass = db.data.siprp_local.outer.FilFileData.class;
|
||||||
|
break;
|
||||||
|
case FilFileMarcacoesEstabelecimento.MARCACAO_ID_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case FilFileMarcacoesEstabelecimento.TO_MARCACAO_ID_INDEX:
|
||||||
|
theClass = db.data.siprp_local.outer.MarcacoesEstabelecimentoData.class;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return theClass;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getFieldIndex( String fieldName )
|
||||||
|
{
|
||||||
|
Integer index = FIELD_INDEXES.get( fieldName );
|
||||||
|
return index != null ? index : FilFileMarcacoesEstabelecimento._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, FilFileMarcacoesEstabelecimento.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 );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,448 @@
|
|||||||
|
/*
|
||||||
|
* MedVacinaTipo.java
|
||||||
|
*
|
||||||
|
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||||
|
*
|
||||||
|
* Use but DON'T TOUCH
|
||||||
|
* -> (can't touch this)
|
||||||
|
*/
|
||||||
|
package db.data.siprp_local.inner;
|
||||||
|
|
||||||
|
|
||||||
|
public class MedVacinaTipo 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( MedVacinaTipo.ID, MedVacinaTipo.ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( MedVacinaTipo.ID_FULL, MedVacinaTipo.ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( MedVacinaTipo.CODIGO, MedVacinaTipo.CODIGO_INDEX );
|
||||||
|
FIELD_INDEXES.put( MedVacinaTipo.CODIGO_FULL, MedVacinaTipo.CODIGO_INDEX );
|
||||||
|
FIELD_INDEXES.put( MedVacinaTipo.DESCRICAO, MedVacinaTipo.DESCRICAO_INDEX );
|
||||||
|
FIELD_INDEXES.put( MedVacinaTipo.DESCRICAO_FULL, MedVacinaTipo.DESCRICAO_INDEX );
|
||||||
|
FIELD_INDEXES.put( MedVacinaTipo.ORDEM, MedVacinaTipo.ORDEM_INDEX );
|
||||||
|
FIELD_INDEXES.put( MedVacinaTipo.ORDEM_FULL, MedVacinaTipo.ORDEM_INDEX );
|
||||||
|
FIELD_INDEXES.put( MedVacinaTipo.DELETED_STAMP, MedVacinaTipo.DELETED_STAMP_INDEX );
|
||||||
|
FIELD_INDEXES.put( MedVacinaTipo.DELETED_STAMP_FULL, MedVacinaTipo.DELETED_STAMP_INDEX );
|
||||||
|
}
|
||||||
|
|
||||||
|
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||||
|
|
||||||
|
|
||||||
|
public static final String TABLENAME = "med_vacina_tipo";
|
||||||
|
|
||||||
|
|
||||||
|
public static final String CLASS_IDENTIFIER = "db.data.siprp_local.inner.med_vacina_tipo";
|
||||||
|
|
||||||
|
public static final int _INVALID__INDEX = -1;
|
||||||
|
public static final String ID = "id";
|
||||||
|
public static final String ID_FULL = "med_vacina_tipo.id";
|
||||||
|
public static final int ID_INDEX = 0;
|
||||||
|
public static final String CODIGO = "codigo";
|
||||||
|
public static final String CODIGO_FULL = "med_vacina_tipo.codigo";
|
||||||
|
public static final int CODIGO_INDEX = 1;
|
||||||
|
public static final String DESCRICAO = "descricao";
|
||||||
|
public static final String DESCRICAO_FULL = "med_vacina_tipo.descricao";
|
||||||
|
public static final int DESCRICAO_INDEX = 2;
|
||||||
|
public static final String ORDEM = "ordem";
|
||||||
|
public static final String ORDEM_FULL = "med_vacina_tipo.ordem";
|
||||||
|
public static final int ORDEM_INDEX = 3;
|
||||||
|
public static final String DELETED_STAMP = "deleted_stamp";
|
||||||
|
public static final String DELETED_STAMP_FULL = "med_vacina_tipo.deleted_stamp";
|
||||||
|
public static final int DELETED_STAMP_INDEX = 4;
|
||||||
|
|
||||||
|
public static final String FIELD_NAMES[] = new String[]{
|
||||||
|
CODIGO, DESCRICAO, ORDEM, DELETED_STAMP, };
|
||||||
|
|
||||||
|
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||||
|
TABLENAME + "." + CODIGO, TABLENAME + "." + DESCRICAO, TABLENAME + "." + ORDEM, TABLENAME + "." + DELETED_STAMP, };
|
||||||
|
|
||||||
|
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||||
|
ID, CODIGO, DESCRICAO, ORDEM, DELETED_STAMP, };
|
||||||
|
|
||||||
|
|
||||||
|
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||||
|
ID, };
|
||||||
|
|
||||||
|
|
||||||
|
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||||
|
ID, CODIGO, DESCRICAO, ORDEM, DELETED_STAMP, };
|
||||||
|
|
||||||
|
private Integer id;
|
||||||
|
private String codigo;
|
||||||
|
private String descricao;
|
||||||
|
private Integer ordem;
|
||||||
|
private java.sql.Timestamp deleted_stamp;
|
||||||
|
|
||||||
|
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||||
|
|
||||||
|
public MedVacinaTipo()
|
||||||
|
{
|
||||||
|
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
|
||||||
|
{
|
||||||
|
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 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
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
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 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
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
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 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
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
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 java.util.List<db.data.siprp_local.outer.AptOutrasVacinaData>fromAptOutrasVacina_vacina_tipo()
|
||||||
|
{
|
||||||
|
java.util.List<db.data.siprp_local.outer.AptOutrasVacinaData> result = new java.util.LinkedList< db.data.siprp_local.outer.AptOutrasVacinaData >();
|
||||||
|
if ( getPrimaryKey() != null )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
result = fromReference( db.data.siprp_local.outer.AptOutrasVacinaData.class , getPrimaryKey().getMap().get("ordem"), "vacina_tipo" );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
public java.sql.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( java.sql.Timestamp deleted_stamp )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
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 Object get( String fieldName )
|
||||||
|
{
|
||||||
|
Object value = null;
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case MedVacinaTipo.ID_INDEX:
|
||||||
|
value = getId();
|
||||||
|
break;
|
||||||
|
case MedVacinaTipo.CODIGO_INDEX:
|
||||||
|
value = getCodigo();
|
||||||
|
break;
|
||||||
|
case MedVacinaTipo.DESCRICAO_INDEX:
|
||||||
|
value = getDescricao();
|
||||||
|
break;
|
||||||
|
case MedVacinaTipo.ORDEM_INDEX:
|
||||||
|
value = getOrdem();
|
||||||
|
break;
|
||||||
|
case MedVacinaTipo.DELETED_STAMP_INDEX:
|
||||||
|
value = getDeleted_stamp();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object rawGet( String fieldName )
|
||||||
|
{
|
||||||
|
Object value = null;
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case MedVacinaTipo.ID_INDEX:
|
||||||
|
value = this.id;
|
||||||
|
break;
|
||||||
|
case MedVacinaTipo.CODIGO_INDEX:
|
||||||
|
value = this.codigo;
|
||||||
|
break;
|
||||||
|
case MedVacinaTipo.DESCRICAO_INDEX:
|
||||||
|
value = this.descricao;
|
||||||
|
break;
|
||||||
|
case MedVacinaTipo.ORDEM_INDEX:
|
||||||
|
value = this.ordem;
|
||||||
|
break;
|
||||||
|
case MedVacinaTipo.DELETED_STAMP_INDEX:
|
||||||
|
value = this.deleted_stamp;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void set( String fieldName, Object value )
|
||||||
|
{
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case MedVacinaTipo.ID_INDEX:
|
||||||
|
setId( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case MedVacinaTipo.CODIGO_INDEX:
|
||||||
|
setCodigo( ( String ) value );
|
||||||
|
break;
|
||||||
|
case MedVacinaTipo.DESCRICAO_INDEX:
|
||||||
|
setDescricao( ( String ) value );
|
||||||
|
break;
|
||||||
|
case MedVacinaTipo.ORDEM_INDEX:
|
||||||
|
setOrdem( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case MedVacinaTipo.DELETED_STAMP_INDEX:
|
||||||
|
setDeleted_stamp( ( java.sql.Timestamp ) value );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void rawSet( String fieldName, Object value )
|
||||||
|
{
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case MedVacinaTipo.ID_INDEX:
|
||||||
|
this.id = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case MedVacinaTipo.CODIGO_INDEX:
|
||||||
|
this.codigo = ( String ) value;
|
||||||
|
break;
|
||||||
|
case MedVacinaTipo.DESCRICAO_INDEX:
|
||||||
|
this.descricao = ( String ) value;
|
||||||
|
break;
|
||||||
|
case MedVacinaTipo.ORDEM_INDEX:
|
||||||
|
this.ordem = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case MedVacinaTipo.DELETED_STAMP_INDEX:
|
||||||
|
this.deleted_stamp = ( java.sql.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 MedVacinaTipo.ID_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case MedVacinaTipo.CODIGO_INDEX:
|
||||||
|
theClass = String.class;
|
||||||
|
break;
|
||||||
|
case MedVacinaTipo.DESCRICAO_INDEX:
|
||||||
|
theClass = String.class;
|
||||||
|
break;
|
||||||
|
case MedVacinaTipo.ORDEM_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case MedVacinaTipo.DELETED_STAMP_INDEX:
|
||||||
|
theClass = java.sql.Timestamp.class;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return theClass;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getFieldIndex( String fieldName )
|
||||||
|
{
|
||||||
|
Integer index = FIELD_INDEXES.get( fieldName );
|
||||||
|
return index != null ? index : MedVacinaTipo._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, MedVacinaTipo.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 );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
/*
|
||||||
|
* AptOutrasVacinaData.java
|
||||||
|
*
|
||||||
|
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||||
|
*
|
||||||
|
* Edit at will
|
||||||
|
*/
|
||||||
|
package db.data.siprp_local.outer;
|
||||||
|
|
||||||
|
|
||||||
|
public final class AptOutrasVacinaData extends db.data.siprp_local.inner.AptOutrasVacina
|
||||||
|
{
|
||||||
|
|
||||||
|
public AptOutrasVacinaData()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
/*
|
||||||
|
* AptOutrasViajanteData.java
|
||||||
|
*
|
||||||
|
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||||
|
*
|
||||||
|
* Edit at will
|
||||||
|
*/
|
||||||
|
package db.data.siprp_local.outer;
|
||||||
|
|
||||||
|
|
||||||
|
public final class AptOutrasViajanteData extends db.data.siprp_local.inner.AptOutrasViajante
|
||||||
|
{
|
||||||
|
|
||||||
|
public AptOutrasViajanteData()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
/*
|
||||||
|
* CurQuestionarioData.java
|
||||||
|
*
|
||||||
|
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||||
|
*
|
||||||
|
* Edit at will
|
||||||
|
*/
|
||||||
|
package db.data.siprp_local.outer;
|
||||||
|
|
||||||
|
|
||||||
|
public final class CurQuestionarioData extends db.data.siprp_local.inner.CurQuestionario
|
||||||
|
{
|
||||||
|
|
||||||
|
public CurQuestionarioData()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
/*
|
||||||
|
* CurQuestionarioPerguntaData.java
|
||||||
|
*
|
||||||
|
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||||
|
*
|
||||||
|
* Edit at will
|
||||||
|
*/
|
||||||
|
package db.data.siprp_local.outer;
|
||||||
|
|
||||||
|
|
||||||
|
public final class CurQuestionarioPerguntaData extends db.data.siprp_local.inner.CurQuestionarioPergunta
|
||||||
|
{
|
||||||
|
|
||||||
|
public CurQuestionarioPerguntaData()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
/*
|
||||||
|
* CurQuestionarioRespostaData.java
|
||||||
|
*
|
||||||
|
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||||
|
*
|
||||||
|
* Edit at will
|
||||||
|
*/
|
||||||
|
package db.data.siprp_local.outer;
|
||||||
|
|
||||||
|
|
||||||
|
public final class CurQuestionarioRespostaData extends db.data.siprp_local.inner.CurQuestionarioResposta
|
||||||
|
{
|
||||||
|
|
||||||
|
public CurQuestionarioRespostaData()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
/*
|
||||||
|
* EvoUsrPreferencesData.java
|
||||||
|
*
|
||||||
|
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||||
|
*
|
||||||
|
* Edit at will
|
||||||
|
*/
|
||||||
|
package db.data.siprp_local.outer;
|
||||||
|
|
||||||
|
|
||||||
|
public final class EvoUsrPreferencesData extends db.data.siprp_local.inner.EvoUsrPreferences
|
||||||
|
{
|
||||||
|
|
||||||
|
public EvoUsrPreferencesData()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
/*
|
||||||
|
* FilCategoriasData.java
|
||||||
|
*
|
||||||
|
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||||
|
*
|
||||||
|
* Edit at will
|
||||||
|
*/
|
||||||
|
package db.data.siprp_local.outer;
|
||||||
|
|
||||||
|
|
||||||
|
public final class FilCategoriasData extends db.data.siprp_local.inner.FilCategorias
|
||||||
|
{
|
||||||
|
|
||||||
|
public FilCategoriasData()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
/*
|
||||||
|
* FilFileEmpresaData.java
|
||||||
|
*
|
||||||
|
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||||
|
*
|
||||||
|
* Edit at will
|
||||||
|
*/
|
||||||
|
package db.data.siprp_local.outer;
|
||||||
|
|
||||||
|
|
||||||
|
public final class FilFileEmpresaData extends db.data.siprp_local.inner.FilFileEmpresa
|
||||||
|
{
|
||||||
|
|
||||||
|
public FilFileEmpresaData()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
/*
|
||||||
|
* FilFileMarcacoesEstabelecimentoData.java
|
||||||
|
*
|
||||||
|
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||||
|
*
|
||||||
|
* Edit at will
|
||||||
|
*/
|
||||||
|
package db.data.siprp_local.outer;
|
||||||
|
|
||||||
|
|
||||||
|
public final class FilFileMarcacoesEstabelecimentoData extends db.data.siprp_local.inner.FilFileMarcacoesEstabelecimento
|
||||||
|
{
|
||||||
|
|
||||||
|
public FilFileMarcacoesEstabelecimentoData()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
/*
|
||||||
|
* MedVacinaTipoData.java
|
||||||
|
*
|
||||||
|
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||||
|
*
|
||||||
|
* Edit at will
|
||||||
|
*/
|
||||||
|
package db.data.siprp_local.outer;
|
||||||
|
|
||||||
|
|
||||||
|
public final class MedVacinaTipoData extends db.data.siprp_local.inner.MedVacinaTipo
|
||||||
|
{
|
||||||
|
|
||||||
|
public MedVacinaTipoData()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in new issue