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

0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Diogo Neves 16 years ago
parent 2482a998d0
commit f5ce4a544f

@ -7,7 +7,7 @@ db.url.prefix = jdbc:postgresql://
db.user = postgres
db.password = Typein
#rg2h-opksiprp
db.name = siprp_local_3
db.name = siprp_local_3_20100713
db.connection.driver = org.postgresql.Driver
jnlp.resources.property.server.address = evoserver

@ -754,8 +754,8 @@ public class EmpresaPanel extends JPanel
components.putComponent( EmpresasData.TO_CONTACTO_1, contacto1Panel );
components.putComponent( EmpresasData.TO_CONTACTO_2, contacto2Panel );
components.putComponent( EmpresasData.SERVICOS, servicosCombo );
components.putComponent( EmpresasData.PRECO_HIGIENE, precoHigieneText );
components.putComponent( EmpresasData.PRECO_MEDICINA, precoMedicinaText );
// components.putComponent( EmpresasData.PRECO_HIGIENE, precoHigieneText );
// components.putComponent( EmpresasData.PRECO_MEDICINA, precoMedicinaText );
components.putComponent( EmpresasData.PERIODICIDADE, modalidadePagamentoText );
components.putDummy( EmpresasData.SERVICO_SAUDE_TIPO );
components.putDummy( EmpresasData.SERVICO_SAUDE_DESIGNACAO );

@ -27,7 +27,7 @@ public class Actualizacao extends siprp.data.BaseObject
public static final String TABLENAME = "actualizacao";
public static final String CLASS_IDENTIFIER = "actualizacao1277401737153";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.actualizacao";
public static final int _INVALID__INDEX = -1;
public static final String HORA = "hora";

@ -56,7 +56,7 @@ public class Avisos extends siprp.data.BaseObject
public static final String TABLENAME = "avisos";
public static final String CLASS_IDENTIFIER = "avisos1277401737154";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.avisos";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";
@ -754,8 +754,9 @@ public class Avisos extends siprp.data.BaseObject
if( primaryKey == null )
{
primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, Avisos.PK_FIELD_NAMES );
primaryKey.set( 0, getId() );
primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
}
setId( ( Integer ) array.get( row, col + 0 ) );
}
@Override

@ -29,6 +29,8 @@ public class Contactos extends siprp.data.BaseObject
FIELD_INDEXES.put( Contactos.EMAIL_FULL, Contactos.EMAIL_INDEX );
FIELD_INDEXES.put( Contactos.CARGO, Contactos.CARGO_INDEX );
FIELD_INDEXES.put( Contactos.CARGO_FULL, Contactos.CARGO_INDEX );
FIELD_INDEXES.put( Contactos.DEPARTAMENTO, Contactos.DEPARTAMENTO_INDEX );
FIELD_INDEXES.put( Contactos.DEPARTAMENTO_FULL, Contactos.DEPARTAMENTO_INDEX );
}
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
@ -37,7 +39,7 @@ public class Contactos extends siprp.data.BaseObject
public static final String TABLENAME = "contactos";
public static final String CLASS_IDENTIFIER = "contactos1277401737155";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.contactos";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";
@ -61,15 +63,18 @@ public class Contactos extends siprp.data.BaseObject
public static final String CARGO = "cargo";
public static final String CARGO_FULL = "contactos.cargo";
public static final int CARGO_INDEX = 6;
public static final String DEPARTAMENTO = "departamento";
public static final String DEPARTAMENTO_FULL = "contactos.departamento";
public static final int DEPARTAMENTO_INDEX = 7;
public static final String FIELD_NAMES[] = new String[]{
NOME, TELEFONE, TELEMOVEL, FAX, EMAIL, CARGO, };
NOME, TELEFONE, TELEMOVEL, FAX, EMAIL, CARGO, DEPARTAMENTO, };
public static final String FIELD_NAMES_FULL[] = new String[]{
TABLENAME + "." + NOME, TABLENAME + "." + TELEFONE, TABLENAME + "." + TELEMOVEL, TABLENAME + "." + FAX, TABLENAME + "." + EMAIL, TABLENAME + "." + CARGO, };
TABLENAME + "." + NOME, TABLENAME + "." + TELEFONE, TABLENAME + "." + TELEMOVEL, TABLENAME + "." + FAX, TABLENAME + "." + EMAIL, TABLENAME + "." + CARGO, TABLENAME + "." + DEPARTAMENTO, };
protected static final String DB_FIELD_NAMES[] = new String[]{
ID, NOME, TELEFONE, TELEMOVEL, FAX, EMAIL, CARGO, };
ID, NOME, TELEFONE, TELEMOVEL, FAX, EMAIL, CARGO, DEPARTAMENTO, };
protected static final String PK_FIELD_NAMES[] = new String[]{
@ -77,7 +82,7 @@ public class Contactos extends siprp.data.BaseObject
public static final String DEFAULT_LOAD_SET[] = new String[] {
ID, NOME, TELEFONE, TELEMOVEL, FAX, EMAIL, CARGO, };
ID, NOME, TELEFONE, TELEMOVEL, FAX, EMAIL, CARGO, DEPARTAMENTO, };
private Integer id;
private String nome;
@ -86,6 +91,7 @@ public class Contactos extends siprp.data.BaseObject
private String fax;
private String email;
private String cargo;
private String departamento;
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
@ -93,7 +99,7 @@ public class Contactos extends siprp.data.BaseObject
{
super();
dirtyProperties = new boolean[]{ false, false, false,
false, false, false, false };
false, false, false, false, false };
}
public Integer getId()
@ -355,6 +361,35 @@ public class Contactos extends siprp.data.BaseObject
LAZY_LOADED_OBJECTS.put( CARGO, Boolean.TRUE );
}
public String getDepartamento()
{
try
{
setLastAccess( System.currentTimeMillis() );
prepare( DEPARTAMENTO );
}
catch( java.lang.Exception ex )
{
throw new RuntimeException( ex );
}
return this.departamento;
}
public void setDepartamento( String departamento )
{
try
{
setLockedForRefresh( true );
preProcess( DEPARTAMENTO, departamento );
}
catch( com.evolute.entity.evo.EvoDataException edex )
{
throw new RuntimeException( edex );
}
this.departamento = departamento;
LAZY_LOADED_OBJECTS.put( DEPARTAMENTO, Boolean.TRUE );
}
public Object get( String fieldName )
{
Object value = null;
@ -382,6 +417,9 @@ public class Contactos extends siprp.data.BaseObject
case Contactos.CARGO_INDEX:
value = getCargo();
break;
case Contactos.DEPARTAMENTO_INDEX:
value = getDepartamento();
break;
}
return value;
}
@ -413,6 +451,9 @@ public class Contactos extends siprp.data.BaseObject
case Contactos.CARGO_INDEX:
value = this.cargo;
break;
case Contactos.DEPARTAMENTO_INDEX:
value = this.departamento;
break;
}
return value;
}
@ -443,6 +484,9 @@ public class Contactos extends siprp.data.BaseObject
case Contactos.CARGO_INDEX:
setCargo( ( String ) value );
break;
case Contactos.DEPARTAMENTO_INDEX:
setDepartamento( ( String ) value );
break;
}
}
@ -472,6 +516,9 @@ public class Contactos extends siprp.data.BaseObject
case Contactos.CARGO_INDEX:
this.cargo = ( String ) value;
break;
case Contactos.DEPARTAMENTO_INDEX:
this.departamento = ( String ) value;
break;
}
}
@ -532,6 +579,9 @@ public class Contactos extends siprp.data.BaseObject
case Contactos.CARGO_INDEX:
theClass = String.class;
break;
case Contactos.DEPARTAMENTO_INDEX:
theClass = String.class;
break;
}
return theClass;
}
@ -558,8 +608,9 @@ public class Contactos extends siprp.data.BaseObject
if( primaryKey == null )
{
primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, Contactos.PK_FIELD_NAMES );
primaryKey.set( 0, getId() );
primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
}
setId( ( Integer ) array.get( row, col + 0 ) );
}
@Override

@ -33,7 +33,7 @@ public class EcdOficial extends siprp.data.BaseObject
public static final String TABLENAME = "ecd_oficial";
public static final String CLASS_IDENTIFIER = "ecd_oficial1277401737155";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.ecd_oficial";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -34,7 +34,7 @@ public class EmailPlanoDeActuacao extends siprp.data.BaseObject
public static final String TABLENAME = "email_plano_de_actuacao";
public static final String CLASS_IDENTIFIER = "email_plano_de_actuacao1277401737155";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.email_plano_de_actuacao";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -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 );
}
}
}

