forked from Coded/SIPRP
git-svn-id: https://svn.coded.pt/svn/SIPRP@1271 bb69d46d-e84e-40c8-a05a-06db0d633741
parent
2482a998d0
commit
f5ce4a544f
@ -0,0 +1,294 @@
|
|||||||
|
/*
|
||||||
|
* EmpresaPrecoPeriodicidadeTipo.java
|
||||||
|
*
|
||||||
|
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||||
|
*
|
||||||
|
* Use but DON'T TOUCH
|
||||||
|
* -> (can't touch this)
|
||||||
|
*/
|
||||||
|
package siprp.data.inner;
|
||||||
|
|
||||||
|
|
||||||
|
public class EmpresaPrecoPeriodicidadeTipo extends siprp.data.BaseObject
|
||||||
|
{
|
||||||
|
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||||
|
|
||||||
|
static
|
||||||
|
{
|
||||||
|
FIELD_INDEXES.put( EmpresaPrecoPeriodicidadeTipo.ID, EmpresaPrecoPeriodicidadeTipo.ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( EmpresaPrecoPeriodicidadeTipo.ID_FULL, EmpresaPrecoPeriodicidadeTipo.ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( EmpresaPrecoPeriodicidadeTipo.NOME, EmpresaPrecoPeriodicidadeTipo.NOME_INDEX );
|
||||||
|
FIELD_INDEXES.put( EmpresaPrecoPeriodicidadeTipo.NOME_FULL, EmpresaPrecoPeriodicidadeTipo.NOME_INDEX );
|
||||||
|
}
|
||||||
|
|
||||||
|
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||||
|
|
||||||
|
|
||||||
|
public static final String TABLENAME = "empresa_preco_periodicidade_tipo";
|
||||||
|
|
||||||
|
|
||||||
|
public static final String CLASS_IDENTIFIER = "siprp.data.inner.empresa_preco_periodicidade_tipo";
|
||||||
|
|
||||||
|
public static final int _INVALID__INDEX = -1;
|
||||||
|
public static final String ID = "id";
|
||||||
|
public static final String ID_FULL = "empresa_preco_periodicidade_tipo.id";
|
||||||
|
public static final int ID_INDEX = 0;
|
||||||
|
public static final String NOME = "nome";
|
||||||
|
public static final String NOME_FULL = "empresa_preco_periodicidade_tipo.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 EmpresaPrecoPeriodicidadeTipo()
|
||||||
|
{
|
||||||
|
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<siprp.data.outer.EmpresaPrecoServicoData>fromEmpresaPrecoServico_empresa_preco_periodicidade_tipo_id()
|
||||||
|
{
|
||||||
|
java.util.List<siprp.data.outer.EmpresaPrecoServicoData> result = null;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
result = fromReference( siprp.data.outer.EmpresaPrecoServicoData.class , getPrimaryKey().getMap().get("id"), "empresa_preco_periodicidade_tipo_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 EmpresaPrecoPeriodicidadeTipo.ID_INDEX:
|
||||||
|
value = getId();
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoPeriodicidadeTipo.NOME_INDEX:
|
||||||
|
value = getNome();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object rawGet( String fieldName )
|
||||||
|
{
|
||||||
|
Object value = null;
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case EmpresaPrecoPeriodicidadeTipo.ID_INDEX:
|
||||||
|
value = this.id;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoPeriodicidadeTipo.NOME_INDEX:
|
||||||
|
value = this.nome;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void set( String fieldName, Object value )
|
||||||
|
{
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case EmpresaPrecoPeriodicidadeTipo.ID_INDEX:
|
||||||
|
setId( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoPeriodicidadeTipo.NOME_INDEX:
|
||||||
|
setNome( ( String ) value );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void rawSet( String fieldName, Object value )
|
||||||
|
{
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case EmpresaPrecoPeriodicidadeTipo.ID_INDEX:
|
||||||
|
this.id = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoPeriodicidadeTipo.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 EmpresaPrecoPeriodicidadeTipo.ID_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoPeriodicidadeTipo.NOME_INDEX:
|
||||||
|
theClass = String.class;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return theClass;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getFieldIndex( String fieldName )
|
||||||
|
{
|
||||||
|
Integer index = FIELD_INDEXES.get( fieldName );
|
||||||
|
return index != null ? index : EmpresaPrecoPeriodicidadeTipo._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, EmpresaPrecoPeriodicidadeTipo.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,736 @@
|
|||||||
|
/*
|
||||||
|
* EmpresaPrecoServico.java
|
||||||
|
*
|
||||||
|
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||||
|
*
|
||||||
|
* Use but DON'T TOUCH
|
||||||
|
* -> (can't touch this)
|
||||||
|
*/
|
||||||
|
package siprp.data.inner;
|
||||||
|
|
||||||
|
|
||||||
|
public class EmpresaPrecoServico extends siprp.data.BaseObject
|
||||||
|
{
|
||||||
|
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||||
|
|
||||||
|
static
|
||||||
|
{
|
||||||
|
FIELD_INDEXES.put( EmpresaPrecoServico.ID, EmpresaPrecoServico.ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( EmpresaPrecoServico.ID_FULL, EmpresaPrecoServico.ID_INDEX );
|
||||||
|
com.evolute.entity.evo.EvoDataObject.register( EmpresaPrecoServico.CLASS_IDENTIFIER, EmpresaPrecoServico.EMPRESA_PRECO_SERVICO_TIPO_ID, EmpresaPrecoServico.TO_EMPRESA_PRECO_SERVICO_TIPO_ID );
|
||||||
|
FIELD_INDEXES.put( EmpresaPrecoServico.EMPRESA_PRECO_SERVICO_TIPO_ID, EmpresaPrecoServico.EMPRESA_PRECO_SERVICO_TIPO_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( EmpresaPrecoServico.EMPRESA_PRECO_SERVICO_TIPO_ID_FULL, EmpresaPrecoServico.EMPRESA_PRECO_SERVICO_TIPO_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( EmpresaPrecoServico.TO_EMPRESA_PRECO_SERVICO_TIPO_ID, EmpresaPrecoServico.TO_EMPRESA_PRECO_SERVICO_TIPO_ID_INDEX );
|
||||||
|
com.evolute.entity.evo.EvoDataObject.register( EmpresaPrecoServico.CLASS_IDENTIFIER, EmpresaPrecoServico.EMPRESA_PRECO_PERIODICIDADE_TIPO_ID, EmpresaPrecoServico.TO_EMPRESA_PRECO_PERIODICIDADE_TIPO_ID );
|
||||||
|
FIELD_INDEXES.put( EmpresaPrecoServico.EMPRESA_PRECO_PERIODICIDADE_TIPO_ID, EmpresaPrecoServico.EMPRESA_PRECO_PERIODICIDADE_TIPO_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( EmpresaPrecoServico.EMPRESA_PRECO_PERIODICIDADE_TIPO_ID_FULL, EmpresaPrecoServico.EMPRESA_PRECO_PERIODICIDADE_TIPO_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( EmpresaPrecoServico.TO_EMPRESA_PRECO_PERIODICIDADE_TIPO_ID, EmpresaPrecoServico.TO_EMPRESA_PRECO_PERIODICIDADE_TIPO_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( EmpresaPrecoServico.TIPO_OUTRO, EmpresaPrecoServico.TIPO_OUTRO_INDEX );
|
||||||
|
FIELD_INDEXES.put( EmpresaPrecoServico.TIPO_OUTRO_FULL, EmpresaPrecoServico.TIPO_OUTRO_INDEX );
|
||||||
|
com.evolute.entity.evo.EvoDataObject.register( EmpresaPrecoServico.CLASS_IDENTIFIER, EmpresaPrecoServico.EMPRESA_ID, EmpresaPrecoServico.TO_EMPRESA_ID );
|
||||||
|
FIELD_INDEXES.put( EmpresaPrecoServico.EMPRESA_ID, EmpresaPrecoServico.EMPRESA_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( EmpresaPrecoServico.EMPRESA_ID_FULL, EmpresaPrecoServico.EMPRESA_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( EmpresaPrecoServico.TO_EMPRESA_ID, EmpresaPrecoServico.TO_EMPRESA_ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( EmpresaPrecoServico.VALOR, EmpresaPrecoServico.VALOR_INDEX );
|
||||||
|
FIELD_INDEXES.put( EmpresaPrecoServico.VALOR_FULL, EmpresaPrecoServico.VALOR_INDEX );
|
||||||
|
FIELD_INDEXES.put( EmpresaPrecoServico.INICIADO, EmpresaPrecoServico.INICIADO_INDEX );
|
||||||
|
FIELD_INDEXES.put( EmpresaPrecoServico.INICIADO_FULL, EmpresaPrecoServico.INICIADO_INDEX );
|
||||||
|
FIELD_INDEXES.put( EmpresaPrecoServico.ACTIVO, EmpresaPrecoServico.ACTIVO_INDEX );
|
||||||
|
FIELD_INDEXES.put( EmpresaPrecoServico.ACTIVO_FULL, EmpresaPrecoServico.ACTIVO_INDEX );
|
||||||
|
}
|
||||||
|
|
||||||
|
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||||
|
|
||||||
|
|
||||||
|
public static final com.evolute.entity.ForeignKey ForeignKeyempresa_preco_servico_tipo_idToempresa_preco_servico_tipo =
|
||||||
|
new com.evolute.entity.ForeignKey( EmpresaPrecoServico.class, EmpresaPrecoServico.EMPRESA_PRECO_SERVICO_TIPO_ID, siprp.data.outer.EmpresaPrecoServicoTipoData.class, siprp.data.outer.EmpresaPrecoServicoTipoData.ID );
|
||||||
|
|
||||||
|
public static final com.evolute.entity.ForeignKey ForeignKeyempresa_preco_periodicidade_tipo_idToempresa_preco_periodicidade_tipo =
|
||||||
|
new com.evolute.entity.ForeignKey( EmpresaPrecoServico.class, EmpresaPrecoServico.EMPRESA_PRECO_PERIODICIDADE_TIPO_ID, siprp.data.outer.EmpresaPrecoPeriodicidadeTipoData.class, siprp.data.outer.EmpresaPrecoPeriodicidadeTipoData.ID );
|
||||||
|
|
||||||
|
public static final com.evolute.entity.ForeignKey ForeignKeyempresa_idToempresas =
|
||||||
|
new com.evolute.entity.ForeignKey( EmpresaPrecoServico.class, EmpresaPrecoServico.EMPRESA_ID, siprp.data.outer.EmpresasData.class, siprp.data.outer.EmpresasData.ID );
|
||||||
|
|
||||||
|
public static final String TABLENAME = "empresa_preco_servico";
|
||||||
|
|
||||||
|
|
||||||
|
public static final String CLASS_IDENTIFIER = "siprp.data.inner.empresa_preco_servico";
|
||||||
|
|
||||||
|
public static final int _INVALID__INDEX = -1;
|
||||||
|
public static final String ID = "id";
|
||||||
|
public static final String ID_FULL = "empresa_preco_servico.id";
|
||||||
|
public static final int ID_INDEX = 0;
|
||||||
|
public static final String EMPRESA_PRECO_SERVICO_TIPO_ID = "empresa_preco_servico_tipo_id";
|
||||||
|
public static final String EMPRESA_PRECO_SERVICO_TIPO_ID_FULL = "empresa_preco_servico.empresa_preco_servico_tipo_id";
|
||||||
|
public static final int EMPRESA_PRECO_SERVICO_TIPO_ID_INDEX = 1;
|
||||||
|
public static final String TO_EMPRESA_PRECO_SERVICO_TIPO_ID = "to_empresa_preco_servico_tipo_id";
|
||||||
|
public static final int TO_EMPRESA_PRECO_SERVICO_TIPO_ID_INDEX = 2;
|
||||||
|
public static final String EMPRESA_PRECO_PERIODICIDADE_TIPO_ID = "empresa_preco_periodicidade_tipo_id";
|
||||||
|
public static final String EMPRESA_PRECO_PERIODICIDADE_TIPO_ID_FULL = "empresa_preco_servico.empresa_preco_periodicidade_tipo_id";
|
||||||
|
public static final int EMPRESA_PRECO_PERIODICIDADE_TIPO_ID_INDEX = 3;
|
||||||
|
public static final String TO_EMPRESA_PRECO_PERIODICIDADE_TIPO_ID = "to_empresa_preco_periodicidade_tipo_id";
|
||||||
|
public static final int TO_EMPRESA_PRECO_PERIODICIDADE_TIPO_ID_INDEX = 4;
|
||||||
|
public static final String TIPO_OUTRO = "tipo_outro";
|
||||||
|
public static final String TIPO_OUTRO_FULL = "empresa_preco_servico.tipo_outro";
|
||||||
|
public static final int TIPO_OUTRO_INDEX = 5;
|
||||||
|
public static final String EMPRESA_ID = "empresa_id";
|
||||||
|
public static final String EMPRESA_ID_FULL = "empresa_preco_servico.empresa_id";
|
||||||
|
public static final int EMPRESA_ID_INDEX = 6;
|
||||||
|
public static final String TO_EMPRESA_ID = "to_empresa_id";
|
||||||
|
public static final int TO_EMPRESA_ID_INDEX = 7;
|
||||||
|
public static final String VALOR = "valor";
|
||||||
|
public static final String VALOR_FULL = "empresa_preco_servico.valor";
|
||||||
|
public static final int VALOR_INDEX = 8;
|
||||||
|
public static final String INICIADO = "iniciado";
|
||||||
|
public static final String INICIADO_FULL = "empresa_preco_servico.iniciado";
|
||||||
|
public static final int INICIADO_INDEX = 9;
|
||||||
|
public static final String ACTIVO = "activo";
|
||||||
|
public static final String ACTIVO_FULL = "empresa_preco_servico.activo";
|
||||||
|
public static final int ACTIVO_INDEX = 10;
|
||||||
|
|
||||||
|
public static final String FIELD_NAMES[] = new String[]{
|
||||||
|
EMPRESA_PRECO_SERVICO_TIPO_ID, TO_EMPRESA_PRECO_SERVICO_TIPO_ID,
|
||||||
|
EMPRESA_PRECO_PERIODICIDADE_TIPO_ID,
|
||||||
|
TO_EMPRESA_PRECO_PERIODICIDADE_TIPO_ID, TIPO_OUTRO, EMPRESA_ID,
|
||||||
|
TO_EMPRESA_ID, VALOR, INICIADO, ACTIVO, };
|
||||||
|
|
||||||
|
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||||
|
TABLENAME + "." + EMPRESA_PRECO_SERVICO_TIPO_ID, TABLENAME + "." + TO_EMPRESA_PRECO_SERVICO_TIPO_ID,
|
||||||
|
TABLENAME + "." + EMPRESA_PRECO_PERIODICIDADE_TIPO_ID,
|
||||||
|
TABLENAME + "." + TO_EMPRESA_PRECO_PERIODICIDADE_TIPO_ID, TABLENAME + "." + TIPO_OUTRO, TABLENAME + "." + EMPRESA_ID,
|
||||||
|
TABLENAME + "." + TO_EMPRESA_ID, TABLENAME + "." + VALOR, TABLENAME + "." + INICIADO, TABLENAME + "." + ACTIVO, };
|
||||||
|
|
||||||
|
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||||
|
ID, EMPRESA_PRECO_SERVICO_TIPO_ID, EMPRESA_PRECO_PERIODICIDADE_TIPO_ID,
|
||||||
|
TIPO_OUTRO, EMPRESA_ID, VALOR, INICIADO, ACTIVO, };
|
||||||
|
|
||||||
|
|
||||||
|
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||||
|
ID, };
|
||||||
|
|
||||||
|
|
||||||
|
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||||
|
ID, EMPRESA_PRECO_SERVICO_TIPO_ID, EMPRESA_PRECO_PERIODICIDADE_TIPO_ID,
|
||||||
|
TIPO_OUTRO, EMPRESA_ID, VALOR, INICIADO, ACTIVO, };
|
||||||
|
|
||||||
|
private Integer id;
|
||||||
|
private Integer empresa_preco_servico_tipo_id;
|
||||||
|
private siprp.data.outer.EmpresaPrecoServicoTipoData to_empresa_preco_servico_tipo_id;
|
||||||
|
private Integer empresa_preco_periodicidade_tipo_id;
|
||||||
|
private siprp.data.outer.EmpresaPrecoPeriodicidadeTipoData to_empresa_preco_periodicidade_tipo_id;
|
||||||
|
private String tipo_outro;
|
||||||
|
private Integer empresa_id;
|
||||||
|
private siprp.data.outer.EmpresasData to_empresa_id;
|
||||||
|
private Double valor;
|
||||||
|
private java.sql.Timestamp iniciado;
|
||||||
|
private Boolean activo;
|
||||||
|
|
||||||
|
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||||
|
|
||||||
|
public EmpresaPrecoServico()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
dirtyProperties = new boolean[]{ false, false, false,
|
||||||
|
false, false, false, false, false, false, false, false };
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getId()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLastAccess( System.currentTimeMillis() );
|
||||||
|
prepare( ID );
|
||||||
|
}
|
||||||
|
catch( java.lang.Exception ex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( ex );
|
||||||
|
}
|
||||||
|
return this.id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId( Integer id )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
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 getEmpresa_preco_servico_tipo_id()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLastAccess( System.currentTimeMillis() );
|
||||||
|
prepare( EMPRESA_PRECO_SERVICO_TIPO_ID );
|
||||||
|
}
|
||||||
|
catch( java.lang.Exception ex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( ex );
|
||||||
|
}
|
||||||
|
return this.empresa_preco_servico_tipo_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpresa_preco_servico_tipo_id( Integer empresa_preco_servico_tipo_id )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
preProcess( EMPRESA_PRECO_SERVICO_TIPO_ID, empresa_preco_servico_tipo_id );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.empresa_preco_servico_tipo_id = empresa_preco_servico_tipo_id;
|
||||||
|
LAZY_LOADED_OBJECTS.put( EMPRESA_PRECO_SERVICO_TIPO_ID, Boolean.TRUE );
|
||||||
|
}
|
||||||
|
|
||||||
|
public siprp.data.outer.EmpresaPrecoServicoTipoData toEmpresa_preco_servico_tipo_id()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
prepare( TO_EMPRESA_PRECO_SERVICO_TIPO_ID );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
return this.to_empresa_preco_servico_tipo_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setToEmpresa_preco_servico_tipo_id( siprp.data.outer.EmpresaPrecoServicoTipoData to_empresa_preco_servico_tipo_id )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
preProcess( TO_EMPRESA_PRECO_SERVICO_TIPO_ID, to_empresa_preco_servico_tipo_id );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.to_empresa_preco_servico_tipo_id = to_empresa_preco_servico_tipo_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getEmpresa_preco_periodicidade_tipo_id()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLastAccess( System.currentTimeMillis() );
|
||||||
|
prepare( EMPRESA_PRECO_PERIODICIDADE_TIPO_ID );
|
||||||
|
}
|
||||||
|
catch( java.lang.Exception ex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( ex );
|
||||||
|
}
|
||||||
|
return this.empresa_preco_periodicidade_tipo_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpresa_preco_periodicidade_tipo_id( Integer empresa_preco_periodicidade_tipo_id )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
preProcess( EMPRESA_PRECO_PERIODICIDADE_TIPO_ID, empresa_preco_periodicidade_tipo_id );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.empresa_preco_periodicidade_tipo_id = empresa_preco_periodicidade_tipo_id;
|
||||||
|
LAZY_LOADED_OBJECTS.put( EMPRESA_PRECO_PERIODICIDADE_TIPO_ID, Boolean.TRUE );
|
||||||
|
}
|
||||||
|
|
||||||
|
public siprp.data.outer.EmpresaPrecoPeriodicidadeTipoData toEmpresa_preco_periodicidade_tipo_id()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
prepare( TO_EMPRESA_PRECO_PERIODICIDADE_TIPO_ID );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
return this.to_empresa_preco_periodicidade_tipo_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setToEmpresa_preco_periodicidade_tipo_id( siprp.data.outer.EmpresaPrecoPeriodicidadeTipoData to_empresa_preco_periodicidade_tipo_id )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
preProcess( TO_EMPRESA_PRECO_PERIODICIDADE_TIPO_ID, to_empresa_preco_periodicidade_tipo_id );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.to_empresa_preco_periodicidade_tipo_id = to_empresa_preco_periodicidade_tipo_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTipo_outro()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLastAccess( System.currentTimeMillis() );
|
||||||
|
prepare( TIPO_OUTRO );
|
||||||
|
}
|
||||||
|
catch( java.lang.Exception ex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( ex );
|
||||||
|
}
|
||||||
|
return this.tipo_outro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTipo_outro( String tipo_outro )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
preProcess( TIPO_OUTRO, tipo_outro );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.tipo_outro = tipo_outro;
|
||||||
|
LAZY_LOADED_OBJECTS.put( TIPO_OUTRO, Boolean.TRUE );
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getEmpresa_id()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLastAccess( System.currentTimeMillis() );
|
||||||
|
prepare( EMPRESA_ID );
|
||||||
|
}
|
||||||
|
catch( java.lang.Exception ex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( ex );
|
||||||
|
}
|
||||||
|
return this.empresa_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpresa_id( Integer empresa_id )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
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 siprp.data.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( siprp.data.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 Double getValor()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLastAccess( System.currentTimeMillis() );
|
||||||
|
prepare( VALOR );
|
||||||
|
}
|
||||||
|
catch( java.lang.Exception ex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( ex );
|
||||||
|
}
|
||||||
|
return this.valor;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValor( Double valor )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
preProcess( VALOR, valor );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.valor = valor;
|
||||||
|
LAZY_LOADED_OBJECTS.put( VALOR, Boolean.TRUE );
|
||||||
|
}
|
||||||
|
|
||||||
|
public java.sql.Timestamp getIniciado()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLastAccess( System.currentTimeMillis() );
|
||||||
|
prepare( INICIADO );
|
||||||
|
}
|
||||||
|
catch( java.lang.Exception ex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( ex );
|
||||||
|
}
|
||||||
|
return this.iniciado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIniciado( java.sql.Timestamp iniciado )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
preProcess( INICIADO, iniciado );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.iniciado = iniciado;
|
||||||
|
LAZY_LOADED_OBJECTS.put( INICIADO, Boolean.TRUE );
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getActivo()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLastAccess( System.currentTimeMillis() );
|
||||||
|
prepare( ACTIVO );
|
||||||
|
}
|
||||||
|
catch( java.lang.Exception ex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( ex );
|
||||||
|
}
|
||||||
|
return this.activo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setActivo( Boolean activo )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
setLockedForRefresh( true );
|
||||||
|
preProcess( ACTIVO, activo );
|
||||||
|
}
|
||||||
|
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||||
|
{
|
||||||
|
throw new RuntimeException( edex );
|
||||||
|
}
|
||||||
|
this.activo = activo;
|
||||||
|
LAZY_LOADED_OBJECTS.put( ACTIVO, Boolean.TRUE );
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object get( String fieldName )
|
||||||
|
{
|
||||||
|
Object value = null;
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case EmpresaPrecoServico.ID_INDEX:
|
||||||
|
value = getId();
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.EMPRESA_PRECO_SERVICO_TIPO_ID_INDEX:
|
||||||
|
value = getEmpresa_preco_servico_tipo_id();
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.TO_EMPRESA_PRECO_SERVICO_TIPO_ID_INDEX:
|
||||||
|
value = toEmpresa_preco_servico_tipo_id();
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.EMPRESA_PRECO_PERIODICIDADE_TIPO_ID_INDEX:
|
||||||
|
value = getEmpresa_preco_periodicidade_tipo_id();
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.TO_EMPRESA_PRECO_PERIODICIDADE_TIPO_ID_INDEX:
|
||||||
|
value = toEmpresa_preco_periodicidade_tipo_id();
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.TIPO_OUTRO_INDEX:
|
||||||
|
value = getTipo_outro();
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.EMPRESA_ID_INDEX:
|
||||||
|
value = getEmpresa_id();
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.TO_EMPRESA_ID_INDEX:
|
||||||
|
value = toEmpresa_id();
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.VALOR_INDEX:
|
||||||
|
value = getValor();
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.INICIADO_INDEX:
|
||||||
|
value = getIniciado();
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.ACTIVO_INDEX:
|
||||||
|
value = getActivo();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object rawGet( String fieldName )
|
||||||
|
{
|
||||||
|
Object value = null;
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case EmpresaPrecoServico.ID_INDEX:
|
||||||
|
value = this.id;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.EMPRESA_PRECO_SERVICO_TIPO_ID_INDEX:
|
||||||
|
value = this.empresa_preco_servico_tipo_id;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.TO_EMPRESA_PRECO_SERVICO_TIPO_ID_INDEX:
|
||||||
|
value = this.to_empresa_preco_servico_tipo_id;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.EMPRESA_PRECO_PERIODICIDADE_TIPO_ID_INDEX:
|
||||||
|
value = this.empresa_preco_periodicidade_tipo_id;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.TO_EMPRESA_PRECO_PERIODICIDADE_TIPO_ID_INDEX:
|
||||||
|
value = this.to_empresa_preco_periodicidade_tipo_id;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.TIPO_OUTRO_INDEX:
|
||||||
|
value = this.tipo_outro;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.EMPRESA_ID_INDEX:
|
||||||
|
value = this.empresa_id;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.TO_EMPRESA_ID_INDEX:
|
||||||
|
value = this.to_empresa_id;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.VALOR_INDEX:
|
||||||
|
value = this.valor;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.INICIADO_INDEX:
|
||||||
|
value = this.iniciado;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.ACTIVO_INDEX:
|
||||||
|
value = this.activo;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void set( String fieldName, Object value )
|
||||||
|
{
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case EmpresaPrecoServico.ID_INDEX:
|
||||||
|
setId( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.EMPRESA_PRECO_SERVICO_TIPO_ID_INDEX:
|
||||||
|
setEmpresa_preco_servico_tipo_id( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.TO_EMPRESA_PRECO_SERVICO_TIPO_ID_INDEX:
|
||||||
|
setToEmpresa_preco_servico_tipo_id( ( siprp.data.outer.EmpresaPrecoServicoTipoData ) value );
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.EMPRESA_PRECO_PERIODICIDADE_TIPO_ID_INDEX:
|
||||||
|
setEmpresa_preco_periodicidade_tipo_id( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.TO_EMPRESA_PRECO_PERIODICIDADE_TIPO_ID_INDEX:
|
||||||
|
setToEmpresa_preco_periodicidade_tipo_id( ( siprp.data.outer.EmpresaPrecoPeriodicidadeTipoData ) value );
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.TIPO_OUTRO_INDEX:
|
||||||
|
setTipo_outro( ( String ) value );
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.EMPRESA_ID_INDEX:
|
||||||
|
setEmpresa_id( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.TO_EMPRESA_ID_INDEX:
|
||||||
|
setToEmpresa_id( ( siprp.data.outer.EmpresasData ) value );
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.VALOR_INDEX:
|
||||||
|
setValor( ( Double ) value );
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.INICIADO_INDEX:
|
||||||
|
setIniciado( ( java.sql.Timestamp ) value );
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.ACTIVO_INDEX:
|
||||||
|
setActivo( ( Boolean ) value );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void rawSet( String fieldName, Object value )
|
||||||
|
{
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case EmpresaPrecoServico.ID_INDEX:
|
||||||
|
this.id = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.EMPRESA_PRECO_SERVICO_TIPO_ID_INDEX:
|
||||||
|
this.empresa_preco_servico_tipo_id = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.TO_EMPRESA_PRECO_SERVICO_TIPO_ID_INDEX:
|
||||||
|
this.to_empresa_preco_servico_tipo_id = ( siprp.data.outer.EmpresaPrecoServicoTipoData ) value;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.EMPRESA_PRECO_PERIODICIDADE_TIPO_ID_INDEX:
|
||||||
|
this.empresa_preco_periodicidade_tipo_id = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.TO_EMPRESA_PRECO_PERIODICIDADE_TIPO_ID_INDEX:
|
||||||
|
this.to_empresa_preco_periodicidade_tipo_id = ( siprp.data.outer.EmpresaPrecoPeriodicidadeTipoData ) value;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.TIPO_OUTRO_INDEX:
|
||||||
|
this.tipo_outro = ( String ) value;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.EMPRESA_ID_INDEX:
|
||||||
|
this.empresa_id = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.TO_EMPRESA_ID_INDEX:
|
||||||
|
this.to_empresa_id = ( siprp.data.outer.EmpresasData ) value;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.VALOR_INDEX:
|
||||||
|
this.valor = ( Double ) value;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.INICIADO_INDEX:
|
||||||
|
this.iniciado = ( java.sql.Timestamp ) value;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.ACTIVO_INDEX:
|
||||||
|
this.activo = ( Boolean ) value;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public String []getFieldNames()
|
||||||
|
{
|
||||||
|
return FIELD_NAMES;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String []getFieldNamesFull()
|
||||||
|
{
|
||||||
|
return FIELD_NAMES_FULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String []getDBFieldNames()
|
||||||
|
{
|
||||||
|
return DB_FIELD_NAMES;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String []getPrimaryKeyNames()
|
||||||
|
{
|
||||||
|
return PK_FIELD_NAMES;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String []getDefaultLoadSet()
|
||||||
|
{
|
||||||
|
return DEFAULT_LOAD_SET;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPrimaryKeyName()
|
||||||
|
{
|
||||||
|
return PK_FIELD_NAMES[ 0 ];
|
||||||
|
}
|
||||||
|
|
||||||
|
public Class<?> getFieldClass( String fieldName )
|
||||||
|
{
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
Class<?> theClass = null;
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case EmpresaPrecoServico.ID_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.EMPRESA_PRECO_SERVICO_TIPO_ID_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.TO_EMPRESA_PRECO_SERVICO_TIPO_ID_INDEX:
|
||||||
|
theClass = siprp.data.outer.EmpresaPrecoServicoTipoData.class;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.EMPRESA_PRECO_PERIODICIDADE_TIPO_ID_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.TO_EMPRESA_PRECO_PERIODICIDADE_TIPO_ID_INDEX:
|
||||||
|
theClass = siprp.data.outer.EmpresaPrecoPeriodicidadeTipoData.class;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.TIPO_OUTRO_INDEX:
|
||||||
|
theClass = String.class;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.EMPRESA_ID_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.TO_EMPRESA_ID_INDEX:
|
||||||
|
theClass = siprp.data.outer.EmpresasData.class;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.VALOR_INDEX:
|
||||||
|
theClass = Double.class;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.INICIADO_INDEX:
|
||||||
|
theClass = java.sql.Timestamp.class;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServico.ACTIVO_INDEX:
|
||||||
|
theClass = Boolean.class;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return theClass;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getFieldIndex( String fieldName )
|
||||||
|
{
|
||||||
|
Integer index = FIELD_INDEXES.get( fieldName );
|
||||||
|
return index != null ? index : EmpresaPrecoServico._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, EmpresaPrecoServico.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,294 @@
|
|||||||
|
/*
|
||||||
|
* EmpresaPrecoServicoTipo.java
|
||||||
|
*
|
||||||
|
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||||
|
*
|
||||||
|
* Use but DON'T TOUCH
|
||||||
|
* -> (can't touch this)
|
||||||
|
*/
|
||||||
|
package siprp.data.inner;
|
||||||
|
|
||||||
|
|
||||||
|
public class EmpresaPrecoServicoTipo extends siprp.data.BaseObject
|
||||||
|
{
|
||||||
|
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||||
|
|
||||||
|
static
|
||||||
|
{
|
||||||
|
FIELD_INDEXES.put( EmpresaPrecoServicoTipo.ID, EmpresaPrecoServicoTipo.ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( EmpresaPrecoServicoTipo.ID_FULL, EmpresaPrecoServicoTipo.ID_INDEX );
|
||||||
|
FIELD_INDEXES.put( EmpresaPrecoServicoTipo.NOME, EmpresaPrecoServicoTipo.NOME_INDEX );
|
||||||
|
FIELD_INDEXES.put( EmpresaPrecoServicoTipo.NOME_FULL, EmpresaPrecoServicoTipo.NOME_INDEX );
|
||||||
|
}
|
||||||
|
|
||||||
|
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||||
|
|
||||||
|
|
||||||
|
public static final String TABLENAME = "empresa_preco_servico_tipo";
|
||||||
|
|
||||||
|
|
||||||
|
public static final String CLASS_IDENTIFIER = "siprp.data.inner.empresa_preco_servico_tipo";
|
||||||
|
|
||||||
|
public static final int _INVALID__INDEX = -1;
|
||||||
|
public static final String ID = "id";
|
||||||
|
public static final String ID_FULL = "empresa_preco_servico_tipo.id";
|
||||||
|
public static final int ID_INDEX = 0;
|
||||||
|
public static final String NOME = "nome";
|
||||||
|
public static final String NOME_FULL = "empresa_preco_servico_tipo.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 EmpresaPrecoServicoTipo()
|
||||||
|
{
|
||||||
|
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<siprp.data.outer.EmpresaPrecoServicoData>fromEmpresaPrecoServico_empresa_preco_servico_tipo_id()
|
||||||
|
{
|
||||||
|
java.util.List<siprp.data.outer.EmpresaPrecoServicoData> result = null;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
result = fromReference( siprp.data.outer.EmpresaPrecoServicoData.class , getPrimaryKey().getMap().get("id"), "empresa_preco_servico_tipo_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 EmpresaPrecoServicoTipo.ID_INDEX:
|
||||||
|
value = getId();
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServicoTipo.NOME_INDEX:
|
||||||
|
value = getNome();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object rawGet( String fieldName )
|
||||||
|
{
|
||||||
|
Object value = null;
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case EmpresaPrecoServicoTipo.ID_INDEX:
|
||||||
|
value = this.id;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServicoTipo.NOME_INDEX:
|
||||||
|
value = this.nome;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void set( String fieldName, Object value )
|
||||||
|
{
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case EmpresaPrecoServicoTipo.ID_INDEX:
|
||||||
|
setId( ( Integer ) value );
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServicoTipo.NOME_INDEX:
|
||||||
|
setNome( ( String ) value );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void rawSet( String fieldName, Object value )
|
||||||
|
{
|
||||||
|
Integer index = getFieldIndex( fieldName );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case EmpresaPrecoServicoTipo.ID_INDEX:
|
||||||
|
this.id = ( Integer ) value;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServicoTipo.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 EmpresaPrecoServicoTipo.ID_INDEX:
|
||||||
|
theClass = Integer.class;
|
||||||
|
break;
|
||||||
|
case EmpresaPrecoServicoTipo.NOME_INDEX:
|
||||||
|
theClass = String.class;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return theClass;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getFieldIndex( String fieldName )
|
||||||
|
{
|
||||||
|
Integer index = FIELD_INDEXES.get( fieldName );
|
||||||
|
return index != null ? index : EmpresaPrecoServicoTipo._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, EmpresaPrecoServicoTipo.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 @@
|
|||||||
|
/*
|
||||||
|
* EmpresaPrecoPeriodicidadeTipoData.java
|
||||||
|
*
|
||||||
|
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||||
|
*
|
||||||
|
* Edit at will
|
||||||
|
*/
|
||||||
|
package siprp.data.outer;
|
||||||
|
|
||||||
|
|
||||||
|
public final class EmpresaPrecoPeriodicidadeTipoData extends siprp.data.inner.EmpresaPrecoPeriodicidadeTipo
|
||||||
|
{
|
||||||
|
|
||||||
|
public EmpresaPrecoPeriodicidadeTipoData()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
/*
|
||||||
|
* EmpresaPrecoServicoData.java
|
||||||
|
*
|
||||||
|
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||||
|
*
|
||||||
|
* Edit at will
|
||||||
|
*/
|
||||||
|
package siprp.data.outer;
|
||||||
|
|
||||||
|
|
||||||
|
public final class EmpresaPrecoServicoData extends siprp.data.inner.EmpresaPrecoServico
|
||||||
|
{
|
||||||
|
|
||||||
|
public EmpresaPrecoServicoData()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
/*
|
||||||
|
* EmpresaPrecoServicoTipoData.java
|
||||||
|
*
|
||||||
|
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||||
|
*
|
||||||
|
* Edit at will
|
||||||
|
*/
|
||||||
|
package siprp.data.outer;
|
||||||
|
|
||||||
|
|
||||||
|
public final class EmpresaPrecoServicoTipoData extends siprp.data.inner.EmpresaPrecoServicoTipo
|
||||||
|
{
|
||||||
|
|
||||||
|
public EmpresaPrecoServicoTipoData()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in new issue