@ -79,10 +79,6 @@ public class Empresas extends siprp.data.BaseObject
FIELD_INDEXES.put( Empresas.TO_CONTACTO_2, Empresas.TO_CONTACTO_2_INDEX );
FIELD_INDEXES.put( Empresas.DATA_RELATORIO_ANUAL, Empresas.DATA_RELATORIO_ANUAL_INDEX );
FIELD_INDEXES.put( Empresas.DATA_RELATORIO_ANUAL_FULL, Empresas.DATA_RELATORIO_ANUAL_INDEX );
FIELD_INDEXES.put( Empresas.PRECO_HIGIENE, Empresas.PRECO_HIGIENE_INDEX );
FIELD_INDEXES.put( Empresas.PRECO_HIGIENE_FULL, Empresas.PRECO_HIGIENE_INDEX );
FIELD_INDEXES.put( Empresas.PRECO_MEDICINA, Empresas.PRECO_MEDICINA_INDEX );
FIELD_INDEXES.put( Empresas.PRECO_MEDICINA_FULL, Empresas.PRECO_MEDICINA_INDEX );
FIELD_INDEXES.put( Empresas.PERIODICIDADE, Empresas.PERIODICIDADE_INDEX );
FIELD_INDEXES.put( Empresas.PERIODICIDADE_FULL, Empresas.PERIODICIDADE_INDEX );
FIELD_INDEXES.put( Empresas.ACTIVIDADE, Empresas.ACTIVIDADE_INDEX );
@ -111,6 +107,8 @@ public class Empresas extends siprp.data.BaseObject
FIELD_INDEXES.put( Empresas.TO_EMPRESA_LOGO_ID, Empresas.TO_EMPRESA_LOGO_ID_INDEX );
FIELD_INDEXES.put( Empresas.IMPRIMIR_TABELA_ALARGADA, Empresas.IMPRIMIR_TABELA_ALARGADA_INDEX );
FIELD_INDEXES.put( Empresas.IMPRIMIR_TABELA_ALARGADA_FULL, Empresas.IMPRIMIR_TABELA_ALARGADA_INDEX );
FIELD_INDEXES.put( Empresas.CODIGO_RELATORIO_UNICO, Empresas.CODIGO_RELATORIO_UNICO_INDEX );
FIELD_INDEXES.put( Empresas.CODIGO_RELATORIO_UNICO_FULL, Empresas.CODIGO_RELATORIO_UNICO_INDEX );
}
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
@ -128,7 +126,7 @@ public class Empresas extends siprp.data.BaseObject
public static final String TABLENAME = "empresas";
public static final String CLASS_IDENTIFIER = "empresas1277401737156";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.empresas";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";
@ -225,53 +223,50 @@ public class Empresas extends siprp.data.BaseObject
public static final String DATA_RELATORIO_ANUAL = "data_relatorio_anual";
public static final String DATA_RELATORIO_ANUAL_FULL = "empresas.data_relatorio_anual";
public static final int DATA_RELATORIO_ANUAL_INDEX = 31;
public static final String PRECO_HIGIENE = "preco_higiene";
public static final String PRECO_HIGIENE_FULL = "empresas.preco_higiene";
public static final int PRECO_HIGIENE_INDEX = 32;
public static final String PRECO_MEDICINA = "preco_medicina";
public static final String PRECO_MEDICINA_FULL = "empresas.preco_medicina";
public static final int PRECO_MEDICINA_INDEX = 33;
public static final String PERIODICIDADE = "periodicidade";
public static final String PERIODICIDADE_FULL = "empresas.periodicidade";
public static final int PERIODICIDADE_INDEX = 34;
public static final int PERIODICIDADE_INDEX = 32;
public static final String ACTIVIDADE = "actividade";
public static final String ACTIVIDADE_FULL = "empresas.actividade";
public static final int ACTIVIDADE_INDEX = 35;
public static final int ACTIVIDADE_INDEX = 33;
public static final String ACTUALIZACAO = "actualizacao";
public static final String ACTUALIZACAO_FULL = "empresas.actualizacao";
public static final int ACTUALIZACAO_INDEX = 36;
public static final int ACTUALIZACAO_INDEX = 34;
public static final String DESIGNACAO_SOCIAL_PLAIN = "designacao_social_plain";
public static final String DESIGNACAO_SOCIAL_PLAIN_FULL = "empresas.designacao_social_plain";
public static final int DESIGNACAO_SOCIAL_PLAIN_INDEX = 37;
public static final int DESIGNACAO_SOCIAL_PLAIN_INDEX = 35;
public static final String A_CONSULTAS = "a_consultas";
public static final String A_CONSULTAS_FULL = "empresas.a_consultas";
public static final int A_CONSULTAS_INDEX = 38;
public static final int A_CONSULTAS_INDEX = 36;
public static final String A_EXAMES = "a_exames";
public static final String A_EXAMES_FULL = "empresas.a_exames";
public static final int A_EXAMES_INDEX = 39;
public static final int A_EXAMES_INDEX = 37;
public static final String B_CONSULTAS = "b_consultas";
public static final String B_CONSULTAS_FULL = "empresas.b_consultas";
public static final int B_CONSULTAS_INDEX = 40;
public static final int B_CONSULTAS_INDEX = 38;
public static final String B_EXAMES = "b_exames";
public static final String B_EXAMES_FULL = "empresas.b_exames";
public static final int B_EXAMES_INDEX = 41;
public static final int B_EXAMES_INDEX = 39;
public static final String DATA_CANCELAMENTO = "data_cancelamento";
public static final String DATA_CANCELAMENTO_FULL = "empresas.data_cancelamento";
public static final int DATA_CANCELAMENTO_INDEX = 42;
public static final int DATA_CANCELAMENTO_INDEX = 40;
public static final String DURACAO = "duracao";
public static final String DURACAO_FULL = "empresas.duracao";
public static final int DURACAO_INDEX = 43;
public static final int DURACAO_INDEX = 41;
public static final String INICIO_CONTRATO = "inicio_contrato";
public static final String INICIO_CONTRATO_FULL = "empresas.inicio_contrato";
public static final int INICIO_CONTRATO_INDEX = 44;
public static final int INICIO_CONTRATO_INDEX = 42;
public static final String EMPRESA_LOGO_ID = "empresa_logo_id";
public static final String EMPRESA_LOGO_ID_FULL = "empresas.empresa_logo_id";
public static final int EMPRESA_LOGO_ID_INDEX = 45;
public static final int EMPRESA_LOGO_ID_INDEX = 43;
public static final String TO_EMPRESA_LOGO_ID = "to_empresa_logo_id";
public static final int TO_EMPRESA_LOGO_ID_INDEX = 46;
public static final int TO_EMPRESA_LOGO_ID_INDEX = 44;
public static final String IMPRIMIR_TABELA_ALARGADA = "imprimir_tabela_alargada";
public static final String IMPRIMIR_TABELA_ALARGADA_FULL = "empresas.imprimir_tabela_alargada";
public static final int IMPRIMIR_TABELA_ALARGADA_INDEX = 47;
public static final int IMPRIMIR_TABELA_ALARGADA_INDEX = 45;
public static final String CODIGO_RELATORIO_UNICO = "codigo_relatorio_unico";
public static final String CODIGO_RELATORIO_UNICO_FULL = "empresas.codigo_relatorio_unico";
public static final int CODIGO_RELATORIO_UNICO_INDEX = 46;
public static final String FIELD_NAMES[] = new String[]{
DESIGNACAO_SOCIAL, SERVICO_SAUDE_TIPO, SERVICO_SAUDE_DESIGNACAO,
@ -280,10 +275,10 @@ public class Empresas extends siprp.data.BaseObject
DATA_PROPOSTA, DATA_ACEITACAO, PERFIL_1, PERFIL_2, DATA_ENVIO_CONTRATO,
DATA_RECEPCAO_CONTRATO, DATA_ENVIO_IDICT, CAE, CONTRIBUINTE, SEGURANCA_SOCIAL,
CODIGO_1, CODIGO_2, CODIGO_3, SERVICOS, CONTACTO_1, TO_CONTACTO_1, CONTACTO_2,
TO_CONTACTO_2, DATA_RELATORIO_ANUAL, PRECO_HIGIENE, PRECO_MEDICINA,
PERIODICIDADE, ACTIVIDADE, ACTUALIZACAO, DESIGNACAO_SOCIAL_PLAIN, A_CONSULTAS,
A_EXAMES, B_CONSULTAS, B_EXAMES, DATA_CANCELAMENTO, DURACAO, INICIO_CONTRATO,
EMPRESA_LOGO_ID, TO_EMPRESA_LOGO_ID, IMPRIMIR_TABELA_ALARGADA, };
TO_CONTACTO_2, DATA_RELATORIO_ANUAL, PERIODICIDADE, ACTIVIDADE, ACTUALIZACAO,
DESIGNACAO_SOCIAL_PLAIN, A_CONSULTAS, A_EXAMES, B_CONSULTAS, B_EXAMES,
DATA_CANCELAMENTO, DURACAO, INICIO_CONTRATO, EMPRESA_LOGO_ID,
TO_EMPRESA_LOGO_ID, IMPRIMIR_TABELA_ALARGADA, CODIGO_RELATORIO_UNICO, };
public static final String FIELD_NAMES_FULL[] = new String[]{
TABLENAME + "." + DESIGNACAO_SOCIAL, TABLENAME + "." + SERVICO_SAUDE_TIPO, TABLENAME + "." + SERVICO_SAUDE_DESIGNACAO,
@ -292,10 +287,10 @@ public class Empresas extends siprp.data.BaseObject
TABLENAME + "." + DATA_PROPOSTA, TABLENAME + "." + DATA_ACEITACAO, TABLENAME + "." + PERFIL_1, TABLENAME + "." + PERFIL_2, TABLENAME + "." + DATA_ENVIO_CONTRATO,
TABLENAME + "." + DATA_RECEPCAO_CONTRATO, TABLENAME + "." + DATA_ENVIO_IDICT, TABLENAME + "." + CAE, TABLENAME + "." + CONTRIBUINTE, TABLENAME + "." + SEGURANCA_SOCIAL,
TABLENAME + "." + CODIGO_1, TABLENAME + "." + CODIGO_2, TABLENAME + "." + CODIGO_3, TABLENAME + "." + SERVICOS, TABLENAME + "." + CONTACTO_1, TABLENAME + "." + TO_CONTACTO_1, TABLENAME + "." + CONTACTO_2,
TABLENAME + "." + TO_CONTACTO_2, TABLENAME + "." + DATA_RELATORIO_ANUAL, TABLENAME + "." + PRECO_HIGIENE, TABLENAME + "." + PRECO_MEDICINA,
TABLENAME + "." + PERIODICIDADE, TABLENAME + "." + ACTIVIDADE, TABLENAME + "." + ACTUALIZACAO, TABLENAME + "." + DESIGNACAO_SOCIAL_PLAIN, TABLENAME + "." + A_CONSULTAS,
TABLENAME + "." + A_EXAMES, TABLENAME + "." + B_CONSULTAS, TABLENAME + "." + B_EXAMES, TABLENAME + "." + DATA_CANCELAMENTO, TABLENAME + "." + DURACAO, TABLENAME + "." + INICIO_CONTRATO,
TABLENAME + "." + EMPRESA_LOGO_ID, TABLENAME + "." + TO_EMPRESA_LOGO_ID, TABLENAME + "." + IMPRIMIR_TABELA_ALARGADA, };
TABLENAME + "." + TO_CONTACTO_2, TABLENAME + "." + DATA_RELATORIO_ANUAL, TABLENAME + "." + PERIODICIDADE, TABLENAME + "." + ACTIVIDADE, TABLENAME + "." + ACTUALIZACAO,
TABLENAME + "." + DESIGNACAO_SOCIAL_PLAIN, TABLENAME + "." + A_CONSULTAS, TABLENAME + "." + A_EXAMES, TABLENAME + "." + B_CONSULTAS, TABLENAME + "." + B_EXAMES,
TABLENAME + "." + DATA_CANCELAMENTO, TABLENAME + "." + DURACAO, TABLENAME + "." + INICIO_CONTRATO, TABLENAME + "." + EMPRESA_LOGO_ID,
TABLENAME + "." + TO_EMPRESA_LOGO_ID, TABLENAME + "." + IMPRIMIR_TABELA_ALARGADA, TABLENAME + "." + CODIGO_RELATORIO_UNICO, };
protected static final String DB_FIELD_NAMES[] = new String[]{
ID, DESIGNACAO_SOCIAL, SERVICO_SAUDE_TIPO, SERVICO_SAUDE_DESIGNACAO,
@ -304,10 +299,10 @@ public class Empresas extends siprp.data.BaseObject
DATA_PROPOSTA, DATA_ACEITACAO, PERFIL_1, PERFIL_2, DATA_ENVIO_CONTRATO,
DATA_RECEPCAO_CONTRATO, DATA_ENVIO_IDICT, CAE, CONTRIBUINTE, SEGURANCA_SOCIAL,
CODIGO_1, CODIGO_2, CODIGO_3, SERVICOS, CONTACTO_1, CONTACTO_2,
DATA_RELATORIO_ANUAL, PRECO_HIGIENE, PRECO_MEDICINA, PERIODICIDADE, ACTIVIDADE,
ACTUALIZACAO, DESIGNACAO_SOCIAL_PLAIN, A_CONSULTAS, A_EXAMES, B_CONSULTAS,
B_EXAMES, DATA_CANCELAMENTO, DURACAO, INICIO_CONTRATO, EMPRESA_LOGO_ID,
IMPRIMIR_TABELA_ALARGADA, };
DATA_RELATORIO_ANUAL, PERIODICIDADE, ACTIVIDADE, ACTUALIZACAO,
DESIGNACAO_SOCIAL_PLAIN, A_CONSULTAS, A_EXAMES, B_CONSULTAS, B_EXAMES,
DATA_CANCELAMENTO, DURACAO, INICIO_CONTRATO, EMPRESA_LOGO_ID,
IMPRIMIR_TABELA_ALARGADA, CODIGO_RELATORIO_UNICO, };
protected static final String PK_FIELD_NAMES[] = new String[]{
@ -321,10 +316,10 @@ public class Empresas extends siprp.data.BaseObject
DATA_PROPOSTA, DATA_ACEITACAO, PERFIL_1, PERFIL_2, DATA_ENVIO_CONTRATO,
DATA_RECEPCAO_CONTRATO, DATA_ENVIO_IDICT, CAE, CONTRIBUINTE, SEGURANCA_SOCIAL,
CODIGO_1, CODIGO_2, CODIGO_3, SERVICOS, CONTACTO_1, CONTACTO_2,
DATA_RELATORIO_ANUAL, PRECO_HIGIENE, PRECO_MEDICINA, PERIODICIDADE, ACTIVIDADE,
ACTUALIZACAO, DESIGNACAO_SOCIAL_PLAIN, A_CONSULTAS, A_EXAMES, B_CONSULTAS,
B_EXAMES, DATA_CANCELAMENTO, DURACAO, INICIO_CONTRATO, EMPRESA_LOGO_ID,
IMPRIMIR_TABELA_ALARGADA, };
DATA_RELATORIO_ANUAL, PERIODICIDADE, ACTIVIDADE, ACTUALIZACAO,
DESIGNACAO_SOCIAL_PLAIN, A_CONSULTAS, A_EXAMES, B_CONSULTAS, B_EXAMES,
DATA_CANCELAMENTO, DURACAO, INICIO_CONTRATO, EMPRESA_LOGO_ID,
IMPRIMIR_TABELA_ALARGADA, CODIGO_RELATORIO_UNICO, };
private Integer id;
private String designacao_social;
@ -358,8 +353,6 @@ public class Empresas extends siprp.data.BaseObject
private Integer contacto_2;
private siprp.data.outer.ContactosData to_contacto_2;
private java.util.Date data_relatorio_anual;
private Double preco_higiene;
private Double preco_medicina;
private String periodicidade;
private String actividade;
private java.sql.Timestamp actualizacao;
@ -374,6 +367,7 @@ public class Empresas extends siprp.data.BaseObject
private Integer empresa_logo_id;
private siprp.data.outer.ImageData to_empresa_logo_id;
private Boolean imprimir_tabela_alargada;
private String codigo_relatorio_unico;
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
@ -386,7 +380,7 @@ public class Empresas extends siprp.data.BaseObject
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false };
false, false, false, false };
}
public Integer getId()
@ -432,6 +426,20 @@ public class Empresas extends siprp.data.BaseObject
return result;
}
public java.util.List<siprp.data.outer.EmpresaPrecoServicoData>fromEmpresaPrecoServico_empresa_id()
{
java.util.List<siprp.data.outer.EmpresaPrecoServicoData> result = null;
try
{
result = fromReference( siprp.data.outer.EmpresaPrecoServicoData.class , getPrimaryKey().getMap().get("id"), "empresa_id" );
}
catch( com.evolute.entity.evo.EvoDataException edex )
{
throw new RuntimeException( edex );
}
return result;
}
public java.util.List<siprp.data.outer.EstabelecimentosData>fromEstabelecimentos_empresa_id()
{
java.util.List<siprp.data.outer.EstabelecimentosData> result = null;
@ -1451,64 +1459,6 @@ public class Empresas extends siprp.data.BaseObject
LAZY_LOADED_OBJECTS.put( DATA_RELATORIO_ANUAL, Boolean.TRUE );
}
public Double getPreco_higiene()
{
try
{
setLastAccess( System.currentTimeMillis() );
prepare( PRECO_HIGIENE );
}
catch( java.lang.Exception ex )
{
throw new RuntimeException( ex );
}
return this.preco_higiene;
}
public void setPreco_higiene( Double preco_higiene )
{
try
{
setLockedForRefresh( true );
preProcess( PRECO_HIGIENE, preco_higiene );
}
catch( com.evolute.entity.evo.EvoDataException edex )
{
throw new RuntimeException( edex );
}
this.preco_higiene = preco_higiene;
LAZY_LOADED_OBJECTS.put( PRECO_HIGIENE, Boolean.TRUE );
}
public Double getPreco_medicina()
{
try
{
setLastAccess( System.currentTimeMillis() );
prepare( PRECO_MEDICINA );
}
catch( java.lang.Exception ex )
{
throw new RuntimeException( ex );
}
return this.preco_medicina;
}
public void setPreco_medicina( Double preco_medicina )
{
try
{
setLockedForRefresh( true );
preProcess( PRECO_MEDICINA, preco_medicina );
}
catch( com.evolute.entity.evo.EvoDataException edex )
{
throw new RuntimeException( edex );
}
this.preco_medicina = preco_medicina;
LAZY_LOADED_OBJECTS.put( PRECO_MEDICINA, Boolean.TRUE );
}
public String getPeriodicidade()
{
try
@ -1912,6 +1862,35 @@ public class Empresas extends siprp.data.BaseObject
LAZY_LOADED_OBJECTS.put( IMPRIMIR_TABELA_ALARGADA, Boolean.TRUE );
}
public String getCodigo_relatorio_unico()
{
try
{
setLastAccess( System.currentTimeMillis() );
prepare( CODIGO_RELATORIO_UNICO );
}
catch( java.lang.Exception ex )
{
throw new RuntimeException( ex );
}
return this.codigo_relatorio_unico;
}
public void setCodigo_relatorio_unico( String codigo_relatorio_unico )
{
try
{
setLockedForRefresh( true );
preProcess( CODIGO_RELATORIO_UNICO, codigo_relatorio_unico );
}
catch( com.evolute.entity.evo.EvoDataException edex )
{
throw new RuntimeException( edex );
}
this.codigo_relatorio_unico = codigo_relatorio_unico;
LAZY_LOADED_OBJECTS.put( CODIGO_RELATORIO_UNICO, Boolean.TRUE );
}
public Object get( String fieldName )
{
Object value = null;
@ -2014,12 +1993,6 @@ public class Empresas extends siprp.data.BaseObject
case Empresas.DATA_RELATORIO_ANUAL_INDEX:
value = getData_relatorio_anual();
break;
case Empresas.PRECO_HIGIENE_INDEX:
value = getPreco_higiene();
break;
case Empresas.PRECO_MEDICINA_INDEX:
value = getPreco_medicina();
break;
case Empresas.PERIODICIDADE_INDEX:
value = getPeriodicidade();
break;
@ -2062,6 +2035,9 @@ public class Empresas extends siprp.data.BaseObject
case Empresas.IMPRIMIR_TABELA_ALARGADA_INDEX:
value = getImprimir_tabela_alargada();
break;
case Empresas.CODIGO_RELATORIO_UNICO_INDEX:
value = getCodigo_relatorio_unico();
break;
}
return value;
}
@ -2168,12 +2144,6 @@ public class Empresas extends siprp.data.BaseObject
case Empresas.DATA_RELATORIO_ANUAL_INDEX:
value = this.data_relatorio_anual;
break;
case Empresas.PRECO_HIGIENE_INDEX:
value = this.preco_higiene;
break;
case Empresas.PRECO_MEDICINA_INDEX:
value = this.preco_medicina;
break;
case Empresas.PERIODICIDADE_INDEX:
value = this.periodicidade;
break;
@ -2216,6 +2186,9 @@ public class Empresas extends siprp.data.BaseObject
case Empresas.IMPRIMIR_TABELA_ALARGADA_INDEX:
value = this.imprimir_tabela_alargada;
break;
case Empresas.CODIGO_RELATORIO_UNICO_INDEX:
value = this.codigo_relatorio_unico;
break;
}
return value;
}
@ -2321,12 +2294,6 @@ public class Empresas extends siprp.data.BaseObject
case Empresas.DATA_RELATORIO_ANUAL_INDEX:
setData_relatorio_anual( ( java.util.Date ) value );
break;
case Empresas.PRECO_HIGIENE_INDEX:
setPreco_higiene( ( Double ) value );
break;
case Empresas.PRECO_MEDICINA_INDEX:
setPreco_medicina( ( Double ) value );
break;
case Empresas.PERIODICIDADE_INDEX:
setPeriodicidade( ( String ) value );
break;
@ -2369,6 +2336,9 @@ public class Empresas extends siprp.data.BaseObject
case Empresas.IMPRIMIR_TABELA_ALARGADA_INDEX:
setImprimir_tabela_alargada( ( Boolean ) value );
break;
case Empresas.CODIGO_RELATORIO_UNICO_INDEX:
setCodigo_relatorio_unico( ( String ) value );
break;
}
}
@ -2473,12 +2443,6 @@ public class Empresas extends siprp.data.BaseObject
case Empresas.DATA_RELATORIO_ANUAL_INDEX:
this.data_relatorio_anual = ( java.util.Date ) value;
break;
case Empresas.PRECO_HIGIENE_INDEX:
this.preco_higiene = ( Double ) value;
break;
case Empresas.PRECO_MEDICINA_INDEX:
this.preco_medicina = ( Double ) value;
break;
case Empresas.PERIODICIDADE_INDEX:
this.periodicidade = ( String ) value;
break;
@ -2521,6 +2485,9 @@ public class Empresas extends siprp.data.BaseObject
case Empresas.IMPRIMIR_TABELA_ALARGADA_INDEX:
this.imprimir_tabela_alargada = ( Boolean ) value;
break;
case Empresas.CODIGO_RELATORIO_UNICO_INDEX:
this.codigo_relatorio_unico = ( String ) value;
break;
}
}
@ -2656,12 +2623,6 @@ public class Empresas extends siprp.data.BaseObject
case Empresas.DATA_RELATORIO_ANUAL_INDEX:
theClass = java.util.Date.class;
break;
case Empresas.PRECO_HIGIENE_INDEX:
theClass = Double.class;
break;
case Empresas.PRECO_MEDICINA_INDEX:
theClass = Double.class;
break;
case Empresas.PERIODICIDADE_INDEX:
theClass = String.class;
break;
@ -2704,6 +2665,9 @@ public class Empresas extends siprp.data.BaseObject
case Empresas.IMPRIMIR_TABELA_ALARGADA_INDEX:
theClass = Boolean.class;
break;
case Empresas.CODIGO_RELATORIO_UNICO_INDEX:
theClass = String.class;
break;
}
return theClass;
}
@ -2730,8 +2694,9 @@ public class Empresas extends siprp.data.BaseObject
if( primaryKey == null )
{
primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, Empresas.PK_FIELD_NAMES );
primaryKey.set( 0, getId() );
primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
}
setId( ( Integer ) array.get( row, col + 0 ) );
}
@Override

@ -33,7 +33,7 @@ public class Errors extends siprp.data.BaseObject
public static final String TABLENAME = "errors";
public static final String CLASS_IDENTIFIER = "errors1277401737157";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.errors";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -78,7 +78,7 @@ public class Estabelecimentos extends siprp.data.BaseObject
public static final String TABLENAME = "estabelecimentos";
public static final String CLASS_IDENTIFIER = "estabelecimentos1277401737158";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.estabelecimentos";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";
@ -1299,8 +1299,9 @@ public class Estabelecimentos extends siprp.data.BaseObject
if( primaryKey == null )
{
primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, Estabelecimentos.PK_FIELD_NAMES );
primaryKey.set( 0, getId() );
primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
}
setId( ( Integer ) array.get( row, col + 0 ) );
}
@Override

@ -51,7 +51,7 @@ public class Etiquetas extends siprp.data.BaseObject
public static final String TABLENAME = "etiquetas";
public static final String CLASS_IDENTIFIER = "etiquetas1277401737158";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.etiquetas";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -53,6 +53,8 @@ public class Exames extends siprp.data.BaseObject
FIELD_INDEXES.put( Exames.PDF_FULL, Exames.PDF_INDEX );
FIELD_INDEXES.put( Exames.FO, Exames.FO_INDEX );
FIELD_INDEXES.put( Exames.FO_FULL, Exames.FO_INDEX );
FIELD_INDEXES.put( Exames.IMPRESSO_STAMP, Exames.IMPRESSO_STAMP_INDEX );
FIELD_INDEXES.put( Exames.IMPRESSO_STAMP_FULL, Exames.IMPRESSO_STAMP_INDEX );
}
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
@ -67,7 +69,7 @@ public class Exames extends siprp.data.BaseObject
public static final String TABLENAME = "exames";
public static final String CLASS_IDENTIFIER = "exames1277401737159";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.exames";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";
@ -125,21 +127,26 @@ public class Exames extends siprp.data.BaseObject
public static final String FO = "fo";
public static final String FO_FULL = "exames.fo";
public static final int FO_INDEX = 18;
public static final String IMPRESSO_STAMP = "impresso_stamp";
public static final String IMPRESSO_STAMP_FULL = "exames.impresso_stamp";
public static final int IMPRESSO_STAMP_INDEX = 19;
public static final String FIELD_NAMES[] = new String[]{
DATA, TIPO, OCASIONAL, OUTRO_TIPO, RESULTADO, OUTRA_FUNCAO_1, OUTRA_FUNCAO_2,
OUTRA_FUNCAO_3, OUTRA_FUNCAO_4, PROXIMO_EXAME, OUTRAS_RECOMENDACOES, INACTIVO,
TRABALHADOR_ID, TO_TRABALHADOR_ID, MEDICO_ID, TO_MEDICO_ID, PDF, FO, };
TRABALHADOR_ID, TO_TRABALHADOR_ID, MEDICO_ID, TO_MEDICO_ID, PDF, FO,
IMPRESSO_STAMP, };
public static final String FIELD_NAMES_FULL[] = new String[]{
TABLENAME + "." + DATA, TABLENAME + "." + TIPO, TABLENAME + "." + OCASIONAL, TABLENAME + "." + OUTRO_TIPO, TABLENAME + "." + RESULTADO, TABLENAME + "." + OUTRA_FUNCAO_1, TABLENAME + "." + OUTRA_FUNCAO_2,
TABLENAME + "." + OUTRA_FUNCAO_3, TABLENAME + "." + OUTRA_FUNCAO_4, TABLENAME + "." + PROXIMO_EXAME, TABLENAME + "." + OUTRAS_RECOMENDACOES, TABLENAME + "." + INACTIVO,
TABLENAME + "." + TRABALHADOR_ID, TABLENAME + "." + TO_TRABALHADOR_ID, TABLENAME + "." + MEDICO_ID, TABLENAME + "." + TO_MEDICO_ID, TABLENAME + "." + PDF, TABLENAME + "." + FO, };
TABLENAME + "." + TRABALHADOR_ID, TABLENAME + "." + TO_TRABALHADOR_ID, TABLENAME + "." + MEDICO_ID, TABLENAME + "." + TO_MEDICO_ID, TABLENAME + "." + PDF, TABLENAME + "." + FO,
TABLENAME + "." + IMPRESSO_STAMP, };
protected static final String DB_FIELD_NAMES[] = new String[]{
ID, DATA, TIPO, OCASIONAL, OUTRO_TIPO, RESULTADO, OUTRA_FUNCAO_1, OUTRA_FUNCAO_2,
OUTRA_FUNCAO_3, OUTRA_FUNCAO_4, PROXIMO_EXAME, OUTRAS_RECOMENDACOES, INACTIVO,
TRABALHADOR_ID, MEDICO_ID, PDF, FO, };
TRABALHADOR_ID, MEDICO_ID, PDF, FO, IMPRESSO_STAMP, };
protected static final String PK_FIELD_NAMES[] = new String[]{
@ -149,7 +156,7 @@ public class Exames extends siprp.data.BaseObject
public static final String DEFAULT_LOAD_SET[] = new String[] {
ID, DATA, TIPO, OCASIONAL, OUTRO_TIPO, RESULTADO, OUTRA_FUNCAO_1, OUTRA_FUNCAO_2,
OUTRA_FUNCAO_3, OUTRA_FUNCAO_4, PROXIMO_EXAME, OUTRAS_RECOMENDACOES, INACTIVO,
TRABALHADOR_ID, MEDICO_ID, };
TRABALHADOR_ID, MEDICO_ID, IMPRESSO_STAMP, };
private Integer id;
private java.util.Date data;
@ -170,6 +177,7 @@ public class Exames extends siprp.data.BaseObject
private siprp.data.outer.MedicosData to_medico_id;
private byte[] pdf;
private byte[] fo;
private java.sql.Timestamp impresso_stamp;
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
@ -178,7 +186,8 @@ public class Exames extends siprp.data.BaseObject
super();
dirtyProperties = new boolean[]{ false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false };
false, false, false, false, false, false, false, false,
false };
}
public Integer getId()
@ -752,6 +761,35 @@ public class Exames extends siprp.data.BaseObject
LAZY_LOADED_OBJECTS.put( FO, Boolean.TRUE );
}
public java.sql.Timestamp getImpresso_stamp()
{
try
{
setLastAccess( System.currentTimeMillis() );
prepare( IMPRESSO_STAMP );
}
catch( java.lang.Exception ex )
{
throw new RuntimeException( ex );
}
return this.impresso_stamp;
}
public void setImpresso_stamp( java.sql.Timestamp impresso_stamp )
{
try
{
setLockedForRefresh( true );
preProcess( IMPRESSO_STAMP, impresso_stamp );
}
catch( com.evolute.entity.evo.EvoDataException edex )
{
throw new RuntimeException( edex );
}
this.impresso_stamp = impresso_stamp;
LAZY_LOADED_OBJECTS.put( IMPRESSO_STAMP, Boolean.TRUE );
}
public Object get( String fieldName )
{
Object value = null;
@ -815,6 +853,9 @@ public class Exames extends siprp.data.BaseObject
case Exames.FO_INDEX:
value = getFo();
break;
case Exames.IMPRESSO_STAMP_INDEX:
value = getImpresso_stamp();
break;
}
return value;
}
@ -882,6 +923,9 @@ public class Exames extends siprp.data.BaseObject
case Exames.FO_INDEX:
value = this.fo;
break;
case Exames.IMPRESSO_STAMP_INDEX:
value = this.impresso_stamp;
break;
}
return value;
}
@ -948,6 +992,9 @@ public class Exames extends siprp.data.BaseObject
case Exames.FO_INDEX:
setFo( ( byte[] ) value );
break;
case Exames.IMPRESSO_STAMP_INDEX:
setImpresso_stamp( ( java.sql.Timestamp ) value );
break;
}
}
@ -1013,6 +1060,9 @@ public class Exames extends siprp.data.BaseObject
case Exames.FO_INDEX:
this.fo = ( byte[] ) value;
break;
case Exames.IMPRESSO_STAMP_INDEX:
this.impresso_stamp = ( java.sql.Timestamp ) value;
break;
}
}
@ -1109,6 +1159,9 @@ public class Exames extends siprp.data.BaseObject
case Exames.FO_INDEX:
theClass = byte[].class;
break;
case Exames.IMPRESSO_STAMP_INDEX:
theClass = java.sql.Timestamp.class;
break;
}
return theClass;
}
@ -1135,8 +1188,9 @@ public class Exames extends siprp.data.BaseObject
if( primaryKey == null )
{
primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, Exames.PK_FIELD_NAMES );
primaryKey.set( 0, getId() );
primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
}
setId( ( Integer ) array.get( row, col + 0 ) );
}
@Override

@ -36,7 +36,7 @@ public class ExamesPerfis extends siprp.data.BaseObject
public static final String TABLENAME = "exames_perfis";
public static final String CLASS_IDENTIFIER = "exames_perfis1277401737159";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.exames_perfis";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";
@ -401,8 +401,9 @@ public class ExamesPerfis extends siprp.data.BaseObject
if( primaryKey == null )
{
primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, ExamesPerfis.PK_FIELD_NAMES );
primaryKey.set( 0, getId() );
primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
}
setId( ( Integer ) array.get( row, col + 0 ) );
}
@Override

@ -29,7 +29,7 @@ public class ExamesPortaria extends siprp.data.BaseObject
public static final String TABLENAME = "exames_portaria";
public static final String CLASS_IDENTIFIER = "exames_portaria1277401737160";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.exames_portaria";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -36,7 +36,7 @@ public class HistoricoEstabelecimento extends siprp.data.Historico
public static final String TABLENAME = "historico_estabelecimento";
public static final String CLASS_IDENTIFIER = "historico_estabelecimento1277401737160";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.historico_estabelecimento";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";
@ -401,8 +401,9 @@ public class HistoricoEstabelecimento extends siprp.data.Historico
if( primaryKey == null )
{
primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, HistoricoEstabelecimento.PK_FIELD_NAMES );
primaryKey.set( 0, getId() );
primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
}
setId( ( Integer ) array.get( row, col + 0 ) );
}
@Override

@ -38,7 +38,7 @@ public class HsArea extends siprp.data.BaseObject
public static final String TABLENAME = "hs_area";
public static final String CLASS_IDENTIFIER = "hs_area1277401737160";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.hs_area";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -27,7 +27,7 @@ public class HsEmail extends siprp.data.BaseObject
public static final String TABLENAME = "hs_email";
public static final String CLASS_IDENTIFIER = "hs_email1277401737161";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.hs_email";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -37,7 +37,7 @@ public class HsEmailEmpresa extends siprp.data.BaseObject
public static final String TABLENAME = "hs_email_empresa";
public static final String CLASS_IDENTIFIER = "hs_email_empresa1277401737161";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.hs_email_empresa";
public static final int _INVALID__INDEX = -1;
public static final String EMAIL_ID = "email_id";

@ -37,7 +37,7 @@ public class HsEmailEstabelecimento extends siprp.data.BaseObject
public static final String TABLENAME = "hs_email_estabelecimento";
public static final String CLASS_IDENTIFIER = "hs_email_estabelecimento1277401737161";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.hs_email_estabelecimento";
public static final int _INVALID__INDEX = -1;
public static final String EMAIL_ID = "email_id";

@ -33,7 +33,7 @@ public class HsEquipamento extends siprp.data.BaseObject
public static final String TABLENAME = "hs_equipamento";
public static final String CLASS_IDENTIFIER = "hs_equipamento1277401737162";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.hs_equipamento";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -36,7 +36,7 @@ public class HsLegislacao extends siprp.data.BaseObject
public static final String TABLENAME = "hs_legislacao";
public static final String CLASS_IDENTIFIER = "hs_legislacao1277401737162";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.hs_legislacao";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -29,7 +29,7 @@ public class HsLegislacaoCategoria extends siprp.data.BaseObject
public static final String TABLENAME = "hs_legislacao_categoria";
public static final String CLASS_IDENTIFIER = "hs_legislacao_categoria1277401737163";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.hs_legislacao_categoria";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -37,7 +37,7 @@ public class HsLegislacaoEmpresa extends siprp.data.BaseObject
public static final String TABLENAME = "hs_legislacao_empresa";
public static final String CLASS_IDENTIFIER = "hs_legislacao_empresa1277401737163";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.hs_legislacao_empresa";
public static final int _INVALID__INDEX = -1;
public static final String LEGISLACAO_ID = "legislacao_id";

@ -39,7 +39,7 @@ public class HsLegislacaoEstabelecimento extends siprp.data.BaseObject
public static final String TABLENAME = "hs_legislacao_estabelecimento";
public static final String CLASS_IDENTIFIER = "hs_legislacao_estabelecimento1277401737163";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.hs_legislacao_estabelecimento";
public static final int _INVALID__INDEX = -1;
public static final String LEGISLACAO_ID = "legislacao_id";

@ -31,7 +31,7 @@ public class HsMedida extends siprp.data.BaseObject
public static final String TABLENAME = "hs_medida";
public static final String CLASS_IDENTIFIER = "hs_medida1277401737164";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.hs_medida";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -33,7 +33,7 @@ public class HsNormalizacao extends siprp.data.BaseObject
public static final String TABLENAME = "hs_normalizacao";
public static final String CLASS_IDENTIFIER = "hs_normalizacao1277401737164";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.hs_normalizacao";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -37,7 +37,7 @@ public class HsNormalizacaoEmpresa extends siprp.data.BaseObject
public static final String TABLENAME = "hs_normalizacao_empresa";
public static final String CLASS_IDENTIFIER = "hs_normalizacao_empresa1277401737165";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.hs_normalizacao_empresa";
public static final int _INVALID__INDEX = -1;
public static final String NORMALIZACAO_ID = "normalizacao_id";

@ -37,7 +37,7 @@ public class HsNormalizacaoEstabelecimento extends siprp.data.BaseObject
public static final String TABLENAME = "hs_normalizacao_estabelecimento";
public static final String CLASS_IDENTIFIER = "hs_normalizacao_estabelecimento1277401737165";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.hs_normalizacao_estabelecimento";
public static final int _INVALID__INDEX = -1;
public static final String NORMALIZACAO_ID = "normalizacao_id";

@ -38,7 +38,7 @@ public class HsPosto extends siprp.data.BaseObject
public static final String TABLENAME = "hs_posto";
public static final String CLASS_IDENTIFIER = "hs_posto1277401737165";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.hs_posto";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -37,7 +37,7 @@ public class HsPostoEstabelecimento extends siprp.data.BaseObject
public static final String TABLENAME = "hs_posto_estabelecimento";
public static final String CLASS_IDENTIFIER = "hs_posto_estabelecimento1277401737166";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.hs_posto_estabelecimento";
public static final int _INVALID__INDEX = -1;
public static final String POSTO_ID = "posto_id";

@ -37,7 +37,7 @@ public class HsPostoMedida extends siprp.data.BaseObject
public static final String TABLENAME = "hs_posto_medida";
public static final String CLASS_IDENTIFIER = "hs_posto_medida1277401737166";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.hs_posto_medida";
public static final int _INVALID__INDEX = -1;
public static final String POSTO_ID = "posto_id";

@ -52,7 +52,7 @@ public class HsPostoRisco extends siprp.data.BaseObject
public static final String TABLENAME = "hs_posto_risco";
public static final String CLASS_IDENTIFIER = "hs_posto_risco1277401737166";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.hs_posto_risco";
public static final int _INVALID__INDEX = -1;
public static final String POSTO_ID = "posto_id";

@ -54,7 +54,7 @@ public class HsRelatorio extends siprp.data.BaseObject
public static final String TABLENAME = "hs_relatorio";
public static final String CLASS_IDENTIFIER = "hs_relatorio1277401737167";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.hs_relatorio";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -40,7 +40,7 @@ public class HsRelatorioArea extends siprp.data.BaseObject
public static final String TABLENAME = "hs_relatorio_area";
public static final String CLASS_IDENTIFIER = "hs_relatorio_area1277401737168";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.hs_relatorio_area";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -42,7 +42,7 @@ public class HsRelatorioEquipamento extends siprp.data.BaseObject
public static final String TABLENAME = "hs_relatorio_equipamento";
public static final String CLASS_IDENTIFIER = "hs_relatorio_equipamento1277401737168";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.hs_relatorio_equipamento";
public static final int _INVALID__INDEX = -1;
public static final String HS_RELATORIO_ID = "hs_relatorio_id";

@ -40,7 +40,7 @@ public class HsRelatorioLegislacao extends siprp.data.BaseObject
public static final String TABLENAME = "hs_relatorio_legislacao";
public static final String CLASS_IDENTIFIER = "hs_relatorio_legislacao1277401737168";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.hs_relatorio_legislacao";
public static final int _INVALID__INDEX = -1;
public static final String HS_RELATORIO_ID = "hs_relatorio_id";

@ -40,7 +40,7 @@ public class HsRelatorioMedida extends siprp.data.BaseObject
public static final String TABLENAME = "hs_relatorio_medida";
public static final String CLASS_IDENTIFIER = "hs_relatorio_medida1277401737169";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.hs_relatorio_medida";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -40,7 +40,7 @@ public class HsRelatorioNormalizacao extends siprp.data.BaseObject
public static final String TABLENAME = "hs_relatorio_normalizacao";
public static final String CLASS_IDENTIFIER = "hs_relatorio_normalizacao1277401737169";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.hs_relatorio_normalizacao";
public static final int _INVALID__INDEX = -1;
public static final String HS_RELATORIO_ID = "hs_relatorio_id";

@ -40,7 +40,7 @@ public class HsRelatorioPosto extends siprp.data.BaseObject
public static final String TABLENAME = "hs_relatorio_posto";
public static final String CLASS_IDENTIFIER = "hs_relatorio_posto1277401737170";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.hs_relatorio_posto";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -39,7 +39,7 @@ public class HsRelatorioPostoMedida extends siprp.data.BaseObject
public static final String TABLENAME = "hs_relatorio_posto_medida";
public static final String CLASS_IDENTIFIER = "hs_relatorio_posto_medida1277401737170";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.hs_relatorio_posto_medida";
public static final int _INVALID__INDEX = -1;
public static final String POSTO_ID = "posto_id";

@ -50,7 +50,7 @@ public class HsRelatorioPostoRisco extends siprp.data.BaseObject
public static final String TABLENAME = "hs_relatorio_posto_risco";
public static final String CLASS_IDENTIFIER = "hs_relatorio_posto_risco1277401737171";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.hs_relatorio_posto_risco";
public static final int _INVALID__INDEX = -1;
public static final String POSTO_ID = "posto_id";

@ -38,7 +38,7 @@ public class HsRelatorioRisco extends siprp.data.BaseObject
public static final String TABLENAME = "hs_relatorio_risco";
public static final String CLASS_IDENTIFIER = "hs_relatorio_risco1277401737171";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.hs_relatorio_risco";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -27,7 +27,7 @@ public class HsRelatorioRiscoValorQualitativo extends siprp.data.BaseObject
public static final String TABLENAME = "hs_relatorio_risco_valor_qualitativo";
public static final String CLASS_IDENTIFIER = "hs_relatorio_risco_valor_qualitativo1277401737172";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.hs_relatorio_risco_valor_qualitativo";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -36,7 +36,7 @@ public class HsRisco extends siprp.data.BaseObject
public static final String TABLENAME = "hs_risco";
public static final String CLASS_IDENTIFIER = "hs_risco1277401737172";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.hs_risco";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -37,7 +37,7 @@ public class HsRiscoEmpresa extends siprp.data.BaseObject
public static final String TABLENAME = "hs_risco_empresa";
public static final String CLASS_IDENTIFIER = "hs_risco_empresa1277401737174";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.hs_risco_empresa";
public static final int _INVALID__INDEX = -1;
public static final String RISCO_ID = "risco_id";

@ -37,7 +37,7 @@ public class HsRiscoMedida extends siprp.data.BaseObject
public static final String TABLENAME = "hs_risco_medida";
public static final String CLASS_IDENTIFIER = "hs_risco_medida1277401737174";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.hs_risco_medida";
public static final int _INVALID__INDEX = -1;
public static final String RISCO_ID = "risco_id";

@ -29,7 +29,7 @@ public class HsRiscoTema extends siprp.data.BaseObject
public static final String TABLENAME = "hs_risco_tema";
public static final String CLASS_IDENTIFIER = "hs_risco_tema1277401737174";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.hs_risco_tema";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -25,7 +25,7 @@ public class Ids extends siprp.data.BaseObject
public static final String TABLENAME = "ids";
public static final String CLASS_IDENTIFIER = "ids1277401737175";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.ids";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -29,7 +29,7 @@ public class Image extends siprp.data.BaseObject
public static final String TABLENAME = "image";
public static final String CLASS_IDENTIFIER = "image1277401737175";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.image";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -97,7 +97,7 @@ public class Lembretes extends siprp.data.BaseObject
public static final String TABLENAME = "lembretes";
public static final String CLASS_IDENTIFIER = "lembretes1277401737175";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.lembretes";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -33,7 +33,7 @@ public class LembretesTipos extends siprp.data.BaseObject
public static final String TABLENAME = "lembretes_tipos";
public static final String CLASS_IDENTIFIER = "lembretes_tipos1277401737176";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.lembretes_tipos";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -38,7 +38,7 @@ public class MarcacoesEmpresa extends siprp.data.Marcacao
public static final String TABLENAME = "marcacoes_empresa";
public static final String CLASS_IDENTIFIER = "marcacoes_empresa1277401737177";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.marcacoes_empresa";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";
@ -451,8 +451,9 @@ public class MarcacoesEmpresa extends siprp.data.Marcacao
if( primaryKey == null )
{
primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, MarcacoesEmpresa.PK_FIELD_NAMES );
primaryKey.set( 0, getId() );
primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
}
setId( ( Integer ) array.get( row, col + 0 ) );
}
@Override

@ -58,7 +58,7 @@ public class MarcacoesEstabelecimento extends siprp.data.Marcacao
public static final String TABLENAME = "marcacoes_estabelecimento";
public static final String CLASS_IDENTIFIER = "marcacoes_estabelecimento1277401737177";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.marcacoes_estabelecimento";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";
@ -834,8 +834,9 @@ public class MarcacoesEstabelecimento extends siprp.data.Marcacao
if( primaryKey == null )
{
primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, MarcacoesEstabelecimento.PK_FIELD_NAMES );
primaryKey.set( 0, getId() );
primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
}
setId( ( Integer ) array.get( row, col + 0 ) );
}
@Override

@ -46,7 +46,7 @@ public class MarcacoesGruposRealizados extends siprp.data.BaseObject
public static final String TABLENAME = "marcacoes_grupos_realizados";
public static final String CLASS_IDENTIFIER = "marcacoes_grupos_realizados1277401737177";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.marcacoes_grupos_realizados";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -48,7 +48,7 @@ public class MarcacoesTecnicosHst extends siprp.data.BaseObject
public static final String TABLENAME = "marcacoes_tecnicos_hst";
public static final String CLASS_IDENTIFIER = "marcacoes_tecnicos_hst1277401737178";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.marcacoes_tecnicos_hst";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";
@ -733,8 +733,9 @@ public class MarcacoesTecnicosHst extends siprp.data.BaseObject
if( primaryKey == null )
{
primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, MarcacoesTecnicosHst.PK_FIELD_NAMES );
primaryKey.set( 0, getId() );
primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
}
setId( ( Integer ) array.get( row, col + 0 ) );
}
@Override

@ -41,6 +41,10 @@ public class MarcacoesTrabalhador extends siprp.data.Marcacao
FIELD_INDEXES.put( MarcacoesTrabalhador.PRESTADOR_ID, MarcacoesTrabalhador.PRESTADOR_ID_INDEX );
FIELD_INDEXES.put( MarcacoesTrabalhador.PRESTADOR_ID_FULL, MarcacoesTrabalhador.PRESTADOR_ID_INDEX );
FIELD_INDEXES.put( MarcacoesTrabalhador.TO_PRESTADOR_ID, MarcacoesTrabalhador.TO_PRESTADOR_ID_INDEX );
FIELD_INDEXES.put( MarcacoesTrabalhador.MEDICO_ID, MarcacoesTrabalhador.MEDICO_ID_INDEX );
FIELD_INDEXES.put( MarcacoesTrabalhador.MEDICO_ID_FULL, MarcacoesTrabalhador.MEDICO_ID_INDEX );
FIELD_INDEXES.put( MarcacoesTrabalhador.INSERTED_STAMP, MarcacoesTrabalhador.INSERTED_STAMP_INDEX );
FIELD_INDEXES.put( MarcacoesTrabalhador.INSERTED_STAMP_FULL, MarcacoesTrabalhador.INSERTED_STAMP_INDEX );
}
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
@ -55,7 +59,7 @@ public class MarcacoesTrabalhador extends siprp.data.Marcacao
public static final String TABLENAME = "marcacoes_trabalhador";
public static final String CLASS_IDENTIFIER = "marcacoes_trabalhador1277401737178";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.marcacoes_trabalhador";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";
@ -95,18 +99,26 @@ public class MarcacoesTrabalhador extends siprp.data.Marcacao
public static final int PRESTADOR_ID_INDEX = 11;
public static final String TO_PRESTADOR_ID = "to_prestador_id";
public static final int TO_PRESTADOR_ID_INDEX = 12;
public static final String MEDICO_ID = "medico_id";
public static final String MEDICO_ID_FULL = "marcacoes_trabalhador.medico_id";
public static final int MEDICO_ID_INDEX = 13;
public static final String INSERTED_STAMP = "inserted_stamp";
public static final String INSERTED_STAMP_FULL = "marcacoes_trabalhador.inserted_stamp";
public static final int INSERTED_STAMP_INDEX = 14;
public static final String FIELD_NAMES[] = new String[]{
DATA, REALIZADA, DATA_EMAIL, DATA_RELATORIO, TIPO, TRABALHADOR_ID,
TO_TRABALHADOR_ID, MOTIVO, ESTADO, OBSERVACOES, PRESTADOR_ID, TO_PRESTADOR_ID, };
TO_TRABALHADOR_ID, MOTIVO, ESTADO, OBSERVACOES, PRESTADOR_ID, TO_PRESTADOR_ID,
MEDICO_ID, INSERTED_STAMP, };
public static final String FIELD_NAMES_FULL[] = new String[]{
TABLENAME + "." + DATA, TABLENAME + "." + REALIZADA, TABLENAME + "." + DATA_EMAIL, TABLENAME + "." + DATA_RELATORIO, TABLENAME + "." + TIPO, TABLENAME + "." + TRABALHADOR_ID,
TABLENAME + "." + TO_TRABALHADOR_ID, TABLENAME + "." + MOTIVO, TABLENAME + "." + ESTADO, TABLENAME + "." + OBSERVACOES, TABLENAME + "." + PRESTADOR_ID, TABLENAME + "." + TO_PRESTADOR_ID, };
TABLENAME + "." + TO_TRABALHADOR_ID, TABLENAME + "." + MOTIVO, TABLENAME + "." + ESTADO, TABLENAME + "." + OBSERVACOES, TABLENAME + "." + PRESTADOR_ID, TABLENAME + "." + TO_PRESTADOR_ID,
TABLENAME + "." + MEDICO_ID, TABLENAME + "." + INSERTED_STAMP, };
protected static final String DB_FIELD_NAMES[] = new String[]{
ID, DATA, REALIZADA, DATA_EMAIL, DATA_RELATORIO, TIPO, TRABALHADOR_ID, MOTIVO, ESTADO,
OBSERVACOES, PRESTADOR_ID, };
OBSERVACOES, PRESTADOR_ID, MEDICO_ID, INSERTED_STAMP, };
protected static final String PK_FIELD_NAMES[] = new String[]{
@ -115,7 +127,7 @@ public class MarcacoesTrabalhador extends siprp.data.Marcacao
public static final String DEFAULT_LOAD_SET[] = new String[] {
ID, DATA, REALIZADA, DATA_EMAIL, DATA_RELATORIO, TIPO, TRABALHADOR_ID, MOTIVO, ESTADO,
OBSERVACOES, PRESTADOR_ID, };
OBSERVACOES, PRESTADOR_ID, MEDICO_ID, INSERTED_STAMP, };
private Integer id;
private java.util.Date data;
@ -130,6 +142,8 @@ public class MarcacoesTrabalhador extends siprp.data.Marcacao
private String observacoes;
private Integer prestador_id;
private siprp.data.outer.PrestadoresData to_prestador_id;
private Integer medico_id;
private java.sql.Timestamp inserted_stamp;
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
@ -138,7 +152,7 @@ public class MarcacoesTrabalhador extends siprp.data.Marcacao
super();
dirtyProperties = new boolean[]{ false, false, false,
false, false, false, false, false, false, false, false,
false, false };
false, false, false, false };
}
public Integer getId()
@ -554,6 +568,64 @@ public class MarcacoesTrabalhador extends siprp.data.Marcacao
this.to_prestador_id = to_prestador_id;
}
public Integer getMedico_id()
{
try
{
setLastAccess( System.currentTimeMillis() );
prepare( MEDICO_ID );
}
catch( java.lang.Exception ex )
{
throw new RuntimeException( ex );
}
return this.medico_id;
}
public void setMedico_id( Integer medico_id )
{
try
{
setLockedForRefresh( true );
preProcess( MEDICO_ID, medico_id );
}
catch( com.evolute.entity.evo.EvoDataException edex )
{
throw new RuntimeException( edex );
}
this.medico_id = medico_id;
LAZY_LOADED_OBJECTS.put( MEDICO_ID, Boolean.TRUE );
}
public java.sql.Timestamp getInserted_stamp()
{
try
{
setLastAccess( System.currentTimeMillis() );
prepare( INSERTED_STAMP );
}
catch( java.lang.Exception ex )
{
throw new RuntimeException( ex );
}
return this.inserted_stamp;
}
public void setInserted_stamp( java.sql.Timestamp inserted_stamp )
{
try
{
setLockedForRefresh( true );
preProcess( INSERTED_STAMP, inserted_stamp );
}
catch( com.evolute.entity.evo.EvoDataException edex )
{
throw new RuntimeException( edex );
}
this.inserted_stamp = inserted_stamp;
LAZY_LOADED_OBJECTS.put( INSERTED_STAMP, Boolean.TRUE );
}
public Object get( String fieldName )
{
Object value = null;
@ -599,6 +671,12 @@ public class MarcacoesTrabalhador extends siprp.data.Marcacao
case MarcacoesTrabalhador.TO_PRESTADOR_ID_INDEX:
value = toPrestador_id();
break;
case MarcacoesTrabalhador.MEDICO_ID_INDEX:
value = getMedico_id();
break;
case MarcacoesTrabalhador.INSERTED_STAMP_INDEX:
value = getInserted_stamp();
break;
}
return value;
}
@ -648,6 +726,12 @@ public class MarcacoesTrabalhador extends siprp.data.Marcacao
case MarcacoesTrabalhador.TO_PRESTADOR_ID_INDEX:
value = this.to_prestador_id;
break;
case MarcacoesTrabalhador.MEDICO_ID_INDEX:
value = this.medico_id;
break;
case MarcacoesTrabalhador.INSERTED_STAMP_INDEX:
value = this.inserted_stamp;
break;
}
return value;
}
@ -696,6 +780,12 @@ public class MarcacoesTrabalhador extends siprp.data.Marcacao
case MarcacoesTrabalhador.TO_PRESTADOR_ID_INDEX:
setToPrestador_id( ( siprp.data.outer.PrestadoresData ) value );
break;
case MarcacoesTrabalhador.MEDICO_ID_INDEX:
setMedico_id( ( Integer ) value );
break;
case MarcacoesTrabalhador.INSERTED_STAMP_INDEX:
setInserted_stamp( ( java.sql.Timestamp ) value );
break;
}
}
@ -743,6 +833,12 @@ public class MarcacoesTrabalhador extends siprp.data.Marcacao
case MarcacoesTrabalhador.TO_PRESTADOR_ID_INDEX:
this.to_prestador_id = ( siprp.data.outer.PrestadoresData ) value;
break;
case MarcacoesTrabalhador.MEDICO_ID_INDEX:
this.medico_id = ( Integer ) value;
break;
case MarcacoesTrabalhador.INSERTED_STAMP_INDEX:
this.inserted_stamp = ( java.sql.Timestamp ) value;
break;
}
}
@ -821,6 +917,12 @@ public class MarcacoesTrabalhador extends siprp.data.Marcacao
case MarcacoesTrabalhador.TO_PRESTADOR_ID_INDEX:
theClass = siprp.data.outer.PrestadoresData.class;
break;
case MarcacoesTrabalhador.MEDICO_ID_INDEX:
theClass = Integer.class;
break;
case MarcacoesTrabalhador.INSERTED_STAMP_INDEX:
theClass = java.sql.Timestamp.class;
break;
}
return theClass;
}
@ -847,8 +949,9 @@ public class MarcacoesTrabalhador extends siprp.data.Marcacao
if( primaryKey == null )
{
primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, MarcacoesTrabalhador.PK_FIELD_NAMES );
primaryKey.set( 0, getId() );
primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
}
setId( ( Integer ) array.get( row, col + 0 ) );
}
@Override

@ -43,7 +43,7 @@ public class MarcacoesTrabalhadorEstados extends siprp.data.BaseObject
public static final String TABLENAME = "marcacoes_trabalhador_estados";
public static final String CLASS_IDENTIFIER = "marcacoes_trabalhador_estados1277401737179";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.marcacoes_trabalhador_estados";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -31,7 +31,7 @@ public class Medicos extends siprp.data.BaseObject
public static final String TABLENAME = "medicos";
public static final String CLASS_IDENTIFIER = "medicos1277401737179";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.medicos";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";
@ -380,8 +380,9 @@ public class Medicos extends siprp.data.BaseObject
if( primaryKey == null )
{
primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, Medicos.PK_FIELD_NAMES );
primaryKey.set( 0, getId() );
primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
}
setId( ( Integer ) array.get( row, col + 0 ) );
}
@Override

@ -54,7 +54,7 @@ public class Prestadores extends siprp.data.BaseObject
public static final String TABLENAME = "prestadores";
public static final String CLASS_IDENTIFIER = "prestadores1277401737180";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.prestadores";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -39,7 +39,7 @@ public class PrestadoresGruposProtocolo extends siprp.data.BaseObject
public static final String TABLENAME = "prestadores_grupos_protocolo";
public static final String CLASS_IDENTIFIER = "prestadores_grupos_protocolo1277401737180";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.prestadores_grupos_protocolo";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -41,7 +41,7 @@ public class PrtElementosProtocolo extends siprp.data.BaseObject
public static final String TABLENAME = "prt_elementos_protocolo";
public static final String CLASS_IDENTIFIER = "prt_elementos_protocolo1277401737181";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.prt_elementos_protocolo";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -40,7 +40,7 @@ public class PrtGruposProtocolo extends siprp.data.BaseObject
public static final String TABLENAME = "prt_grupos_protocolo";
public static final String CLASS_IDENTIFIER = "prt_grupos_protocolo1277401737184";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.prt_grupos_protocolo";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";
@ -557,8 +557,9 @@ public class PrtGruposProtocolo extends siprp.data.BaseObject
if( primaryKey == null )
{
primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, PrtGruposProtocolo.PK_FIELD_NAMES );
primaryKey.set( 0, getId() );
primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
}
setId( ( Integer ) array.get( row, col + 0 ) );
}
@Override

@ -38,7 +38,7 @@ public class PrtTiposElementosProtocolo extends siprp.data.BaseObject
public static final String TABLENAME = "prt_tipos_elementos_protocolo";
public static final String CLASS_IDENTIFIER = "prt_tipos_elementos_protocolo1277401737185";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.prt_tipos_elementos_protocolo";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";
@ -479,8 +479,9 @@ public class PrtTiposElementosProtocolo extends siprp.data.BaseObject
if( primaryKey == null )
{
primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, PrtTiposElementosProtocolo.PK_FIELD_NAMES );
primaryKey.set( 0, getId() );
primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
}
setId( ( Integer ) array.get( row, col + 0 ) );
}
@Override

@ -29,7 +29,7 @@ public class TiposExamesComp extends siprp.data.BaseObject
public static final String TABLENAME = "tipos_exames_comp";
public static final String CLASS_IDENTIFIER = "tipos_exames_comp1277401737185";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.tipos_exames_comp";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";
@ -315,8 +315,9 @@ public class TiposExamesComp extends siprp.data.BaseObject
if( primaryKey == null )
{
primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, TiposExamesComp.PK_FIELD_NAMES );
primaryKey.set( 0, getId() );
primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
}
setId( ( Integer ) array.get( row, col + 0 ) );
}
@Override

@ -57,6 +57,10 @@ public class Trabalhadores extends siprp.data.BaseObject
FIELD_INDEXES.put( Trabalhadores.NOME_PLAIN_FULL, Trabalhadores.NOME_PLAIN_INDEX );
FIELD_INDEXES.put( Trabalhadores.BI, Trabalhadores.BI_INDEX );
FIELD_INDEXES.put( Trabalhadores.BI_FULL, Trabalhadores.BI_INDEX );
FIELD_INDEXES.put( Trabalhadores.NIF, Trabalhadores.NIF_INDEX );
FIELD_INDEXES.put( Trabalhadores.NIF_FULL, Trabalhadores.NIF_INDEX );
FIELD_INDEXES.put( Trabalhadores.NUMERO_UTENTE, Trabalhadores.NUMERO_UTENTE_INDEX );
FIELD_INDEXES.put( Trabalhadores.NUMERO_UTENTE_FULL, Trabalhadores.NUMERO_UTENTE_INDEX );
}
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
@ -68,7 +72,7 @@ public class Trabalhadores extends siprp.data.BaseObject
public static final String TABLENAME = "trabalhadores";
public static final String CLASS_IDENTIFIER = "trabalhadores1277401737185";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.trabalhadores";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";
@ -133,24 +137,30 @@ public class Trabalhadores extends siprp.data.BaseObject
public static final String BI = "bi";
public static final String BI_FULL = "trabalhadores.bi";
public static final int BI_INDEX = 20;
public static final String NIF = "nif";
public static final String NIF_FULL = "trabalhadores.nif";
public static final int NIF_INDEX = 21;
public static final String NUMERO_UTENTE = "numero_utente";
public static final String NUMERO_UTENTE_FULL = "trabalhadores.numero_utente";
public static final int NUMERO_UTENTE_INDEX = 22;
public static final String FIELD_NAMES[] = new String[]{
NOME, SEXO, DATA_NASCIMENTO, NACIONALIDADE, NUMERO_MECANOGRAFICO, DATA_ADMISSAO,
CATEGORIA, LOCAL_TRABALHO, FUNCAO_PROPOSTA, DATA_ADMISSAO_FUNCAO, OBSERVACOES,
INACTIVO, ESTABELECIMENTO_ID, TO_ESTABELECIMENTO_ID, DATA_DEMISSAO,
OBSERVACOES_GESTAO, PERFIL, ACTUALIZACAO, NOME_PLAIN, BI, };
OBSERVACOES_GESTAO, PERFIL, ACTUALIZACAO, NOME_PLAIN, BI, NIF, NUMERO_UTENTE, };
public static final String FIELD_NAMES_FULL[] = new String[]{
TABLENAME + "." + NOME, TABLENAME + "." + SEXO, TABLENAME + "." + DATA_NASCIMENTO, TABLENAME + "." + NACIONALIDADE, TABLENAME + "." + NUMERO_MECANOGRAFICO, TABLENAME + "." + DATA_ADMISSAO,
TABLENAME + "." + CATEGORIA, TABLENAME + "." + LOCAL_TRABALHO, TABLENAME + "." + FUNCAO_PROPOSTA, TABLENAME + "." + DATA_ADMISSAO_FUNCAO, TABLENAME + "." + OBSERVACOES,
TABLENAME + "." + INACTIVO, TABLENAME + "." + ESTABELECIMENTO_ID, TABLENAME + "." + TO_ESTABELECIMENTO_ID, TABLENAME + "." + DATA_DEMISSAO,
TABLENAME + "." + OBSERVACOES_GESTAO, TABLENAME + "." + PERFIL, TABLENAME + "." + ACTUALIZACAO, TABLENAME + "." + NOME_PLAIN, TABLENAME + "." + BI, };
TABLENAME + "." + OBSERVACOES_GESTAO, TABLENAME + "." + PERFIL, TABLENAME + "." + ACTUALIZACAO, TABLENAME + "." + NOME_PLAIN, TABLENAME + "." + BI, TABLENAME + "." + NIF, TABLENAME + "." + NUMERO_UTENTE, };
protected static final String DB_FIELD_NAMES[] = new String[]{
ID, NOME, SEXO, DATA_NASCIMENTO, NACIONALIDADE, NUMERO_MECANOGRAFICO,
DATA_ADMISSAO, CATEGORIA, LOCAL_TRABALHO, FUNCAO_PROPOSTA,
DATA_ADMISSAO_FUNCAO, OBSERVACOES, INACTIVO, ESTABELECIMENTO_ID, DATA_DEMISSAO,
OBSERVACOES_GESTAO, PERFIL, ACTUALIZACAO, NOME_PLAIN, BI, };
OBSERVACOES_GESTAO, PERFIL, ACTUALIZACAO, NOME_PLAIN, BI, NIF, NUMERO_UTENTE, };
protected static final String PK_FIELD_NAMES[] = new String[]{
@ -161,7 +171,7 @@ public class Trabalhadores extends siprp.data.BaseObject
ID, NOME, SEXO, DATA_NASCIMENTO, NACIONALIDADE, NUMERO_MECANOGRAFICO,
DATA_ADMISSAO, CATEGORIA, LOCAL_TRABALHO, FUNCAO_PROPOSTA,
DATA_ADMISSAO_FUNCAO, OBSERVACOES, INACTIVO, ESTABELECIMENTO_ID, DATA_DEMISSAO,
OBSERVACOES_GESTAO, PERFIL, ACTUALIZACAO, NOME_PLAIN, BI, };
OBSERVACOES_GESTAO, PERFIL, ACTUALIZACAO, NOME_PLAIN, BI, NIF, NUMERO_UTENTE, };
private Integer id;
private String nome;
@ -184,6 +194,8 @@ public class Trabalhadores extends siprp.data.BaseObject
private java.sql.Timestamp actualizacao;
private String nome_plain;
private String bi;
private String nif;
private String numero_utente;
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
@ -193,7 +205,7 @@ public class Trabalhadores extends siprp.data.BaseObject
dirtyProperties = new boolean[]{ false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false };
false, false, false, false };
}
public Integer getId()
@ -900,6 +912,64 @@ public class Trabalhadores extends siprp.data.BaseObject
LAZY_LOADED_OBJECTS.put( BI, Boolean.TRUE );
}
public String getNif()
{
try
{
setLastAccess( System.currentTimeMillis() );
prepare( NIF );
}
catch( java.lang.Exception ex )
{
throw new RuntimeException( ex );
}
return this.nif;
}
public void setNif( String nif )
{
try
{
setLockedForRefresh( true );
preProcess( NIF, nif );
}
catch( com.evolute.entity.evo.EvoDataException edex )
{
throw new RuntimeException( edex );
}
this.nif = nif;
LAZY_LOADED_OBJECTS.put( NIF, Boolean.TRUE );
}
public String getNumero_utente()
{
try
{
setLastAccess( System.currentTimeMillis() );
prepare( NUMERO_UTENTE );
}
catch( java.lang.Exception ex )
{
throw new RuntimeException( ex );
}
return this.numero_utente;
}
public void setNumero_utente( String numero_utente )
{
try
{
setLockedForRefresh( true );
preProcess( NUMERO_UTENTE, numero_utente );
}
catch( com.evolute.entity.evo.EvoDataException edex )
{
throw new RuntimeException( edex );
}
this.numero_utente = numero_utente;
LAZY_LOADED_OBJECTS.put( NUMERO_UTENTE, Boolean.TRUE );
}
public Object get( String fieldName )
{
Object value = null;
@ -969,6 +1039,12 @@ public class Trabalhadores extends siprp.data.BaseObject
case Trabalhadores.BI_INDEX:
value = getBi();
break;
case Trabalhadores.NIF_INDEX:
value = getNif();
break;
case Trabalhadores.NUMERO_UTENTE_INDEX:
value = getNumero_utente();
break;
}
return value;
}
@ -1042,6 +1118,12 @@ public class Trabalhadores extends siprp.data.BaseObject
case Trabalhadores.BI_INDEX:
value = this.bi;
break;
case Trabalhadores.NIF_INDEX:
value = this.nif;
break;
case Trabalhadores.NUMERO_UTENTE_INDEX:
value = this.numero_utente;
break;
}
return value;
}
@ -1114,6 +1196,12 @@ public class Trabalhadores extends siprp.data.BaseObject
case Trabalhadores.BI_INDEX:
setBi( ( String ) value );
break;
case Trabalhadores.NIF_INDEX:
setNif( ( String ) value );
break;
case Trabalhadores.NUMERO_UTENTE_INDEX:
setNumero_utente( ( String ) value );
break;
}
}
@ -1185,6 +1273,12 @@ public class Trabalhadores extends siprp.data.BaseObject
case Trabalhadores.BI_INDEX:
this.bi = ( String ) value;
break;
case Trabalhadores.NIF_INDEX:
this.nif = ( String ) value;
break;
case Trabalhadores.NUMERO_UTENTE_INDEX:
this.numero_utente = ( String ) value;
break;
}
}
@ -1287,6 +1381,12 @@ public class Trabalhadores extends siprp.data.BaseObject
case Trabalhadores.BI_INDEX:
theClass = String.class;
break;
case Trabalhadores.NIF_INDEX:
theClass = String.class;
break;
case Trabalhadores.NUMERO_UTENTE_INDEX:
theClass = String.class;
break;
}
return theClass;
}
@ -1313,8 +1413,9 @@ public class Trabalhadores extends siprp.data.BaseObject
if( primaryKey == null )
{
primaryKey = new com.evolute.entity.utils.IntegerPrimaryKey( TABLENAME, Trabalhadores.PK_FIELD_NAMES );
primaryKey.set( 0, getId() );
primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
}
setId( ( Integer ) array.get( row, col + 0 ) );
}
@Override

@ -50,7 +50,7 @@ public class TrabalhadoresConsultas extends siprp.data.BaseObject
public static final String TABLENAME = "trabalhadores_consultas";
public static final String CLASS_IDENTIFIER = "trabalhadores_consultas1277401737186";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.trabalhadores_consultas";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -43,7 +43,7 @@ public class TrabalhadoresConsultasDatas extends siprp.data.BaseObject
public static final String TABLENAME = "trabalhadores_consultas_datas";
public static final String CLASS_IDENTIFIER = "trabalhadores_consultas_datas1277401737187";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.trabalhadores_consultas_datas";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -40,7 +40,7 @@ public class TrabalhadoresConsultasDatasEmails extends siprp.data.BaseObject
public static final String TABLENAME = "trabalhadores_consultas_datas_emails";
public static final String CLASS_IDENTIFIER = "trabalhadores_consultas_datas_emails1277401737187";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.trabalhadores_consultas_datas_emails";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -34,7 +34,7 @@ public class TrabalhadoresConsultasDatasObservacoes extends siprp.data.BaseObjec
public static final String TABLENAME = "trabalhadores_consultas_datas_observacoes";
public static final String CLASS_IDENTIFIER = "trabalhadores_consultas_datas_observacoes1277401737193";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.trabalhadores_consultas_datas_observacoes";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -61,7 +61,7 @@ public class TrabalhadoresEcd extends siprp.data.BaseObject
public static final String TABLENAME = "trabalhadores_ecd";
public static final String CLASS_IDENTIFIER = "trabalhadores_ecd1277401737193";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.trabalhadores_ecd";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -43,7 +43,7 @@ public class TrabalhadoresEcds extends siprp.data.BaseObject
public static final String TABLENAME = "trabalhadores_ecds";
public static final String CLASS_IDENTIFIER = "trabalhadores_ecds1277401737194";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.trabalhadores_ecds";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -41,7 +41,7 @@ public class TrabalhadoresEcdsAnalise extends siprp.data.BaseObject
public static final String TABLENAME = "trabalhadores_ecds_analise";
public static final String CLASS_IDENTIFIER = "trabalhadores_ecds_analise1277401737194";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.trabalhadores_ecds_analise";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -54,7 +54,7 @@ public class TrabalhadoresEcdsDatas extends siprp.data.BaseObject
public static final String TABLENAME = "trabalhadores_ecds_datas";
public static final String CLASS_IDENTIFIER = "trabalhadores_ecds_datas1277401737195";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.trabalhadores_ecds_datas";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -40,7 +40,7 @@ public class TrabalhadoresEcdsDatasEmails extends siprp.data.BaseObject
public static final String TABLENAME = "trabalhadores_ecds_datas_emails";
public static final String CLASS_IDENTIFIER = "trabalhadores_ecds_datas_emails1277401737195";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.trabalhadores_ecds_datas_emails";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -34,7 +34,7 @@ public class TrabalhadoresEcdsDatasObservacoes extends siprp.data.BaseObject
public static final String TABLENAME = "trabalhadores_ecds_datas_observacoes";
public static final String CLASS_IDENTIFIER = "trabalhadores_ecds_datas_observacoes1277401737196";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.trabalhadores_ecds_datas_observacoes";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -39,7 +39,7 @@ public class TrabalhadoresFichasAptidao extends siprp.data.BaseObject
public static final String TABLENAME = "trabalhadores_fichas_aptidao";
public static final String CLASS_IDENTIFIER = "trabalhadores_fichas_aptidao1277401737196";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.trabalhadores_fichas_aptidao";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -44,7 +44,7 @@ public class TrabalhadoresProcesso extends siprp.data.BaseObject
public static final String TABLENAME = "trabalhadores_processo";
public static final String CLASS_IDENTIFIER = "trabalhadores_processo1277401737197";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.trabalhadores_processo";
public static final int _INVALID__INDEX = -1;
public static final String ID = "id";

@ -23,7 +23,7 @@ public class Versao extends com.evolute.entity.evo.EvoDataObject<com.evolute.ent
public static final String TABLENAME = "versao";
public static final String CLASS_IDENTIFIER = "versao1277401737197";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.versao";
public static final int _INVALID__INDEX = -1;

@ -23,7 +23,7 @@ public class Version extends com.evolute.entity.evo.EvoDataObject<com.evolute.en
public static final String TABLENAME = "version";
public static final String CLASS_IDENTIFIER = "version1277401737197";
public static final String CLASS_IDENTIFIER = "siprp.data.inner.version";
public static final int _INVALID__INDEX = -1;

@ -17,7 +17,7 @@
</class>
<class name="Avisos" identity-type="application" table="avisos" >
<extension vendor-name="evolute" key="superclass" value="siprp.data.BaseObject"/>
<field name="id" primary-key="true" null-value="exception">
<field name="id" primary-key="true" null-value="exception" value-strategy="sequence" sequence="avisos_id_seq">
<column name="id"/>
<extension vendor-name="evolute" key="java-type" value="Integer"/>
<extension vendor-name="evolute" key="visible" value="false"/>
@ -63,7 +63,7 @@
</class>
<class name="Contactos" identity-type="application" table="contactos" >
<extension vendor-name="evolute" key="superclass" value="siprp.data.BaseObject"/>
<field name="id" primary-key="true" null-value="exception">
<field name="id" primary-key="true" null-value="exception" value-strategy="sequence" sequence="contactos_id_seq">
<column name="id"/>
<extension vendor-name="evolute" key="java-type" value="Integer"/>
<extension vendor-name="evolute" key="visible" value="false"/>
@ -92,6 +92,10 @@
<column name="cargo" length="255"/>
<extension vendor-name="evolute" key="java-type" value="String"/>
</field>
<field name="departamento">
<column name="departamento" length="256"/>
<extension vendor-name="evolute" key="java-type" value="String"/>
</field>
</class>
<class name="EcdOficial" identity-type="application" table="ecd_oficial" >
<extension vendor-name="evolute" key="superclass" value="siprp.data.BaseObject"/>
@ -135,9 +139,75 @@
<extension vendor-name="evolute" key="referenced-column" value="id"/>
</field>
</class>
<class name="EmpresaPrecoPeriodicidadeTipo" identity-type="application" table="empresa_preco_periodicidade_tipo" >
<extension vendor-name="evolute" key="superclass" value="siprp.data.BaseObject"/>
<field name="id" primary-key="true" null-value="exception" value-strategy="sequence" sequence="empresa_preco_periodicidade_tipo_id_seq">
<column name="id"/>
<extension vendor-name="evolute" key="java-type" value="Integer"/>
<extension vendor-name="evolute" key="visible" value="false"/>
</field>
<field name="nome" null-value="exception">
<column name="nome" length="64"/>
<extension vendor-name="evolute" key="java-type" value="String"/>
</field>
</class>
<class name="EmpresaPrecoServico" identity-type="application" table="empresa_preco_servico" >
<extension vendor-name="evolute" key="superclass" value="siprp.data.BaseObject"/>
<field name="id" primary-key="true" null-value="exception" value-strategy="sequence" sequence="empresa_preco_servico_id_seq">
<column name="id"/>
<extension vendor-name="evolute" key="java-type" value="Integer"/>
<extension vendor-name="evolute" key="visible" value="false"/>
</field>
<field name="empresa_preco_servico_tipo_id" null-value="exception">
<column name="empresa_preco_servico_tipo_id"/>
<extension vendor-name="evolute" key="java-type" value="Integer"/>
<extension vendor-name="evolute" key="referenced-table" value="empresa_preco_servico_tipo"/>
<extension vendor-name="evolute" key="referenced-column" value="id"/>
</field>
<field name="empresa_preco_periodicidade_tipo_id">
<column name="empresa_preco_periodicidade_tipo_id"/>
<extension vendor-name="evolute" key="java-type" value="Integer"/>
<extension vendor-name="evolute" key="referenced-table" value="empresa_preco_periodicidade_tipo"/>
<extension vendor-name="evolute" key="referenced-column" value="id"/>
</field>
<field name="tipo_outro">
<column name="tipo_outro" length="64"/>
<extension vendor-name="evolute" key="java-type" value="String"/>
</field>
<field name="empresa_id" null-value="exception">
<column name="empresa_id"/>
<extension vendor-name="evolute" key="java-type" value="Integer"/>
<extension vendor-name="evolute" key="referenced-table" value="empresas"/>
<extension vendor-name="evolute" key="referenced-column" value="id"/>
</field>
<field name="valor">
<column name="valor"/>
<extension vendor-name="evolute" key="java-type" value="Double"/>
</field>
<field name="iniciado" persistence-modifier="persistent">
<column name="iniciado"/>
<extension vendor-name="evolute" key="java-type" value="java.sql.Timestamp"/>
</field>
<field name="activo" null-value="exception">
<column name="activo"/>
<extension vendor-name="evolute" key="java-type" value="Boolean"/>
</field>
</class>
<class name="EmpresaPrecoServicoTipo" identity-type="application" table="empresa_preco_servico_tipo" >
<extension vendor-name="evolute" key="superclass" value="siprp.data.BaseObject"/>
<field name="id" primary-key="true" null-value="exception" value-strategy="sequence" sequence="empresa_preco_servico_tipo_id_seq">
<column name="id"/>
<extension vendor-name="evolute" key="java-type" value="Integer"/>
<extension vendor-name="evolute" key="visible" value="false"/>
</field>
<field name="nome" null-value="exception">
<column name="nome" length="64"/>
<extension vendor-name="evolute" key="java-type" value="String"/>
</field>
</class>
<class name="Empresas" identity-type="application" table="empresas" >
<extension vendor-name="evolute" key="superclass" value="siprp.data.BaseObject"/>
<field name="id" primary-key="true" null-value="exception">
<field name="id" primary-key="true" null-value="exception" value-strategy="sequence" sequence="empresas_id_seq">
<column name="id"/>
<extension vendor-name="evolute" key="java-type" value="Integer"/>
<extension vendor-name="evolute" key="visible" value="false"/>
@ -262,14 +332,6 @@
<column name="data_relatorio_anual"/>
<extension vendor-name="evolute" key="java-type" value="java.util.Date"/>
</field>
<field name="preco_higiene">
<column name="preco_higiene"/>
<extension vendor-name="evolute" key="java-type" value="Double"/>
</field>
<field name="preco_medicina">
<column name="preco_medicina"/>
<extension vendor-name="evolute" key="java-type" value="Double"/>
</field>
<field name="periodicidade">
<column name="periodicidade" length="255"/>
<extension vendor-name="evolute" key="java-type" value="String"/>
@ -324,6 +386,10 @@
<column name="imprimir_tabela_alargada"/>
<extension vendor-name="evolute" key="java-type" value="Boolean"/>
</field>
<field name="codigo_relatorio_unico">
<column name="codigo_relatorio_unico" length="64"/>
<extension vendor-name="evolute" key="java-type" value="String"/>
</field>
</class>
<class name="Errors" identity-type="application" table="errors" >
<extension vendor-name="evolute" key="superclass" value="siprp.data.BaseObject"/>
@ -352,7 +418,7 @@
</class>
<class name="Estabelecimentos" identity-type="application" table="estabelecimentos" >
<extension vendor-name="evolute" key="superclass" value="siprp.data.BaseObject"/>
<field name="id" primary-key="true" null-value="exception">
<field name="id" primary-key="true" null-value="exception" value-strategy="sequence" sequence="estabelecimentos_id_seq">
<column name="id"/>
<extension vendor-name="evolute" key="java-type" value="Integer"/>
<extension vendor-name="evolute" key="visible" value="false"/>
@ -486,7 +552,7 @@
</class>
<class name="Exames" identity-type="application" table="exames" >
<extension vendor-name="evolute" key="superclass" value="siprp.data.BaseObject"/>
<field name="id" primary-key="true" null-value="exception">
<field name="id" primary-key="true" null-value="exception" value-strategy="sequence" sequence="exames_id_seq">
<column name="id"/>
<extension vendor-name="evolute" key="java-type" value="Integer"/>
<extension vendor-name="evolute" key="visible" value="false"/>
@ -559,10 +625,14 @@
<column name="fo"/>
<extension vendor-name="evolute" key="java-type" value="byte[]"/>
</field>
<field name="impresso_stamp" persistence-modifier="persistent">
<column name="impresso_stamp"/>
<extension vendor-name="evolute" key="java-type" value="java.sql.Timestamp"/>
</field>
</class>
<class name="ExamesPerfis" identity-type="application" table="exames_perfis" >
<extension vendor-name="evolute" key="superclass" value="siprp.data.BaseObject"/>
<field name="id" primary-key="true" null-value="exception">
<field name="id" primary-key="true" null-value="exception" value-strategy="sequence" sequence="exames_perfis_id_seq">
<column name="id"/>
<extension vendor-name="evolute" key="java-type" value="Integer"/>
<extension vendor-name="evolute" key="visible" value="false"/>
@ -601,7 +671,7 @@
</class>
<class name="HistoricoEstabelecimento" identity-type="application" table="historico_estabelecimento" >
<extension vendor-name="evolute" key="superclass" value="siprp.data.Historico"/>
<field name="id" primary-key="true" null-value="exception">
<field name="id" primary-key="true" null-value="exception" value-strategy="sequence" sequence="historico_estabelecimento_id_seq">
<column name="id"/>
<extension vendor-name="evolute" key="java-type" value="Integer"/>
<extension vendor-name="evolute" key="visible" value="false"/>
@ -1516,7 +1586,7 @@
</class>
<class name="MarcacoesEmpresa" identity-type="application" table="marcacoes_empresa" >
<extension vendor-name="evolute" key="superclass" value="siprp.data.Marcacao"/>
<field name="id" primary-key="true" null-value="exception">
<field name="id" primary-key="true" null-value="exception" value-strategy="sequence" sequence="marcacoes_empresa_id_seq">
<column name="id"/>
<extension vendor-name="evolute" key="java-type" value="Integer"/>
<extension vendor-name="evolute" key="visible" value="false"/>
@ -1542,7 +1612,7 @@
</class>
<class name="MarcacoesEstabelecimento" identity-type="application" table="marcacoes_estabelecimento" >
<extension vendor-name="evolute" key="superclass" value="siprp.data.Marcacao"/>
<field name="id" primary-key="true" null-value="exception">
<field name="id" primary-key="true" null-value="exception" value-strategy="sequence" sequence="marcacoes_estabelecimento_id_seq">
<column name="id"/>
<extension vendor-name="evolute" key="java-type" value="Integer"/>
<extension vendor-name="evolute" key="visible" value="false"/>
@ -1618,7 +1688,7 @@
</class>
<class name="MarcacoesTecnicosHst" identity-type="application" table="marcacoes_tecnicos_hst" >
<extension vendor-name="evolute" key="superclass" value="siprp.data.BaseObject"/>
<field name="id" primary-key="true" null-value="exception">
<field name="id" primary-key="true" null-value="exception" value-strategy="sequence" sequence="marcacoes_tecnicos_hst_id_seq">
<column name="id"/>
<extension vendor-name="evolute" key="java-type" value="Integer"/>
<extension vendor-name="evolute" key="visible" value="false"/>
@ -1664,7 +1734,7 @@
</class>
<class name="MarcacoesTrabalhador" identity-type="application" table="marcacoes_trabalhador" >
<extension vendor-name="evolute" key="superclass" value="siprp.data.Marcacao"/>
<field name="id" primary-key="true" null-value="exception">
<field name="id" primary-key="true" null-value="exception" value-strategy="sequence" sequence="marcacoes_trabalhador_id_seq">
<column name="id"/>
<extension vendor-name="evolute" key="java-type" value="Integer"/>
<extension vendor-name="evolute" key="visible" value="false"/>
@ -1713,6 +1783,15 @@
<extension vendor-name="evolute" key="referenced-table" value="prestadores"/>
<extension vendor-name="evolute" key="referenced-column" value="id"/>
</field>
<field name="medico_id">
<column name="medico_id"/>
<extension vendor-name="evolute" key="java-type" value="Integer"/>
</field>
<field name="inserted_stamp" persistence-modifier="persistent" value-strategy="timestamp">
<column name="inserted_stamp"/>
<extension vendor-name="evolute" key="java-type" value="java.sql.Timestamp"/>
<extension vendor-name="datanucleus" key="strategy-when-notnull" value="false"/>
</field>
</class>
<class name="MarcacoesTrabalhadorEstados" identity-type="application" table="marcacoes_trabalhador_estados" >
<extension vendor-name="evolute" key="superclass" value="siprp.data.BaseObject"/>
@ -1744,7 +1823,7 @@
</class>
<class name="Medicos" identity-type="application" table="medicos" >
<extension vendor-name="evolute" key="superclass" value="siprp.data.BaseObject"/>
<field name="id" primary-key="true" null-value="exception">
<field name="id" primary-key="true" null-value="exception" value-strategy="sequence" sequence="medicos_id_seq">
<column name="id"/>
<extension vendor-name="evolute" key="java-type" value="Integer"/>
<extension vendor-name="evolute" key="visible" value="false"/>
@ -1866,7 +1945,7 @@
</class>
<class name="PrtGruposProtocolo" identity-type="application" table="prt_grupos_protocolo" >
<extension vendor-name="evolute" key="superclass" value="siprp.data.BaseObject"/>
<field name="id" primary-key="true" null-value="exception">
<field name="id" primary-key="true" null-value="exception" value-strategy="sequence" sequence="prt_grupos_protocolo_id_seq">
<column name="id"/>
<extension vendor-name="evolute" key="java-type" value="Integer"/>
<extension vendor-name="evolute" key="visible" value="false"/>
@ -1896,7 +1975,7 @@
</class>
<class name="PrtTiposElementosProtocolo" identity-type="application" table="prt_tipos_elementos_protocolo" >
<extension vendor-name="evolute" key="superclass" value="siprp.data.BaseObject"/>
<field name="id" primary-key="true" null-value="exception">
<field name="id" primary-key="true" null-value="exception" value-strategy="sequence" sequence="prt_tipos_elementos_protocolo_id_seq">
<column name="id"/>
<extension vendor-name="evolute" key="java-type" value="Integer"/>
<extension vendor-name="evolute" key="visible" value="false"/>
@ -1922,7 +2001,7 @@
</class>
<class name="TiposExamesComp" identity-type="application" table="tipos_exames_comp" >
<extension vendor-name="evolute" key="superclass" value="siprp.data.BaseObject"/>
<field name="id" primary-key="true" null-value="exception">
<field name="id" primary-key="true" null-value="exception" value-strategy="sequence" sequence="tipos_exames_comp_id_seq">
<column name="id"/>
<extension vendor-name="evolute" key="java-type" value="Integer"/>
<extension vendor-name="evolute" key="visible" value="false"/>
@ -1938,7 +2017,7 @@
</class>
<class name="Trabalhadores" identity-type="application" table="trabalhadores" >
<extension vendor-name="evolute" key="superclass" value="siprp.data.BaseObject"/>
<field name="id" primary-key="true" null-value="exception">
<field name="id" primary-key="true" null-value="exception" value-strategy="sequence" sequence="trabalhadores_id_seq">
<column name="id"/>
<extension vendor-name="evolute" key="java-type" value="Integer"/>
<extension vendor-name="evolute" key="visible" value="false"/>
@ -2021,6 +2100,14 @@
<column name="bi" length="255"/>
<extension vendor-name="evolute" key="java-type" value="String"/>
</field>
<field name="nif">
<column name="nif" length="255"/>
<extension vendor-name="evolute" key="java-type" value="String"/>
</field>
<field name="numero_utente">
<column name="numero_utente" length="255"/>
<extension vendor-name="evolute" key="java-type" value="String"/>
</field>
</class>
<class name="TrabalhadoresConsultas" identity-type="application" table="trabalhadores_consultas" >
<extension vendor-name="evolute" key="superclass" value="siprp.data.BaseObject"/>

@ -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();
}
}

@ -275,8 +275,8 @@ public class EmpresaPanel extends JPanel
empresaComponents.putDummy( EmpresasData.CONTACTO_1 );
empresaComponents.putDummy( EmpresasData.CONTACTO_2 );
empresaComponents.putDummy( EmpresasData.SERVICOS );
empresaComponents.putDummy( EmpresasData.PRECO_HIGIENE );
empresaComponents.putDummy( EmpresasData.PRECO_MEDICINA );
// empresaComponents.putDummy( EmpresasData.PRECO_HIGIENE );
// empresaComponents.putDummy( EmpresasData.PRECO_MEDICINA );
empresaComponents.putDummy( EmpresasData.PERIODICIDADE );
empresaComponents.putDummy( EmpresasData.DESIGNACAO_SOCIAL_PLAIN );
empresaComponents.putDummy( EmpresasData.DATA_CANCELAMENTO );

Loading…
Cancel
Save