forked from Coded/SIPRP
remocao de Db, DbLocal;
introducao do ORM; recuperar password bug fixed; listagem de utilizadores : coluna login e POR sem 'null'; listagem de utilizadores : unico tipo de utilizador nao mostrado é DIRECTOR SIPRP; todos (os que teem acesso à pagina) veem todos os utilizadores (excepto aquele); git-svn-id: https://svn.coded.pt/svn/SIPRP@1557 bb69d46d-e84e-40c8-a05a-06db0d633741lxbfYeaa
parent
91cab3c3af
commit
017c55192b
Binary file not shown.
@ -1,8 +1,8 @@
|
||||
build.xml.data.CRC32=430d21bb
|
||||
build.xml.data.CRC32=8edae352
|
||||
build.xml.script.CRC32=97b5d0ef
|
||||
build.xml.stylesheet.CRC32=c0ebde35@1.15.2.1
|
||||
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
|
||||
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
|
||||
nbproject/build-impl.xml.data.CRC32=430d21bb
|
||||
nbproject/build-impl.xml.script.CRC32=ec8dc4f3
|
||||
nbproject/build-impl.xml.data.CRC32=8edae352
|
||||
nbproject/build-impl.xml.script.CRC32=44c2e1c7
|
||||
nbproject/build-impl.xml.stylesheet.CRC32=8ab4467e@1.15.2.1
|
||||
|
||||
@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<driver project-version="3.0" class="org.postgresql.Driver">
|
||||
<!-- <url value="jdbc:postgresql://storage:5432/siprp_local"/> -->
|
||||
<url value="jdbc:postgresql://localhost:5436/siprp_local_3"/>
|
||||
<connectionPool min="1" max="1"/>
|
||||
<login userName="postgres" password=""/>
|
||||
</driver>
|
||||
@ -0,0 +1,26 @@
|
||||
|
||||
# production
|
||||
server.siprp = localhost
|
||||
port.siprp = 5436
|
||||
database.siprp = siprp
|
||||
username.siprp = postgres
|
||||
#password.siprp =
|
||||
|
||||
server.siprp_local = localhost
|
||||
port.siprp_local = 5436
|
||||
database.siprp_local = siprp_local_3
|
||||
username.siprp_local = postgres
|
||||
#password.siprp_local =
|
||||
|
||||
# tests
|
||||
#server.siprp = www.evolute.pt
|
||||
#port.siprp = 5436
|
||||
#database.siprp = siprp
|
||||
#username.siprp = postgres
|
||||
#password.siprp = -rg2hpgsql
|
||||
#
|
||||
#server.siprp_local = www.evolute.pt
|
||||
#port.siprp_local = 5436
|
||||
#database.siprp_local = siprp_local_3
|
||||
#username.siprp_local = postgres
|
||||
#password.siprp_local = -rg2hpgsql
|
||||
@ -0,0 +1,41 @@
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
package db;
|
||||
|
||||
import com.evolute.utils.Singleton;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author dneves
|
||||
*/
|
||||
public interface DBConstants
|
||||
{
|
||||
public static enum DB { SIPRP, SIPRP_LOCAL };
|
||||
|
||||
public static final String DEFAULT_PROVIDER = Singleton.DEFAULT_OBJECT_PROVIDER;
|
||||
public static final String LOCAL_PROVIDER = "LOCAL_PROVIDER";
|
||||
|
||||
public static final String DEFAULT_DBMANAGER = "DEFAULT_DBMANAGER";
|
||||
public static final String LOCAL_DBMANAGER = "LOCAL_DBMANAGER";
|
||||
|
||||
public static final String SESSION_CONNECTION = "SESSION_CONNECTION";
|
||||
public static final String SESSION_CONNECTION_LOCAL = "SESSION_CONNECTION_LOCAL";
|
||||
|
||||
public static final String SERVER_SIPRP = "server.siprp";
|
||||
public static final String PORT_SIPRP = "port.siprp";
|
||||
public static final String DATABASE_SIPRP = "database.siprp";
|
||||
public static final String USERNAME_SIPRP = "username.siprp";
|
||||
public static final String PASSWORD_SIPRP = "password.siprp";
|
||||
|
||||
public static final String SERVER_SIPRP_LOCAL = "server.siprp_local";
|
||||
public static final String PORT_SIPRP_LOCAL = "port.siprp_local";
|
||||
public static final String DATABASE_SIPRP_LOCAL = "database.siprp_local";
|
||||
public static final String USERNAME_SIPRP_LOCAL = "username.siprp_local";
|
||||
public static final String PASSWORD_SIPRP_LOCAL = "password.siprp_local";
|
||||
|
||||
public static final String CONNECTION_URL = "connection.url";
|
||||
public static final String LOCAL_CONNECTION_URL = "connection.local_url";
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
package db;
|
||||
|
||||
import com.evolute.properties.EvoAbstractPropertiesLoader;
|
||||
import com.evolute.properties.PropertiesException;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author dneves
|
||||
*/
|
||||
public class DBPropertiesLoader extends EvoAbstractPropertiesLoader
|
||||
{
|
||||
private static DBPropertiesLoader INSTANCE = null;
|
||||
|
||||
private String connection_url = null;
|
||||
private String local_connection_url = null;
|
||||
|
||||
|
||||
private DBPropertiesLoader()
|
||||
{
|
||||
super( null, null, null, null );
|
||||
}
|
||||
|
||||
public static synchronized DBPropertiesLoader getInstance()
|
||||
{
|
||||
if ( INSTANCE == null )
|
||||
{
|
||||
INSTANCE = new DBPropertiesLoader();
|
||||
}
|
||||
return INSTANCE;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void postLoad() throws PropertiesException
|
||||
{
|
||||
String server = findProperty( DBConstants.SERVER_SIPRP );
|
||||
int port = findProperty( DBConstants.PORT_SIPRP, new Integer( -1 ) );
|
||||
String database = findProperty( DBConstants.DATABASE_SIPRP );
|
||||
connection_url = "jdbc:postgresql://" + server + ":" + port + "/" + database;
|
||||
|
||||
server = findProperty( DBConstants.SERVER_SIPRP_LOCAL );
|
||||
port = findProperty( DBConstants.PORT_SIPRP_LOCAL, new Integer( -1 ) );
|
||||
database = findProperty( DBConstants.DATABASE_SIPRP_LOCAL );
|
||||
local_connection_url = "jdbc:postgresql://" + server + ":" + port + "/" + database;
|
||||
}
|
||||
|
||||
public String getConnectionURL()
|
||||
{
|
||||
return connection_url;
|
||||
}
|
||||
|
||||
public String getLocalConnectionURL()
|
||||
{
|
||||
return local_connection_url;
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,75 +0,0 @@
|
||||
/*
|
||||
* Db.java
|
||||
*
|
||||
* Created on September 19, 2007, 5:10 PM
|
||||
*
|
||||
* To change this template, choose Tools | Template Manager
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
package db;
|
||||
|
||||
import com.evolute.utils.error.ErrorLogger;
|
||||
import java.sql.Connection;
|
||||
import java.sql.DriverManager;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.Statement;
|
||||
import javax.faces.context.FacesContext;
|
||||
import javax.servlet.http.HttpSession;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author lluis
|
||||
*/
|
||||
public class Db
|
||||
{
|
||||
//production
|
||||
private String host = "localhost";
|
||||
private int port = 5436;
|
||||
private String db = "siprp";
|
||||
private String user = "postgres";
|
||||
private String pass = null;
|
||||
|
||||
//tests
|
||||
// private String host = "evoserver";
|
||||
// private int port = 5432;
|
||||
// private String db = "siprp_20100813";
|
||||
// private String user = "postgres";
|
||||
// private String pass = null;
|
||||
|
||||
|
||||
private String connectionURL = "jdbc:postgresql://" + host + ":" + port + "/" + db;
|
||||
private Connection connection = null;
|
||||
|
||||
|
||||
public Db()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public Connection connect() throws Exception
|
||||
{
|
||||
Class.forName("org.postgresql.Driver").newInstance();
|
||||
connection = DriverManager.getConnection(connectionURL, user, pass);
|
||||
HttpSession session = (HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(true);
|
||||
session.setAttribute("connection", connection);
|
||||
return connection;
|
||||
}
|
||||
|
||||
public Statement createStatement()
|
||||
{
|
||||
HttpSession session = (HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(false);
|
||||
connection = (Connection) session.getAttribute("connection");
|
||||
Statement st;
|
||||
try
|
||||
{
|
||||
st = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
|
||||
return st;
|
||||
}
|
||||
catch(Exception ex)
|
||||
{
|
||||
ErrorLogger.logException( ex );
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,81 +0,0 @@
|
||||
/*
|
||||
* Dblocal.java
|
||||
*
|
||||
* Created on September 20, 2007, 2:07 PM
|
||||
*
|
||||
* To change this template, choose Tools | Template Manager
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
package db;
|
||||
|
||||
import com.evolute.utils.error.ErrorLogger;
|
||||
import java.sql.Connection;
|
||||
import java.sql.DriverManager;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.Statement;
|
||||
import javax.faces.context.FacesContext;
|
||||
import javax.servlet.http.HttpSession;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author lluis
|
||||
*/
|
||||
public class Dblocal
|
||||
{
|
||||
//production
|
||||
private String host = "localhost";
|
||||
private int port = 5436;
|
||||
private String db = "siprp_local_3";
|
||||
private String user = "postgres";
|
||||
private String pass = null;
|
||||
|
||||
//tests
|
||||
// private String host = "evoserver";
|
||||
// private int port = 5432;
|
||||
// private String db = "siprp_local_3_20100813";
|
||||
// private String user = "postgres";
|
||||
// private String pass = null;
|
||||
|
||||
private String connectionURL = "jdbc:postgresql://" + host + ":" + port + "/" + db;
|
||||
private Connection connection = null;
|
||||
|
||||
|
||||
public Dblocal()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public Connection connect() throws Exception
|
||||
{
|
||||
Class.forName("org.postgresql.Driver").newInstance();
|
||||
connection = DriverManager.getConnection(connectionURL, user, pass);
|
||||
HttpSession session = (HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(true);
|
||||
session.setAttribute("connection_local", connection);
|
||||
return connection;
|
||||
}
|
||||
|
||||
public Statement createStatement()
|
||||
{
|
||||
HttpSession session = (HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(false);
|
||||
connection = (Connection) session.getAttribute("connection_local");
|
||||
Statement st;
|
||||
try
|
||||
{
|
||||
st = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
|
||||
return st;
|
||||
}
|
||||
catch(Exception ex)
|
||||
{
|
||||
ErrorLogger.logException( ex );
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void close() throws Exception
|
||||
{
|
||||
connection.close();
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,548 +0,0 @@
|
||||
/*
|
||||
* UtilizadoresDataProvider.java
|
||||
*
|
||||
* Created on September 20, 2007, 10:03 AM
|
||||
*
|
||||
* To change this template, choose Tools | Template Manager
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
package db;
|
||||
|
||||
import beans.Medico;
|
||||
import beans.Permissao;
|
||||
import beans.TecnicoSaude;
|
||||
import beans.Utilizador;
|
||||
import com.evolute.utils.error.ErrorLogger;
|
||||
import com.sun.rave.web.ui.model.Option;
|
||||
import global.Global;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.Statement;
|
||||
import java.util.ArrayList;
|
||||
import java.util.ListIterator;
|
||||
import java.util.StringTokenizer;
|
||||
import utils.Utils;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author lluis
|
||||
*/
|
||||
public class UtilizadoresDataProvider {
|
||||
|
||||
/** Creates a new instance of UtilizadoresDataProvider */
|
||||
public UtilizadoresDataProvider() {
|
||||
}
|
||||
|
||||
public Integer getMaxUserId()
|
||||
{
|
||||
Statement st = createStatement();
|
||||
String sql = "SELECT max(utilizadores.id)+1 AS MAXUSERID FROM utilizadores";
|
||||
try
|
||||
{
|
||||
ResultSet rs = st.executeQuery(sql);
|
||||
rs.first();
|
||||
Integer newId = new Integer(rs.getInt("MAXUSERID"));
|
||||
if(newId.intValue() == 0)
|
||||
{
|
||||
newId = new Integer(1);
|
||||
}
|
||||
return newId;
|
||||
}
|
||||
catch(Exception ex)
|
||||
{
|
||||
ErrorLogger.logException( ex );
|
||||
return new Integer(1);
|
||||
}
|
||||
}
|
||||
|
||||
public Integer createNewUtilizador(Utilizador u) throws Exception
|
||||
{
|
||||
Statement st = createStatement();
|
||||
Integer newUserId = getMaxUserId();
|
||||
|
||||
String sql = "INSERT INTO utilizadores (id, login, password, data_password, email, empresa_id, estabelecimento_id, administrador, tipo, numero_cedula, cap, nome, medico_id, funcionario_hst_id, activo, responsavel_loja, gestor_geral, numero_mecanografico) VALUES (";
|
||||
sql += newUserId + ", '";
|
||||
sql += u.getLogin() + "', '";
|
||||
sql += u.getPassword() + "', ";
|
||||
if(u.getData_password() == null)
|
||||
{
|
||||
sql += null + ", '";
|
||||
}
|
||||
else
|
||||
{
|
||||
sql += "'" + u.getData_password() + "', '";
|
||||
}
|
||||
sql += u.getEmail() + "', ";
|
||||
sql += u.getEmpresa_id() + ", ";
|
||||
sql += u.getEstabelecimento_id() + ", '";
|
||||
sql += u.getAdministrador() + "', ";
|
||||
sql += u.getTipo() + ", '";
|
||||
sql += u.getNumero_cedula() + "', '";
|
||||
sql += u.getCap() + "', '";
|
||||
sql += u.getNome() + "', ";
|
||||
sql += u.getMedico_id() + ", ";
|
||||
sql += u.getFuncionario_hst_id() + ", '";
|
||||
sql += u.getActivo() + "', '";
|
||||
sql += u.getResponsavel_loja() + "', '";
|
||||
sql += u.getGestor_geral() + "', '";
|
||||
sql += u.getNumero_mecanografico() + "')";
|
||||
System.out.println("USER SQL : " + sql);
|
||||
st.execute(sql);
|
||||
return newUserId;
|
||||
}
|
||||
|
||||
public void updateUtilizador(Utilizador u) throws Exception
|
||||
{
|
||||
Statement st = createStatement();
|
||||
String sql = "";
|
||||
if(u.getData_password() == null)
|
||||
{
|
||||
sql = "UPDATE utilizadores SET login = '" + u.getLogin() + "', password = '" + u.getPassword() + "', data_password = " + null + ", email = '" + u.getEmail() + "', empresa_id = " + u.getEmpresa_id() + ", estabelecimento_id = " + u.getEstabelecimento_id() + ", administrador = '" + u.getAdministrador() + "', tipo = " + u.getTipo() + ", numero_cedula = '" + u.getNumero_cedula() + "', cap = '" + u.getCap() + "', nome = '" + u.getNome() + "', medico_id = " + u.getMedico_id() + ", funcionario_hst_id = " + u.getFuncionario_hst_id() + ", activo = '" + u.getActivo() + "', responsavel_loja = '" + u.getResponsavel_loja() + "', gestor_geral = '" + u.getGestor_geral() + "', primeiro_login = '" + u.getPrimeiro_login() + "' WHERE id = " + u.getId();
|
||||
}
|
||||
else
|
||||
{
|
||||
sql = "UPDATE utilizadores SET login = '" + u.getLogin() + "', password = '" + u.getPassword() + "', data_password = '" + u.getData_password() + "', email = '" + u.getEmail() + "', empresa_id = " + u.getEmpresa_id() + ", estabelecimento_id = " + u.getEstabelecimento_id() + ", administrador = '" + u.getAdministrador() + "', tipo = " + u.getTipo() + ", numero_cedula = '" + u.getNumero_cedula() + "', cap = '" + u.getCap() + "', nome = '" + u.getNome() + "', medico_id = " + u.getMedico_id() + ", funcionario_hst_id = " + u.getFuncionario_hst_id() + ", activo = '" + u.getActivo() + "', responsavel_loja = '" + u.getResponsavel_loja() + "', gestor_geral = '" + u.getGestor_geral() + "', primeiro_login = '" + u.getPrimeiro_login() + "' WHERE id = " + u.getId();
|
||||
}
|
||||
|
||||
System.out.println("SQL UPDATE USER : " + sql);
|
||||
st.execute(sql);
|
||||
}
|
||||
|
||||
public void deleteUser(Integer userId) throws Exception
|
||||
{
|
||||
Statement st = createStatement();
|
||||
String sql = "UPDATE utilizadores SET apagado = 'y', activo = 'n' WHERE id = " + userId;
|
||||
st.execute(sql);
|
||||
}
|
||||
|
||||
public Utilizador getUtilizador(String login) throws Exception
|
||||
{
|
||||
Utilizador u = new Utilizador();
|
||||
Statement st = createStatement();
|
||||
String sql = "SELECT * FROM utilizadores WHERE LOWER(login) = '" + login.toLowerCase() + "' AND apagado = 'n'";
|
||||
ResultSet rs = st.executeQuery(sql);
|
||||
if ( rs.first() )
|
||||
{
|
||||
u.setId(new Integer(rs.getInt("id")));
|
||||
u.setLogin(rs.getString("login"));
|
||||
u.setPassword(rs.getString("password"));
|
||||
u.setData_password(rs.getDate("data_password"));
|
||||
u.setEmail(rs.getString("email"));
|
||||
u.setEmpresa_id(new Integer(rs.getInt("empresa_id")));
|
||||
u.setEstabelecimento_id(new Integer(rs.getInt("estabelecimento_id")));
|
||||
u.setAdministrador(rs.getString("administrador"));
|
||||
u.setTipo(new Integer(rs.getInt("tipo")));
|
||||
u.setNumero_cedula(rs.getString("numero_cedula"));
|
||||
u.setCap(rs.getString("cap"));
|
||||
u.setNome(rs.getString("nome"));
|
||||
u.setMedico_id(new Integer(rs.getInt("medico_id")));
|
||||
u.setFuncionario_hst_id(new Integer(rs.getInt("funcionario_hst_id")));
|
||||
u.setActivo(rs.getString("activo"));
|
||||
u.setResponsavel_loja(rs.getString("responsavel_loja"));
|
||||
u.setGestor_geral(rs.getString("gestor_geral"));
|
||||
u.setPrimeiro_login(rs.getString("primeiro_login"));
|
||||
u.setApagado(rs.getString("apagado"));
|
||||
}
|
||||
return u;
|
||||
}
|
||||
|
||||
public Utilizador getUtilizador(Integer id) throws Exception
|
||||
{
|
||||
Utilizador u = new Utilizador();
|
||||
Statement st = createStatement();
|
||||
String sql = "SELECT * FROM utilizadores WHERE id = " + id;
|
||||
ResultSet rs = st.executeQuery(sql);
|
||||
|
||||
if ( rs.first() )
|
||||
{
|
||||
u.setId(new Integer(rs.getInt("id")));
|
||||
u.setLogin(rs.getString("login"));
|
||||
u.setPassword(rs.getString("password"));
|
||||
u.setData_password(rs.getDate("data_password"));
|
||||
u.setEmail(rs.getString("email"));
|
||||
u.setEmpresa_id(new Integer(rs.getInt("empresa_id")));
|
||||
u.setEstabelecimento_id(new Integer(rs.getInt("estabelecimento_id")));
|
||||
u.setAdministrador(rs.getString("administrador"));
|
||||
u.setTipo(new Integer(rs.getInt("tipo")));
|
||||
u.setNumero_cedula(rs.getString("numero_cedula"));
|
||||
u.setCap(rs.getString("cap"));
|
||||
u.setNome(rs.getString("nome"));
|
||||
u.setMedico_id(new Integer(rs.getInt("medico_id")));
|
||||
u.setFuncionario_hst_id(new Integer(rs.getInt("funcionario_hst_id")));
|
||||
u.setActivo(rs.getString("activo"));
|
||||
u.setResponsavel_loja(rs.getString("responsavel_loja"));
|
||||
u.setGestor_geral(rs.getString("gestor_geral"));
|
||||
u.setApagado(rs.getString("apagado"));
|
||||
}
|
||||
return u;
|
||||
}
|
||||
|
||||
public ArrayList getUtilizadoresListByTipo(Integer tipo, String responsavel_loja, Integer estabelecimento_id) throws Exception
|
||||
{
|
||||
ArrayList list = new ArrayList();
|
||||
Statement st = createStatement();
|
||||
String sql = "SELECT * FROM utilizadores WHERE activo = 'y' AND apagado = 'n' AND tipo = " + tipo;
|
||||
|
||||
String estabelecimento_constraint = "";
|
||||
if( tipo != null && ( tipo.intValue() == Global.TIPO_UTILIZADOR_RH || tipo.intValue() == Global.TIPO_UTILIZADOR_SEGURANCA ) )
|
||||
{
|
||||
estabelecimento_constraint = " AND estabelecimento_id = " + estabelecimento_id;
|
||||
}
|
||||
sql += estabelecimento_constraint;
|
||||
|
||||
if ( "y".equals( responsavel_loja ) )
|
||||
{
|
||||
sql += " AND responsavel_loja = 'y'";
|
||||
// sql = "SELECT * FROM utilizadores WHERE activo = 'y' AND apagado = 'n' AND responsavel_loja = 'y' AND tipo = " + tipo + estabelecimento_constraint;
|
||||
}
|
||||
// else
|
||||
// {
|
||||
// sql = "SELECT * FROM utilizadores WHERE activo = 'y' AND apagado = 'n' AND tipo = " + tipo + estabelecimento_constraint;
|
||||
// }
|
||||
|
||||
ResultSet rs = st.executeQuery( sql );
|
||||
// rs.first();
|
||||
// do
|
||||
// {
|
||||
while ( rs != null && rs.next() )
|
||||
{
|
||||
Utilizador u = new Utilizador();
|
||||
u.setId(new Integer(rs.getInt("id")));
|
||||
u.setLogin(rs.getString("login"));
|
||||
u.setPassword(rs.getString("password"));
|
||||
u.setData_password(rs.getDate("data_password"));
|
||||
u.setEmail(rs.getString("email"));
|
||||
u.setEmpresa_id(new Integer(rs.getInt("empresa_id")));
|
||||
u.setEstabelecimento_id(new Integer(rs.getInt("estabelecimento_id")));
|
||||
u.setAdministrador(rs.getString("administrador"));
|
||||
u.setTipo(new Integer(rs.getInt("tipo")));
|
||||
u.setNumero_cedula(rs.getString("numero_cedula"));
|
||||
u.setCap(rs.getString("cap"));
|
||||
u.setNome(rs.getString("nome"));
|
||||
u.setMedico_id(new Integer(rs.getInt("medico_id")));
|
||||
u.setFuncionario_hst_id(new Integer(rs.getInt("funcionario_hst_id")));
|
||||
u.setActivo(rs.getString("activo"));
|
||||
u.setResponsavel_loja(rs.getString("responsavel_loja"));
|
||||
list.add( u );
|
||||
}
|
||||
// }while(rs.next());
|
||||
return list;
|
||||
}
|
||||
|
||||
public ArrayList getUtilizadoresList(String por, String nome, Integer estabelecimento_id, String activo, String booDirRh) throws Exception
|
||||
{
|
||||
StringTokenizer stk = null;
|
||||
AnalisesDataProvider adp = new AnalisesDataProvider();
|
||||
ArrayList list = new ArrayList();
|
||||
Statement st = createStatement();
|
||||
|
||||
String sql = "";
|
||||
String sql1 = "";
|
||||
String sql2 = "";
|
||||
String sql3 = "";
|
||||
if(por != null && nome != null && estabelecimento_id != null)
|
||||
{
|
||||
sql1 = "SELECT * FROM utilizadores, tipos_utilizadores WHERE utilizadores.tipo = tipos_utilizadores.tipo AND LOWER(numero_mecanografico) LIKE '%" + por + "%' AND (";
|
||||
sql3 = ") AND estabelecimento_id = " + estabelecimento_id + " AND utilizadores.activo ='" + activo + "' AND apagado = 'n' AND utilizadores.tipo <> " + Global.TIPO_UTILIZADOR_DIRECTOR_SIPRP + " ORDER BY numero_mecanografico";
|
||||
stk = new StringTokenizer (nome);
|
||||
int n = 0;
|
||||
while (stk.hasMoreTokens ()) {
|
||||
if(n > 0)
|
||||
{
|
||||
sql2 += "AND ";
|
||||
}
|
||||
sql2 += "LOWER(nome) LIKE '%" + stk.nextToken () + "%' ";
|
||||
n++;
|
||||
}
|
||||
sql = sql1 + sql2 + sql3;
|
||||
//sql = "SELECT * FROM utilizadores, tipos_utilizadores WHERE utilizadores.tipo = tipos_utilizadores.tipo AND LOWER(numero_mecanografico) LIKE '%" + por + "%' AND LOWER(nome) LIKE '%" + nome + "%' AND estabelecimento_id = " + estabelecimento_id + " AND utilizadores.activo ='" + activo + "' ORDER BY numero_mecanografico";
|
||||
}
|
||||
else if(por != null && nome != null)
|
||||
{
|
||||
sql1 = "SELECT * FROM utilizadores, tipos_utilizadores WHERE utilizadores.tipo = tipos_utilizadores.tipo AND LOWER(numero_mecanografico) LIKE '%" + por + "%' AND (";
|
||||
sql3 = ") AND utilizadores.activo ='" + activo + "' AND apagado = 'n' AND utilizadores.tipo <> " + Global.TIPO_UTILIZADOR_DIRECTOR_SIPRP + " ORDER BY numero_mecanografico";
|
||||
stk = new StringTokenizer (nome);
|
||||
int n = 0;
|
||||
while (stk.hasMoreTokens ()) {
|
||||
if(n > 0)
|
||||
{
|
||||
sql2 += "AND ";
|
||||
}
|
||||
sql2 += "LOWER(nome) LIKE '%" + stk.nextToken () + "%' ";
|
||||
n++;
|
||||
}
|
||||
sql = sql1 + sql2 + sql3;
|
||||
//sql = "SELECT * FROM utilizadores, tipos_utilizadores WHERE utilizadores.tipo = tipos_utilizadores.tipo AND LOWER(numero_mecanografico) LIKE '%" + por + "%' AND LOWER(nome) LIKE '%" + nome + "%' AND utilizadores.activo ='" + activo + "' ORDER BY numero_mecanografico";
|
||||
}
|
||||
else if(por != null && estabelecimento_id != null)
|
||||
{
|
||||
sql = "SELECT * FROM utilizadores, tipos_utilizadores WHERE utilizadores.tipo = tipos_utilizadores.tipo AND LOWER(numero_mecanografico) LIKE '%" + por + "%' AND estabelecimento_id = " + estabelecimento_id + " AND utilizadores.activo ='" + activo + "' AND apagado = 'n' AND utilizadores.tipo <> " + Global.TIPO_UTILIZADOR_DIRECTOR_SIPRP + " ORDER BY numero_mecanografico";
|
||||
}
|
||||
else if(nome != null && estabelecimento_id != null)
|
||||
{
|
||||
sql1 = "SELECT * FROM utilizadores, tipos_utilizadores WHERE utilizadores.tipo = tipos_utilizadores.tipo AND (";
|
||||
sql3 = ") AND estabelecimento_id = " + estabelecimento_id + " AND utilizadores.activo ='" + activo + "' AND apagado = 'n' AND utilizadores.tipo <> " + Global.TIPO_UTILIZADOR_DIRECTOR_SIPRP + " ORDER BY numero_mecanografico";
|
||||
stk = new StringTokenizer (nome);
|
||||
int n = 0;
|
||||
while (stk.hasMoreTokens ()) {
|
||||
if(n > 0)
|
||||
{
|
||||
sql2 += "AND ";
|
||||
}
|
||||
sql2 += "LOWER(nome) LIKE '%" + stk.nextToken () + "%' ";
|
||||
n++;
|
||||
}
|
||||
sql = sql1 + sql2 + sql3;
|
||||
//sql = "SELECT * FROM utilizadores, tipos_utilizadores WHERE utilizadores.tipo = tipos_utilizadores.tipo AND LOWER(nome) LIKE '%" + nome + "%' AND estabelecimento_id = " + estabelecimento_id + " AND utilizadores.activo ='" + activo + "' ORDER BY numero_mecanografico";
|
||||
}
|
||||
else if(por != null)
|
||||
{
|
||||
sql = "SELECT * FROM utilizadores, tipos_utilizadores WHERE utilizadores.tipo = tipos_utilizadores.tipo AND LOWER(numero_mecanografico) LIKE '%" + por + "%' AND utilizadores.activo ='" + activo + "' AND apagado = 'n' AND utilizadores.tipo <> " + Global.TIPO_UTILIZADOR_DIRECTOR_SIPRP + " ORDER BY numero_mecanografico";
|
||||
}
|
||||
else if(nome != null)
|
||||
{
|
||||
sql1 = "SELECT * FROM utilizadores, tipos_utilizadores WHERE utilizadores.tipo = tipos_utilizadores.tipo AND (";
|
||||
sql3 = ") AND utilizadores.activo ='" + activo + "' AND apagado = 'n' AND utilizadores.tipo <> " + Global.TIPO_UTILIZADOR_DIRECTOR_SIPRP + " ORDER BY numero_mecanografico";
|
||||
stk = new StringTokenizer (nome);
|
||||
int n = 0;
|
||||
while (stk.hasMoreTokens ()) {
|
||||
if(n > 0)
|
||||
{
|
||||
sql2 += "AND ";
|
||||
}
|
||||
sql2 += "LOWER(nome) LIKE '%" + stk.nextToken () + "%' ";
|
||||
n++;
|
||||
}
|
||||
sql = sql1 + sql2 + sql3;
|
||||
//sql = "SELECT * FROM utilizadores, tipos_utilizadores WHERE utilizadores.tipo = tipos_utilizadores.tipo AND LOWER(nome) LIKE '%" + nome + "%' AND utilizadores.activo ='" + activo + "' ORDER BY numero_mecanografico";
|
||||
}
|
||||
else if(estabelecimento_id != null)
|
||||
{
|
||||
sql = "SELECT * FROM utilizadores, tipos_utilizadores WHERE utilizadores.tipo = tipos_utilizadores.tipo AND estabelecimento_id = " + estabelecimento_id + " AND utilizadores.activo ='" + activo + "' AND apagado = 'n' AND utilizadores.tipo <> " + Global.TIPO_UTILIZADOR_DIRECTOR_SIPRP + " ORDER BY numero_mecanografico";
|
||||
}
|
||||
else // all null
|
||||
{
|
||||
sql = "SELECT * FROM utilizadores, tipos_utilizadores WHERE utilizadores.tipo = tipos_utilizadores.tipo AND utilizadores.activo ='" + activo + "' AND apagado = 'n' AND utilizadores.tipo <> " + Global.TIPO_UTILIZADOR_DIRECTOR_SIPRP + " ORDER BY numero_mecanografico";
|
||||
}
|
||||
System.out.println("UTILIZADORES SQL : " + sql);
|
||||
ResultSet rs = st.executeQuery(sql);
|
||||
rs.first();
|
||||
do
|
||||
{
|
||||
Utilizador u = new Utilizador();
|
||||
u.setId(new Integer(rs.getInt(1)));
|
||||
u.setLogin(rs.getString("login"));
|
||||
u.setPassword(rs.getString("password"));
|
||||
u.setData_password(rs.getDate("data_password"));
|
||||
u.setEmail(rs.getString("email"));
|
||||
u.setEmpresa_id(new Integer(rs.getInt("empresa_id")));
|
||||
u.setEstabelecimento_id(new Integer(rs.getInt("estabelecimento_id")));
|
||||
u.setAdministrador(rs.getString("administrador"));
|
||||
u.setTipo(new Integer(rs.getInt("tipo")));
|
||||
u.setNumero_cedula(rs.getString("numero_cedula"));
|
||||
u.setCap(rs.getString("cap"));
|
||||
u.setNome(Utils.unicodeToHTML(rs.getString("nome")) );
|
||||
u.setMedico_id(new Integer(rs.getInt("medico_id")));
|
||||
u.setFuncionario_hst_id(new Integer(rs.getInt("funcionario_hst_id")));
|
||||
u.setActivo(rs.getString(14));
|
||||
u.setResponsavel_loja(rs.getString("responsavel_loja"));
|
||||
u.setGestor_geral(rs.getString("gestor_geral"));
|
||||
u.setNumero_mecanografico(rs.getString("numero_mecanografico"));
|
||||
u.setCategoria(rs.getString("descricao"));
|
||||
u.setApagado(rs.getString("apagado"));
|
||||
try
|
||||
{
|
||||
u.setNome_estabelecimento( adp.getEstabelecimentoNome(u.getEstabelecimento_id()) );
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
ErrorLogger.logException( e );
|
||||
}
|
||||
if(booDirRh.matches("y"))
|
||||
{
|
||||
int uType = u.getTipo().intValue();
|
||||
if ( uType == Global.TIPO_UTILIZADOR_SEGURANCA || uType == Global.TIPO_UTILIZADOR_RH || uType == Global.TIPO_UTILIZADOR_GESTOR
|
||||
|| uType == Global.TIPO_UTILIZADOR_DIRECTOR_LOJA )
|
||||
{
|
||||
list.add( u );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
list.add(u);
|
||||
}
|
||||
|
||||
}while(rs.next());
|
||||
return list;
|
||||
}
|
||||
|
||||
public ArrayList getResponsavelRhList(Integer estabelecimento_id)
|
||||
{
|
||||
ArrayList list = new ArrayList();
|
||||
Utilizador u = null;
|
||||
Statement st = createStatement();
|
||||
String sql ="SELECT * FROM utilizadores WHERE activo = 'y' AND tipo = " + Global.TIPO_UTILIZADOR_RH + " AND apagado = 'n' AND responsavel_loja = 'y' AND estabelecimento_id = " + estabelecimento_id;
|
||||
try
|
||||
{
|
||||
ResultSet rs = st.executeQuery(sql);
|
||||
rs.first();
|
||||
do
|
||||
{
|
||||
u = new Utilizador();
|
||||
u.setId(new Integer(rs.getInt("id")));
|
||||
u.setNome(rs.getString("nome"));
|
||||
u.setLogin(rs.getString("login"));
|
||||
u.setEmail(rs.getString("email"));
|
||||
list.add(u);
|
||||
}while(rs.next());
|
||||
return list;
|
||||
}
|
||||
catch(Exception ex)
|
||||
{
|
||||
ErrorLogger.logException( ex );
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public Medico getMedico(Integer estabelecimento_id)
|
||||
{
|
||||
Medico m = null;
|
||||
Statement st = createStatement();
|
||||
String sql ="SELECT * FROM utilizadores WHERE activo = 'y' AND tipo = " + Global.TIPO_UTILIZADOR_MEDICO + " AND apagado = 'n' AND estabelecimento_id = " + estabelecimento_id;
|
||||
try
|
||||
{
|
||||
ResultSet rs = st.executeQuery(sql);
|
||||
rs.first();
|
||||
m = new Medico();
|
||||
m.setId(new Integer(rs.getInt("id")));
|
||||
m.setNome(rs.getString("nome"));
|
||||
m.setNumero_cedula(rs.getString("numero_cedula"));
|
||||
return m;
|
||||
}
|
||||
catch(Exception ex)
|
||||
{
|
||||
ErrorLogger.logException( ex );
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public com.sun.rave.web.ui.model.Option[] getMedicosList() throws Exception
|
||||
{
|
||||
// Dblocal dblocal = new Dblocal();
|
||||
// dblocal.connect();
|
||||
// Statement stlocal = dblocal.createStatement();
|
||||
Statement st = createStatement();
|
||||
ArrayList list = new ArrayList();
|
||||
// Medico m = new Medico();
|
||||
// m.setId(new Integer(0));
|
||||
// m.setNome("-Seleccionar-");
|
||||
// list.add(m);
|
||||
String sql ="SELECT * FROM utilizadores WHERE activo = 'y' AND tipo = 5 AND apagado = 'n' ";
|
||||
ResultSet rs = st.executeQuery(sql);
|
||||
rs.first();
|
||||
do
|
||||
{
|
||||
Medico m = new Medico();
|
||||
m.setId(new Integer(rs.getInt("id")));
|
||||
m.setNome(Utils.unicodeToHTML(rs.getString("nome")));
|
||||
list.add(m);
|
||||
}while(rs.next());
|
||||
com.sun.rave.web.ui.model.Option[] listOptions = new com.sun.rave.web.ui.model.Option[list.size()];
|
||||
ListIterator iter = list.listIterator();
|
||||
int i = 0;
|
||||
while(iter.hasNext())
|
||||
{
|
||||
Medico m = (Medico) iter.next();
|
||||
|
||||
listOptions[i] = new Option(m.getId(), Utils.unicodeToHTML(m.getNome()));
|
||||
i++;
|
||||
}
|
||||
// dblocal.close();
|
||||
return listOptions;
|
||||
}
|
||||
|
||||
public com.sun.rave.web.ui.model.Option[] getTecnicosSaudeList() throws Exception
|
||||
{
|
||||
// Dblocal dblocal = new Dblocal();
|
||||
// dblocal.connect();
|
||||
// Statement stlocal = dblocal.createStatement();
|
||||
Statement st = createStatement();
|
||||
ArrayList list = new ArrayList();
|
||||
TecnicoSaude t = new TecnicoSaude();
|
||||
t.setId(new Integer(0));
|
||||
t.setNome("");
|
||||
list.add(t);
|
||||
String sql ="SELECT * FROM utilizadores WHERE activo = 'y' AND tipo = " + Global.TIPO_UTILIZADOR_HS;
|
||||
ResultSet rs = st.executeQuery(sql);
|
||||
rs.first();
|
||||
do
|
||||
{
|
||||
t = new TecnicoSaude();
|
||||
t.setId(new Integer(rs.getInt("id")));
|
||||
t.setNome(Utils.unicodeToHTML(rs.getString("nome")));
|
||||
list.add(t);
|
||||
}while(rs.next());
|
||||
com.sun.rave.web.ui.model.Option[] listOptions = new com.sun.rave.web.ui.model.Option[list.size()];
|
||||
ListIterator iter = list.listIterator();
|
||||
int i = 0;
|
||||
while(iter.hasNext())
|
||||
{
|
||||
t = (TecnicoSaude) iter.next();
|
||||
|
||||
listOptions[i] = new Option(t.getId(), Utils.unicodeToHTML(t.getNome()));
|
||||
i++;
|
||||
}
|
||||
// dblocal.close();
|
||||
return listOptions;
|
||||
}
|
||||
|
||||
public Integer getMaxPermissaoId()
|
||||
{
|
||||
Statement st = createStatement();
|
||||
String sql = "SELECT max(permissoes.id)+1 AS MAXPERMISSAOID FROM permissoes";
|
||||
try
|
||||
{
|
||||
ResultSet rs = st.executeQuery(sql);
|
||||
rs.first();
|
||||
Integer newId = new Integer(rs.getInt("MAXPERMISSAOID"));
|
||||
if(newId.intValue() == 0)
|
||||
{
|
||||
newId = new Integer(1);
|
||||
}
|
||||
return newId;
|
||||
}
|
||||
catch(Exception ex)
|
||||
{
|
||||
ErrorLogger.logException( ex );
|
||||
return new Integer(1);
|
||||
}
|
||||
}
|
||||
|
||||
public Integer createPermissao(Permissao p) throws Exception
|
||||
{
|
||||
Statement st = createStatement();
|
||||
Integer newId = getMaxPermissaoId();
|
||||
|
||||
String sql = "INSERT INTO permissoes (id, user_id, codigo_permissao) VALUES (" + newId + ", " + p.getUser_id() + ", " + p.getCodigo_permissao() + ")";
|
||||
st.execute(sql);
|
||||
return newId;
|
||||
}
|
||||
|
||||
public Integer getPermissionCode(Integer userId) throws Exception
|
||||
{
|
||||
Statement st = createStatement();
|
||||
String sql = "SELECT * FROM permissoes WHERE user_id = " + userId;
|
||||
ResultSet rs = st.executeQuery(sql);
|
||||
rs.first();
|
||||
Integer permission = new Integer(rs.getInt("codigo_permissao"));
|
||||
return permission;
|
||||
}
|
||||
|
||||
private Statement createStatement()
|
||||
{
|
||||
Db db = new Db();
|
||||
return db.createStatement();
|
||||
}
|
||||
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,178 @@
|
||||
/*
|
||||
* Actualizacao.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp.inner;
|
||||
|
||||
|
||||
public class Actualizacao extends com.evolute.entity.evo.EvoDataObject<com.evolute.entity.utils.ObjectPrimaryKey>
|
||||
{
|
||||
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||
|
||||
static
|
||||
{
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final String TABLENAME = "actualizacao";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.actualizacao";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
};
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
};
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
};
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
};
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
};
|
||||
|
||||
|
||||
protected com.evolute.entity.utils.ObjectPrimaryKey primaryKey;
|
||||
|
||||
public Actualizacao()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ };
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
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()
|
||||
{
|
||||
throw new RuntimeException( "getPrimaryKeyName on Actualizacao is invalid" );
|
||||
}
|
||||
|
||||
public Class<?> getFieldClass( String fieldName )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
Class<?> theClass = null;
|
||||
switch( index )
|
||||
{
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : Actualizacao._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.ObjectPrimaryKey( TABLENAME, Actualizacao.PK_FIELD_NAMES );
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public com.evolute.entity.utils.ObjectPrimaryKey getPrimaryKey()
|
||||
{
|
||||
return primaryKey;
|
||||
}
|
||||
|
||||
public void initLazyLoadFields()
|
||||
{
|
||||
}
|
||||
|
||||
public boolean isPropertyLoaded( String fieldName )
|
||||
{
|
||||
if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return LAZY_LOADED_OBJECTS.get( fieldName );
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,785 @@
|
||||
/*
|
||||
* Avisos.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp.inner;
|
||||
|
||||
|
||||
public class Avisos extends com.evolute.entity.evo.EvoDataObject<com.evolute.entity.utils.IntegerPrimaryKey>
|
||||
{
|
||||
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||
|
||||
static
|
||||
{
|
||||
FIELD_INDEXES.put( Avisos.ID, Avisos.ID_INDEX );
|
||||
FIELD_INDEXES.put( Avisos.ID_FULL, Avisos.ID_INDEX );
|
||||
FIELD_INDEXES.put( Avisos.TIPO, Avisos.TIPO_INDEX );
|
||||
FIELD_INDEXES.put( Avisos.TIPO_FULL, Avisos.TIPO_INDEX );
|
||||
com.evolute.entity.evo.EvoDataObject.register( Avisos.CLASS_IDENTIFIER, Avisos.EMPRESA_ID, Avisos.TO_EMPRESA_ID );
|
||||
FIELD_INDEXES.put( Avisos.EMPRESA_ID, Avisos.EMPRESA_ID_INDEX );
|
||||
FIELD_INDEXES.put( Avisos.EMPRESA_ID_FULL, Avisos.EMPRESA_ID_INDEX );
|
||||
FIELD_INDEXES.put( Avisos.TO_EMPRESA_ID, Avisos.TO_EMPRESA_ID_INDEX );
|
||||
com.evolute.entity.evo.EvoDataObject.register( Avisos.CLASS_IDENTIFIER, Avisos.ESTABELECIMENTO_ID, Avisos.TO_ESTABELECIMENTO_ID );
|
||||
FIELD_INDEXES.put( Avisos.ESTABELECIMENTO_ID, Avisos.ESTABELECIMENTO_ID_INDEX );
|
||||
FIELD_INDEXES.put( Avisos.ESTABELECIMENTO_ID_FULL, Avisos.ESTABELECIMENTO_ID_INDEX );
|
||||
FIELD_INDEXES.put( Avisos.TO_ESTABELECIMENTO_ID, Avisos.TO_ESTABELECIMENTO_ID_INDEX );
|
||||
com.evolute.entity.evo.EvoDataObject.register( Avisos.CLASS_IDENTIFIER, Avisos.TRABALHADOR_ID, Avisos.TO_TRABALHADOR_ID );
|
||||
FIELD_INDEXES.put( Avisos.TRABALHADOR_ID, Avisos.TRABALHADOR_ID_INDEX );
|
||||
FIELD_INDEXES.put( Avisos.TRABALHADOR_ID_FULL, Avisos.TRABALHADOR_ID_INDEX );
|
||||
FIELD_INDEXES.put( Avisos.TO_TRABALHADOR_ID, Avisos.TO_TRABALHADOR_ID_INDEX );
|
||||
FIELD_INDEXES.put( Avisos.EVENTO_ID, Avisos.EVENTO_ID_INDEX );
|
||||
FIELD_INDEXES.put( Avisos.EVENTO_ID_FULL, Avisos.EVENTO_ID_INDEX );
|
||||
FIELD_INDEXES.put( Avisos.DATA_AVISO, Avisos.DATA_AVISO_INDEX );
|
||||
FIELD_INDEXES.put( Avisos.DATA_AVISO_FULL, Avisos.DATA_AVISO_INDEX );
|
||||
FIELD_INDEXES.put( Avisos.DATA_EVENTO, Avisos.DATA_EVENTO_INDEX );
|
||||
FIELD_INDEXES.put( Avisos.DATA_EVENTO_FULL, Avisos.DATA_EVENTO_INDEX );
|
||||
FIELD_INDEXES.put( Avisos.DESCRICAO, Avisos.DESCRICAO_INDEX );
|
||||
FIELD_INDEXES.put( Avisos.DESCRICAO_FULL, Avisos.DESCRICAO_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final com.evolute.entity.ForeignKey ForeignKeyempresa_idToempresas =
|
||||
new com.evolute.entity.ForeignKey( Avisos.class, Avisos.EMPRESA_ID, db.data.siprp.outer.EmpresasData.class, db.data.siprp.outer.EmpresasData.ID );
|
||||
|
||||
public static final com.evolute.entity.ForeignKey ForeignKeyestabelecimento_idToestabelecimentos =
|
||||
new com.evolute.entity.ForeignKey( Avisos.class, Avisos.ESTABELECIMENTO_ID, db.data.siprp.outer.EstabelecimentosData.class, db.data.siprp.outer.EstabelecimentosData.ID );
|
||||
|
||||
public static final com.evolute.entity.ForeignKey ForeignKeytrabalhador_idTotrabalhadores =
|
||||
new com.evolute.entity.ForeignKey( Avisos.class, Avisos.TRABALHADOR_ID, db.data.siprp.outer.TrabalhadoresData.class, db.data.siprp.outer.TrabalhadoresData.ID );
|
||||
|
||||
public static final String TABLENAME = "avisos";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.avisos";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "avisos.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String TIPO = "tipo";
|
||||
public static final String TIPO_FULL = "avisos.tipo";
|
||||
public static final int TIPO_INDEX = 1;
|
||||
public static final String EMPRESA_ID = "empresa_id";
|
||||
public static final String EMPRESA_ID_FULL = "avisos.empresa_id";
|
||||
public static final int EMPRESA_ID_INDEX = 2;
|
||||
public static final String TO_EMPRESA_ID = "to_empresa_id";
|
||||
public static final String TO_EMPRESA_ID_FULL = "avisos.to_empresa_id";
|
||||
public static final int TO_EMPRESA_ID_INDEX = 3;
|
||||
public static final String ESTABELECIMENTO_ID = "estabelecimento_id";
|
||||
public static final String ESTABELECIMENTO_ID_FULL = "avisos.estabelecimento_id";
|
||||
public static final int ESTABELECIMENTO_ID_INDEX = 4;
|
||||
public static final String TO_ESTABELECIMENTO_ID = "to_estabelecimento_id";
|
||||
public static final String TO_ESTABELECIMENTO_ID_FULL = "avisos.to_estabelecimento_id";
|
||||
public static final int TO_ESTABELECIMENTO_ID_INDEX = 5;
|
||||
public static final String TRABALHADOR_ID = "trabalhador_id";
|
||||
public static final String TRABALHADOR_ID_FULL = "avisos.trabalhador_id";
|
||||
public static final int TRABALHADOR_ID_INDEX = 6;
|
||||
public static final String TO_TRABALHADOR_ID = "to_trabalhador_id";
|
||||
public static final String TO_TRABALHADOR_ID_FULL = "avisos.to_trabalhador_id";
|
||||
public static final int TO_TRABALHADOR_ID_INDEX = 7;
|
||||
public static final String EVENTO_ID = "evento_id";
|
||||
public static final String EVENTO_ID_FULL = "avisos.evento_id";
|
||||
public static final int EVENTO_ID_INDEX = 8;
|
||||
public static final String DATA_AVISO = "data_aviso";
|
||||
public static final String DATA_AVISO_FULL = "avisos.data_aviso";
|
||||
public static final int DATA_AVISO_INDEX = 9;
|
||||
public static final String DATA_EVENTO = "data_evento";
|
||||
public static final String DATA_EVENTO_FULL = "avisos.data_evento";
|
||||
public static final int DATA_EVENTO_INDEX = 10;
|
||||
public static final String DESCRICAO = "descricao";
|
||||
public static final String DESCRICAO_FULL = "avisos.descricao";
|
||||
public static final int DESCRICAO_INDEX = 11;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
TIPO, EMPRESA_ID, TO_EMPRESA_ID, ESTABELECIMENTO_ID, TO_ESTABELECIMENTO_ID,
|
||||
TRABALHADOR_ID, TO_TRABALHADOR_ID, EVENTO_ID, DATA_AVISO, DATA_EVENTO, DESCRICAO, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + TIPO, TABLENAME + "." + EMPRESA_ID, TABLENAME + "." + TO_EMPRESA_ID, TABLENAME + "." + ESTABELECIMENTO_ID, TABLENAME + "." + TO_ESTABELECIMENTO_ID,
|
||||
TABLENAME + "." + TRABALHADOR_ID, TABLENAME + "." + TO_TRABALHADOR_ID, TABLENAME + "." + EVENTO_ID, TABLENAME + "." + DATA_AVISO, TABLENAME + "." + DATA_EVENTO, TABLENAME + "." + DESCRICAO, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, TIPO, EMPRESA_ID, ESTABELECIMENTO_ID, TRABALHADOR_ID, EVENTO_ID, DATA_AVISO,
|
||||
DATA_EVENTO, DESCRICAO, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, TIPO, EMPRESA_ID, ESTABELECIMENTO_ID, TRABALHADOR_ID, EVENTO_ID, DATA_AVISO,
|
||||
DATA_EVENTO, DESCRICAO, };
|
||||
|
||||
private Integer id;
|
||||
private Integer tipo;
|
||||
private Integer empresa_id;
|
||||
private db.data.siprp.outer.EmpresasData to_empresa_id;
|
||||
private Integer estabelecimento_id;
|
||||
private db.data.siprp.outer.EstabelecimentosData to_estabelecimento_id;
|
||||
private Integer trabalhador_id;
|
||||
private db.data.siprp.outer.TrabalhadoresData to_trabalhador_id;
|
||||
private Integer evento_id;
|
||||
private java.util.Date data_aviso;
|
||||
private java.util.Date data_evento;
|
||||
private String descricao;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public Avisos()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, false, false
|
||||
, false, false, false, false, false, false, false, false,
|
||||
false };
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId( Integer id )
|
||||
{
|
||||
try
|
||||
{
|
||||
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 getTipo()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( TIPO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.tipo;
|
||||
}
|
||||
|
||||
public void setTipo( Integer tipo )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( TIPO, tipo );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.tipo = tipo;
|
||||
LAZY_LOADED_OBJECTS.put( TIPO, 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 db.data.siprp.outer.EmpresasData toEmpresa_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
prepare( TO_EMPRESA_ID );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return this.to_empresa_id;
|
||||
}
|
||||
|
||||
public void setToEmpresa_id( db.data.siprp.outer.EmpresasData to_empresa_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( TO_EMPRESA_ID, to_empresa_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.to_empresa_id = to_empresa_id;
|
||||
}
|
||||
|
||||
public Integer getEstabelecimento_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ESTABELECIMENTO_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.estabelecimento_id;
|
||||
}
|
||||
|
||||
public void setEstabelecimento_id( Integer estabelecimento_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ESTABELECIMENTO_ID, estabelecimento_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.estabelecimento_id = estabelecimento_id;
|
||||
LAZY_LOADED_OBJECTS.put( ESTABELECIMENTO_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public db.data.siprp.outer.EstabelecimentosData toEstabelecimento_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
prepare( TO_ESTABELECIMENTO_ID );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return this.to_estabelecimento_id;
|
||||
}
|
||||
|
||||
public void setToEstabelecimento_id( db.data.siprp.outer.EstabelecimentosData to_estabelecimento_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( TO_ESTABELECIMENTO_ID, to_estabelecimento_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.to_estabelecimento_id = to_estabelecimento_id;
|
||||
}
|
||||
|
||||
public Integer getTrabalhador_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( TRABALHADOR_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.trabalhador_id;
|
||||
}
|
||||
|
||||
public void setTrabalhador_id( Integer trabalhador_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( TRABALHADOR_ID, trabalhador_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.trabalhador_id = trabalhador_id;
|
||||
LAZY_LOADED_OBJECTS.put( TRABALHADOR_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public db.data.siprp.outer.TrabalhadoresData toTrabalhador_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
prepare( TO_TRABALHADOR_ID );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return this.to_trabalhador_id;
|
||||
}
|
||||
|
||||
public void setToTrabalhador_id( db.data.siprp.outer.TrabalhadoresData to_trabalhador_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( TO_TRABALHADOR_ID, to_trabalhador_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.to_trabalhador_id = to_trabalhador_id;
|
||||
}
|
||||
|
||||
public Integer getEvento_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( EVENTO_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.evento_id;
|
||||
}
|
||||
|
||||
public void setEvento_id( Integer evento_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( EVENTO_ID, evento_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.evento_id = evento_id;
|
||||
LAZY_LOADED_OBJECTS.put( EVENTO_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public java.util.Date getData_aviso()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DATA_AVISO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.data_aviso;
|
||||
}
|
||||
|
||||
public void setData_aviso( java.util.Date data_aviso )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( DATA_AVISO, data_aviso );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.data_aviso = data_aviso;
|
||||
LAZY_LOADED_OBJECTS.put( DATA_AVISO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public java.util.Date getData_evento()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DATA_EVENTO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.data_evento;
|
||||
}
|
||||
|
||||
public void setData_evento( java.util.Date data_evento )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( DATA_EVENTO, data_evento );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.data_evento = data_evento;
|
||||
LAZY_LOADED_OBJECTS.put( DATA_EVENTO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getDescricao()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DESCRICAO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.descricao;
|
||||
}
|
||||
|
||||
public void setDescricao( String descricao )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( DESCRICAO, descricao );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.descricao = descricao;
|
||||
LAZY_LOADED_OBJECTS.put( DESCRICAO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Avisos.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case Avisos.TIPO_INDEX:
|
||||
value = getTipo();
|
||||
break;
|
||||
case Avisos.EMPRESA_ID_INDEX:
|
||||
value = getEmpresa_id();
|
||||
break;
|
||||
case Avisos.TO_EMPRESA_ID_INDEX:
|
||||
value = toEmpresa_id();
|
||||
break;
|
||||
case Avisos.ESTABELECIMENTO_ID_INDEX:
|
||||
value = getEstabelecimento_id();
|
||||
break;
|
||||
case Avisos.TO_ESTABELECIMENTO_ID_INDEX:
|
||||
value = toEstabelecimento_id();
|
||||
break;
|
||||
case Avisos.TRABALHADOR_ID_INDEX:
|
||||
value = getTrabalhador_id();
|
||||
break;
|
||||
case Avisos.TO_TRABALHADOR_ID_INDEX:
|
||||
value = toTrabalhador_id();
|
||||
break;
|
||||
case Avisos.EVENTO_ID_INDEX:
|
||||
value = getEvento_id();
|
||||
break;
|
||||
case Avisos.DATA_AVISO_INDEX:
|
||||
value = getData_aviso();
|
||||
break;
|
||||
case Avisos.DATA_EVENTO_INDEX:
|
||||
value = getData_evento();
|
||||
break;
|
||||
case Avisos.DESCRICAO_INDEX:
|
||||
value = getDescricao();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Avisos.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case Avisos.TIPO_INDEX:
|
||||
value = this.tipo;
|
||||
break;
|
||||
case Avisos.EMPRESA_ID_INDEX:
|
||||
value = this.empresa_id;
|
||||
break;
|
||||
case Avisos.TO_EMPRESA_ID_INDEX:
|
||||
value = this.to_empresa_id;
|
||||
break;
|
||||
case Avisos.ESTABELECIMENTO_ID_INDEX:
|
||||
value = this.estabelecimento_id;
|
||||
break;
|
||||
case Avisos.TO_ESTABELECIMENTO_ID_INDEX:
|
||||
value = this.to_estabelecimento_id;
|
||||
break;
|
||||
case Avisos.TRABALHADOR_ID_INDEX:
|
||||
value = this.trabalhador_id;
|
||||
break;
|
||||
case Avisos.TO_TRABALHADOR_ID_INDEX:
|
||||
value = this.to_trabalhador_id;
|
||||
break;
|
||||
case Avisos.EVENTO_ID_INDEX:
|
||||
value = this.evento_id;
|
||||
break;
|
||||
case Avisos.DATA_AVISO_INDEX:
|
||||
value = this.data_aviso;
|
||||
break;
|
||||
case Avisos.DATA_EVENTO_INDEX:
|
||||
value = this.data_evento;
|
||||
break;
|
||||
case Avisos.DESCRICAO_INDEX:
|
||||
value = this.descricao;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Avisos.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case Avisos.TIPO_INDEX:
|
||||
setTipo( ( Integer ) value );
|
||||
break;
|
||||
case Avisos.EMPRESA_ID_INDEX:
|
||||
setEmpresa_id( ( Integer ) value );
|
||||
break;
|
||||
case Avisos.TO_EMPRESA_ID_INDEX:
|
||||
setToEmpresa_id( ( db.data.siprp.outer.EmpresasData ) value );
|
||||
break;
|
||||
case Avisos.ESTABELECIMENTO_ID_INDEX:
|
||||
setEstabelecimento_id( ( Integer ) value );
|
||||
break;
|
||||
case Avisos.TO_ESTABELECIMENTO_ID_INDEX:
|
||||
setToEstabelecimento_id( ( db.data.siprp.outer.EstabelecimentosData ) value );
|
||||
break;
|
||||
case Avisos.TRABALHADOR_ID_INDEX:
|
||||
setTrabalhador_id( ( Integer ) value );
|
||||
break;
|
||||
case Avisos.TO_TRABALHADOR_ID_INDEX:
|
||||
setToTrabalhador_id( ( db.data.siprp.outer.TrabalhadoresData ) value );
|
||||
break;
|
||||
case Avisos.EVENTO_ID_INDEX:
|
||||
setEvento_id( ( Integer ) value );
|
||||
break;
|
||||
case Avisos.DATA_AVISO_INDEX:
|
||||
setData_aviso( ( java.util.Date ) value );
|
||||
break;
|
||||
case Avisos.DATA_EVENTO_INDEX:
|
||||
setData_evento( ( java.util.Date ) value );
|
||||
break;
|
||||
case Avisos.DESCRICAO_INDEX:
|
||||
setDescricao( ( String ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Avisos.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case Avisos.TIPO_INDEX:
|
||||
this.tipo = ( Integer ) value;
|
||||
break;
|
||||
case Avisos.EMPRESA_ID_INDEX:
|
||||
this.empresa_id = ( Integer ) value;
|
||||
break;
|
||||
case Avisos.TO_EMPRESA_ID_INDEX:
|
||||
this.to_empresa_id = ( db.data.siprp.outer.EmpresasData ) value;
|
||||
break;
|
||||
case Avisos.ESTABELECIMENTO_ID_INDEX:
|
||||
this.estabelecimento_id = ( Integer ) value;
|
||||
break;
|
||||
case Avisos.TO_ESTABELECIMENTO_ID_INDEX:
|
||||
this.to_estabelecimento_id = ( db.data.siprp.outer.EstabelecimentosData ) value;
|
||||
break;
|
||||
case Avisos.TRABALHADOR_ID_INDEX:
|
||||
this.trabalhador_id = ( Integer ) value;
|
||||
break;
|
||||
case Avisos.TO_TRABALHADOR_ID_INDEX:
|
||||
this.to_trabalhador_id = ( db.data.siprp.outer.TrabalhadoresData ) value;
|
||||
break;
|
||||
case Avisos.EVENTO_ID_INDEX:
|
||||
this.evento_id = ( Integer ) value;
|
||||
break;
|
||||
case Avisos.DATA_AVISO_INDEX:
|
||||
this.data_aviso = ( java.util.Date ) value;
|
||||
break;
|
||||
case Avisos.DATA_EVENTO_INDEX:
|
||||
this.data_evento = ( java.util.Date ) value;
|
||||
break;
|
||||
case Avisos.DESCRICAO_INDEX:
|
||||
this.descricao = ( String ) value;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getFieldNamesFull()
|
||||
{
|
||||
return FIELD_NAMES_FULL;
|
||||
}
|
||||
|
||||
public String []getDBFieldNames()
|
||||
{
|
||||
return DB_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getPrimaryKeyNames()
|
||||
{
|
||||
return PK_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getDefaultLoadSet()
|
||||
{
|
||||
return DEFAULT_LOAD_SET;
|
||||
}
|
||||
|
||||
public String getPrimaryKeyName()
|
||||
{
|
||||
return PK_FIELD_NAMES[ 0 ];
|
||||
}
|
||||
|
||||
public Class<?> getFieldClass( String fieldName )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
Class<?> theClass = null;
|
||||
switch( index )
|
||||
{
|
||||
case Avisos.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case Avisos.TIPO_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case Avisos.EMPRESA_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case Avisos.TO_EMPRESA_ID_INDEX:
|
||||
theClass = db.data.siprp.outer.EmpresasData.class;
|
||||
break;
|
||||
case Avisos.ESTABELECIMENTO_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case Avisos.TO_ESTABELECIMENTO_ID_INDEX:
|
||||
theClass = db.data.siprp.outer.EstabelecimentosData.class;
|
||||
break;
|
||||
case Avisos.TRABALHADOR_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case Avisos.TO_TRABALHADOR_ID_INDEX:
|
||||
theClass = db.data.siprp.outer.TrabalhadoresData.class;
|
||||
break;
|
||||
case Avisos.EVENTO_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case Avisos.DATA_AVISO_INDEX:
|
||||
theClass = java.util.Date.class;
|
||||
break;
|
||||
case Avisos.DATA_EVENTO_INDEX:
|
||||
theClass = java.util.Date.class;
|
||||
break;
|
||||
case Avisos.DESCRICAO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : Avisos._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, Avisos.PK_FIELD_NAMES );
|
||||
primaryKey.set( 0, getId() );
|
||||
}
|
||||
}
|
||||
|
||||
@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,330 @@
|
||||
/*
|
||||
* Causas.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp.inner;
|
||||
|
||||
|
||||
public class Causas extends com.evolute.entity.evo.EvoDataObject<com.evolute.entity.utils.IntegerPrimaryKey>
|
||||
{
|
||||
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||
|
||||
static
|
||||
{
|
||||
FIELD_INDEXES.put( Causas.ID, Causas.ID_INDEX );
|
||||
FIELD_INDEXES.put( Causas.ID_FULL, Causas.ID_INDEX );
|
||||
FIELD_INDEXES.put( Causas.CAUSA, Causas.CAUSA_INDEX );
|
||||
FIELD_INDEXES.put( Causas.CAUSA_FULL, Causas.CAUSA_INDEX );
|
||||
FIELD_INDEXES.put( Causas.ACTIVA, Causas.ACTIVA_INDEX );
|
||||
FIELD_INDEXES.put( Causas.ACTIVA_FULL, Causas.ACTIVA_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final String TABLENAME = "causas";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.causas";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "causas.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String CAUSA = "causa";
|
||||
public static final String CAUSA_FULL = "causas.causa";
|
||||
public static final int CAUSA_INDEX = 1;
|
||||
public static final String ACTIVA = "activa";
|
||||
public static final String ACTIVA_FULL = "causas.activa";
|
||||
public static final int ACTIVA_INDEX = 2;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
CAUSA, ACTIVA, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + CAUSA, TABLENAME + "." + ACTIVA, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, CAUSA, ACTIVA, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, CAUSA, ACTIVA, };
|
||||
|
||||
private Integer id;
|
||||
private String causa;
|
||||
private String activa;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public Causas()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, false, false };
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId( Integer id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ID, id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.id = id;
|
||||
LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getCausa()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CAUSA );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.causa;
|
||||
}
|
||||
|
||||
public void setCausa( String causa )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( CAUSA, causa );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.causa = causa;
|
||||
LAZY_LOADED_OBJECTS.put( CAUSA, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getActiva()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ACTIVA );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.activa;
|
||||
}
|
||||
|
||||
public void setActiva( String activa )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ACTIVA, activa );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.activa = activa;
|
||||
LAZY_LOADED_OBJECTS.put( ACTIVA, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Causas.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case Causas.CAUSA_INDEX:
|
||||
value = getCausa();
|
||||
break;
|
||||
case Causas.ACTIVA_INDEX:
|
||||
value = getActiva();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Causas.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case Causas.CAUSA_INDEX:
|
||||
value = this.causa;
|
||||
break;
|
||||
case Causas.ACTIVA_INDEX:
|
||||
value = this.activa;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Causas.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case Causas.CAUSA_INDEX:
|
||||
setCausa( ( String ) value );
|
||||
break;
|
||||
case Causas.ACTIVA_INDEX:
|
||||
setActiva( ( String ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Causas.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case Causas.CAUSA_INDEX:
|
||||
this.causa = ( String ) value;
|
||||
break;
|
||||
case Causas.ACTIVA_INDEX:
|
||||
this.activa = ( 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 Causas.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case Causas.CAUSA_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case Causas.ACTIVA_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : Causas._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, Causas.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,530 @@
|
||||
/*
|
||||
* Contactos.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp.inner;
|
||||
|
||||
|
||||
public class Contactos extends com.evolute.entity.evo.EvoDataObject<com.evolute.entity.utils.IntegerPrimaryKey>
|
||||
{
|
||||
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||
|
||||
static
|
||||
{
|
||||
FIELD_INDEXES.put( Contactos.ID, Contactos.ID_INDEX );
|
||||
FIELD_INDEXES.put( Contactos.ID_FULL, Contactos.ID_INDEX );
|
||||
FIELD_INDEXES.put( Contactos.NOME, Contactos.NOME_INDEX );
|
||||
FIELD_INDEXES.put( Contactos.NOME_FULL, Contactos.NOME_INDEX );
|
||||
FIELD_INDEXES.put( Contactos.TELEFONE, Contactos.TELEFONE_INDEX );
|
||||
FIELD_INDEXES.put( Contactos.TELEFONE_FULL, Contactos.TELEFONE_INDEX );
|
||||
FIELD_INDEXES.put( Contactos.TELEMOVEL, Contactos.TELEMOVEL_INDEX );
|
||||
FIELD_INDEXES.put( Contactos.TELEMOVEL_FULL, Contactos.TELEMOVEL_INDEX );
|
||||
FIELD_INDEXES.put( Contactos.FAX, Contactos.FAX_INDEX );
|
||||
FIELD_INDEXES.put( Contactos.FAX_FULL, Contactos.FAX_INDEX );
|
||||
FIELD_INDEXES.put( Contactos.EMAIL, Contactos.EMAIL_INDEX );
|
||||
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 );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final String TABLENAME = "contactos";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.contactos";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "contactos.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String NOME = "nome";
|
||||
public static final String NOME_FULL = "contactos.nome";
|
||||
public static final int NOME_INDEX = 1;
|
||||
public static final String TELEFONE = "telefone";
|
||||
public static final String TELEFONE_FULL = "contactos.telefone";
|
||||
public static final int TELEFONE_INDEX = 2;
|
||||
public static final String TELEMOVEL = "telemovel";
|
||||
public static final String TELEMOVEL_FULL = "contactos.telemovel";
|
||||
public static final int TELEMOVEL_INDEX = 3;
|
||||
public static final String FAX = "fax";
|
||||
public static final String FAX_FULL = "contactos.fax";
|
||||
public static final int FAX_INDEX = 4;
|
||||
public static final String EMAIL = "email";
|
||||
public static final String EMAIL_FULL = "contactos.email";
|
||||
public static final int EMAIL_INDEX = 5;
|
||||
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 FIELD_NAMES[] = new String[]{
|
||||
NOME, TELEFONE, TELEMOVEL, FAX, EMAIL, CARGO, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + NOME, TABLENAME + "." + TELEFONE, TABLENAME + "." + TELEMOVEL, TABLENAME + "." + FAX, TABLENAME + "." + EMAIL, TABLENAME + "." + CARGO, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, NOME, TELEFONE, TELEMOVEL, FAX, EMAIL, CARGO, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, NOME, TELEFONE, TELEMOVEL, FAX, EMAIL, CARGO, };
|
||||
|
||||
private Integer id;
|
||||
private String nome;
|
||||
private String telefone;
|
||||
private String telemovel;
|
||||
private String fax;
|
||||
private String email;
|
||||
private String cargo;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public Contactos()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, false, false,
|
||||
false, false, false, false };
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId( Integer id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ID, id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.id = id;
|
||||
LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public 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 String getTelefone()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( TELEFONE );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.telefone;
|
||||
}
|
||||
|
||||
public void setTelefone( String telefone )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( TELEFONE, telefone );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.telefone = telefone;
|
||||
LAZY_LOADED_OBJECTS.put( TELEFONE, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getTelemovel()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( TELEMOVEL );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.telemovel;
|
||||
}
|
||||
|
||||
public void setTelemovel( String telemovel )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( TELEMOVEL, telemovel );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.telemovel = telemovel;
|
||||
LAZY_LOADED_OBJECTS.put( TELEMOVEL, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getFax()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( FAX );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.fax;
|
||||
}
|
||||
|
||||
public void setFax( String fax )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( FAX, fax );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.fax = fax;
|
||||
LAZY_LOADED_OBJECTS.put( FAX, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getEmail()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( EMAIL );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.email;
|
||||
}
|
||||
|
||||
public void setEmail( String email )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( EMAIL, email );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.email = email;
|
||||
LAZY_LOADED_OBJECTS.put( EMAIL, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getCargo()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CARGO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.cargo;
|
||||
}
|
||||
|
||||
public void setCargo( String cargo )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( CARGO, cargo );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.cargo = cargo;
|
||||
LAZY_LOADED_OBJECTS.put( CARGO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Contactos.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case Contactos.NOME_INDEX:
|
||||
value = getNome();
|
||||
break;
|
||||
case Contactos.TELEFONE_INDEX:
|
||||
value = getTelefone();
|
||||
break;
|
||||
case Contactos.TELEMOVEL_INDEX:
|
||||
value = getTelemovel();
|
||||
break;
|
||||
case Contactos.FAX_INDEX:
|
||||
value = getFax();
|
||||
break;
|
||||
case Contactos.EMAIL_INDEX:
|
||||
value = getEmail();
|
||||
break;
|
||||
case Contactos.CARGO_INDEX:
|
||||
value = getCargo();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Contactos.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case Contactos.NOME_INDEX:
|
||||
value = this.nome;
|
||||
break;
|
||||
case Contactos.TELEFONE_INDEX:
|
||||
value = this.telefone;
|
||||
break;
|
||||
case Contactos.TELEMOVEL_INDEX:
|
||||
value = this.telemovel;
|
||||
break;
|
||||
case Contactos.FAX_INDEX:
|
||||
value = this.fax;
|
||||
break;
|
||||
case Contactos.EMAIL_INDEX:
|
||||
value = this.email;
|
||||
break;
|
||||
case Contactos.CARGO_INDEX:
|
||||
value = this.cargo;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Contactos.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case Contactos.NOME_INDEX:
|
||||
setNome( ( String ) value );
|
||||
break;
|
||||
case Contactos.TELEFONE_INDEX:
|
||||
setTelefone( ( String ) value );
|
||||
break;
|
||||
case Contactos.TELEMOVEL_INDEX:
|
||||
setTelemovel( ( String ) value );
|
||||
break;
|
||||
case Contactos.FAX_INDEX:
|
||||
setFax( ( String ) value );
|
||||
break;
|
||||
case Contactos.EMAIL_INDEX:
|
||||
setEmail( ( String ) value );
|
||||
break;
|
||||
case Contactos.CARGO_INDEX:
|
||||
setCargo( ( String ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Contactos.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case Contactos.NOME_INDEX:
|
||||
this.nome = ( String ) value;
|
||||
break;
|
||||
case Contactos.TELEFONE_INDEX:
|
||||
this.telefone = ( String ) value;
|
||||
break;
|
||||
case Contactos.TELEMOVEL_INDEX:
|
||||
this.telemovel = ( String ) value;
|
||||
break;
|
||||
case Contactos.FAX_INDEX:
|
||||
this.fax = ( String ) value;
|
||||
break;
|
||||
case Contactos.EMAIL_INDEX:
|
||||
this.email = ( String ) value;
|
||||
break;
|
||||
case Contactos.CARGO_INDEX:
|
||||
this.cargo = ( 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 Contactos.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case Contactos.NOME_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case Contactos.TELEFONE_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case Contactos.TELEMOVEL_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case Contactos.FAX_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case Contactos.EMAIL_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case Contactos.CARGO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : Contactos._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, Contactos.PK_FIELD_NAMES );
|
||||
primaryKey.set( 0, getId() );
|
||||
}
|
||||
}
|
||||
|
||||
@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,330 @@
|
||||
/*
|
||||
* Controle.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp.inner;
|
||||
|
||||
|
||||
public class Controle extends com.evolute.entity.evo.EvoDataObject<com.evolute.entity.utils.IntegerPrimaryKey>
|
||||
{
|
||||
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||
|
||||
static
|
||||
{
|
||||
FIELD_INDEXES.put( Controle.ID, Controle.ID_INDEX );
|
||||
FIELD_INDEXES.put( Controle.ID_FULL, Controle.ID_INDEX );
|
||||
FIELD_INDEXES.put( Controle.ANALISE_YEAR, Controle.ANALISE_YEAR_INDEX );
|
||||
FIELD_INDEXES.put( Controle.ANALISE_YEAR_FULL, Controle.ANALISE_YEAR_INDEX );
|
||||
FIELD_INDEXES.put( Controle.LAST_ANALISE_NR, Controle.LAST_ANALISE_NR_INDEX );
|
||||
FIELD_INDEXES.put( Controle.LAST_ANALISE_NR_FULL, Controle.LAST_ANALISE_NR_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final String TABLENAME = "controle";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.controle";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "controle.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String ANALISE_YEAR = "analise_year";
|
||||
public static final String ANALISE_YEAR_FULL = "controle.analise_year";
|
||||
public static final int ANALISE_YEAR_INDEX = 1;
|
||||
public static final String LAST_ANALISE_NR = "last_analise_nr";
|
||||
public static final String LAST_ANALISE_NR_FULL = "controle.last_analise_nr";
|
||||
public static final int LAST_ANALISE_NR_INDEX = 2;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
ANALISE_YEAR, LAST_ANALISE_NR, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + ANALISE_YEAR, TABLENAME + "." + LAST_ANALISE_NR, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, ANALISE_YEAR, LAST_ANALISE_NR, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, ANALISE_YEAR, LAST_ANALISE_NR, };
|
||||
|
||||
private Integer id;
|
||||
private Integer analise_year;
|
||||
private Integer last_analise_nr;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public Controle()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, false, false };
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId( Integer id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ID, id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.id = id;
|
||||
LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getAnalise_year()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ANALISE_YEAR );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.analise_year;
|
||||
}
|
||||
|
||||
public void setAnalise_year( Integer analise_year )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ANALISE_YEAR, analise_year );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.analise_year = analise_year;
|
||||
LAZY_LOADED_OBJECTS.put( ANALISE_YEAR, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getLast_analise_nr()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( LAST_ANALISE_NR );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.last_analise_nr;
|
||||
}
|
||||
|
||||
public void setLast_analise_nr( Integer last_analise_nr )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( LAST_ANALISE_NR, last_analise_nr );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.last_analise_nr = last_analise_nr;
|
||||
LAZY_LOADED_OBJECTS.put( LAST_ANALISE_NR, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Controle.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case Controle.ANALISE_YEAR_INDEX:
|
||||
value = getAnalise_year();
|
||||
break;
|
||||
case Controle.LAST_ANALISE_NR_INDEX:
|
||||
value = getLast_analise_nr();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Controle.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case Controle.ANALISE_YEAR_INDEX:
|
||||
value = this.analise_year;
|
||||
break;
|
||||
case Controle.LAST_ANALISE_NR_INDEX:
|
||||
value = this.last_analise_nr;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Controle.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case Controle.ANALISE_YEAR_INDEX:
|
||||
setAnalise_year( ( Integer ) value );
|
||||
break;
|
||||
case Controle.LAST_ANALISE_NR_INDEX:
|
||||
setLast_analise_nr( ( Integer ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Controle.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case Controle.ANALISE_YEAR_INDEX:
|
||||
this.analise_year = ( Integer ) value;
|
||||
break;
|
||||
case Controle.LAST_ANALISE_NR_INDEX:
|
||||
this.last_analise_nr = ( Integer ) value;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getFieldNamesFull()
|
||||
{
|
||||
return FIELD_NAMES_FULL;
|
||||
}
|
||||
|
||||
public String []getDBFieldNames()
|
||||
{
|
||||
return DB_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getPrimaryKeyNames()
|
||||
{
|
||||
return PK_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getDefaultLoadSet()
|
||||
{
|
||||
return DEFAULT_LOAD_SET;
|
||||
}
|
||||
|
||||
public String getPrimaryKeyName()
|
||||
{
|
||||
return PK_FIELD_NAMES[ 0 ];
|
||||
}
|
||||
|
||||
public Class<?> getFieldClass( String fieldName )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
Class<?> theClass = null;
|
||||
switch( index )
|
||||
{
|
||||
case Controle.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case Controle.ANALISE_YEAR_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case Controle.LAST_ANALISE_NR_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : Controle._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, Controle.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,358 @@
|
||||
/*
|
||||
* Departamentos.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp.inner;
|
||||
|
||||
|
||||
public class Departamentos extends com.evolute.entity.evo.EvoDataObject<com.evolute.entity.utils.IntegerPrimaryKey>
|
||||
{
|
||||
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||
|
||||
static
|
||||
{
|
||||
FIELD_INDEXES.put( Departamentos.ID, Departamentos.ID_INDEX );
|
||||
FIELD_INDEXES.put( Departamentos.ID_FULL, Departamentos.ID_INDEX );
|
||||
FIELD_INDEXES.put( Departamentos.DESCRICAO, Departamentos.DESCRICAO_INDEX );
|
||||
FIELD_INDEXES.put( Departamentos.DESCRICAO_FULL, Departamentos.DESCRICAO_INDEX );
|
||||
FIELD_INDEXES.put( Departamentos.ACTIVO, Departamentos.ACTIVO_INDEX );
|
||||
FIELD_INDEXES.put( Departamentos.ACTIVO_FULL, Departamentos.ACTIVO_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final String TABLENAME = "departamentos";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.departamentos";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "departamentos.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String DESCRICAO = "descricao";
|
||||
public static final String DESCRICAO_FULL = "departamentos.descricao";
|
||||
public static final int DESCRICAO_INDEX = 1;
|
||||
public static final String ACTIVO = "activo";
|
||||
public static final String ACTIVO_FULL = "departamentos.activo";
|
||||
public static final int ACTIVO_INDEX = 2;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
DESCRICAO, ACTIVO, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + DESCRICAO, TABLENAME + "." + ACTIVO, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, DESCRICAO, ACTIVO, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, DESCRICAO, ACTIVO, };
|
||||
|
||||
private Integer id;
|
||||
private String descricao;
|
||||
private String activo;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public Departamentos()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, false, false };
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId( Integer id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ID, id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.id = id;
|
||||
LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public java.util.List<db.data.siprp.outer.AnalisesAcidentesData>fromAnalisesAcidentes_departamento_id()
|
||||
{
|
||||
java.util.List<db.data.siprp.outer.AnalisesAcidentesData> result = null;
|
||||
try
|
||||
{
|
||||
result = fromReference( db.data.siprp.outer.AnalisesAcidentesData.class , getPrimaryKey().getMap().get("id"), "departamento_id" );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public java.util.List<db.data.siprp.outer.SeccoesData>fromSeccoes_departamento_id()
|
||||
{
|
||||
java.util.List<db.data.siprp.outer.SeccoesData> result = null;
|
||||
try
|
||||
{
|
||||
result = fromReference( db.data.siprp.outer.SeccoesData.class , getPrimaryKey().getMap().get("id"), "departamento_id" );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public String getDescricao()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DESCRICAO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.descricao;
|
||||
}
|
||||
|
||||
public void setDescricao( String descricao )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( DESCRICAO, descricao );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.descricao = descricao;
|
||||
LAZY_LOADED_OBJECTS.put( DESCRICAO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getActivo()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ACTIVO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.activo;
|
||||
}
|
||||
|
||||
public void setActivo( String 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 Departamentos.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case Departamentos.DESCRICAO_INDEX:
|
||||
value = getDescricao();
|
||||
break;
|
||||
case Departamentos.ACTIVO_INDEX:
|
||||
value = getActivo();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Departamentos.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case Departamentos.DESCRICAO_INDEX:
|
||||
value = this.descricao;
|
||||
break;
|
||||
case Departamentos.ACTIVO_INDEX:
|
||||
value = this.activo;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Departamentos.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case Departamentos.DESCRICAO_INDEX:
|
||||
setDescricao( ( String ) value );
|
||||
break;
|
||||
case Departamentos.ACTIVO_INDEX:
|
||||
setActivo( ( String ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Departamentos.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case Departamentos.DESCRICAO_INDEX:
|
||||
this.descricao = ( String ) value;
|
||||
break;
|
||||
case Departamentos.ACTIVO_INDEX:
|
||||
this.activo = ( 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 Departamentos.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case Departamentos.DESCRICAO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case Departamentos.ACTIVO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : Departamentos._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, Departamentos.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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,430 @@
|
||||
/*
|
||||
* Errors.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp.inner;
|
||||
|
||||
|
||||
public class Errors extends com.evolute.entity.evo.EvoDataObject<com.evolute.entity.utils.IntegerPrimaryKey>
|
||||
{
|
||||
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||
|
||||
static
|
||||
{
|
||||
FIELD_INDEXES.put( Errors.ID, Errors.ID_INDEX );
|
||||
FIELD_INDEXES.put( Errors.ID_FULL, Errors.ID_INDEX );
|
||||
FIELD_INDEXES.put( Errors.DATE, Errors.DATE_INDEX );
|
||||
FIELD_INDEXES.put( Errors.DATE_FULL, Errors.DATE_INDEX );
|
||||
FIELD_INDEXES.put( Errors.TYPE, Errors.TYPE_INDEX );
|
||||
FIELD_INDEXES.put( Errors.TYPE_FULL, Errors.TYPE_INDEX );
|
||||
FIELD_INDEXES.put( Errors.ENVIRONMENT, Errors.ENVIRONMENT_INDEX );
|
||||
FIELD_INDEXES.put( Errors.ENVIRONMENT_FULL, Errors.ENVIRONMENT_INDEX );
|
||||
FIELD_INDEXES.put( Errors.DESCRIPTION, Errors.DESCRIPTION_INDEX );
|
||||
FIELD_INDEXES.put( Errors.DESCRIPTION_FULL, Errors.DESCRIPTION_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final String TABLENAME = "errors";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.errors";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "errors.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String DATE = "date";
|
||||
public static final String DATE_FULL = "errors.date";
|
||||
public static final int DATE_INDEX = 1;
|
||||
public static final String TYPE = "type";
|
||||
public static final String TYPE_FULL = "errors.type";
|
||||
public static final int TYPE_INDEX = 2;
|
||||
public static final String ENVIRONMENT = "environment";
|
||||
public static final String ENVIRONMENT_FULL = "errors.environment";
|
||||
public static final int ENVIRONMENT_INDEX = 3;
|
||||
public static final String DESCRIPTION = "description";
|
||||
public static final String DESCRIPTION_FULL = "errors.description";
|
||||
public static final int DESCRIPTION_INDEX = 4;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
DATE, TYPE, ENVIRONMENT, DESCRIPTION, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + DATE, TABLENAME + "." + TYPE, TABLENAME + "." + ENVIRONMENT, TABLENAME + "." + DESCRIPTION, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, DATE, TYPE, ENVIRONMENT, DESCRIPTION, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, DATE, TYPE, ENVIRONMENT, DESCRIPTION, };
|
||||
|
||||
private Integer id;
|
||||
private java.sql.Timestamp date;
|
||||
private String type;
|
||||
private String environment;
|
||||
private String description;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public Errors()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, false, false,
|
||||
false, false };
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId( Integer id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ID, id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.id = id;
|
||||
LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public java.sql.Timestamp getDate()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DATE );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.date;
|
||||
}
|
||||
|
||||
public void setDate( java.sql.Timestamp date )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( DATE, date );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.date = date;
|
||||
LAZY_LOADED_OBJECTS.put( DATE, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getType()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( TYPE );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.type;
|
||||
}
|
||||
|
||||
public void setType( String type )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( TYPE, type );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.type = type;
|
||||
LAZY_LOADED_OBJECTS.put( TYPE, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getEnvironment()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ENVIRONMENT );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.environment;
|
||||
}
|
||||
|
||||
public void setEnvironment( String environment )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ENVIRONMENT, environment );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.environment = environment;
|
||||
LAZY_LOADED_OBJECTS.put( ENVIRONMENT, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getDescription()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DESCRIPTION );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.description;
|
||||
}
|
||||
|
||||
public void setDescription( String description )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( DESCRIPTION, description );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.description = description;
|
||||
LAZY_LOADED_OBJECTS.put( DESCRIPTION, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Errors.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case Errors.DATE_INDEX:
|
||||
value = getDate();
|
||||
break;
|
||||
case Errors.TYPE_INDEX:
|
||||
value = getType();
|
||||
break;
|
||||
case Errors.ENVIRONMENT_INDEX:
|
||||
value = getEnvironment();
|
||||
break;
|
||||
case Errors.DESCRIPTION_INDEX:
|
||||
value = getDescription();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Errors.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case Errors.DATE_INDEX:
|
||||
value = this.date;
|
||||
break;
|
||||
case Errors.TYPE_INDEX:
|
||||
value = this.type;
|
||||
break;
|
||||
case Errors.ENVIRONMENT_INDEX:
|
||||
value = this.environment;
|
||||
break;
|
||||
case Errors.DESCRIPTION_INDEX:
|
||||
value = this.description;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Errors.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case Errors.DATE_INDEX:
|
||||
setDate( ( java.sql.Timestamp ) value );
|
||||
break;
|
||||
case Errors.TYPE_INDEX:
|
||||
setType( ( String ) value );
|
||||
break;
|
||||
case Errors.ENVIRONMENT_INDEX:
|
||||
setEnvironment( ( String ) value );
|
||||
break;
|
||||
case Errors.DESCRIPTION_INDEX:
|
||||
setDescription( ( String ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Errors.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case Errors.DATE_INDEX:
|
||||
this.date = ( java.sql.Timestamp ) value;
|
||||
break;
|
||||
case Errors.TYPE_INDEX:
|
||||
this.type = ( String ) value;
|
||||
break;
|
||||
case Errors.ENVIRONMENT_INDEX:
|
||||
this.environment = ( String ) value;
|
||||
break;
|
||||
case Errors.DESCRIPTION_INDEX:
|
||||
this.description = ( 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 Errors.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case Errors.DATE_INDEX:
|
||||
theClass = java.sql.Timestamp.class;
|
||||
break;
|
||||
case Errors.TYPE_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case Errors.ENVIRONMENT_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case Errors.DESCRIPTION_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : Errors._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, Errors.PK_FIELD_NAMES );
|
||||
primaryKey.set( 0, getId() );
|
||||
}
|
||||
}
|
||||
|
||||
@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,776 @@
|
||||
/*
|
||||
* Estabelecimentos.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp.inner;
|
||||
|
||||
|
||||
public class Estabelecimentos extends com.evolute.entity.evo.EvoDataObject<com.evolute.entity.utils.IntegerPrimaryKey>
|
||||
{
|
||||
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||
|
||||
static
|
||||
{
|
||||
FIELD_INDEXES.put( Estabelecimentos.ID, Estabelecimentos.ID_INDEX );
|
||||
FIELD_INDEXES.put( Estabelecimentos.ID_FULL, Estabelecimentos.ID_INDEX );
|
||||
com.evolute.entity.evo.EvoDataObject.register( Estabelecimentos.CLASS_IDENTIFIER, Estabelecimentos.EMPRESA_ID, Estabelecimentos.TO_EMPRESA_ID );
|
||||
FIELD_INDEXES.put( Estabelecimentos.EMPRESA_ID, Estabelecimentos.EMPRESA_ID_INDEX );
|
||||
FIELD_INDEXES.put( Estabelecimentos.EMPRESA_ID_FULL, Estabelecimentos.EMPRESA_ID_INDEX );
|
||||
FIELD_INDEXES.put( Estabelecimentos.TO_EMPRESA_ID, Estabelecimentos.TO_EMPRESA_ID_INDEX );
|
||||
FIELD_INDEXES.put( Estabelecimentos.MORADA, Estabelecimentos.MORADA_INDEX );
|
||||
FIELD_INDEXES.put( Estabelecimentos.MORADA_FULL, Estabelecimentos.MORADA_INDEX );
|
||||
FIELD_INDEXES.put( Estabelecimentos.CODIGO_POSTAL, Estabelecimentos.CODIGO_POSTAL_INDEX );
|
||||
FIELD_INDEXES.put( Estabelecimentos.CODIGO_POSTAL_FULL, Estabelecimentos.CODIGO_POSTAL_INDEX );
|
||||
FIELD_INDEXES.put( Estabelecimentos.LOCALIDADE, Estabelecimentos.LOCALIDADE_INDEX );
|
||||
FIELD_INDEXES.put( Estabelecimentos.LOCALIDADE_FULL, Estabelecimentos.LOCALIDADE_INDEX );
|
||||
FIELD_INDEXES.put( Estabelecimentos.ULTIMA_VISITA, Estabelecimentos.ULTIMA_VISITA_INDEX );
|
||||
FIELD_INDEXES.put( Estabelecimentos.ULTIMA_VISITA_FULL, Estabelecimentos.ULTIMA_VISITA_INDEX );
|
||||
FIELD_INDEXES.put( Estabelecimentos.REALIZADA, Estabelecimentos.REALIZADA_INDEX );
|
||||
FIELD_INDEXES.put( Estabelecimentos.REALIZADA_FULL, Estabelecimentos.REALIZADA_INDEX );
|
||||
FIELD_INDEXES.put( Estabelecimentos.PROXIMA_VISITA, Estabelecimentos.PROXIMA_VISITA_INDEX );
|
||||
FIELD_INDEXES.put( Estabelecimentos.PROXIMA_VISITA_FULL, Estabelecimentos.PROXIMA_VISITA_INDEX );
|
||||
FIELD_INDEXES.put( Estabelecimentos.NOME, Estabelecimentos.NOME_INDEX );
|
||||
FIELD_INDEXES.put( Estabelecimentos.NOME_FULL, Estabelecimentos.NOME_INDEX );
|
||||
FIELD_INDEXES.put( Estabelecimentos.MEDICO_ID, Estabelecimentos.MEDICO_ID_INDEX );
|
||||
FIELD_INDEXES.put( Estabelecimentos.MEDICO_ID_FULL, Estabelecimentos.MEDICO_ID_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final com.evolute.entity.ForeignKey ForeignKeyempresa_idToempresas =
|
||||
new com.evolute.entity.ForeignKey( Estabelecimentos.class, Estabelecimentos.EMPRESA_ID, db.data.siprp.outer.EmpresasData.class, db.data.siprp.outer.EmpresasData.ID );
|
||||
|
||||
public static final String TABLENAME = "estabelecimentos";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.estabelecimentos";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "estabelecimentos.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String EMPRESA_ID = "empresa_id";
|
||||
public static final String EMPRESA_ID_FULL = "estabelecimentos.empresa_id";
|
||||
public static final int EMPRESA_ID_INDEX = 1;
|
||||
public static final String TO_EMPRESA_ID = "to_empresa_id";
|
||||
public static final String TO_EMPRESA_ID_FULL = "estabelecimentos.to_empresa_id";
|
||||
public static final int TO_EMPRESA_ID_INDEX = 2;
|
||||
public static final String MORADA = "morada";
|
||||
public static final String MORADA_FULL = "estabelecimentos.morada";
|
||||
public static final int MORADA_INDEX = 3;
|
||||
public static final String CODIGO_POSTAL = "codigo_postal";
|
||||
public static final String CODIGO_POSTAL_FULL = "estabelecimentos.codigo_postal";
|
||||
public static final int CODIGO_POSTAL_INDEX = 4;
|
||||
public static final String LOCALIDADE = "localidade";
|
||||
public static final String LOCALIDADE_FULL = "estabelecimentos.localidade";
|
||||
public static final int LOCALIDADE_INDEX = 5;
|
||||
public static final String ULTIMA_VISITA = "ultima_visita";
|
||||
public static final String ULTIMA_VISITA_FULL = "estabelecimentos.ultima_visita";
|
||||
public static final int ULTIMA_VISITA_INDEX = 6;
|
||||
public static final String REALIZADA = "realizada";
|
||||
public static final String REALIZADA_FULL = "estabelecimentos.realizada";
|
||||
public static final int REALIZADA_INDEX = 7;
|
||||
public static final String PROXIMA_VISITA = "proxima_visita";
|
||||
public static final String PROXIMA_VISITA_FULL = "estabelecimentos.proxima_visita";
|
||||
public static final int PROXIMA_VISITA_INDEX = 8;
|
||||
public static final String NOME = "nome";
|
||||
public static final String NOME_FULL = "estabelecimentos.nome";
|
||||
public static final int NOME_INDEX = 9;
|
||||
public static final String MEDICO_ID = "medico_id";
|
||||
public static final String MEDICO_ID_FULL = "estabelecimentos.medico_id";
|
||||
public static final int MEDICO_ID_INDEX = 10;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
EMPRESA_ID, TO_EMPRESA_ID, MORADA, CODIGO_POSTAL, LOCALIDADE, ULTIMA_VISITA,
|
||||
REALIZADA, PROXIMA_VISITA, NOME, MEDICO_ID, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + EMPRESA_ID, TABLENAME + "." + TO_EMPRESA_ID, TABLENAME + "." + MORADA, TABLENAME + "." + CODIGO_POSTAL, TABLENAME + "." + LOCALIDADE, TABLENAME + "." + ULTIMA_VISITA,
|
||||
TABLENAME + "." + REALIZADA, TABLENAME + "." + PROXIMA_VISITA, TABLENAME + "." + NOME, TABLENAME + "." + MEDICO_ID, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, EMPRESA_ID, MORADA, CODIGO_POSTAL, LOCALIDADE, ULTIMA_VISITA, REALIZADA,
|
||||
PROXIMA_VISITA, NOME, MEDICO_ID, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, EMPRESA_ID, MORADA, CODIGO_POSTAL, LOCALIDADE, ULTIMA_VISITA, REALIZADA,
|
||||
PROXIMA_VISITA, NOME, MEDICO_ID, };
|
||||
|
||||
private Integer id;
|
||||
private Integer empresa_id;
|
||||
private db.data.siprp.outer.EmpresasData to_empresa_id;
|
||||
private String morada;
|
||||
private String codigo_postal;
|
||||
private String localidade;
|
||||
private java.util.Date ultima_visita;
|
||||
private String realizada;
|
||||
private java.util.Date proxima_visita;
|
||||
private String nome;
|
||||
private Integer medico_id;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public Estabelecimentos()
|
||||
{
|
||||
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 java.util.List<db.data.siprp.outer.AvisosData>fromAvisos_estabelecimento_id()
|
||||
{
|
||||
java.util.List<db.data.siprp.outer.AvisosData> result = null;
|
||||
try
|
||||
{
|
||||
result = fromReference( db.data.siprp.outer.AvisosData.class , getPrimaryKey().getMap().get("id"), "estabelecimento_id" );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public java.util.List<db.data.siprp.outer.HistoricoEstabelecimentoData>fromHistoricoEstabelecimento_estabelecimento_id()
|
||||
{
|
||||
java.util.List<db.data.siprp.outer.HistoricoEstabelecimentoData> result = null;
|
||||
try
|
||||
{
|
||||
result = fromReference( db.data.siprp.outer.HistoricoEstabelecimentoData.class , getPrimaryKey().getMap().get("id"), "estabelecimento_id" );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public java.util.List<db.data.siprp.outer.TrabalhadoresData>fromTrabalhadores_estabelecimento_id()
|
||||
{
|
||||
java.util.List<db.data.siprp.outer.TrabalhadoresData> result = null;
|
||||
try
|
||||
{
|
||||
result = fromReference( db.data.siprp.outer.TrabalhadoresData.class , getPrimaryKey().getMap().get("id"), "estabelecimento_id" );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public Integer getEmpresa_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( EMPRESA_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.empresa_id;
|
||||
}
|
||||
|
||||
public void setEmpresa_id( Integer empresa_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( EMPRESA_ID, empresa_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.empresa_id = empresa_id;
|
||||
LAZY_LOADED_OBJECTS.put( EMPRESA_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public db.data.siprp.outer.EmpresasData toEmpresa_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
prepare( TO_EMPRESA_ID );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return this.to_empresa_id;
|
||||
}
|
||||
|
||||
public void setToEmpresa_id( db.data.siprp.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 String getMorada()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( MORADA );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.morada;
|
||||
}
|
||||
|
||||
public void setMorada( String morada )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( MORADA, morada );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.morada = morada;
|
||||
LAZY_LOADED_OBJECTS.put( MORADA, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getCodigo_postal()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CODIGO_POSTAL );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.codigo_postal;
|
||||
}
|
||||
|
||||
public void setCodigo_postal( String codigo_postal )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( CODIGO_POSTAL, codigo_postal );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.codigo_postal = codigo_postal;
|
||||
LAZY_LOADED_OBJECTS.put( CODIGO_POSTAL, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getLocalidade()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( LOCALIDADE );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.localidade;
|
||||
}
|
||||
|
||||
public void setLocalidade( String localidade )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( LOCALIDADE, localidade );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.localidade = localidade;
|
||||
LAZY_LOADED_OBJECTS.put( LOCALIDADE, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public java.util.Date getUltima_visita()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ULTIMA_VISITA );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.ultima_visita;
|
||||
}
|
||||
|
||||
public void setUltima_visita( java.util.Date ultima_visita )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ULTIMA_VISITA, ultima_visita );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.ultima_visita = ultima_visita;
|
||||
LAZY_LOADED_OBJECTS.put( ULTIMA_VISITA, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getRealizada()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( REALIZADA );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.realizada;
|
||||
}
|
||||
|
||||
public void setRealizada( String realizada )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( REALIZADA, realizada );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.realizada = realizada;
|
||||
LAZY_LOADED_OBJECTS.put( REALIZADA, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public java.util.Date getProxima_visita()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( PROXIMA_VISITA );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.proxima_visita;
|
||||
}
|
||||
|
||||
public void setProxima_visita( java.util.Date proxima_visita )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( PROXIMA_VISITA, proxima_visita );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.proxima_visita = proxima_visita;
|
||||
LAZY_LOADED_OBJECTS.put( PROXIMA_VISITA, Boolean.TRUE );
|
||||
}
|
||||
|
||||
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 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 Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Estabelecimentos.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case Estabelecimentos.EMPRESA_ID_INDEX:
|
||||
value = getEmpresa_id();
|
||||
break;
|
||||
case Estabelecimentos.TO_EMPRESA_ID_INDEX:
|
||||
value = toEmpresa_id();
|
||||
break;
|
||||
case Estabelecimentos.MORADA_INDEX:
|
||||
value = getMorada();
|
||||
break;
|
||||
case Estabelecimentos.CODIGO_POSTAL_INDEX:
|
||||
value = getCodigo_postal();
|
||||
break;
|
||||
case Estabelecimentos.LOCALIDADE_INDEX:
|
||||
value = getLocalidade();
|
||||
break;
|
||||
case Estabelecimentos.ULTIMA_VISITA_INDEX:
|
||||
value = getUltima_visita();
|
||||
break;
|
||||
case Estabelecimentos.REALIZADA_INDEX:
|
||||
value = getRealizada();
|
||||
break;
|
||||
case Estabelecimentos.PROXIMA_VISITA_INDEX:
|
||||
value = getProxima_visita();
|
||||
break;
|
||||
case Estabelecimentos.NOME_INDEX:
|
||||
value = getNome();
|
||||
break;
|
||||
case Estabelecimentos.MEDICO_ID_INDEX:
|
||||
value = getMedico_id();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Estabelecimentos.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case Estabelecimentos.EMPRESA_ID_INDEX:
|
||||
value = this.empresa_id;
|
||||
break;
|
||||
case Estabelecimentos.TO_EMPRESA_ID_INDEX:
|
||||
value = this.to_empresa_id;
|
||||
break;
|
||||
case Estabelecimentos.MORADA_INDEX:
|
||||
value = this.morada;
|
||||
break;
|
||||
case Estabelecimentos.CODIGO_POSTAL_INDEX:
|
||||
value = this.codigo_postal;
|
||||
break;
|
||||
case Estabelecimentos.LOCALIDADE_INDEX:
|
||||
value = this.localidade;
|
||||
break;
|
||||
case Estabelecimentos.ULTIMA_VISITA_INDEX:
|
||||
value = this.ultima_visita;
|
||||
break;
|
||||
case Estabelecimentos.REALIZADA_INDEX:
|
||||
value = this.realizada;
|
||||
break;
|
||||
case Estabelecimentos.PROXIMA_VISITA_INDEX:
|
||||
value = this.proxima_visita;
|
||||
break;
|
||||
case Estabelecimentos.NOME_INDEX:
|
||||
value = this.nome;
|
||||
break;
|
||||
case Estabelecimentos.MEDICO_ID_INDEX:
|
||||
value = this.medico_id;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Estabelecimentos.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case Estabelecimentos.EMPRESA_ID_INDEX:
|
||||
setEmpresa_id( ( Integer ) value );
|
||||
break;
|
||||
case Estabelecimentos.TO_EMPRESA_ID_INDEX:
|
||||
setToEmpresa_id( ( db.data.siprp.outer.EmpresasData ) value );
|
||||
break;
|
||||
case Estabelecimentos.MORADA_INDEX:
|
||||
setMorada( ( String ) value );
|
||||
break;
|
||||
case Estabelecimentos.CODIGO_POSTAL_INDEX:
|
||||
setCodigo_postal( ( String ) value );
|
||||
break;
|
||||
case Estabelecimentos.LOCALIDADE_INDEX:
|
||||
setLocalidade( ( String ) value );
|
||||
break;
|
||||
case Estabelecimentos.ULTIMA_VISITA_INDEX:
|
||||
setUltima_visita( ( java.util.Date ) value );
|
||||
break;
|
||||
case Estabelecimentos.REALIZADA_INDEX:
|
||||
setRealizada( ( String ) value );
|
||||
break;
|
||||
case Estabelecimentos.PROXIMA_VISITA_INDEX:
|
||||
setProxima_visita( ( java.util.Date ) value );
|
||||
break;
|
||||
case Estabelecimentos.NOME_INDEX:
|
||||
setNome( ( String ) value );
|
||||
break;
|
||||
case Estabelecimentos.MEDICO_ID_INDEX:
|
||||
setMedico_id( ( Integer ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Estabelecimentos.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case Estabelecimentos.EMPRESA_ID_INDEX:
|
||||
this.empresa_id = ( Integer ) value;
|
||||
break;
|
||||
case Estabelecimentos.TO_EMPRESA_ID_INDEX:
|
||||
this.to_empresa_id = ( db.data.siprp.outer.EmpresasData ) value;
|
||||
break;
|
||||
case Estabelecimentos.MORADA_INDEX:
|
||||
this.morada = ( String ) value;
|
||||
break;
|
||||
case Estabelecimentos.CODIGO_POSTAL_INDEX:
|
||||
this.codigo_postal = ( String ) value;
|
||||
break;
|
||||
case Estabelecimentos.LOCALIDADE_INDEX:
|
||||
this.localidade = ( String ) value;
|
||||
break;
|
||||
case Estabelecimentos.ULTIMA_VISITA_INDEX:
|
||||
this.ultima_visita = ( java.util.Date ) value;
|
||||
break;
|
||||
case Estabelecimentos.REALIZADA_INDEX:
|
||||
this.realizada = ( String ) value;
|
||||
break;
|
||||
case Estabelecimentos.PROXIMA_VISITA_INDEX:
|
||||
this.proxima_visita = ( java.util.Date ) value;
|
||||
break;
|
||||
case Estabelecimentos.NOME_INDEX:
|
||||
this.nome = ( String ) value;
|
||||
break;
|
||||
case Estabelecimentos.MEDICO_ID_INDEX:
|
||||
this.medico_id = ( Integer ) value;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getFieldNamesFull()
|
||||
{
|
||||
return FIELD_NAMES_FULL;
|
||||
}
|
||||
|
||||
public String []getDBFieldNames()
|
||||
{
|
||||
return DB_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getPrimaryKeyNames()
|
||||
{
|
||||
return PK_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getDefaultLoadSet()
|
||||
{
|
||||
return DEFAULT_LOAD_SET;
|
||||
}
|
||||
|
||||
public String getPrimaryKeyName()
|
||||
{
|
||||
return PK_FIELD_NAMES[ 0 ];
|
||||
}
|
||||
|
||||
public Class<?> getFieldClass( String fieldName )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
Class<?> theClass = null;
|
||||
switch( index )
|
||||
{
|
||||
case Estabelecimentos.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case Estabelecimentos.EMPRESA_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case Estabelecimentos.TO_EMPRESA_ID_INDEX:
|
||||
theClass = db.data.siprp.outer.EmpresasData.class;
|
||||
break;
|
||||
case Estabelecimentos.MORADA_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case Estabelecimentos.CODIGO_POSTAL_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case Estabelecimentos.LOCALIDADE_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case Estabelecimentos.ULTIMA_VISITA_INDEX:
|
||||
theClass = java.util.Date.class;
|
||||
break;
|
||||
case Estabelecimentos.REALIZADA_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case Estabelecimentos.PROXIMA_VISITA_INDEX:
|
||||
theClass = java.util.Date.class;
|
||||
break;
|
||||
case Estabelecimentos.NOME_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case Estabelecimentos.MEDICO_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : Estabelecimentos._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, Estabelecimentos.PK_FIELD_NAMES );
|
||||
primaryKey.set( 0, getId() );
|
||||
}
|
||||
}
|
||||
|
||||
@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,395 @@
|
||||
/*
|
||||
* EstadoMedidas.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp.inner;
|
||||
|
||||
|
||||
public class EstadoMedidas extends com.evolute.entity.evo.EvoDataObject<com.evolute.entity.utils.IntegerPrimaryKey>
|
||||
{
|
||||
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||
|
||||
static
|
||||
{
|
||||
FIELD_INDEXES.put( EstadoMedidas.ID, EstadoMedidas.ID_INDEX );
|
||||
FIELD_INDEXES.put( EstadoMedidas.ID_FULL, EstadoMedidas.ID_INDEX );
|
||||
FIELD_INDEXES.put( EstadoMedidas.DESCRICAO, EstadoMedidas.DESCRICAO_INDEX );
|
||||
FIELD_INDEXES.put( EstadoMedidas.DESCRICAO_FULL, EstadoMedidas.DESCRICAO_INDEX );
|
||||
FIELD_INDEXES.put( EstadoMedidas.ORDEM, EstadoMedidas.ORDEM_INDEX );
|
||||
FIELD_INDEXES.put( EstadoMedidas.ORDEM_FULL, EstadoMedidas.ORDEM_INDEX );
|
||||
FIELD_INDEXES.put( EstadoMedidas.ACTIVO, EstadoMedidas.ACTIVO_INDEX );
|
||||
FIELD_INDEXES.put( EstadoMedidas.ACTIVO_FULL, EstadoMedidas.ACTIVO_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final String TABLENAME = "estado_medidas";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.estado_medidas";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "estado_medidas.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String DESCRICAO = "descricao";
|
||||
public static final String DESCRICAO_FULL = "estado_medidas.descricao";
|
||||
public static final int DESCRICAO_INDEX = 1;
|
||||
public static final String ORDEM = "ordem";
|
||||
public static final String ORDEM_FULL = "estado_medidas.ordem";
|
||||
public static final int ORDEM_INDEX = 2;
|
||||
public static final String ACTIVO = "activo";
|
||||
public static final String ACTIVO_FULL = "estado_medidas.activo";
|
||||
public static final int ACTIVO_INDEX = 3;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
DESCRICAO, ORDEM, ACTIVO, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + DESCRICAO, TABLENAME + "." + ORDEM, TABLENAME + "." + ACTIVO, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, DESCRICAO, ORDEM, ACTIVO, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, DESCRICAO, ORDEM, ACTIVO, };
|
||||
|
||||
private Integer id;
|
||||
private String descricao;
|
||||
private Integer ordem;
|
||||
private String activo;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public EstadoMedidas()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, false, false,
|
||||
false };
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId( Integer id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ID, id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.id = id;
|
||||
LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public java.util.List<db.data.siprp.outer.PlanoMedidasData>fromPlanoMedidas_estado_medidas_id()
|
||||
{
|
||||
java.util.List<db.data.siprp.outer.PlanoMedidasData> result = null;
|
||||
try
|
||||
{
|
||||
result = fromReference( db.data.siprp.outer.PlanoMedidasData.class , getPrimaryKey().getMap().get("id"), "estado_medidas_id" );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public String getDescricao()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DESCRICAO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.descricao;
|
||||
}
|
||||
|
||||
public void setDescricao( String descricao )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( DESCRICAO, descricao );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.descricao = descricao;
|
||||
LAZY_LOADED_OBJECTS.put( DESCRICAO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getOrdem()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ORDEM );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.ordem;
|
||||
}
|
||||
|
||||
public void setOrdem( Integer ordem )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ORDEM, ordem );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.ordem = ordem;
|
||||
LAZY_LOADED_OBJECTS.put( ORDEM, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getActivo()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ACTIVO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.activo;
|
||||
}
|
||||
|
||||
public void setActivo( String 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 EstadoMedidas.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case EstadoMedidas.DESCRICAO_INDEX:
|
||||
value = getDescricao();
|
||||
break;
|
||||
case EstadoMedidas.ORDEM_INDEX:
|
||||
value = getOrdem();
|
||||
break;
|
||||
case EstadoMedidas.ACTIVO_INDEX:
|
||||
value = getActivo();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case EstadoMedidas.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case EstadoMedidas.DESCRICAO_INDEX:
|
||||
value = this.descricao;
|
||||
break;
|
||||
case EstadoMedidas.ORDEM_INDEX:
|
||||
value = this.ordem;
|
||||
break;
|
||||
case EstadoMedidas.ACTIVO_INDEX:
|
||||
value = this.activo;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case EstadoMedidas.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case EstadoMedidas.DESCRICAO_INDEX:
|
||||
setDescricao( ( String ) value );
|
||||
break;
|
||||
case EstadoMedidas.ORDEM_INDEX:
|
||||
setOrdem( ( Integer ) value );
|
||||
break;
|
||||
case EstadoMedidas.ACTIVO_INDEX:
|
||||
setActivo( ( String ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case EstadoMedidas.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case EstadoMedidas.DESCRICAO_INDEX:
|
||||
this.descricao = ( String ) value;
|
||||
break;
|
||||
case EstadoMedidas.ORDEM_INDEX:
|
||||
this.ordem = ( Integer ) value;
|
||||
break;
|
||||
case EstadoMedidas.ACTIVO_INDEX:
|
||||
this.activo = ( 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 EstadoMedidas.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case EstadoMedidas.DESCRICAO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case EstadoMedidas.ORDEM_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case EstadoMedidas.ACTIVO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : EstadoMedidas._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, EstadoMedidas.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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,430 @@
|
||||
/*
|
||||
* ExamesPerfis.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp.inner;
|
||||
|
||||
|
||||
public class ExamesPerfis extends com.evolute.entity.evo.EvoDataObject<com.evolute.entity.utils.IntegerPrimaryKey>
|
||||
{
|
||||
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||
|
||||
static
|
||||
{
|
||||
FIELD_INDEXES.put( ExamesPerfis.ID, ExamesPerfis.ID_INDEX );
|
||||
FIELD_INDEXES.put( ExamesPerfis.ID_FULL, ExamesPerfis.ID_INDEX );
|
||||
FIELD_INDEXES.put( ExamesPerfis.PERFIL, ExamesPerfis.PERFIL_INDEX );
|
||||
FIELD_INDEXES.put( ExamesPerfis.PERFIL_FULL, ExamesPerfis.PERFIL_INDEX );
|
||||
com.evolute.entity.evo.EvoDataObject.register( ExamesPerfis.CLASS_IDENTIFIER, ExamesPerfis.TIPO, ExamesPerfis.TO_TIPO );
|
||||
FIELD_INDEXES.put( ExamesPerfis.TIPO, ExamesPerfis.TIPO_INDEX );
|
||||
FIELD_INDEXES.put( ExamesPerfis.TIPO_FULL, ExamesPerfis.TIPO_INDEX );
|
||||
FIELD_INDEXES.put( ExamesPerfis.TO_TIPO, ExamesPerfis.TO_TIPO_INDEX );
|
||||
FIELD_INDEXES.put( ExamesPerfis.MULTIPLICADOR, ExamesPerfis.MULTIPLICADOR_INDEX );
|
||||
FIELD_INDEXES.put( ExamesPerfis.MULTIPLICADOR_FULL, ExamesPerfis.MULTIPLICADOR_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final com.evolute.entity.ForeignKey ForeignKeytipoTotipos_exames_comp =
|
||||
new com.evolute.entity.ForeignKey( ExamesPerfis.class, ExamesPerfis.TIPO, db.data.siprp.outer.TiposExamesCompData.class, db.data.siprp.outer.TiposExamesCompData.ID );
|
||||
|
||||
public static final String TABLENAME = "exames_perfis";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.exames_perfis";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "exames_perfis.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String PERFIL = "perfil";
|
||||
public static final String PERFIL_FULL = "exames_perfis.perfil";
|
||||
public static final int PERFIL_INDEX = 1;
|
||||
public static final String TIPO = "tipo";
|
||||
public static final String TIPO_FULL = "exames_perfis.tipo";
|
||||
public static final int TIPO_INDEX = 2;
|
||||
public static final String TO_TIPO = "to_tipo";
|
||||
public static final String TO_TIPO_FULL = "exames_perfis.to_tipo";
|
||||
public static final int TO_TIPO_INDEX = 3;
|
||||
public static final String MULTIPLICADOR = "multiplicador";
|
||||
public static final String MULTIPLICADOR_FULL = "exames_perfis.multiplicador";
|
||||
public static final int MULTIPLICADOR_INDEX = 4;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
PERFIL, TIPO, TO_TIPO, MULTIPLICADOR, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + PERFIL, TABLENAME + "." + TIPO, TABLENAME + "." + TO_TIPO, TABLENAME + "." + MULTIPLICADOR, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, PERFIL, TIPO, MULTIPLICADOR, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, PERFIL, TIPO, MULTIPLICADOR, };
|
||||
|
||||
private Integer id;
|
||||
private Integer perfil;
|
||||
private Integer tipo;
|
||||
private db.data.siprp.outer.TiposExamesCompData to_tipo;
|
||||
private Integer multiplicador;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public ExamesPerfis()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, false, false
|
||||
, false, false };
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId( Integer id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ID, id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.id = id;
|
||||
LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getPerfil()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( PERFIL );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.perfil;
|
||||
}
|
||||
|
||||
public void setPerfil( Integer perfil )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( PERFIL, perfil );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.perfil = perfil;
|
||||
LAZY_LOADED_OBJECTS.put( PERFIL, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getTipo()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( TIPO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.tipo;
|
||||
}
|
||||
|
||||
public void setTipo( Integer tipo )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( TIPO, tipo );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.tipo = tipo;
|
||||
LAZY_LOADED_OBJECTS.put( TIPO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public db.data.siprp.outer.TiposExamesCompData toTipo()
|
||||
{
|
||||
try
|
||||
{
|
||||
prepare( TO_TIPO );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return this.to_tipo;
|
||||
}
|
||||
|
||||
public void setToTipo( db.data.siprp.outer.TiposExamesCompData to_tipo )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( TO_TIPO, to_tipo );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.to_tipo = to_tipo;
|
||||
}
|
||||
|
||||
public Integer getMultiplicador()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( MULTIPLICADOR );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.multiplicador;
|
||||
}
|
||||
|
||||
public void setMultiplicador( Integer multiplicador )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( MULTIPLICADOR, multiplicador );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.multiplicador = multiplicador;
|
||||
LAZY_LOADED_OBJECTS.put( MULTIPLICADOR, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case ExamesPerfis.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case ExamesPerfis.PERFIL_INDEX:
|
||||
value = getPerfil();
|
||||
break;
|
||||
case ExamesPerfis.TIPO_INDEX:
|
||||
value = getTipo();
|
||||
break;
|
||||
case ExamesPerfis.TO_TIPO_INDEX:
|
||||
value = toTipo();
|
||||
break;
|
||||
case ExamesPerfis.MULTIPLICADOR_INDEX:
|
||||
value = getMultiplicador();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case ExamesPerfis.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case ExamesPerfis.PERFIL_INDEX:
|
||||
value = this.perfil;
|
||||
break;
|
||||
case ExamesPerfis.TIPO_INDEX:
|
||||
value = this.tipo;
|
||||
break;
|
||||
case ExamesPerfis.TO_TIPO_INDEX:
|
||||
value = this.to_tipo;
|
||||
break;
|
||||
case ExamesPerfis.MULTIPLICADOR_INDEX:
|
||||
value = this.multiplicador;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case ExamesPerfis.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case ExamesPerfis.PERFIL_INDEX:
|
||||
setPerfil( ( Integer ) value );
|
||||
break;
|
||||
case ExamesPerfis.TIPO_INDEX:
|
||||
setTipo( ( Integer ) value );
|
||||
break;
|
||||
case ExamesPerfis.TO_TIPO_INDEX:
|
||||
setToTipo( ( db.data.siprp.outer.TiposExamesCompData ) value );
|
||||
break;
|
||||
case ExamesPerfis.MULTIPLICADOR_INDEX:
|
||||
setMultiplicador( ( Integer ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case ExamesPerfis.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case ExamesPerfis.PERFIL_INDEX:
|
||||
this.perfil = ( Integer ) value;
|
||||
break;
|
||||
case ExamesPerfis.TIPO_INDEX:
|
||||
this.tipo = ( Integer ) value;
|
||||
break;
|
||||
case ExamesPerfis.TO_TIPO_INDEX:
|
||||
this.to_tipo = ( db.data.siprp.outer.TiposExamesCompData ) value;
|
||||
break;
|
||||
case ExamesPerfis.MULTIPLICADOR_INDEX:
|
||||
this.multiplicador = ( Integer ) value;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getFieldNamesFull()
|
||||
{
|
||||
return FIELD_NAMES_FULL;
|
||||
}
|
||||
|
||||
public String []getDBFieldNames()
|
||||
{
|
||||
return DB_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getPrimaryKeyNames()
|
||||
{
|
||||
return PK_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getDefaultLoadSet()
|
||||
{
|
||||
return DEFAULT_LOAD_SET;
|
||||
}
|
||||
|
||||
public String getPrimaryKeyName()
|
||||
{
|
||||
return PK_FIELD_NAMES[ 0 ];
|
||||
}
|
||||
|
||||
public Class<?> getFieldClass( String fieldName )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
Class<?> theClass = null;
|
||||
switch( index )
|
||||
{
|
||||
case ExamesPerfis.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case ExamesPerfis.PERFIL_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case ExamesPerfis.TIPO_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case ExamesPerfis.TO_TIPO_INDEX:
|
||||
theClass = db.data.siprp.outer.TiposExamesCompData.class;
|
||||
break;
|
||||
case ExamesPerfis.MULTIPLICADOR_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : ExamesPerfis._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, ExamesPerfis.PK_FIELD_NAMES );
|
||||
primaryKey.set( 0, getId() );
|
||||
}
|
||||
}
|
||||
|
||||
@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,430 @@
|
||||
/*
|
||||
* HistoricoEstabelecimento.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp.inner;
|
||||
|
||||
|
||||
public class HistoricoEstabelecimento extends com.evolute.entity.evo.EvoDataObject<com.evolute.entity.utils.IntegerPrimaryKey>
|
||||
{
|
||||
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||
|
||||
static
|
||||
{
|
||||
FIELD_INDEXES.put( HistoricoEstabelecimento.ID, HistoricoEstabelecimento.ID_INDEX );
|
||||
FIELD_INDEXES.put( HistoricoEstabelecimento.ID_FULL, HistoricoEstabelecimento.ID_INDEX );
|
||||
com.evolute.entity.evo.EvoDataObject.register( HistoricoEstabelecimento.CLASS_IDENTIFIER, HistoricoEstabelecimento.ESTABELECIMENTO_ID, HistoricoEstabelecimento.TO_ESTABELECIMENTO_ID );
|
||||
FIELD_INDEXES.put( HistoricoEstabelecimento.ESTABELECIMENTO_ID, HistoricoEstabelecimento.ESTABELECIMENTO_ID_INDEX );
|
||||
FIELD_INDEXES.put( HistoricoEstabelecimento.ESTABELECIMENTO_ID_FULL, HistoricoEstabelecimento.ESTABELECIMENTO_ID_INDEX );
|
||||
FIELD_INDEXES.put( HistoricoEstabelecimento.TO_ESTABELECIMENTO_ID, HistoricoEstabelecimento.TO_ESTABELECIMENTO_ID_INDEX );
|
||||
FIELD_INDEXES.put( HistoricoEstabelecimento.DATA, HistoricoEstabelecimento.DATA_INDEX );
|
||||
FIELD_INDEXES.put( HistoricoEstabelecimento.DATA_FULL, HistoricoEstabelecimento.DATA_INDEX );
|
||||
FIELD_INDEXES.put( HistoricoEstabelecimento.TEXTO, HistoricoEstabelecimento.TEXTO_INDEX );
|
||||
FIELD_INDEXES.put( HistoricoEstabelecimento.TEXTO_FULL, HistoricoEstabelecimento.TEXTO_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final com.evolute.entity.ForeignKey ForeignKeyestabelecimento_idToestabelecimentos =
|
||||
new com.evolute.entity.ForeignKey( HistoricoEstabelecimento.class, HistoricoEstabelecimento.ESTABELECIMENTO_ID, db.data.siprp.outer.EstabelecimentosData.class, db.data.siprp.outer.EstabelecimentosData.ID );
|
||||
|
||||
public static final String TABLENAME = "historico_estabelecimento";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.historico_estabelecimento";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "historico_estabelecimento.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String ESTABELECIMENTO_ID = "estabelecimento_id";
|
||||
public static final String ESTABELECIMENTO_ID_FULL = "historico_estabelecimento.estabelecimento_id";
|
||||
public static final int ESTABELECIMENTO_ID_INDEX = 1;
|
||||
public static final String TO_ESTABELECIMENTO_ID = "to_estabelecimento_id";
|
||||
public static final String TO_ESTABELECIMENTO_ID_FULL = "historico_estabelecimento.to_estabelecimento_id";
|
||||
public static final int TO_ESTABELECIMENTO_ID_INDEX = 2;
|
||||
public static final String DATA = "data";
|
||||
public static final String DATA_FULL = "historico_estabelecimento.data";
|
||||
public static final int DATA_INDEX = 3;
|
||||
public static final String TEXTO = "texto";
|
||||
public static final String TEXTO_FULL = "historico_estabelecimento.texto";
|
||||
public static final int TEXTO_INDEX = 4;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
ESTABELECIMENTO_ID, TO_ESTABELECIMENTO_ID, DATA, TEXTO, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + ESTABELECIMENTO_ID, TABLENAME + "." + TO_ESTABELECIMENTO_ID, TABLENAME + "." + DATA, TABLENAME + "." + TEXTO, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, ESTABELECIMENTO_ID, DATA, TEXTO, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, ESTABELECIMENTO_ID, DATA, TEXTO, };
|
||||
|
||||
private Integer id;
|
||||
private Integer estabelecimento_id;
|
||||
private db.data.siprp.outer.EstabelecimentosData to_estabelecimento_id;
|
||||
private java.util.Date data;
|
||||
private String texto;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public HistoricoEstabelecimento()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, false, false,
|
||||
false, false };
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId( Integer id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ID, id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.id = id;
|
||||
LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getEstabelecimento_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ESTABELECIMENTO_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.estabelecimento_id;
|
||||
}
|
||||
|
||||
public void setEstabelecimento_id( Integer estabelecimento_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ESTABELECIMENTO_ID, estabelecimento_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.estabelecimento_id = estabelecimento_id;
|
||||
LAZY_LOADED_OBJECTS.put( ESTABELECIMENTO_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public db.data.siprp.outer.EstabelecimentosData toEstabelecimento_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
prepare( TO_ESTABELECIMENTO_ID );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return this.to_estabelecimento_id;
|
||||
}
|
||||
|
||||
public void setToEstabelecimento_id( db.data.siprp.outer.EstabelecimentosData to_estabelecimento_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( TO_ESTABELECIMENTO_ID, to_estabelecimento_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.to_estabelecimento_id = to_estabelecimento_id;
|
||||
}
|
||||
|
||||
public java.util.Date getData()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DATA );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.data;
|
||||
}
|
||||
|
||||
public void setData( java.util.Date data )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( DATA, data );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.data = data;
|
||||
LAZY_LOADED_OBJECTS.put( DATA, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getTexto()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( TEXTO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.texto;
|
||||
}
|
||||
|
||||
public void setTexto( String texto )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( TEXTO, texto );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.texto = texto;
|
||||
LAZY_LOADED_OBJECTS.put( TEXTO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case HistoricoEstabelecimento.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case HistoricoEstabelecimento.ESTABELECIMENTO_ID_INDEX:
|
||||
value = getEstabelecimento_id();
|
||||
break;
|
||||
case HistoricoEstabelecimento.TO_ESTABELECIMENTO_ID_INDEX:
|
||||
value = toEstabelecimento_id();
|
||||
break;
|
||||
case HistoricoEstabelecimento.DATA_INDEX:
|
||||
value = getData();
|
||||
break;
|
||||
case HistoricoEstabelecimento.TEXTO_INDEX:
|
||||
value = getTexto();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case HistoricoEstabelecimento.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case HistoricoEstabelecimento.ESTABELECIMENTO_ID_INDEX:
|
||||
value = this.estabelecimento_id;
|
||||
break;
|
||||
case HistoricoEstabelecimento.TO_ESTABELECIMENTO_ID_INDEX:
|
||||
value = this.to_estabelecimento_id;
|
||||
break;
|
||||
case HistoricoEstabelecimento.DATA_INDEX:
|
||||
value = this.data;
|
||||
break;
|
||||
case HistoricoEstabelecimento.TEXTO_INDEX:
|
||||
value = this.texto;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case HistoricoEstabelecimento.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case HistoricoEstabelecimento.ESTABELECIMENTO_ID_INDEX:
|
||||
setEstabelecimento_id( ( Integer ) value );
|
||||
break;
|
||||
case HistoricoEstabelecimento.TO_ESTABELECIMENTO_ID_INDEX:
|
||||
setToEstabelecimento_id( ( db.data.siprp.outer.EstabelecimentosData ) value );
|
||||
break;
|
||||
case HistoricoEstabelecimento.DATA_INDEX:
|
||||
setData( ( java.util.Date ) value );
|
||||
break;
|
||||
case HistoricoEstabelecimento.TEXTO_INDEX:
|
||||
setTexto( ( String ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case HistoricoEstabelecimento.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case HistoricoEstabelecimento.ESTABELECIMENTO_ID_INDEX:
|
||||
this.estabelecimento_id = ( Integer ) value;
|
||||
break;
|
||||
case HistoricoEstabelecimento.TO_ESTABELECIMENTO_ID_INDEX:
|
||||
this.to_estabelecimento_id = ( db.data.siprp.outer.EstabelecimentosData ) value;
|
||||
break;
|
||||
case HistoricoEstabelecimento.DATA_INDEX:
|
||||
this.data = ( java.util.Date ) value;
|
||||
break;
|
||||
case HistoricoEstabelecimento.TEXTO_INDEX:
|
||||
this.texto = ( 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 HistoricoEstabelecimento.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case HistoricoEstabelecimento.ESTABELECIMENTO_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case HistoricoEstabelecimento.TO_ESTABELECIMENTO_ID_INDEX:
|
||||
theClass = db.data.siprp.outer.EstabelecimentosData.class;
|
||||
break;
|
||||
case HistoricoEstabelecimento.DATA_INDEX:
|
||||
theClass = java.util.Date.class;
|
||||
break;
|
||||
case HistoricoEstabelecimento.TEXTO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : HistoricoEstabelecimento._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, HistoricoEstabelecimento.PK_FIELD_NAMES );
|
||||
primaryKey.set( 0, getId() );
|
||||
}
|
||||
}
|
||||
|
||||
@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,480 @@
|
||||
/*
|
||||
* MarcacoesEmpresa.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp.inner;
|
||||
|
||||
|
||||
public class MarcacoesEmpresa extends com.evolute.entity.evo.EvoDataObject<com.evolute.entity.utils.IntegerPrimaryKey>
|
||||
{
|
||||
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||
|
||||
static
|
||||
{
|
||||
FIELD_INDEXES.put( MarcacoesEmpresa.ID, MarcacoesEmpresa.ID_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesEmpresa.ID_FULL, MarcacoesEmpresa.ID_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesEmpresa.DATA, MarcacoesEmpresa.DATA_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesEmpresa.DATA_FULL, MarcacoesEmpresa.DATA_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesEmpresa.TEXTO, MarcacoesEmpresa.TEXTO_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesEmpresa.TEXTO_FULL, MarcacoesEmpresa.TEXTO_INDEX );
|
||||
com.evolute.entity.evo.EvoDataObject.register( MarcacoesEmpresa.CLASS_IDENTIFIER, MarcacoesEmpresa.EMPRESA_ID, MarcacoesEmpresa.TO_EMPRESA_ID );
|
||||
FIELD_INDEXES.put( MarcacoesEmpresa.EMPRESA_ID, MarcacoesEmpresa.EMPRESA_ID_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesEmpresa.EMPRESA_ID_FULL, MarcacoesEmpresa.EMPRESA_ID_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesEmpresa.TO_EMPRESA_ID, MarcacoesEmpresa.TO_EMPRESA_ID_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesEmpresa.REALIZADA, MarcacoesEmpresa.REALIZADA_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesEmpresa.REALIZADA_FULL, MarcacoesEmpresa.REALIZADA_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final com.evolute.entity.ForeignKey ForeignKeyempresa_idToempresas =
|
||||
new com.evolute.entity.ForeignKey( MarcacoesEmpresa.class, MarcacoesEmpresa.EMPRESA_ID, db.data.siprp.outer.EmpresasData.class, db.data.siprp.outer.EmpresasData.ID );
|
||||
|
||||
public static final String TABLENAME = "marcacoes_empresa";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.marcacoes_empresa";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "marcacoes_empresa.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String DATA = "data";
|
||||
public static final String DATA_FULL = "marcacoes_empresa.data";
|
||||
public static final int DATA_INDEX = 1;
|
||||
public static final String TEXTO = "texto";
|
||||
public static final String TEXTO_FULL = "marcacoes_empresa.texto";
|
||||
public static final int TEXTO_INDEX = 2;
|
||||
public static final String EMPRESA_ID = "empresa_id";
|
||||
public static final String EMPRESA_ID_FULL = "marcacoes_empresa.empresa_id";
|
||||
public static final int EMPRESA_ID_INDEX = 3;
|
||||
public static final String TO_EMPRESA_ID = "to_empresa_id";
|
||||
public static final String TO_EMPRESA_ID_FULL = "marcacoes_empresa.to_empresa_id";
|
||||
public static final int TO_EMPRESA_ID_INDEX = 4;
|
||||
public static final String REALIZADA = "realizada";
|
||||
public static final String REALIZADA_FULL = "marcacoes_empresa.realizada";
|
||||
public static final int REALIZADA_INDEX = 5;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
DATA, TEXTO, EMPRESA_ID, TO_EMPRESA_ID, REALIZADA, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + DATA, TABLENAME + "." + TEXTO, TABLENAME + "." + EMPRESA_ID, TABLENAME + "." + TO_EMPRESA_ID, TABLENAME + "." + REALIZADA, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, DATA, TEXTO, EMPRESA_ID, REALIZADA, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, DATA, TEXTO, EMPRESA_ID, REALIZADA, };
|
||||
|
||||
private Integer id;
|
||||
private java.util.Date data;
|
||||
private String texto;
|
||||
private Integer empresa_id;
|
||||
private db.data.siprp.outer.EmpresasData to_empresa_id;
|
||||
private String realizada;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public MarcacoesEmpresa()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, false, false,
|
||||
false, false, false };
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId( Integer id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ID, id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.id = id;
|
||||
LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public java.util.Date getData()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DATA );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.data;
|
||||
}
|
||||
|
||||
public void setData( java.util.Date data )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( DATA, data );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.data = data;
|
||||
LAZY_LOADED_OBJECTS.put( DATA, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getTexto()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( TEXTO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.texto;
|
||||
}
|
||||
|
||||
public void setTexto( String texto )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( TEXTO, texto );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.texto = texto;
|
||||
LAZY_LOADED_OBJECTS.put( TEXTO, 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 db.data.siprp.outer.EmpresasData toEmpresa_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
prepare( TO_EMPRESA_ID );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return this.to_empresa_id;
|
||||
}
|
||||
|
||||
public void setToEmpresa_id( db.data.siprp.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 String getRealizada()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( REALIZADA );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.realizada;
|
||||
}
|
||||
|
||||
public void setRealizada( String realizada )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( REALIZADA, realizada );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.realizada = realizada;
|
||||
LAZY_LOADED_OBJECTS.put( REALIZADA, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case MarcacoesEmpresa.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case MarcacoesEmpresa.DATA_INDEX:
|
||||
value = getData();
|
||||
break;
|
||||
case MarcacoesEmpresa.TEXTO_INDEX:
|
||||
value = getTexto();
|
||||
break;
|
||||
case MarcacoesEmpresa.EMPRESA_ID_INDEX:
|
||||
value = getEmpresa_id();
|
||||
break;
|
||||
case MarcacoesEmpresa.TO_EMPRESA_ID_INDEX:
|
||||
value = toEmpresa_id();
|
||||
break;
|
||||
case MarcacoesEmpresa.REALIZADA_INDEX:
|
||||
value = getRealizada();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case MarcacoesEmpresa.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case MarcacoesEmpresa.DATA_INDEX:
|
||||
value = this.data;
|
||||
break;
|
||||
case MarcacoesEmpresa.TEXTO_INDEX:
|
||||
value = this.texto;
|
||||
break;
|
||||
case MarcacoesEmpresa.EMPRESA_ID_INDEX:
|
||||
value = this.empresa_id;
|
||||
break;
|
||||
case MarcacoesEmpresa.TO_EMPRESA_ID_INDEX:
|
||||
value = this.to_empresa_id;
|
||||
break;
|
||||
case MarcacoesEmpresa.REALIZADA_INDEX:
|
||||
value = this.realizada;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case MarcacoesEmpresa.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case MarcacoesEmpresa.DATA_INDEX:
|
||||
setData( ( java.util.Date ) value );
|
||||
break;
|
||||
case MarcacoesEmpresa.TEXTO_INDEX:
|
||||
setTexto( ( String ) value );
|
||||
break;
|
||||
case MarcacoesEmpresa.EMPRESA_ID_INDEX:
|
||||
setEmpresa_id( ( Integer ) value );
|
||||
break;
|
||||
case MarcacoesEmpresa.TO_EMPRESA_ID_INDEX:
|
||||
setToEmpresa_id( ( db.data.siprp.outer.EmpresasData ) value );
|
||||
break;
|
||||
case MarcacoesEmpresa.REALIZADA_INDEX:
|
||||
setRealizada( ( String ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case MarcacoesEmpresa.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case MarcacoesEmpresa.DATA_INDEX:
|
||||
this.data = ( java.util.Date ) value;
|
||||
break;
|
||||
case MarcacoesEmpresa.TEXTO_INDEX:
|
||||
this.texto = ( String ) value;
|
||||
break;
|
||||
case MarcacoesEmpresa.EMPRESA_ID_INDEX:
|
||||
this.empresa_id = ( Integer ) value;
|
||||
break;
|
||||
case MarcacoesEmpresa.TO_EMPRESA_ID_INDEX:
|
||||
this.to_empresa_id = ( db.data.siprp.outer.EmpresasData ) value;
|
||||
break;
|
||||
case MarcacoesEmpresa.REALIZADA_INDEX:
|
||||
this.realizada = ( 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 MarcacoesEmpresa.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case MarcacoesEmpresa.DATA_INDEX:
|
||||
theClass = java.util.Date.class;
|
||||
break;
|
||||
case MarcacoesEmpresa.TEXTO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case MarcacoesEmpresa.EMPRESA_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case MarcacoesEmpresa.TO_EMPRESA_ID_INDEX:
|
||||
theClass = db.data.siprp.outer.EmpresasData.class;
|
||||
break;
|
||||
case MarcacoesEmpresa.REALIZADA_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : MarcacoesEmpresa._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, MarcacoesEmpresa.PK_FIELD_NAMES );
|
||||
primaryKey.set( 0, getId() );
|
||||
}
|
||||
}
|
||||
|
||||
@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,480 @@
|
||||
/*
|
||||
* MarcacoesEstabelecimento.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp.inner;
|
||||
|
||||
|
||||
public class MarcacoesEstabelecimento extends com.evolute.entity.evo.EvoDataObject<com.evolute.entity.utils.IntegerPrimaryKey>
|
||||
{
|
||||
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||
|
||||
static
|
||||
{
|
||||
FIELD_INDEXES.put( MarcacoesEstabelecimento.ID, MarcacoesEstabelecimento.ID_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesEstabelecimento.ID_FULL, MarcacoesEstabelecimento.ID_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesEstabelecimento.DATA, MarcacoesEstabelecimento.DATA_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesEstabelecimento.DATA_FULL, MarcacoesEstabelecimento.DATA_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesEstabelecimento.REALIZADA, MarcacoesEstabelecimento.REALIZADA_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesEstabelecimento.REALIZADA_FULL, MarcacoesEstabelecimento.REALIZADA_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesEstabelecimento.DATA_EMAIL, MarcacoesEstabelecimento.DATA_EMAIL_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesEstabelecimento.DATA_EMAIL_FULL, MarcacoesEstabelecimento.DATA_EMAIL_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesEstabelecimento.DATA_RELATORIO, MarcacoesEstabelecimento.DATA_RELATORIO_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesEstabelecimento.DATA_RELATORIO_FULL, MarcacoesEstabelecimento.DATA_RELATORIO_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesEstabelecimento.ESTABELECIMENTO_ID, MarcacoesEstabelecimento.ESTABELECIMENTO_ID_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesEstabelecimento.ESTABELECIMENTO_ID_FULL, MarcacoesEstabelecimento.ESTABELECIMENTO_ID_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final String TABLENAME = "marcacoes_estabelecimento";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.marcacoes_estabelecimento";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "marcacoes_estabelecimento.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String DATA = "data";
|
||||
public static final String DATA_FULL = "marcacoes_estabelecimento.data";
|
||||
public static final int DATA_INDEX = 1;
|
||||
public static final String REALIZADA = "realizada";
|
||||
public static final String REALIZADA_FULL = "marcacoes_estabelecimento.realizada";
|
||||
public static final int REALIZADA_INDEX = 2;
|
||||
public static final String DATA_EMAIL = "data_email";
|
||||
public static final String DATA_EMAIL_FULL = "marcacoes_estabelecimento.data_email";
|
||||
public static final int DATA_EMAIL_INDEX = 3;
|
||||
public static final String DATA_RELATORIO = "data_relatorio";
|
||||
public static final String DATA_RELATORIO_FULL = "marcacoes_estabelecimento.data_relatorio";
|
||||
public static final int DATA_RELATORIO_INDEX = 4;
|
||||
public static final String ESTABELECIMENTO_ID = "estabelecimento_id";
|
||||
public static final String ESTABELECIMENTO_ID_FULL = "marcacoes_estabelecimento.estabelecimento_id";
|
||||
public static final int ESTABELECIMENTO_ID_INDEX = 5;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
DATA, REALIZADA, DATA_EMAIL, DATA_RELATORIO, ESTABELECIMENTO_ID, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + DATA, TABLENAME + "." + REALIZADA, TABLENAME + "." + DATA_EMAIL, TABLENAME + "." + DATA_RELATORIO, TABLENAME + "." + ESTABELECIMENTO_ID, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, DATA, REALIZADA, DATA_EMAIL, DATA_RELATORIO, ESTABELECIMENTO_ID, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, DATA, REALIZADA, DATA_EMAIL, DATA_RELATORIO, ESTABELECIMENTO_ID, };
|
||||
|
||||
private Integer id;
|
||||
private java.util.Date data;
|
||||
private String realizada;
|
||||
private java.util.Date data_email;
|
||||
private java.util.Date data_relatorio;
|
||||
private Integer estabelecimento_id;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public MarcacoesEstabelecimento()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, false, false,
|
||||
false, false, false };
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId( Integer id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ID, id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.id = id;
|
||||
LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public java.util.Date getData()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DATA );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.data;
|
||||
}
|
||||
|
||||
public void setData( java.util.Date data )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( DATA, data );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.data = data;
|
||||
LAZY_LOADED_OBJECTS.put( DATA, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getRealizada()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( REALIZADA );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.realizada;
|
||||
}
|
||||
|
||||
public void setRealizada( String realizada )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( REALIZADA, realizada );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.realizada = realizada;
|
||||
LAZY_LOADED_OBJECTS.put( REALIZADA, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public java.util.Date getData_email()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DATA_EMAIL );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.data_email;
|
||||
}
|
||||
|
||||
public void setData_email( java.util.Date data_email )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( DATA_EMAIL, data_email );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.data_email = data_email;
|
||||
LAZY_LOADED_OBJECTS.put( DATA_EMAIL, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public java.util.Date getData_relatorio()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DATA_RELATORIO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.data_relatorio;
|
||||
}
|
||||
|
||||
public void setData_relatorio( java.util.Date data_relatorio )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( DATA_RELATORIO, data_relatorio );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.data_relatorio = data_relatorio;
|
||||
LAZY_LOADED_OBJECTS.put( DATA_RELATORIO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getEstabelecimento_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ESTABELECIMENTO_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.estabelecimento_id;
|
||||
}
|
||||
|
||||
public void setEstabelecimento_id( Integer estabelecimento_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ESTABELECIMENTO_ID, estabelecimento_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.estabelecimento_id = estabelecimento_id;
|
||||
LAZY_LOADED_OBJECTS.put( ESTABELECIMENTO_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case MarcacoesEstabelecimento.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case MarcacoesEstabelecimento.DATA_INDEX:
|
||||
value = getData();
|
||||
break;
|
||||
case MarcacoesEstabelecimento.REALIZADA_INDEX:
|
||||
value = getRealizada();
|
||||
break;
|
||||
case MarcacoesEstabelecimento.DATA_EMAIL_INDEX:
|
||||
value = getData_email();
|
||||
break;
|
||||
case MarcacoesEstabelecimento.DATA_RELATORIO_INDEX:
|
||||
value = getData_relatorio();
|
||||
break;
|
||||
case MarcacoesEstabelecimento.ESTABELECIMENTO_ID_INDEX:
|
||||
value = getEstabelecimento_id();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case MarcacoesEstabelecimento.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case MarcacoesEstabelecimento.DATA_INDEX:
|
||||
value = this.data;
|
||||
break;
|
||||
case MarcacoesEstabelecimento.REALIZADA_INDEX:
|
||||
value = this.realizada;
|
||||
break;
|
||||
case MarcacoesEstabelecimento.DATA_EMAIL_INDEX:
|
||||
value = this.data_email;
|
||||
break;
|
||||
case MarcacoesEstabelecimento.DATA_RELATORIO_INDEX:
|
||||
value = this.data_relatorio;
|
||||
break;
|
||||
case MarcacoesEstabelecimento.ESTABELECIMENTO_ID_INDEX:
|
||||
value = this.estabelecimento_id;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case MarcacoesEstabelecimento.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case MarcacoesEstabelecimento.DATA_INDEX:
|
||||
setData( ( java.util.Date ) value );
|
||||
break;
|
||||
case MarcacoesEstabelecimento.REALIZADA_INDEX:
|
||||
setRealizada( ( String ) value );
|
||||
break;
|
||||
case MarcacoesEstabelecimento.DATA_EMAIL_INDEX:
|
||||
setData_email( ( java.util.Date ) value );
|
||||
break;
|
||||
case MarcacoesEstabelecimento.DATA_RELATORIO_INDEX:
|
||||
setData_relatorio( ( java.util.Date ) value );
|
||||
break;
|
||||
case MarcacoesEstabelecimento.ESTABELECIMENTO_ID_INDEX:
|
||||
setEstabelecimento_id( ( Integer ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case MarcacoesEstabelecimento.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case MarcacoesEstabelecimento.DATA_INDEX:
|
||||
this.data = ( java.util.Date ) value;
|
||||
break;
|
||||
case MarcacoesEstabelecimento.REALIZADA_INDEX:
|
||||
this.realizada = ( String ) value;
|
||||
break;
|
||||
case MarcacoesEstabelecimento.DATA_EMAIL_INDEX:
|
||||
this.data_email = ( java.util.Date ) value;
|
||||
break;
|
||||
case MarcacoesEstabelecimento.DATA_RELATORIO_INDEX:
|
||||
this.data_relatorio = ( java.util.Date ) value;
|
||||
break;
|
||||
case MarcacoesEstabelecimento.ESTABELECIMENTO_ID_INDEX:
|
||||
this.estabelecimento_id = ( Integer ) value;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getFieldNamesFull()
|
||||
{
|
||||
return FIELD_NAMES_FULL;
|
||||
}
|
||||
|
||||
public String []getDBFieldNames()
|
||||
{
|
||||
return DB_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getPrimaryKeyNames()
|
||||
{
|
||||
return PK_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getDefaultLoadSet()
|
||||
{
|
||||
return DEFAULT_LOAD_SET;
|
||||
}
|
||||
|
||||
public String getPrimaryKeyName()
|
||||
{
|
||||
return PK_FIELD_NAMES[ 0 ];
|
||||
}
|
||||
|
||||
public Class<?> getFieldClass( String fieldName )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
Class<?> theClass = null;
|
||||
switch( index )
|
||||
{
|
||||
case MarcacoesEstabelecimento.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case MarcacoesEstabelecimento.DATA_INDEX:
|
||||
theClass = java.util.Date.class;
|
||||
break;
|
||||
case MarcacoesEstabelecimento.REALIZADA_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case MarcacoesEstabelecimento.DATA_EMAIL_INDEX:
|
||||
theClass = java.util.Date.class;
|
||||
break;
|
||||
case MarcacoesEstabelecimento.DATA_RELATORIO_INDEX:
|
||||
theClass = java.util.Date.class;
|
||||
break;
|
||||
case MarcacoesEstabelecimento.ESTABELECIMENTO_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : MarcacoesEstabelecimento._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, MarcacoesEstabelecimento.PK_FIELD_NAMES );
|
||||
primaryKey.set( 0, getId() );
|
||||
}
|
||||
}
|
||||
|
||||
@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,582 @@
|
||||
/*
|
||||
* MarcacoesTrabalhador.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp.inner;
|
||||
|
||||
|
||||
public class MarcacoesTrabalhador extends com.evolute.entity.evo.EvoDataObject<com.evolute.entity.utils.IntegerPrimaryKey>
|
||||
{
|
||||
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||
|
||||
static
|
||||
{
|
||||
FIELD_INDEXES.put( MarcacoesTrabalhador.ID, MarcacoesTrabalhador.ID_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesTrabalhador.ID_FULL, MarcacoesTrabalhador.ID_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesTrabalhador.DATA, MarcacoesTrabalhador.DATA_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesTrabalhador.DATA_FULL, MarcacoesTrabalhador.DATA_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesTrabalhador.REALIZADA, MarcacoesTrabalhador.REALIZADA_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesTrabalhador.REALIZADA_FULL, MarcacoesTrabalhador.REALIZADA_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesTrabalhador.DATA_EMAIL, MarcacoesTrabalhador.DATA_EMAIL_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesTrabalhador.DATA_EMAIL_FULL, MarcacoesTrabalhador.DATA_EMAIL_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesTrabalhador.DATA_RELATORIO, MarcacoesTrabalhador.DATA_RELATORIO_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesTrabalhador.DATA_RELATORIO_FULL, MarcacoesTrabalhador.DATA_RELATORIO_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesTrabalhador.TIPO, MarcacoesTrabalhador.TIPO_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesTrabalhador.TIPO_FULL, MarcacoesTrabalhador.TIPO_INDEX );
|
||||
com.evolute.entity.evo.EvoDataObject.register( MarcacoesTrabalhador.CLASS_IDENTIFIER, MarcacoesTrabalhador.TRABALHADOR_ID, MarcacoesTrabalhador.TO_TRABALHADOR_ID );
|
||||
FIELD_INDEXES.put( MarcacoesTrabalhador.TRABALHADOR_ID, MarcacoesTrabalhador.TRABALHADOR_ID_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesTrabalhador.TRABALHADOR_ID_FULL, MarcacoesTrabalhador.TRABALHADOR_ID_INDEX );
|
||||
FIELD_INDEXES.put( MarcacoesTrabalhador.TO_TRABALHADOR_ID, MarcacoesTrabalhador.TO_TRABALHADOR_ID_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final com.evolute.entity.ForeignKey ForeignKeytrabalhador_idTotrabalhadores =
|
||||
new com.evolute.entity.ForeignKey( MarcacoesTrabalhador.class, MarcacoesTrabalhador.TRABALHADOR_ID, db.data.siprp.outer.TrabalhadoresData.class, db.data.siprp.outer.TrabalhadoresData.ID );
|
||||
|
||||
public static final String TABLENAME = "marcacoes_trabalhador";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.marcacoes_trabalhador";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "marcacoes_trabalhador.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String DATA = "data";
|
||||
public static final String DATA_FULL = "marcacoes_trabalhador.data";
|
||||
public static final int DATA_INDEX = 1;
|
||||
public static final String REALIZADA = "realizada";
|
||||
public static final String REALIZADA_FULL = "marcacoes_trabalhador.realizada";
|
||||
public static final int REALIZADA_INDEX = 2;
|
||||
public static final String DATA_EMAIL = "data_email";
|
||||
public static final String DATA_EMAIL_FULL = "marcacoes_trabalhador.data_email";
|
||||
public static final int DATA_EMAIL_INDEX = 3;
|
||||
public static final String DATA_RELATORIO = "data_relatorio";
|
||||
public static final String DATA_RELATORIO_FULL = "marcacoes_trabalhador.data_relatorio";
|
||||
public static final int DATA_RELATORIO_INDEX = 4;
|
||||
public static final String TIPO = "tipo";
|
||||
public static final String TIPO_FULL = "marcacoes_trabalhador.tipo";
|
||||
public static final int TIPO_INDEX = 5;
|
||||
public static final String TRABALHADOR_ID = "trabalhador_id";
|
||||
public static final String TRABALHADOR_ID_FULL = "marcacoes_trabalhador.trabalhador_id";
|
||||
public static final int TRABALHADOR_ID_INDEX = 6;
|
||||
public static final String TO_TRABALHADOR_ID = "to_trabalhador_id";
|
||||
public static final String TO_TRABALHADOR_ID_FULL = "marcacoes_trabalhador.to_trabalhador_id";
|
||||
public static final int TO_TRABALHADOR_ID_INDEX = 7;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
DATA, REALIZADA, DATA_EMAIL, DATA_RELATORIO, TIPO, TRABALHADOR_ID,
|
||||
TO_TRABALHADOR_ID, };
|
||||
|
||||
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, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, DATA, REALIZADA, DATA_EMAIL, DATA_RELATORIO, TIPO, TRABALHADOR_ID, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, DATA, REALIZADA, DATA_EMAIL, DATA_RELATORIO, TIPO, TRABALHADOR_ID, };
|
||||
|
||||
private Integer id;
|
||||
private java.util.Date data;
|
||||
private String realizada;
|
||||
private java.util.Date data_email;
|
||||
private java.util.Date data_relatorio;
|
||||
private Integer tipo;
|
||||
private Integer trabalhador_id;
|
||||
private db.data.siprp.outer.TrabalhadoresData to_trabalhador_id;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public MarcacoesTrabalhador()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, false, false,
|
||||
false, false, false, false, false };
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId( Integer id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ID, id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.id = id;
|
||||
LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public java.util.Date getData()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DATA );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.data;
|
||||
}
|
||||
|
||||
public void setData( java.util.Date data )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( DATA, data );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.data = data;
|
||||
LAZY_LOADED_OBJECTS.put( DATA, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getRealizada()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( REALIZADA );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.realizada;
|
||||
}
|
||||
|
||||
public void setRealizada( String realizada )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( REALIZADA, realizada );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.realizada = realizada;
|
||||
LAZY_LOADED_OBJECTS.put( REALIZADA, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public java.util.Date getData_email()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DATA_EMAIL );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.data_email;
|
||||
}
|
||||
|
||||
public void setData_email( java.util.Date data_email )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( DATA_EMAIL, data_email );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.data_email = data_email;
|
||||
LAZY_LOADED_OBJECTS.put( DATA_EMAIL, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public java.util.Date getData_relatorio()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DATA_RELATORIO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.data_relatorio;
|
||||
}
|
||||
|
||||
public void setData_relatorio( java.util.Date data_relatorio )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( DATA_RELATORIO, data_relatorio );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.data_relatorio = data_relatorio;
|
||||
LAZY_LOADED_OBJECTS.put( DATA_RELATORIO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getTipo()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( TIPO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.tipo;
|
||||
}
|
||||
|
||||
public void setTipo( Integer tipo )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( TIPO, tipo );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.tipo = tipo;
|
||||
LAZY_LOADED_OBJECTS.put( TIPO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getTrabalhador_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( TRABALHADOR_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.trabalhador_id;
|
||||
}
|
||||
|
||||
public void setTrabalhador_id( Integer trabalhador_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( TRABALHADOR_ID, trabalhador_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.trabalhador_id = trabalhador_id;
|
||||
LAZY_LOADED_OBJECTS.put( TRABALHADOR_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public db.data.siprp.outer.TrabalhadoresData toTrabalhador_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
prepare( TO_TRABALHADOR_ID );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return this.to_trabalhador_id;
|
||||
}
|
||||
|
||||
public void setToTrabalhador_id( db.data.siprp.outer.TrabalhadoresData to_trabalhador_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( TO_TRABALHADOR_ID, to_trabalhador_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.to_trabalhador_id = to_trabalhador_id;
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case MarcacoesTrabalhador.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case MarcacoesTrabalhador.DATA_INDEX:
|
||||
value = getData();
|
||||
break;
|
||||
case MarcacoesTrabalhador.REALIZADA_INDEX:
|
||||
value = getRealizada();
|
||||
break;
|
||||
case MarcacoesTrabalhador.DATA_EMAIL_INDEX:
|
||||
value = getData_email();
|
||||
break;
|
||||
case MarcacoesTrabalhador.DATA_RELATORIO_INDEX:
|
||||
value = getData_relatorio();
|
||||
break;
|
||||
case MarcacoesTrabalhador.TIPO_INDEX:
|
||||
value = getTipo();
|
||||
break;
|
||||
case MarcacoesTrabalhador.TRABALHADOR_ID_INDEX:
|
||||
value = getTrabalhador_id();
|
||||
break;
|
||||
case MarcacoesTrabalhador.TO_TRABALHADOR_ID_INDEX:
|
||||
value = toTrabalhador_id();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case MarcacoesTrabalhador.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case MarcacoesTrabalhador.DATA_INDEX:
|
||||
value = this.data;
|
||||
break;
|
||||
case MarcacoesTrabalhador.REALIZADA_INDEX:
|
||||
value = this.realizada;
|
||||
break;
|
||||
case MarcacoesTrabalhador.DATA_EMAIL_INDEX:
|
||||
value = this.data_email;
|
||||
break;
|
||||
case MarcacoesTrabalhador.DATA_RELATORIO_INDEX:
|
||||
value = this.data_relatorio;
|
||||
break;
|
||||
case MarcacoesTrabalhador.TIPO_INDEX:
|
||||
value = this.tipo;
|
||||
break;
|
||||
case MarcacoesTrabalhador.TRABALHADOR_ID_INDEX:
|
||||
value = this.trabalhador_id;
|
||||
break;
|
||||
case MarcacoesTrabalhador.TO_TRABALHADOR_ID_INDEX:
|
||||
value = this.to_trabalhador_id;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case MarcacoesTrabalhador.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case MarcacoesTrabalhador.DATA_INDEX:
|
||||
setData( ( java.util.Date ) value );
|
||||
break;
|
||||
case MarcacoesTrabalhador.REALIZADA_INDEX:
|
||||
setRealizada( ( String ) value );
|
||||
break;
|
||||
case MarcacoesTrabalhador.DATA_EMAIL_INDEX:
|
||||
setData_email( ( java.util.Date ) value );
|
||||
break;
|
||||
case MarcacoesTrabalhador.DATA_RELATORIO_INDEX:
|
||||
setData_relatorio( ( java.util.Date ) value );
|
||||
break;
|
||||
case MarcacoesTrabalhador.TIPO_INDEX:
|
||||
setTipo( ( Integer ) value );
|
||||
break;
|
||||
case MarcacoesTrabalhador.TRABALHADOR_ID_INDEX:
|
||||
setTrabalhador_id( ( Integer ) value );
|
||||
break;
|
||||
case MarcacoesTrabalhador.TO_TRABALHADOR_ID_INDEX:
|
||||
setToTrabalhador_id( ( db.data.siprp.outer.TrabalhadoresData ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case MarcacoesTrabalhador.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case MarcacoesTrabalhador.DATA_INDEX:
|
||||
this.data = ( java.util.Date ) value;
|
||||
break;
|
||||
case MarcacoesTrabalhador.REALIZADA_INDEX:
|
||||
this.realizada = ( String ) value;
|
||||
break;
|
||||
case MarcacoesTrabalhador.DATA_EMAIL_INDEX:
|
||||
this.data_email = ( java.util.Date ) value;
|
||||
break;
|
||||
case MarcacoesTrabalhador.DATA_RELATORIO_INDEX:
|
||||
this.data_relatorio = ( java.util.Date ) value;
|
||||
break;
|
||||
case MarcacoesTrabalhador.TIPO_INDEX:
|
||||
this.tipo = ( Integer ) value;
|
||||
break;
|
||||
case MarcacoesTrabalhador.TRABALHADOR_ID_INDEX:
|
||||
this.trabalhador_id = ( Integer ) value;
|
||||
break;
|
||||
case MarcacoesTrabalhador.TO_TRABALHADOR_ID_INDEX:
|
||||
this.to_trabalhador_id = ( db.data.siprp.outer.TrabalhadoresData ) value;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getFieldNamesFull()
|
||||
{
|
||||
return FIELD_NAMES_FULL;
|
||||
}
|
||||
|
||||
public String []getDBFieldNames()
|
||||
{
|
||||
return DB_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getPrimaryKeyNames()
|
||||
{
|
||||
return PK_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getDefaultLoadSet()
|
||||
{
|
||||
return DEFAULT_LOAD_SET;
|
||||
}
|
||||
|
||||
public String getPrimaryKeyName()
|
||||
{
|
||||
return PK_FIELD_NAMES[ 0 ];
|
||||
}
|
||||
|
||||
public Class<?> getFieldClass( String fieldName )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
Class<?> theClass = null;
|
||||
switch( index )
|
||||
{
|
||||
case MarcacoesTrabalhador.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case MarcacoesTrabalhador.DATA_INDEX:
|
||||
theClass = java.util.Date.class;
|
||||
break;
|
||||
case MarcacoesTrabalhador.REALIZADA_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case MarcacoesTrabalhador.DATA_EMAIL_INDEX:
|
||||
theClass = java.util.Date.class;
|
||||
break;
|
||||
case MarcacoesTrabalhador.DATA_RELATORIO_INDEX:
|
||||
theClass = java.util.Date.class;
|
||||
break;
|
||||
case MarcacoesTrabalhador.TIPO_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case MarcacoesTrabalhador.TRABALHADOR_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case MarcacoesTrabalhador.TO_TRABALHADOR_ID_INDEX:
|
||||
theClass = db.data.siprp.outer.TrabalhadoresData.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : MarcacoesTrabalhador._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, MarcacoesTrabalhador.PK_FIELD_NAMES );
|
||||
primaryKey.set( 0, getId() );
|
||||
}
|
||||
}
|
||||
|
||||
@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,394 @@
|
||||
/*
|
||||
* Medicos.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp.inner;
|
||||
|
||||
|
||||
public class Medicos extends com.evolute.entity.evo.EvoDataObject<com.evolute.entity.utils.IntegerPrimaryKey>
|
||||
{
|
||||
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||
|
||||
static
|
||||
{
|
||||
FIELD_INDEXES.put( Medicos.ID, Medicos.ID_INDEX );
|
||||
FIELD_INDEXES.put( Medicos.ID_FULL, Medicos.ID_INDEX );
|
||||
FIELD_INDEXES.put( Medicos.NOME, Medicos.NOME_INDEX );
|
||||
FIELD_INDEXES.put( Medicos.NOME_FULL, Medicos.NOME_INDEX );
|
||||
FIELD_INDEXES.put( Medicos.NUMERO_CEDULA, Medicos.NUMERO_CEDULA_INDEX );
|
||||
FIELD_INDEXES.put( Medicos.NUMERO_CEDULA_FULL, Medicos.NUMERO_CEDULA_INDEX );
|
||||
FIELD_INDEXES.put( Medicos.INACTIVO, Medicos.INACTIVO_INDEX );
|
||||
FIELD_INDEXES.put( Medicos.INACTIVO_FULL, Medicos.INACTIVO_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final String TABLENAME = "medicos";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.medicos";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "medicos.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String NOME = "nome";
|
||||
public static final String NOME_FULL = "medicos.nome";
|
||||
public static final int NOME_INDEX = 1;
|
||||
public static final String NUMERO_CEDULA = "numero_cedula";
|
||||
public static final String NUMERO_CEDULA_FULL = "medicos.numero_cedula";
|
||||
public static final int NUMERO_CEDULA_INDEX = 2;
|
||||
public static final String INACTIVO = "inactivo";
|
||||
public static final String INACTIVO_FULL = "medicos.inactivo";
|
||||
public static final int INACTIVO_INDEX = 3;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
NOME, NUMERO_CEDULA, INACTIVO, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + NOME, TABLENAME + "." + NUMERO_CEDULA, TABLENAME + "." + INACTIVO, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, NOME, NUMERO_CEDULA, INACTIVO, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, NOME, NUMERO_CEDULA, INACTIVO, };
|
||||
|
||||
private Integer id;
|
||||
private String nome;
|
||||
private String numero_cedula;
|
||||
private String inactivo;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public Medicos()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, false, false,
|
||||
false };
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId( Integer id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ID, id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.id = id;
|
||||
LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public java.util.List<db.data.siprp.outer.ExamesData>fromExames_medico_id()
|
||||
{
|
||||
java.util.List<db.data.siprp.outer.ExamesData> result = null;
|
||||
try
|
||||
{
|
||||
result = fromReference( db.data.siprp.outer.ExamesData.class , getPrimaryKey().getMap().get("id"), "medico_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 String getNumero_cedula()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( NUMERO_CEDULA );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.numero_cedula;
|
||||
}
|
||||
|
||||
public void setNumero_cedula( String numero_cedula )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( NUMERO_CEDULA, numero_cedula );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.numero_cedula = numero_cedula;
|
||||
LAZY_LOADED_OBJECTS.put( NUMERO_CEDULA, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getInactivo()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( INACTIVO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.inactivo;
|
||||
}
|
||||
|
||||
public void setInactivo( String inactivo )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( INACTIVO, inactivo );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.inactivo = inactivo;
|
||||
LAZY_LOADED_OBJECTS.put( INACTIVO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Medicos.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case Medicos.NOME_INDEX:
|
||||
value = getNome();
|
||||
break;
|
||||
case Medicos.NUMERO_CEDULA_INDEX:
|
||||
value = getNumero_cedula();
|
||||
break;
|
||||
case Medicos.INACTIVO_INDEX:
|
||||
value = getInactivo();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Medicos.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case Medicos.NOME_INDEX:
|
||||
value = this.nome;
|
||||
break;
|
||||
case Medicos.NUMERO_CEDULA_INDEX:
|
||||
value = this.numero_cedula;
|
||||
break;
|
||||
case Medicos.INACTIVO_INDEX:
|
||||
value = this.inactivo;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Medicos.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case Medicos.NOME_INDEX:
|
||||
setNome( ( String ) value );
|
||||
break;
|
||||
case Medicos.NUMERO_CEDULA_INDEX:
|
||||
setNumero_cedula( ( String ) value );
|
||||
break;
|
||||
case Medicos.INACTIVO_INDEX:
|
||||
setInactivo( ( String ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Medicos.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case Medicos.NOME_INDEX:
|
||||
this.nome = ( String ) value;
|
||||
break;
|
||||
case Medicos.NUMERO_CEDULA_INDEX:
|
||||
this.numero_cedula = ( String ) value;
|
||||
break;
|
||||
case Medicos.INACTIVO_INDEX:
|
||||
this.inactivo = ( 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 Medicos.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case Medicos.NOME_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case Medicos.NUMERO_CEDULA_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case Medicos.INACTIVO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : Medicos._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, Medicos.PK_FIELD_NAMES );
|
||||
primaryKey.set( 0, getId() );
|
||||
}
|
||||
}
|
||||
|
||||
@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,381 @@
|
||||
/*
|
||||
* Medidas.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp.inner;
|
||||
|
||||
|
||||
public class Medidas extends com.evolute.entity.evo.EvoDataObject<com.evolute.entity.utils.IntegerPrimaryKey>
|
||||
{
|
||||
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||
|
||||
static
|
||||
{
|
||||
FIELD_INDEXES.put( Medidas.ID, Medidas.ID_INDEX );
|
||||
FIELD_INDEXES.put( Medidas.ID_FULL, Medidas.ID_INDEX );
|
||||
com.evolute.entity.evo.EvoDataObject.register( Medidas.CLASS_IDENTIFIER, Medidas.ANALISE_ID, Medidas.TO_ANALISE_ID );
|
||||
FIELD_INDEXES.put( Medidas.ANALISE_ID, Medidas.ANALISE_ID_INDEX );
|
||||
FIELD_INDEXES.put( Medidas.ANALISE_ID_FULL, Medidas.ANALISE_ID_INDEX );
|
||||
FIELD_INDEXES.put( Medidas.TO_ANALISE_ID, Medidas.TO_ANALISE_ID_INDEX );
|
||||
FIELD_INDEXES.put( Medidas.MEDIDA, Medidas.MEDIDA_INDEX );
|
||||
FIELD_INDEXES.put( Medidas.MEDIDA_FULL, Medidas.MEDIDA_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final com.evolute.entity.ForeignKey ForeignKeyanalise_idToanalises_acidentes =
|
||||
new com.evolute.entity.ForeignKey( Medidas.class, Medidas.ANALISE_ID, db.data.siprp.outer.AnalisesAcidentesData.class, db.data.siprp.outer.AnalisesAcidentesData.ID );
|
||||
|
||||
public static final String TABLENAME = "medidas";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.medidas";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "medidas.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String ANALISE_ID = "analise_id";
|
||||
public static final String ANALISE_ID_FULL = "medidas.analise_id";
|
||||
public static final int ANALISE_ID_INDEX = 1;
|
||||
public static final String TO_ANALISE_ID = "to_analise_id";
|
||||
public static final String TO_ANALISE_ID_FULL = "medidas.to_analise_id";
|
||||
public static final int TO_ANALISE_ID_INDEX = 2;
|
||||
public static final String MEDIDA = "medida";
|
||||
public static final String MEDIDA_FULL = "medidas.medida";
|
||||
public static final int MEDIDA_INDEX = 3;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
ANALISE_ID, TO_ANALISE_ID, MEDIDA, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + ANALISE_ID, TABLENAME + "." + TO_ANALISE_ID, TABLENAME + "." + MEDIDA, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, ANALISE_ID, MEDIDA, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, ANALISE_ID, MEDIDA, };
|
||||
|
||||
private Integer id;
|
||||
private Integer analise_id;
|
||||
private db.data.siprp.outer.AnalisesAcidentesData to_analise_id;
|
||||
private String medida;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public Medidas()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, false, false,
|
||||
false };
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId( Integer id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ID, id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.id = id;
|
||||
LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getAnalise_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ANALISE_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.analise_id;
|
||||
}
|
||||
|
||||
public void setAnalise_id( Integer analise_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ANALISE_ID, analise_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.analise_id = analise_id;
|
||||
LAZY_LOADED_OBJECTS.put( ANALISE_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public db.data.siprp.outer.AnalisesAcidentesData toAnalise_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
prepare( TO_ANALISE_ID );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return this.to_analise_id;
|
||||
}
|
||||
|
||||
public void setToAnalise_id( db.data.siprp.outer.AnalisesAcidentesData to_analise_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( TO_ANALISE_ID, to_analise_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.to_analise_id = to_analise_id;
|
||||
}
|
||||
|
||||
public String getMedida()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( MEDIDA );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.medida;
|
||||
}
|
||||
|
||||
public void setMedida( String medida )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( MEDIDA, medida );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.medida = medida;
|
||||
LAZY_LOADED_OBJECTS.put( MEDIDA, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Medidas.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case Medidas.ANALISE_ID_INDEX:
|
||||
value = getAnalise_id();
|
||||
break;
|
||||
case Medidas.TO_ANALISE_ID_INDEX:
|
||||
value = toAnalise_id();
|
||||
break;
|
||||
case Medidas.MEDIDA_INDEX:
|
||||
value = getMedida();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Medidas.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case Medidas.ANALISE_ID_INDEX:
|
||||
value = this.analise_id;
|
||||
break;
|
||||
case Medidas.TO_ANALISE_ID_INDEX:
|
||||
value = this.to_analise_id;
|
||||
break;
|
||||
case Medidas.MEDIDA_INDEX:
|
||||
value = this.medida;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Medidas.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case Medidas.ANALISE_ID_INDEX:
|
||||
setAnalise_id( ( Integer ) value );
|
||||
break;
|
||||
case Medidas.TO_ANALISE_ID_INDEX:
|
||||
setToAnalise_id( ( db.data.siprp.outer.AnalisesAcidentesData ) value );
|
||||
break;
|
||||
case Medidas.MEDIDA_INDEX:
|
||||
setMedida( ( String ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Medidas.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case Medidas.ANALISE_ID_INDEX:
|
||||
this.analise_id = ( Integer ) value;
|
||||
break;
|
||||
case Medidas.TO_ANALISE_ID_INDEX:
|
||||
this.to_analise_id = ( db.data.siprp.outer.AnalisesAcidentesData ) value;
|
||||
break;
|
||||
case Medidas.MEDIDA_INDEX:
|
||||
this.medida = ( 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 Medidas.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case Medidas.ANALISE_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case Medidas.TO_ANALISE_ID_INDEX:
|
||||
theClass = db.data.siprp.outer.AnalisesAcidentesData.class;
|
||||
break;
|
||||
case Medidas.MEDIDA_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : Medidas._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, Medidas.PK_FIELD_NAMES );
|
||||
primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
|
||||
}
|
||||
setId( ( Integer ) array.get( row, col + 0 ) );
|
||||
}
|
||||
|
||||
@Override
|
||||
public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
|
||||
{
|
||||
return primaryKey;
|
||||
}
|
||||
|
||||
public void initLazyLoadFields()
|
||||
{
|
||||
}
|
||||
|
||||
public boolean isPropertyLoaded( String fieldName )
|
||||
{
|
||||
if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return LAZY_LOADED_OBJECTS.get( fieldName );
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,431 @@
|
||||
/*
|
||||
* NotNoticias.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp.inner;
|
||||
|
||||
|
||||
public class NotNoticias extends com.evolute.entity.evo.EvoDataObject<com.evolute.entity.utils.IntegerPrimaryKey>
|
||||
{
|
||||
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||
|
||||
static
|
||||
{
|
||||
FIELD_INDEXES.put( NotNoticias.ID, NotNoticias.ID_INDEX );
|
||||
FIELD_INDEXES.put( NotNoticias.ID_FULL, NotNoticias.ID_INDEX );
|
||||
FIELD_INDEXES.put( NotNoticias.DATA, NotNoticias.DATA_INDEX );
|
||||
FIELD_INDEXES.put( NotNoticias.DATA_FULL, NotNoticias.DATA_INDEX );
|
||||
FIELD_INDEXES.put( NotNoticias.STAMP, NotNoticias.STAMP_INDEX );
|
||||
FIELD_INDEXES.put( NotNoticias.STAMP_FULL, NotNoticias.STAMP_INDEX );
|
||||
FIELD_INDEXES.put( NotNoticias.UTILIZADOR, NotNoticias.UTILIZADOR_INDEX );
|
||||
FIELD_INDEXES.put( NotNoticias.UTILIZADOR_FULL, NotNoticias.UTILIZADOR_INDEX );
|
||||
FIELD_INDEXES.put( NotNoticias.NOTICIA, NotNoticias.NOTICIA_INDEX );
|
||||
FIELD_INDEXES.put( NotNoticias.NOTICIA_FULL, NotNoticias.NOTICIA_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final String TABLENAME = "not_noticias";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.not_noticias";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "not_noticias.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String DATA = "data";
|
||||
public static final String DATA_FULL = "not_noticias.data";
|
||||
public static final int DATA_INDEX = 1;
|
||||
public static final String STAMP = "stamp";
|
||||
public static final String STAMP_FULL = "not_noticias.stamp";
|
||||
public static final int STAMP_INDEX = 2;
|
||||
public static final String UTILIZADOR = "utilizador";
|
||||
public static final String UTILIZADOR_FULL = "not_noticias.utilizador";
|
||||
public static final int UTILIZADOR_INDEX = 3;
|
||||
public static final String NOTICIA = "noticia";
|
||||
public static final String NOTICIA_FULL = "not_noticias.noticia";
|
||||
public static final int NOTICIA_INDEX = 4;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
DATA, STAMP, UTILIZADOR, NOTICIA, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + DATA, TABLENAME + "." + STAMP, TABLENAME + "." + UTILIZADOR, TABLENAME + "." + NOTICIA, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, DATA, STAMP, UTILIZADOR, NOTICIA, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, DATA, STAMP, UTILIZADOR, NOTICIA, };
|
||||
|
||||
private Integer id;
|
||||
private java.util.Date data;
|
||||
private java.sql.Timestamp stamp;
|
||||
private String utilizador;
|
||||
private String noticia;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public NotNoticias()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, false, false,
|
||||
false, false };
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId( Integer id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ID, id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.id = id;
|
||||
LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public java.util.Date getData()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DATA );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.data;
|
||||
}
|
||||
|
||||
public void setData( java.util.Date data )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( DATA, data );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.data = data;
|
||||
LAZY_LOADED_OBJECTS.put( DATA, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public java.sql.Timestamp getStamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.stamp;
|
||||
}
|
||||
|
||||
public void setStamp( java.sql.Timestamp stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( STAMP, stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.stamp = stamp;
|
||||
LAZY_LOADED_OBJECTS.put( STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getUtilizador()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( UTILIZADOR );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.utilizador;
|
||||
}
|
||||
|
||||
public void setUtilizador( String utilizador )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( UTILIZADOR, utilizador );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.utilizador = utilizador;
|
||||
LAZY_LOADED_OBJECTS.put( UTILIZADOR, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getNoticia()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( NOTICIA );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.noticia;
|
||||
}
|
||||
|
||||
public void setNoticia( String noticia )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( NOTICIA, noticia );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.noticia = noticia;
|
||||
LAZY_LOADED_OBJECTS.put( NOTICIA, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case NotNoticias.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case NotNoticias.DATA_INDEX:
|
||||
value = getData();
|
||||
break;
|
||||
case NotNoticias.STAMP_INDEX:
|
||||
value = getStamp();
|
||||
break;
|
||||
case NotNoticias.UTILIZADOR_INDEX:
|
||||
value = getUtilizador();
|
||||
break;
|
||||
case NotNoticias.NOTICIA_INDEX:
|
||||
value = getNoticia();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case NotNoticias.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case NotNoticias.DATA_INDEX:
|
||||
value = this.data;
|
||||
break;
|
||||
case NotNoticias.STAMP_INDEX:
|
||||
value = this.stamp;
|
||||
break;
|
||||
case NotNoticias.UTILIZADOR_INDEX:
|
||||
value = this.utilizador;
|
||||
break;
|
||||
case NotNoticias.NOTICIA_INDEX:
|
||||
value = this.noticia;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case NotNoticias.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case NotNoticias.DATA_INDEX:
|
||||
setData( ( java.util.Date ) value );
|
||||
break;
|
||||
case NotNoticias.STAMP_INDEX:
|
||||
setStamp( ( java.sql.Timestamp ) value );
|
||||
break;
|
||||
case NotNoticias.UTILIZADOR_INDEX:
|
||||
setUtilizador( ( String ) value );
|
||||
break;
|
||||
case NotNoticias.NOTICIA_INDEX:
|
||||
setNoticia( ( String ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case NotNoticias.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case NotNoticias.DATA_INDEX:
|
||||
this.data = ( java.util.Date ) value;
|
||||
break;
|
||||
case NotNoticias.STAMP_INDEX:
|
||||
this.stamp = ( java.sql.Timestamp ) value;
|
||||
break;
|
||||
case NotNoticias.UTILIZADOR_INDEX:
|
||||
this.utilizador = ( String ) value;
|
||||
break;
|
||||
case NotNoticias.NOTICIA_INDEX:
|
||||
this.noticia = ( 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 NotNoticias.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case NotNoticias.DATA_INDEX:
|
||||
theClass = java.util.Date.class;
|
||||
break;
|
||||
case NotNoticias.STAMP_INDEX:
|
||||
theClass = java.sql.Timestamp.class;
|
||||
break;
|
||||
case NotNoticias.UTILIZADOR_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case NotNoticias.NOTICIA_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : NotNoticias._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, NotNoticias.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,330 @@
|
||||
/*
|
||||
* Permissoes.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp.inner;
|
||||
|
||||
|
||||
public class Permissoes extends com.evolute.entity.evo.EvoDataObject<com.evolute.entity.utils.IntegerPrimaryKey>
|
||||
{
|
||||
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||
|
||||
static
|
||||
{
|
||||
FIELD_INDEXES.put( Permissoes.ID, Permissoes.ID_INDEX );
|
||||
FIELD_INDEXES.put( Permissoes.ID_FULL, Permissoes.ID_INDEX );
|
||||
FIELD_INDEXES.put( Permissoes.USER_ID, Permissoes.USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( Permissoes.USER_ID_FULL, Permissoes.USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( Permissoes.CODIGO_PERMISSAO, Permissoes.CODIGO_PERMISSAO_INDEX );
|
||||
FIELD_INDEXES.put( Permissoes.CODIGO_PERMISSAO_FULL, Permissoes.CODIGO_PERMISSAO_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final String TABLENAME = "permissoes";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.permissoes";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "permissoes.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String USER_ID = "user_id";
|
||||
public static final String USER_ID_FULL = "permissoes.user_id";
|
||||
public static final int USER_ID_INDEX = 1;
|
||||
public static final String CODIGO_PERMISSAO = "codigo_permissao";
|
||||
public static final String CODIGO_PERMISSAO_FULL = "permissoes.codigo_permissao";
|
||||
public static final int CODIGO_PERMISSAO_INDEX = 2;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
USER_ID, CODIGO_PERMISSAO, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + USER_ID, TABLENAME + "." + CODIGO_PERMISSAO, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, USER_ID, CODIGO_PERMISSAO, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, USER_ID, CODIGO_PERMISSAO, };
|
||||
|
||||
private Integer id;
|
||||
private Integer user_id;
|
||||
private Integer codigo_permissao;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public Permissoes()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, false, false };
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId( Integer id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ID, id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.id = id;
|
||||
LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getUser_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( USER_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.user_id;
|
||||
}
|
||||
|
||||
public void setUser_id( Integer user_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( USER_ID, user_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.user_id = user_id;
|
||||
LAZY_LOADED_OBJECTS.put( USER_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getCodigo_permissao()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CODIGO_PERMISSAO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.codigo_permissao;
|
||||
}
|
||||
|
||||
public void setCodigo_permissao( Integer codigo_permissao )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( CODIGO_PERMISSAO, codigo_permissao );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.codigo_permissao = codigo_permissao;
|
||||
LAZY_LOADED_OBJECTS.put( CODIGO_PERMISSAO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Permissoes.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case Permissoes.USER_ID_INDEX:
|
||||
value = getUser_id();
|
||||
break;
|
||||
case Permissoes.CODIGO_PERMISSAO_INDEX:
|
||||
value = getCodigo_permissao();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Permissoes.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case Permissoes.USER_ID_INDEX:
|
||||
value = this.user_id;
|
||||
break;
|
||||
case Permissoes.CODIGO_PERMISSAO_INDEX:
|
||||
value = this.codigo_permissao;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Permissoes.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case Permissoes.USER_ID_INDEX:
|
||||
setUser_id( ( Integer ) value );
|
||||
break;
|
||||
case Permissoes.CODIGO_PERMISSAO_INDEX:
|
||||
setCodigo_permissao( ( Integer ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Permissoes.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case Permissoes.USER_ID_INDEX:
|
||||
this.user_id = ( Integer ) value;
|
||||
break;
|
||||
case Permissoes.CODIGO_PERMISSAO_INDEX:
|
||||
this.codigo_permissao = ( Integer ) value;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getFieldNamesFull()
|
||||
{
|
||||
return FIELD_NAMES_FULL;
|
||||
}
|
||||
|
||||
public String []getDBFieldNames()
|
||||
{
|
||||
return DB_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getPrimaryKeyNames()
|
||||
{
|
||||
return PK_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getDefaultLoadSet()
|
||||
{
|
||||
return DEFAULT_LOAD_SET;
|
||||
}
|
||||
|
||||
public String getPrimaryKeyName()
|
||||
{
|
||||
return PK_FIELD_NAMES[ 0 ];
|
||||
}
|
||||
|
||||
public Class<?> getFieldClass( String fieldName )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
Class<?> theClass = null;
|
||||
switch( index )
|
||||
{
|
||||
case Permissoes.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case Permissoes.USER_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case Permissoes.CODIGO_PERMISSAO_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : Permissoes._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, Permissoes.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,445 @@
|
||||
/*
|
||||
* PlanoAreas.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp.inner;
|
||||
|
||||
|
||||
public class PlanoAreas extends com.evolute.entity.evo.EvoDataObject<com.evolute.entity.utils.IntegerPrimaryKey>
|
||||
{
|
||||
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||
|
||||
static
|
||||
{
|
||||
FIELD_INDEXES.put( PlanoAreas.DESCRICAO, PlanoAreas.DESCRICAO_INDEX );
|
||||
FIELD_INDEXES.put( PlanoAreas.DESCRICAO_FULL, PlanoAreas.DESCRICAO_INDEX );
|
||||
com.evolute.entity.evo.EvoDataObject.register( PlanoAreas.CLASS_IDENTIFIER, PlanoAreas.PLANO_ID, PlanoAreas.TO_PLANO_ID );
|
||||
FIELD_INDEXES.put( PlanoAreas.PLANO_ID, PlanoAreas.PLANO_ID_INDEX );
|
||||
FIELD_INDEXES.put( PlanoAreas.PLANO_ID_FULL, PlanoAreas.PLANO_ID_INDEX );
|
||||
FIELD_INDEXES.put( PlanoAreas.TO_PLANO_ID, PlanoAreas.TO_PLANO_ID_INDEX );
|
||||
FIELD_INDEXES.put( PlanoAreas.ID, PlanoAreas.ID_INDEX );
|
||||
FIELD_INDEXES.put( PlanoAreas.ID_FULL, PlanoAreas.ID_INDEX );
|
||||
FIELD_INDEXES.put( PlanoAreas.AREA_ID, PlanoAreas.AREA_ID_INDEX );
|
||||
FIELD_INDEXES.put( PlanoAreas.AREA_ID_FULL, PlanoAreas.AREA_ID_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final com.evolute.entity.ForeignKey ForeignKeyplano_idToplanos_actuacao =
|
||||
new com.evolute.entity.ForeignKey( PlanoAreas.class, PlanoAreas.PLANO_ID, db.data.siprp.outer.PlanosActuacaoData.class, db.data.siprp.outer.PlanosActuacaoData.ID );
|
||||
|
||||
public static final String TABLENAME = "plano_areas";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.plano_areas";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String DESCRICAO = "descricao";
|
||||
public static final String DESCRICAO_FULL = "plano_areas.descricao";
|
||||
public static final int DESCRICAO_INDEX = 0;
|
||||
public static final String PLANO_ID = "plano_id";
|
||||
public static final String PLANO_ID_FULL = "plano_areas.plano_id";
|
||||
public static final int PLANO_ID_INDEX = 1;
|
||||
public static final String TO_PLANO_ID = "to_plano_id";
|
||||
public static final String TO_PLANO_ID_FULL = "plano_areas.to_plano_id";
|
||||
public static final int TO_PLANO_ID_INDEX = 2;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "plano_areas.id";
|
||||
public static final int ID_INDEX = 3;
|
||||
public static final String AREA_ID = "area_id";
|
||||
public static final String AREA_ID_FULL = "plano_areas.area_id";
|
||||
public static final int AREA_ID_INDEX = 4;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
DESCRICAO, PLANO_ID, TO_PLANO_ID, AREA_ID, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + DESCRICAO, TABLENAME + "." + PLANO_ID, TABLENAME + "." + TO_PLANO_ID, TABLENAME + "." + AREA_ID, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
DESCRICAO, PLANO_ID, ID, AREA_ID, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
DESCRICAO, PLANO_ID, ID, AREA_ID, };
|
||||
|
||||
private String descricao;
|
||||
private Integer plano_id;
|
||||
private db.data.siprp.outer.PlanosActuacaoData to_plano_id;
|
||||
private Integer id;
|
||||
private Integer area_id;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public PlanoAreas()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, false, false,
|
||||
false, false };
|
||||
}
|
||||
|
||||
public String getDescricao()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DESCRICAO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.descricao;
|
||||
}
|
||||
|
||||
public void setDescricao( String descricao )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( DESCRICAO, descricao );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.descricao = descricao;
|
||||
LAZY_LOADED_OBJECTS.put( DESCRICAO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getPlano_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( PLANO_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.plano_id;
|
||||
}
|
||||
|
||||
public void setPlano_id( Integer plano_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( PLANO_ID, plano_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.plano_id = plano_id;
|
||||
LAZY_LOADED_OBJECTS.put( PLANO_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public db.data.siprp.outer.PlanosActuacaoData toPlano_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
prepare( TO_PLANO_ID );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return this.to_plano_id;
|
||||
}
|
||||
|
||||
public void setToPlano_id( db.data.siprp.outer.PlanosActuacaoData to_plano_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( TO_PLANO_ID, to_plano_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.to_plano_id = to_plano_id;
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId( Integer id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ID, id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.id = id;
|
||||
LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public java.util.List<db.data.siprp.outer.PlanoRiscosData>fromPlanoRiscos_area_id()
|
||||
{
|
||||
java.util.List<db.data.siprp.outer.PlanoRiscosData> result = null;
|
||||
try
|
||||
{
|
||||
result = fromReference( db.data.siprp.outer.PlanoRiscosData.class , getPrimaryKey().getMap().get("id"), "area_id" );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public Integer getArea_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( AREA_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.area_id;
|
||||
}
|
||||
|
||||
public void setArea_id( Integer area_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( AREA_ID, area_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.area_id = area_id;
|
||||
LAZY_LOADED_OBJECTS.put( AREA_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case PlanoAreas.DESCRICAO_INDEX:
|
||||
value = getDescricao();
|
||||
break;
|
||||
case PlanoAreas.PLANO_ID_INDEX:
|
||||
value = getPlano_id();
|
||||
break;
|
||||
case PlanoAreas.TO_PLANO_ID_INDEX:
|
||||
value = toPlano_id();
|
||||
break;
|
||||
case PlanoAreas.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case PlanoAreas.AREA_ID_INDEX:
|
||||
value = getArea_id();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case PlanoAreas.DESCRICAO_INDEX:
|
||||
value = this.descricao;
|
||||
break;
|
||||
case PlanoAreas.PLANO_ID_INDEX:
|
||||
value = this.plano_id;
|
||||
break;
|
||||
case PlanoAreas.TO_PLANO_ID_INDEX:
|
||||
value = this.to_plano_id;
|
||||
break;
|
||||
case PlanoAreas.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case PlanoAreas.AREA_ID_INDEX:
|
||||
value = this.area_id;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case PlanoAreas.DESCRICAO_INDEX:
|
||||
setDescricao( ( String ) value );
|
||||
break;
|
||||
case PlanoAreas.PLANO_ID_INDEX:
|
||||
setPlano_id( ( Integer ) value );
|
||||
break;
|
||||
case PlanoAreas.TO_PLANO_ID_INDEX:
|
||||
setToPlano_id( ( db.data.siprp.outer.PlanosActuacaoData ) value );
|
||||
break;
|
||||
case PlanoAreas.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case PlanoAreas.AREA_ID_INDEX:
|
||||
setArea_id( ( Integer ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case PlanoAreas.DESCRICAO_INDEX:
|
||||
this.descricao = ( String ) value;
|
||||
break;
|
||||
case PlanoAreas.PLANO_ID_INDEX:
|
||||
this.plano_id = ( Integer ) value;
|
||||
break;
|
||||
case PlanoAreas.TO_PLANO_ID_INDEX:
|
||||
this.to_plano_id = ( db.data.siprp.outer.PlanosActuacaoData ) value;
|
||||
break;
|
||||
case PlanoAreas.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case PlanoAreas.AREA_ID_INDEX:
|
||||
this.area_id = ( Integer ) value;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getFieldNamesFull()
|
||||
{
|
||||
return FIELD_NAMES_FULL;
|
||||
}
|
||||
|
||||
public String []getDBFieldNames()
|
||||
{
|
||||
return DB_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getPrimaryKeyNames()
|
||||
{
|
||||
return PK_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getDefaultLoadSet()
|
||||
{
|
||||
return DEFAULT_LOAD_SET;
|
||||
}
|
||||
|
||||
public String getPrimaryKeyName()
|
||||
{
|
||||
return PK_FIELD_NAMES[ 0 ];
|
||||
}
|
||||
|
||||
public Class<?> getFieldClass( String fieldName )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
Class<?> theClass = null;
|
||||
switch( index )
|
||||
{
|
||||
case PlanoAreas.DESCRICAO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case PlanoAreas.PLANO_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case PlanoAreas.TO_PLANO_ID_INDEX:
|
||||
theClass = db.data.siprp.outer.PlanosActuacaoData.class;
|
||||
break;
|
||||
case PlanoAreas.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case PlanoAreas.AREA_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : PlanoAreas._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, PlanoAreas.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,547 @@
|
||||
/*
|
||||
* PlanoMedidas.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp.inner;
|
||||
|
||||
|
||||
public class PlanoMedidas extends com.evolute.entity.evo.EvoDataObject<com.evolute.entity.utils.IntegerPrimaryKey>
|
||||
{
|
||||
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||
|
||||
static
|
||||
{
|
||||
FIELD_INDEXES.put( PlanoMedidas.DESCRICAO, PlanoMedidas.DESCRICAO_INDEX );
|
||||
FIELD_INDEXES.put( PlanoMedidas.DESCRICAO_FULL, PlanoMedidas.DESCRICAO_INDEX );
|
||||
com.evolute.entity.evo.EvoDataObject.register( PlanoMedidas.CLASS_IDENTIFIER, PlanoMedidas.RISCO_ID, PlanoMedidas.TO_RISCO_ID );
|
||||
FIELD_INDEXES.put( PlanoMedidas.RISCO_ID, PlanoMedidas.RISCO_ID_INDEX );
|
||||
FIELD_INDEXES.put( PlanoMedidas.RISCO_ID_FULL, PlanoMedidas.RISCO_ID_INDEX );
|
||||
FIELD_INDEXES.put( PlanoMedidas.TO_RISCO_ID, PlanoMedidas.TO_RISCO_ID_INDEX );
|
||||
FIELD_INDEXES.put( PlanoMedidas.ID, PlanoMedidas.ID_INDEX );
|
||||
FIELD_INDEXES.put( PlanoMedidas.ID_FULL, PlanoMedidas.ID_INDEX );
|
||||
FIELD_INDEXES.put( PlanoMedidas.MEDIDA_ID, PlanoMedidas.MEDIDA_ID_INDEX );
|
||||
FIELD_INDEXES.put( PlanoMedidas.MEDIDA_ID_FULL, PlanoMedidas.MEDIDA_ID_INDEX );
|
||||
com.evolute.entity.evo.EvoDataObject.register( PlanoMedidas.CLASS_IDENTIFIER, PlanoMedidas.ESTADO_MEDIDAS_ID, PlanoMedidas.TO_ESTADO_MEDIDAS_ID );
|
||||
FIELD_INDEXES.put( PlanoMedidas.ESTADO_MEDIDAS_ID, PlanoMedidas.ESTADO_MEDIDAS_ID_INDEX );
|
||||
FIELD_INDEXES.put( PlanoMedidas.ESTADO_MEDIDAS_ID_FULL, PlanoMedidas.ESTADO_MEDIDAS_ID_INDEX );
|
||||
FIELD_INDEXES.put( PlanoMedidas.TO_ESTADO_MEDIDAS_ID, PlanoMedidas.TO_ESTADO_MEDIDAS_ID_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final com.evolute.entity.ForeignKey ForeignKeyrisco_idToplano_riscos =
|
||||
new com.evolute.entity.ForeignKey( PlanoMedidas.class, PlanoMedidas.RISCO_ID, db.data.siprp.outer.PlanoRiscosData.class, db.data.siprp.outer.PlanoRiscosData.ID );
|
||||
|
||||
public static final com.evolute.entity.ForeignKey ForeignKeyestado_medidas_idToestado_medidas =
|
||||
new com.evolute.entity.ForeignKey( PlanoMedidas.class, PlanoMedidas.ESTADO_MEDIDAS_ID, db.data.siprp.outer.EstadoMedidasData.class, db.data.siprp.outer.EstadoMedidasData.ID );
|
||||
|
||||
public static final String TABLENAME = "plano_medidas";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.plano_medidas";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String DESCRICAO = "descricao";
|
||||
public static final String DESCRICAO_FULL = "plano_medidas.descricao";
|
||||
public static final int DESCRICAO_INDEX = 0;
|
||||
public static final String RISCO_ID = "risco_id";
|
||||
public static final String RISCO_ID_FULL = "plano_medidas.risco_id";
|
||||
public static final int RISCO_ID_INDEX = 1;
|
||||
public static final String TO_RISCO_ID = "to_risco_id";
|
||||
public static final String TO_RISCO_ID_FULL = "plano_medidas.to_risco_id";
|
||||
public static final int TO_RISCO_ID_INDEX = 2;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "plano_medidas.id";
|
||||
public static final int ID_INDEX = 3;
|
||||
public static final String MEDIDA_ID = "medida_id";
|
||||
public static final String MEDIDA_ID_FULL = "plano_medidas.medida_id";
|
||||
public static final int MEDIDA_ID_INDEX = 4;
|
||||
public static final String ESTADO_MEDIDAS_ID = "estado_medidas_id";
|
||||
public static final String ESTADO_MEDIDAS_ID_FULL = "plano_medidas.estado_medidas_id";
|
||||
public static final int ESTADO_MEDIDAS_ID_INDEX = 5;
|
||||
public static final String TO_ESTADO_MEDIDAS_ID = "to_estado_medidas_id";
|
||||
public static final String TO_ESTADO_MEDIDAS_ID_FULL = "plano_medidas.to_estado_medidas_id";
|
||||
public static final int TO_ESTADO_MEDIDAS_ID_INDEX = 6;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
DESCRICAO, RISCO_ID, TO_RISCO_ID, MEDIDA_ID, ESTADO_MEDIDAS_ID,
|
||||
TO_ESTADO_MEDIDAS_ID, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + DESCRICAO, TABLENAME + "." + RISCO_ID, TABLENAME + "." + TO_RISCO_ID, TABLENAME + "." + MEDIDA_ID, TABLENAME + "." + ESTADO_MEDIDAS_ID,
|
||||
TABLENAME + "." + TO_ESTADO_MEDIDAS_ID, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
DESCRICAO, RISCO_ID, ID, MEDIDA_ID, ESTADO_MEDIDAS_ID, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
DESCRICAO, RISCO_ID, ID, MEDIDA_ID, ESTADO_MEDIDAS_ID, };
|
||||
|
||||
private String descricao;
|
||||
private Integer risco_id;
|
||||
private db.data.siprp.outer.PlanoRiscosData to_risco_id;
|
||||
private Integer id;
|
||||
private Integer medida_id;
|
||||
private Integer estado_medidas_id;
|
||||
private db.data.siprp.outer.EstadoMedidasData to_estado_medidas_id;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public PlanoMedidas()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, false, false,
|
||||
false, false, false, false };
|
||||
}
|
||||
|
||||
public String getDescricao()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DESCRICAO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.descricao;
|
||||
}
|
||||
|
||||
public void setDescricao( String descricao )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( DESCRICAO, descricao );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.descricao = descricao;
|
||||
LAZY_LOADED_OBJECTS.put( DESCRICAO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getRisco_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( RISCO_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.risco_id;
|
||||
}
|
||||
|
||||
public void setRisco_id( Integer risco_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( RISCO_ID, risco_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.risco_id = risco_id;
|
||||
LAZY_LOADED_OBJECTS.put( RISCO_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public db.data.siprp.outer.PlanoRiscosData toRisco_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
prepare( TO_RISCO_ID );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return this.to_risco_id;
|
||||
}
|
||||
|
||||
public void setToRisco_id( db.data.siprp.outer.PlanoRiscosData to_risco_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( TO_RISCO_ID, to_risco_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.to_risco_id = to_risco_id;
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId( Integer id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ID, id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.id = id;
|
||||
LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public java.util.List<db.data.siprp.outer.PlanoPostosTrabalhoData>fromPlanoPostosTrabalho_medida_id()
|
||||
{
|
||||
java.util.List<db.data.siprp.outer.PlanoPostosTrabalhoData> result = null;
|
||||
try
|
||||
{
|
||||
result = fromReference( db.data.siprp.outer.PlanoPostosTrabalhoData.class , getPrimaryKey().getMap().get("id"), "medida_id" );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public Integer getMedida_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( MEDIDA_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.medida_id;
|
||||
}
|
||||
|
||||
public void setMedida_id( Integer medida_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( MEDIDA_ID, medida_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.medida_id = medida_id;
|
||||
LAZY_LOADED_OBJECTS.put( MEDIDA_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getEstado_medidas_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ESTADO_MEDIDAS_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.estado_medidas_id;
|
||||
}
|
||||
|
||||
public void setEstado_medidas_id( Integer estado_medidas_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ESTADO_MEDIDAS_ID, estado_medidas_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.estado_medidas_id = estado_medidas_id;
|
||||
LAZY_LOADED_OBJECTS.put( ESTADO_MEDIDAS_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public db.data.siprp.outer.EstadoMedidasData toEstado_medidas_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
prepare( TO_ESTADO_MEDIDAS_ID );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return this.to_estado_medidas_id;
|
||||
}
|
||||
|
||||
public void setToEstado_medidas_id( db.data.siprp.outer.EstadoMedidasData to_estado_medidas_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( TO_ESTADO_MEDIDAS_ID, to_estado_medidas_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.to_estado_medidas_id = to_estado_medidas_id;
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case PlanoMedidas.DESCRICAO_INDEX:
|
||||
value = getDescricao();
|
||||
break;
|
||||
case PlanoMedidas.RISCO_ID_INDEX:
|
||||
value = getRisco_id();
|
||||
break;
|
||||
case PlanoMedidas.TO_RISCO_ID_INDEX:
|
||||
value = toRisco_id();
|
||||
break;
|
||||
case PlanoMedidas.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case PlanoMedidas.MEDIDA_ID_INDEX:
|
||||
value = getMedida_id();
|
||||
break;
|
||||
case PlanoMedidas.ESTADO_MEDIDAS_ID_INDEX:
|
||||
value = getEstado_medidas_id();
|
||||
break;
|
||||
case PlanoMedidas.TO_ESTADO_MEDIDAS_ID_INDEX:
|
||||
value = toEstado_medidas_id();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case PlanoMedidas.DESCRICAO_INDEX:
|
||||
value = this.descricao;
|
||||
break;
|
||||
case PlanoMedidas.RISCO_ID_INDEX:
|
||||
value = this.risco_id;
|
||||
break;
|
||||
case PlanoMedidas.TO_RISCO_ID_INDEX:
|
||||
value = this.to_risco_id;
|
||||
break;
|
||||
case PlanoMedidas.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case PlanoMedidas.MEDIDA_ID_INDEX:
|
||||
value = this.medida_id;
|
||||
break;
|
||||
case PlanoMedidas.ESTADO_MEDIDAS_ID_INDEX:
|
||||
value = this.estado_medidas_id;
|
||||
break;
|
||||
case PlanoMedidas.TO_ESTADO_MEDIDAS_ID_INDEX:
|
||||
value = this.to_estado_medidas_id;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case PlanoMedidas.DESCRICAO_INDEX:
|
||||
setDescricao( ( String ) value );
|
||||
break;
|
||||
case PlanoMedidas.RISCO_ID_INDEX:
|
||||
setRisco_id( ( Integer ) value );
|
||||
break;
|
||||
case PlanoMedidas.TO_RISCO_ID_INDEX:
|
||||
setToRisco_id( ( db.data.siprp.outer.PlanoRiscosData ) value );
|
||||
break;
|
||||
case PlanoMedidas.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case PlanoMedidas.MEDIDA_ID_INDEX:
|
||||
setMedida_id( ( Integer ) value );
|
||||
break;
|
||||
case PlanoMedidas.ESTADO_MEDIDAS_ID_INDEX:
|
||||
setEstado_medidas_id( ( Integer ) value );
|
||||
break;
|
||||
case PlanoMedidas.TO_ESTADO_MEDIDAS_ID_INDEX:
|
||||
setToEstado_medidas_id( ( db.data.siprp.outer.EstadoMedidasData ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case PlanoMedidas.DESCRICAO_INDEX:
|
||||
this.descricao = ( String ) value;
|
||||
break;
|
||||
case PlanoMedidas.RISCO_ID_INDEX:
|
||||
this.risco_id = ( Integer ) value;
|
||||
break;
|
||||
case PlanoMedidas.TO_RISCO_ID_INDEX:
|
||||
this.to_risco_id = ( db.data.siprp.outer.PlanoRiscosData ) value;
|
||||
break;
|
||||
case PlanoMedidas.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case PlanoMedidas.MEDIDA_ID_INDEX:
|
||||
this.medida_id = ( Integer ) value;
|
||||
break;
|
||||
case PlanoMedidas.ESTADO_MEDIDAS_ID_INDEX:
|
||||
this.estado_medidas_id = ( Integer ) value;
|
||||
break;
|
||||
case PlanoMedidas.TO_ESTADO_MEDIDAS_ID_INDEX:
|
||||
this.to_estado_medidas_id = ( db.data.siprp.outer.EstadoMedidasData ) 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 PlanoMedidas.DESCRICAO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case PlanoMedidas.RISCO_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case PlanoMedidas.TO_RISCO_ID_INDEX:
|
||||
theClass = db.data.siprp.outer.PlanoRiscosData.class;
|
||||
break;
|
||||
case PlanoMedidas.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case PlanoMedidas.MEDIDA_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case PlanoMedidas.ESTADO_MEDIDAS_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case PlanoMedidas.TO_ESTADO_MEDIDAS_ID_INDEX:
|
||||
theClass = db.data.siprp.outer.EstadoMedidasData.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : PlanoMedidas._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, PlanoMedidas.PK_FIELD_NAMES );
|
||||
primaryKey.set( 0, ( Integer ) array.get( row, col + 0 ) );
|
||||
}
|
||||
setId( ( Integer ) array.get( row, col + 0 ) );
|
||||
}
|
||||
|
||||
@Override
|
||||
public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
|
||||
{
|
||||
return primaryKey;
|
||||
}
|
||||
|
||||
public void initLazyLoadFields()
|
||||
{
|
||||
}
|
||||
|
||||
public boolean isPropertyLoaded( String fieldName )
|
||||
{
|
||||
if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return LAZY_LOADED_OBJECTS.get( fieldName );
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,431 @@
|
||||
/*
|
||||
* PlanoPostosTrabalho.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp.inner;
|
||||
|
||||
|
||||
public class PlanoPostosTrabalho extends com.evolute.entity.evo.EvoDataObject<com.evolute.entity.utils.IntegerPrimaryKey>
|
||||
{
|
||||
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||
|
||||
static
|
||||
{
|
||||
FIELD_INDEXES.put( PlanoPostosTrabalho.DESCRICAO, PlanoPostosTrabalho.DESCRICAO_INDEX );
|
||||
FIELD_INDEXES.put( PlanoPostosTrabalho.DESCRICAO_FULL, PlanoPostosTrabalho.DESCRICAO_INDEX );
|
||||
com.evolute.entity.evo.EvoDataObject.register( PlanoPostosTrabalho.CLASS_IDENTIFIER, PlanoPostosTrabalho.MEDIDA_ID, PlanoPostosTrabalho.TO_MEDIDA_ID );
|
||||
FIELD_INDEXES.put( PlanoPostosTrabalho.MEDIDA_ID, PlanoPostosTrabalho.MEDIDA_ID_INDEX );
|
||||
FIELD_INDEXES.put( PlanoPostosTrabalho.MEDIDA_ID_FULL, PlanoPostosTrabalho.MEDIDA_ID_INDEX );
|
||||
FIELD_INDEXES.put( PlanoPostosTrabalho.TO_MEDIDA_ID, PlanoPostosTrabalho.TO_MEDIDA_ID_INDEX );
|
||||
FIELD_INDEXES.put( PlanoPostosTrabalho.ID, PlanoPostosTrabalho.ID_INDEX );
|
||||
FIELD_INDEXES.put( PlanoPostosTrabalho.ID_FULL, PlanoPostosTrabalho.ID_INDEX );
|
||||
FIELD_INDEXES.put( PlanoPostosTrabalho.POSTO_ID, PlanoPostosTrabalho.POSTO_ID_INDEX );
|
||||
FIELD_INDEXES.put( PlanoPostosTrabalho.POSTO_ID_FULL, PlanoPostosTrabalho.POSTO_ID_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final com.evolute.entity.ForeignKey ForeignKeymedida_idToplano_medidas =
|
||||
new com.evolute.entity.ForeignKey( PlanoPostosTrabalho.class, PlanoPostosTrabalho.MEDIDA_ID, db.data.siprp.outer.PlanoMedidasData.class, db.data.siprp.outer.PlanoMedidasData.ID );
|
||||
|
||||
public static final String TABLENAME = "plano_postos_trabalho";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.plano_postos_trabalho";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String DESCRICAO = "descricao";
|
||||
public static final String DESCRICAO_FULL = "plano_postos_trabalho.descricao";
|
||||
public static final int DESCRICAO_INDEX = 0;
|
||||
public static final String MEDIDA_ID = "medida_id";
|
||||
public static final String MEDIDA_ID_FULL = "plano_postos_trabalho.medida_id";
|
||||
public static final int MEDIDA_ID_INDEX = 1;
|
||||
public static final String TO_MEDIDA_ID = "to_medida_id";
|
||||
public static final String TO_MEDIDA_ID_FULL = "plano_postos_trabalho.to_medida_id";
|
||||
public static final int TO_MEDIDA_ID_INDEX = 2;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "plano_postos_trabalho.id";
|
||||
public static final int ID_INDEX = 3;
|
||||
public static final String POSTO_ID = "posto_id";
|
||||
public static final String POSTO_ID_FULL = "plano_postos_trabalho.posto_id";
|
||||
public static final int POSTO_ID_INDEX = 4;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
DESCRICAO, MEDIDA_ID, TO_MEDIDA_ID, POSTO_ID, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + DESCRICAO, TABLENAME + "." + MEDIDA_ID, TABLENAME + "." + TO_MEDIDA_ID, TABLENAME + "." + POSTO_ID, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
DESCRICAO, MEDIDA_ID, ID, POSTO_ID, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
DESCRICAO, MEDIDA_ID, ID, POSTO_ID, };
|
||||
|
||||
private String descricao;
|
||||
private Integer medida_id;
|
||||
private db.data.siprp.outer.PlanoMedidasData to_medida_id;
|
||||
private Integer id;
|
||||
private Integer posto_id;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public PlanoPostosTrabalho()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, false, false,
|
||||
false, false };
|
||||
}
|
||||
|
||||
public String getDescricao()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DESCRICAO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.descricao;
|
||||
}
|
||||
|
||||
public void setDescricao( String descricao )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( DESCRICAO, descricao );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.descricao = descricao;
|
||||
LAZY_LOADED_OBJECTS.put( DESCRICAO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getMedida_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( MEDIDA_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.medida_id;
|
||||
}
|
||||
|
||||
public void setMedida_id( Integer medida_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( MEDIDA_ID, medida_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.medida_id = medida_id;
|
||||
LAZY_LOADED_OBJECTS.put( MEDIDA_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public db.data.siprp.outer.PlanoMedidasData toMedida_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
prepare( TO_MEDIDA_ID );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return this.to_medida_id;
|
||||
}
|
||||
|
||||
public void setToMedida_id( db.data.siprp.outer.PlanoMedidasData to_medida_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( TO_MEDIDA_ID, to_medida_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.to_medida_id = to_medida_id;
|
||||
}
|
||||
|
||||
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 getPosto_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( POSTO_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.posto_id;
|
||||
}
|
||||
|
||||
public void setPosto_id( Integer posto_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( POSTO_ID, posto_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.posto_id = posto_id;
|
||||
LAZY_LOADED_OBJECTS.put( POSTO_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case PlanoPostosTrabalho.DESCRICAO_INDEX:
|
||||
value = getDescricao();
|
||||
break;
|
||||
case PlanoPostosTrabalho.MEDIDA_ID_INDEX:
|
||||
value = getMedida_id();
|
||||
break;
|
||||
case PlanoPostosTrabalho.TO_MEDIDA_ID_INDEX:
|
||||
value = toMedida_id();
|
||||
break;
|
||||
case PlanoPostosTrabalho.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case PlanoPostosTrabalho.POSTO_ID_INDEX:
|
||||
value = getPosto_id();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case PlanoPostosTrabalho.DESCRICAO_INDEX:
|
||||
value = this.descricao;
|
||||
break;
|
||||
case PlanoPostosTrabalho.MEDIDA_ID_INDEX:
|
||||
value = this.medida_id;
|
||||
break;
|
||||
case PlanoPostosTrabalho.TO_MEDIDA_ID_INDEX:
|
||||
value = this.to_medida_id;
|
||||
break;
|
||||
case PlanoPostosTrabalho.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case PlanoPostosTrabalho.POSTO_ID_INDEX:
|
||||
value = this.posto_id;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case PlanoPostosTrabalho.DESCRICAO_INDEX:
|
||||
setDescricao( ( String ) value );
|
||||
break;
|
||||
case PlanoPostosTrabalho.MEDIDA_ID_INDEX:
|
||||
setMedida_id( ( Integer ) value );
|
||||
break;
|
||||
case PlanoPostosTrabalho.TO_MEDIDA_ID_INDEX:
|
||||
setToMedida_id( ( db.data.siprp.outer.PlanoMedidasData ) value );
|
||||
break;
|
||||
case PlanoPostosTrabalho.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case PlanoPostosTrabalho.POSTO_ID_INDEX:
|
||||
setPosto_id( ( Integer ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case PlanoPostosTrabalho.DESCRICAO_INDEX:
|
||||
this.descricao = ( String ) value;
|
||||
break;
|
||||
case PlanoPostosTrabalho.MEDIDA_ID_INDEX:
|
||||
this.medida_id = ( Integer ) value;
|
||||
break;
|
||||
case PlanoPostosTrabalho.TO_MEDIDA_ID_INDEX:
|
||||
this.to_medida_id = ( db.data.siprp.outer.PlanoMedidasData ) value;
|
||||
break;
|
||||
case PlanoPostosTrabalho.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case PlanoPostosTrabalho.POSTO_ID_INDEX:
|
||||
this.posto_id = ( Integer ) value;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getFieldNamesFull()
|
||||
{
|
||||
return FIELD_NAMES_FULL;
|
||||
}
|
||||
|
||||
public String []getDBFieldNames()
|
||||
{
|
||||
return DB_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getPrimaryKeyNames()
|
||||
{
|
||||
return PK_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getDefaultLoadSet()
|
||||
{
|
||||
return DEFAULT_LOAD_SET;
|
||||
}
|
||||
|
||||
public String getPrimaryKeyName()
|
||||
{
|
||||
return PK_FIELD_NAMES[ 0 ];
|
||||
}
|
||||
|
||||
public Class<?> getFieldClass( String fieldName )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
Class<?> theClass = null;
|
||||
switch( index )
|
||||
{
|
||||
case PlanoPostosTrabalho.DESCRICAO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case PlanoPostosTrabalho.MEDIDA_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case PlanoPostosTrabalho.TO_MEDIDA_ID_INDEX:
|
||||
theClass = db.data.siprp.outer.PlanoMedidasData.class;
|
||||
break;
|
||||
case PlanoPostosTrabalho.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case PlanoPostosTrabalho.POSTO_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : PlanoPostosTrabalho._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, PlanoPostosTrabalho.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,952 @@
|
||||
/*
|
||||
* PlanoRiscos.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp.inner;
|
||||
|
||||
|
||||
public class PlanoRiscos extends com.evolute.entity.evo.EvoDataObject<com.evolute.entity.utils.IntegerPrimaryKey>
|
||||
{
|
||||
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||
|
||||
static
|
||||
{
|
||||
FIELD_INDEXES.put( PlanoRiscos.DESCRICAO, PlanoRiscos.DESCRICAO_INDEX );
|
||||
FIELD_INDEXES.put( PlanoRiscos.DESCRICAO_FULL, PlanoRiscos.DESCRICAO_INDEX );
|
||||
FIELD_INDEXES.put( PlanoRiscos.ACTIVO, PlanoRiscos.ACTIVO_INDEX );
|
||||
FIELD_INDEXES.put( PlanoRiscos.ACTIVO_FULL, PlanoRiscos.ACTIVO_INDEX );
|
||||
com.evolute.entity.evo.EvoDataObject.register( PlanoRiscos.CLASS_IDENTIFIER, PlanoRiscos.AREA_ID, PlanoRiscos.TO_AREA_ID );
|
||||
FIELD_INDEXES.put( PlanoRiscos.AREA_ID, PlanoRiscos.AREA_ID_INDEX );
|
||||
FIELD_INDEXES.put( PlanoRiscos.AREA_ID_FULL, PlanoRiscos.AREA_ID_INDEX );
|
||||
FIELD_INDEXES.put( PlanoRiscos.TO_AREA_ID, PlanoRiscos.TO_AREA_ID_INDEX );
|
||||
FIELD_INDEXES.put( PlanoRiscos.ID, PlanoRiscos.ID_INDEX );
|
||||
FIELD_INDEXES.put( PlanoRiscos.ID_FULL, PlanoRiscos.ID_INDEX );
|
||||
FIELD_INDEXES.put( PlanoRiscos.VALOR, PlanoRiscos.VALOR_INDEX );
|
||||
FIELD_INDEXES.put( PlanoRiscos.VALOR_FULL, PlanoRiscos.VALOR_INDEX );
|
||||
FIELD_INDEXES.put( PlanoRiscos.RESPONSAVEL_EXECUCAO, PlanoRiscos.RESPONSAVEL_EXECUCAO_INDEX );
|
||||
FIELD_INDEXES.put( PlanoRiscos.RESPONSAVEL_EXECUCAO_FULL, PlanoRiscos.RESPONSAVEL_EXECUCAO_INDEX );
|
||||
FIELD_INDEXES.put( PlanoRiscos.RECURSOS_NECESSARIOS, PlanoRiscos.RECURSOS_NECESSARIOS_INDEX );
|
||||
FIELD_INDEXES.put( PlanoRiscos.RECURSOS_NECESSARIOS_FULL, PlanoRiscos.RECURSOS_NECESSARIOS_INDEX );
|
||||
FIELD_INDEXES.put( PlanoRiscos.DATA_INICIO, PlanoRiscos.DATA_INICIO_INDEX );
|
||||
FIELD_INDEXES.put( PlanoRiscos.DATA_INICIO_FULL, PlanoRiscos.DATA_INICIO_INDEX );
|
||||
FIELD_INDEXES.put( PlanoRiscos.DATA_FIM, PlanoRiscos.DATA_FIM_INDEX );
|
||||
FIELD_INDEXES.put( PlanoRiscos.DATA_FIM_FULL, PlanoRiscos.DATA_FIM_INDEX );
|
||||
FIELD_INDEXES.put( PlanoRiscos.PARECER_DL, PlanoRiscos.PARECER_DL_INDEX );
|
||||
FIELD_INDEXES.put( PlanoRiscos.PARECER_DL_FULL, PlanoRiscos.PARECER_DL_INDEX );
|
||||
FIELD_INDEXES.put( PlanoRiscos.PARECER_DNS, PlanoRiscos.PARECER_DNS_INDEX );
|
||||
FIELD_INDEXES.put( PlanoRiscos.PARECER_DNS_FULL, PlanoRiscos.PARECER_DNS_INDEX );
|
||||
FIELD_INDEXES.put( PlanoRiscos.VERIFICACAO_SIPRP, PlanoRiscos.VERIFICACAO_SIPRP_INDEX );
|
||||
FIELD_INDEXES.put( PlanoRiscos.VERIFICACAO_SIPRP_FULL, PlanoRiscos.VERIFICACAO_SIPRP_INDEX );
|
||||
FIELD_INDEXES.put( PlanoRiscos.RISCO_ID, PlanoRiscos.RISCO_ID_INDEX );
|
||||
FIELD_INDEXES.put( PlanoRiscos.RISCO_ID_FULL, PlanoRiscos.RISCO_ID_INDEX );
|
||||
FIELD_INDEXES.put( PlanoRiscos.POR, PlanoRiscos.POR_INDEX );
|
||||
FIELD_INDEXES.put( PlanoRiscos.POR_FULL, PlanoRiscos.POR_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final com.evolute.entity.ForeignKey ForeignKeyarea_idToplano_areas =
|
||||
new com.evolute.entity.ForeignKey( PlanoRiscos.class, PlanoRiscos.AREA_ID, db.data.siprp.outer.PlanoAreasData.class, db.data.siprp.outer.PlanoAreasData.ID );
|
||||
|
||||
public static final String TABLENAME = "plano_riscos";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.plano_riscos";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String DESCRICAO = "descricao";
|
||||
public static final String DESCRICAO_FULL = "plano_riscos.descricao";
|
||||
public static final int DESCRICAO_INDEX = 0;
|
||||
public static final String ACTIVO = "activo";
|
||||
public static final String ACTIVO_FULL = "plano_riscos.activo";
|
||||
public static final int ACTIVO_INDEX = 1;
|
||||
public static final String AREA_ID = "area_id";
|
||||
public static final String AREA_ID_FULL = "plano_riscos.area_id";
|
||||
public static final int AREA_ID_INDEX = 2;
|
||||
public static final String TO_AREA_ID = "to_area_id";
|
||||
public static final String TO_AREA_ID_FULL = "plano_riscos.to_area_id";
|
||||
public static final int TO_AREA_ID_INDEX = 3;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "plano_riscos.id";
|
||||
public static final int ID_INDEX = 4;
|
||||
public static final String VALOR = "valor";
|
||||
public static final String VALOR_FULL = "plano_riscos.valor";
|
||||
public static final int VALOR_INDEX = 5;
|
||||
public static final String RESPONSAVEL_EXECUCAO = "responsavel_execucao";
|
||||
public static final String RESPONSAVEL_EXECUCAO_FULL = "plano_riscos.responsavel_execucao";
|
||||
public static final int RESPONSAVEL_EXECUCAO_INDEX = 6;
|
||||
public static final String RECURSOS_NECESSARIOS = "recursos_necessarios";
|
||||
public static final String RECURSOS_NECESSARIOS_FULL = "plano_riscos.recursos_necessarios";
|
||||
public static final int RECURSOS_NECESSARIOS_INDEX = 7;
|
||||
public static final String DATA_INICIO = "data_inicio";
|
||||
public static final String DATA_INICIO_FULL = "plano_riscos.data_inicio";
|
||||
public static final int DATA_INICIO_INDEX = 8;
|
||||
public static final String DATA_FIM = "data_fim";
|
||||
public static final String DATA_FIM_FULL = "plano_riscos.data_fim";
|
||||
public static final int DATA_FIM_INDEX = 9;
|
||||
public static final String PARECER_DL = "parecer_dl";
|
||||
public static final String PARECER_DL_FULL = "plano_riscos.parecer_dl";
|
||||
public static final int PARECER_DL_INDEX = 10;
|
||||
public static final String PARECER_DNS = "parecer_dns";
|
||||
public static final String PARECER_DNS_FULL = "plano_riscos.parecer_dns";
|
||||
public static final int PARECER_DNS_INDEX = 11;
|
||||
public static final String VERIFICACAO_SIPRP = "verificacao_siprp";
|
||||
public static final String VERIFICACAO_SIPRP_FULL = "plano_riscos.verificacao_siprp";
|
||||
public static final int VERIFICACAO_SIPRP_INDEX = 12;
|
||||
public static final String RISCO_ID = "risco_id";
|
||||
public static final String RISCO_ID_FULL = "plano_riscos.risco_id";
|
||||
public static final int RISCO_ID_INDEX = 13;
|
||||
public static final String POR = "por";
|
||||
public static final String POR_FULL = "plano_riscos.por";
|
||||
public static final int POR_INDEX = 14;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
DESCRICAO, ACTIVO, AREA_ID, TO_AREA_ID, VALOR, RESPONSAVEL_EXECUCAO,
|
||||
RECURSOS_NECESSARIOS, DATA_INICIO, DATA_FIM, PARECER_DL, PARECER_DNS,
|
||||
VERIFICACAO_SIPRP, RISCO_ID, POR, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + DESCRICAO, TABLENAME + "." + ACTIVO, TABLENAME + "." + AREA_ID, TABLENAME + "." + TO_AREA_ID, TABLENAME + "." + VALOR, TABLENAME + "." + RESPONSAVEL_EXECUCAO,
|
||||
TABLENAME + "." + RECURSOS_NECESSARIOS, TABLENAME + "." + DATA_INICIO, TABLENAME + "." + DATA_FIM, TABLENAME + "." + PARECER_DL, TABLENAME + "." + PARECER_DNS,
|
||||
TABLENAME + "." + VERIFICACAO_SIPRP, TABLENAME + "." + RISCO_ID, TABLENAME + "." + POR, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
DESCRICAO, ACTIVO, AREA_ID, ID, VALOR, RESPONSAVEL_EXECUCAO, RECURSOS_NECESSARIOS,
|
||||
DATA_INICIO, DATA_FIM, PARECER_DL, PARECER_DNS, VERIFICACAO_SIPRP, RISCO_ID, POR, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
DESCRICAO, ACTIVO, AREA_ID, ID, VALOR, RESPONSAVEL_EXECUCAO, RECURSOS_NECESSARIOS,
|
||||
DATA_INICIO, DATA_FIM, PARECER_DL, PARECER_DNS, VERIFICACAO_SIPRP, RISCO_ID, POR, };
|
||||
|
||||
private String descricao;
|
||||
private String activo;
|
||||
private Integer area_id;
|
||||
private db.data.siprp.outer.PlanoAreasData to_area_id;
|
||||
private Integer id;
|
||||
private Integer valor;
|
||||
private String responsavel_execucao;
|
||||
private String recursos_necessarios;
|
||||
private java.util.Date data_inicio;
|
||||
private java.util.Date data_fim;
|
||||
private String parecer_dl;
|
||||
private String parecer_dns;
|
||||
private String verificacao_siprp;
|
||||
private Integer risco_id;
|
||||
private String por;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public PlanoRiscos()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, false, false
|
||||
, false, false, false, false, false, false, false, false,
|
||||
false, false, false, false };
|
||||
}
|
||||
|
||||
public String getDescricao()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DESCRICAO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.descricao;
|
||||
}
|
||||
|
||||
public void setDescricao( String descricao )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( DESCRICAO, descricao );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.descricao = descricao;
|
||||
LAZY_LOADED_OBJECTS.put( DESCRICAO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getActivo()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ACTIVO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.activo;
|
||||
}
|
||||
|
||||
public void setActivo( String 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 Integer getArea_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( AREA_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.area_id;
|
||||
}
|
||||
|
||||
public void setArea_id( Integer area_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( AREA_ID, area_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.area_id = area_id;
|
||||
LAZY_LOADED_OBJECTS.put( AREA_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public db.data.siprp.outer.PlanoAreasData toArea_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
prepare( TO_AREA_ID );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return this.to_area_id;
|
||||
}
|
||||
|
||||
public void setToArea_id( db.data.siprp.outer.PlanoAreasData to_area_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( TO_AREA_ID, to_area_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.to_area_id = to_area_id;
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId( Integer id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ID, id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.id = id;
|
||||
LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public java.util.List<db.data.siprp.outer.PlanoMedidasData>fromPlanoMedidas_risco_id()
|
||||
{
|
||||
java.util.List<db.data.siprp.outer.PlanoMedidasData> result = null;
|
||||
try
|
||||
{
|
||||
result = fromReference( db.data.siprp.outer.PlanoMedidasData.class , getPrimaryKey().getMap().get("id"), "risco_id" );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public Integer getValor()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( VALOR );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.valor;
|
||||
}
|
||||
|
||||
public void setValor( Integer 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 String getResponsavel_execucao()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( RESPONSAVEL_EXECUCAO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.responsavel_execucao;
|
||||
}
|
||||
|
||||
public void setResponsavel_execucao( String responsavel_execucao )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( RESPONSAVEL_EXECUCAO, responsavel_execucao );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.responsavel_execucao = responsavel_execucao;
|
||||
LAZY_LOADED_OBJECTS.put( RESPONSAVEL_EXECUCAO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getRecursos_necessarios()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( RECURSOS_NECESSARIOS );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.recursos_necessarios;
|
||||
}
|
||||
|
||||
public void setRecursos_necessarios( String recursos_necessarios )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( RECURSOS_NECESSARIOS, recursos_necessarios );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.recursos_necessarios = recursos_necessarios;
|
||||
LAZY_LOADED_OBJECTS.put( RECURSOS_NECESSARIOS, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public java.util.Date getData_inicio()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DATA_INICIO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.data_inicio;
|
||||
}
|
||||
|
||||
public void setData_inicio( java.util.Date data_inicio )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( DATA_INICIO, data_inicio );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.data_inicio = data_inicio;
|
||||
LAZY_LOADED_OBJECTS.put( DATA_INICIO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public java.util.Date getData_fim()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DATA_FIM );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.data_fim;
|
||||
}
|
||||
|
||||
public void setData_fim( java.util.Date data_fim )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( DATA_FIM, data_fim );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.data_fim = data_fim;
|
||||
LAZY_LOADED_OBJECTS.put( DATA_FIM, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getParecer_dl()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( PARECER_DL );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.parecer_dl;
|
||||
}
|
||||
|
||||
public void setParecer_dl( String parecer_dl )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( PARECER_DL, parecer_dl );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.parecer_dl = parecer_dl;
|
||||
LAZY_LOADED_OBJECTS.put( PARECER_DL, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getParecer_dns()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( PARECER_DNS );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.parecer_dns;
|
||||
}
|
||||
|
||||
public void setParecer_dns( String parecer_dns )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( PARECER_DNS, parecer_dns );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.parecer_dns = parecer_dns;
|
||||
LAZY_LOADED_OBJECTS.put( PARECER_DNS, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getVerificacao_siprp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( VERIFICACAO_SIPRP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.verificacao_siprp;
|
||||
}
|
||||
|
||||
public void setVerificacao_siprp( String verificacao_siprp )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( VERIFICACAO_SIPRP, verificacao_siprp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.verificacao_siprp = verificacao_siprp;
|
||||
LAZY_LOADED_OBJECTS.put( VERIFICACAO_SIPRP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getRisco_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( RISCO_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.risco_id;
|
||||
}
|
||||
|
||||
public void setRisco_id( Integer risco_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( RISCO_ID, risco_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.risco_id = risco_id;
|
||||
LAZY_LOADED_OBJECTS.put( RISCO_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getPor()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( POR );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.por;
|
||||
}
|
||||
|
||||
public void setPor( String por )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( POR, por );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.por = por;
|
||||
LAZY_LOADED_OBJECTS.put( POR, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case PlanoRiscos.DESCRICAO_INDEX:
|
||||
value = getDescricao();
|
||||
break;
|
||||
case PlanoRiscos.ACTIVO_INDEX:
|
||||
value = getActivo();
|
||||
break;
|
||||
case PlanoRiscos.AREA_ID_INDEX:
|
||||
value = getArea_id();
|
||||
break;
|
||||
case PlanoRiscos.TO_AREA_ID_INDEX:
|
||||
value = toArea_id();
|
||||
break;
|
||||
case PlanoRiscos.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case PlanoRiscos.VALOR_INDEX:
|
||||
value = getValor();
|
||||
break;
|
||||
case PlanoRiscos.RESPONSAVEL_EXECUCAO_INDEX:
|
||||
value = getResponsavel_execucao();
|
||||
break;
|
||||
case PlanoRiscos.RECURSOS_NECESSARIOS_INDEX:
|
||||
value = getRecursos_necessarios();
|
||||
break;
|
||||
case PlanoRiscos.DATA_INICIO_INDEX:
|
||||
value = getData_inicio();
|
||||
break;
|
||||
case PlanoRiscos.DATA_FIM_INDEX:
|
||||
value = getData_fim();
|
||||
break;
|
||||
case PlanoRiscos.PARECER_DL_INDEX:
|
||||
value = getParecer_dl();
|
||||
break;
|
||||
case PlanoRiscos.PARECER_DNS_INDEX:
|
||||
value = getParecer_dns();
|
||||
break;
|
||||
case PlanoRiscos.VERIFICACAO_SIPRP_INDEX:
|
||||
value = getVerificacao_siprp();
|
||||
break;
|
||||
case PlanoRiscos.RISCO_ID_INDEX:
|
||||
value = getRisco_id();
|
||||
break;
|
||||
case PlanoRiscos.POR_INDEX:
|
||||
value = getPor();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case PlanoRiscos.DESCRICAO_INDEX:
|
||||
value = this.descricao;
|
||||
break;
|
||||
case PlanoRiscos.ACTIVO_INDEX:
|
||||
value = this.activo;
|
||||
break;
|
||||
case PlanoRiscos.AREA_ID_INDEX:
|
||||
value = this.area_id;
|
||||
break;
|
||||
case PlanoRiscos.TO_AREA_ID_INDEX:
|
||||
value = this.to_area_id;
|
||||
break;
|
||||
case PlanoRiscos.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case PlanoRiscos.VALOR_INDEX:
|
||||
value = this.valor;
|
||||
break;
|
||||
case PlanoRiscos.RESPONSAVEL_EXECUCAO_INDEX:
|
||||
value = this.responsavel_execucao;
|
||||
break;
|
||||
case PlanoRiscos.RECURSOS_NECESSARIOS_INDEX:
|
||||
value = this.recursos_necessarios;
|
||||
break;
|
||||
case PlanoRiscos.DATA_INICIO_INDEX:
|
||||
value = this.data_inicio;
|
||||
break;
|
||||
case PlanoRiscos.DATA_FIM_INDEX:
|
||||
value = this.data_fim;
|
||||
break;
|
||||
case PlanoRiscos.PARECER_DL_INDEX:
|
||||
value = this.parecer_dl;
|
||||
break;
|
||||
case PlanoRiscos.PARECER_DNS_INDEX:
|
||||
value = this.parecer_dns;
|
||||
break;
|
||||
case PlanoRiscos.VERIFICACAO_SIPRP_INDEX:
|
||||
value = this.verificacao_siprp;
|
||||
break;
|
||||
case PlanoRiscos.RISCO_ID_INDEX:
|
||||
value = this.risco_id;
|
||||
break;
|
||||
case PlanoRiscos.POR_INDEX:
|
||||
value = this.por;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case PlanoRiscos.DESCRICAO_INDEX:
|
||||
setDescricao( ( String ) value );
|
||||
break;
|
||||
case PlanoRiscos.ACTIVO_INDEX:
|
||||
setActivo( ( String ) value );
|
||||
break;
|
||||
case PlanoRiscos.AREA_ID_INDEX:
|
||||
setArea_id( ( Integer ) value );
|
||||
break;
|
||||
case PlanoRiscos.TO_AREA_ID_INDEX:
|
||||
setToArea_id( ( db.data.siprp.outer.PlanoAreasData ) value );
|
||||
break;
|
||||
case PlanoRiscos.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case PlanoRiscos.VALOR_INDEX:
|
||||
setValor( ( Integer ) value );
|
||||
break;
|
||||
case PlanoRiscos.RESPONSAVEL_EXECUCAO_INDEX:
|
||||
setResponsavel_execucao( ( String ) value );
|
||||
break;
|
||||
case PlanoRiscos.RECURSOS_NECESSARIOS_INDEX:
|
||||
setRecursos_necessarios( ( String ) value );
|
||||
break;
|
||||
case PlanoRiscos.DATA_INICIO_INDEX:
|
||||
setData_inicio( ( java.util.Date ) value );
|
||||
break;
|
||||
case PlanoRiscos.DATA_FIM_INDEX:
|
||||
setData_fim( ( java.util.Date ) value );
|
||||
break;
|
||||
case PlanoRiscos.PARECER_DL_INDEX:
|
||||
setParecer_dl( ( String ) value );
|
||||
break;
|
||||
case PlanoRiscos.PARECER_DNS_INDEX:
|
||||
setParecer_dns( ( String ) value );
|
||||
break;
|
||||
case PlanoRiscos.VERIFICACAO_SIPRP_INDEX:
|
||||
setVerificacao_siprp( ( String ) value );
|
||||
break;
|
||||
case PlanoRiscos.RISCO_ID_INDEX:
|
||||
setRisco_id( ( Integer ) value );
|
||||
break;
|
||||
case PlanoRiscos.POR_INDEX:
|
||||
setPor( ( String ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case PlanoRiscos.DESCRICAO_INDEX:
|
||||
this.descricao = ( String ) value;
|
||||
break;
|
||||
case PlanoRiscos.ACTIVO_INDEX:
|
||||
this.activo = ( String ) value;
|
||||
break;
|
||||
case PlanoRiscos.AREA_ID_INDEX:
|
||||
this.area_id = ( Integer ) value;
|
||||
break;
|
||||
case PlanoRiscos.TO_AREA_ID_INDEX:
|
||||
this.to_area_id = ( db.data.siprp.outer.PlanoAreasData ) value;
|
||||
break;
|
||||
case PlanoRiscos.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case PlanoRiscos.VALOR_INDEX:
|
||||
this.valor = ( Integer ) value;
|
||||
break;
|
||||
case PlanoRiscos.RESPONSAVEL_EXECUCAO_INDEX:
|
||||
this.responsavel_execucao = ( String ) value;
|
||||
break;
|
||||
case PlanoRiscos.RECURSOS_NECESSARIOS_INDEX:
|
||||
this.recursos_necessarios = ( String ) value;
|
||||
break;
|
||||
case PlanoRiscos.DATA_INICIO_INDEX:
|
||||
this.data_inicio = ( java.util.Date ) value;
|
||||
break;
|
||||
case PlanoRiscos.DATA_FIM_INDEX:
|
||||
this.data_fim = ( java.util.Date ) value;
|
||||
break;
|
||||
case PlanoRiscos.PARECER_DL_INDEX:
|
||||
this.parecer_dl = ( String ) value;
|
||||
break;
|
||||
case PlanoRiscos.PARECER_DNS_INDEX:
|
||||
this.parecer_dns = ( String ) value;
|
||||
break;
|
||||
case PlanoRiscos.VERIFICACAO_SIPRP_INDEX:
|
||||
this.verificacao_siprp = ( String ) value;
|
||||
break;
|
||||
case PlanoRiscos.RISCO_ID_INDEX:
|
||||
this.risco_id = ( Integer ) value;
|
||||
break;
|
||||
case PlanoRiscos.POR_INDEX:
|
||||
this.por = ( 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 PlanoRiscos.DESCRICAO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case PlanoRiscos.ACTIVO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case PlanoRiscos.AREA_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case PlanoRiscos.TO_AREA_ID_INDEX:
|
||||
theClass = db.data.siprp.outer.PlanoAreasData.class;
|
||||
break;
|
||||
case PlanoRiscos.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case PlanoRiscos.VALOR_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case PlanoRiscos.RESPONSAVEL_EXECUCAO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case PlanoRiscos.RECURSOS_NECESSARIOS_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case PlanoRiscos.DATA_INICIO_INDEX:
|
||||
theClass = java.util.Date.class;
|
||||
break;
|
||||
case PlanoRiscos.DATA_FIM_INDEX:
|
||||
theClass = java.util.Date.class;
|
||||
break;
|
||||
case PlanoRiscos.PARECER_DL_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case PlanoRiscos.PARECER_DNS_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case PlanoRiscos.VERIFICACAO_SIPRP_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case PlanoRiscos.RISCO_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case PlanoRiscos.POR_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : PlanoRiscos._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, PlanoRiscos.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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,178 @@
|
||||
/*
|
||||
* Properties.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp.inner;
|
||||
|
||||
|
||||
public class Properties extends com.evolute.entity.evo.EvoDataObject<com.evolute.entity.utils.ObjectPrimaryKey>
|
||||
{
|
||||
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||
|
||||
static
|
||||
{
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final String TABLENAME = "properties";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.properties";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
};
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
};
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
};
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
};
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
};
|
||||
|
||||
|
||||
protected com.evolute.entity.utils.ObjectPrimaryKey primaryKey;
|
||||
|
||||
public Properties()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ };
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
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()
|
||||
{
|
||||
throw new RuntimeException( "getPrimaryKeyName on Properties is invalid" );
|
||||
}
|
||||
|
||||
public Class<?> getFieldClass( String fieldName )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
Class<?> theClass = null;
|
||||
switch( index )
|
||||
{
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : Properties._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.ObjectPrimaryKey( TABLENAME, Properties.PK_FIELD_NAMES );
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public com.evolute.entity.utils.ObjectPrimaryKey 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,381 @@
|
||||
/*
|
||||
* Recomendacoes.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp.inner;
|
||||
|
||||
|
||||
public class Recomendacoes extends com.evolute.entity.evo.EvoDataObject<com.evolute.entity.utils.IntegerPrimaryKey>
|
||||
{
|
||||
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||
|
||||
static
|
||||
{
|
||||
FIELD_INDEXES.put( Recomendacoes.ID, Recomendacoes.ID_INDEX );
|
||||
FIELD_INDEXES.put( Recomendacoes.ID_FULL, Recomendacoes.ID_INDEX );
|
||||
com.evolute.entity.evo.EvoDataObject.register( Recomendacoes.CLASS_IDENTIFIER, Recomendacoes.ANALISE_ID, Recomendacoes.TO_ANALISE_ID );
|
||||
FIELD_INDEXES.put( Recomendacoes.ANALISE_ID, Recomendacoes.ANALISE_ID_INDEX );
|
||||
FIELD_INDEXES.put( Recomendacoes.ANALISE_ID_FULL, Recomendacoes.ANALISE_ID_INDEX );
|
||||
FIELD_INDEXES.put( Recomendacoes.TO_ANALISE_ID, Recomendacoes.TO_ANALISE_ID_INDEX );
|
||||
FIELD_INDEXES.put( Recomendacoes.RECOMENDACAO, Recomendacoes.RECOMENDACAO_INDEX );
|
||||
FIELD_INDEXES.put( Recomendacoes.RECOMENDACAO_FULL, Recomendacoes.RECOMENDACAO_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final com.evolute.entity.ForeignKey ForeignKeyanalise_idToanalises_acidentes =
|
||||
new com.evolute.entity.ForeignKey( Recomendacoes.class, Recomendacoes.ANALISE_ID, db.data.siprp.outer.AnalisesAcidentesData.class, db.data.siprp.outer.AnalisesAcidentesData.ID );
|
||||
|
||||
public static final String TABLENAME = "recomendacoes";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.recomendacoes";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "recomendacoes.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String ANALISE_ID = "analise_id";
|
||||
public static final String ANALISE_ID_FULL = "recomendacoes.analise_id";
|
||||
public static final int ANALISE_ID_INDEX = 1;
|
||||
public static final String TO_ANALISE_ID = "to_analise_id";
|
||||
public static final String TO_ANALISE_ID_FULL = "recomendacoes.to_analise_id";
|
||||
public static final int TO_ANALISE_ID_INDEX = 2;
|
||||
public static final String RECOMENDACAO = "recomendacao";
|
||||
public static final String RECOMENDACAO_FULL = "recomendacoes.recomendacao";
|
||||
public static final int RECOMENDACAO_INDEX = 3;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
ANALISE_ID, TO_ANALISE_ID, RECOMENDACAO, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + ANALISE_ID, TABLENAME + "." + TO_ANALISE_ID, TABLENAME + "." + RECOMENDACAO, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, ANALISE_ID, RECOMENDACAO, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, ANALISE_ID, RECOMENDACAO, };
|
||||
|
||||
private Integer id;
|
||||
private Integer analise_id;
|
||||
private db.data.siprp.outer.AnalisesAcidentesData to_analise_id;
|
||||
private String recomendacao;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public Recomendacoes()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, false, false,
|
||||
false };
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId( Integer id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ID, id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.id = id;
|
||||
LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getAnalise_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ANALISE_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.analise_id;
|
||||
}
|
||||
|
||||
public void setAnalise_id( Integer analise_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ANALISE_ID, analise_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.analise_id = analise_id;
|
||||
LAZY_LOADED_OBJECTS.put( ANALISE_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public db.data.siprp.outer.AnalisesAcidentesData toAnalise_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
prepare( TO_ANALISE_ID );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return this.to_analise_id;
|
||||
}
|
||||
|
||||
public void setToAnalise_id( db.data.siprp.outer.AnalisesAcidentesData to_analise_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( TO_ANALISE_ID, to_analise_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.to_analise_id = to_analise_id;
|
||||
}
|
||||
|
||||
public String getRecomendacao()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( RECOMENDACAO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.recomendacao;
|
||||
}
|
||||
|
||||
public void setRecomendacao( String recomendacao )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( RECOMENDACAO, recomendacao );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.recomendacao = recomendacao;
|
||||
LAZY_LOADED_OBJECTS.put( RECOMENDACAO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Recomendacoes.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case Recomendacoes.ANALISE_ID_INDEX:
|
||||
value = getAnalise_id();
|
||||
break;
|
||||
case Recomendacoes.TO_ANALISE_ID_INDEX:
|
||||
value = toAnalise_id();
|
||||
break;
|
||||
case Recomendacoes.RECOMENDACAO_INDEX:
|
||||
value = getRecomendacao();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Recomendacoes.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case Recomendacoes.ANALISE_ID_INDEX:
|
||||
value = this.analise_id;
|
||||
break;
|
||||
case Recomendacoes.TO_ANALISE_ID_INDEX:
|
||||
value = this.to_analise_id;
|
||||
break;
|
||||
case Recomendacoes.RECOMENDACAO_INDEX:
|
||||
value = this.recomendacao;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Recomendacoes.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case Recomendacoes.ANALISE_ID_INDEX:
|
||||
setAnalise_id( ( Integer ) value );
|
||||
break;
|
||||
case Recomendacoes.TO_ANALISE_ID_INDEX:
|
||||
setToAnalise_id( ( db.data.siprp.outer.AnalisesAcidentesData ) value );
|
||||
break;
|
||||
case Recomendacoes.RECOMENDACAO_INDEX:
|
||||
setRecomendacao( ( String ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Recomendacoes.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case Recomendacoes.ANALISE_ID_INDEX:
|
||||
this.analise_id = ( Integer ) value;
|
||||
break;
|
||||
case Recomendacoes.TO_ANALISE_ID_INDEX:
|
||||
this.to_analise_id = ( db.data.siprp.outer.AnalisesAcidentesData ) value;
|
||||
break;
|
||||
case Recomendacoes.RECOMENDACAO_INDEX:
|
||||
this.recomendacao = ( 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 Recomendacoes.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case Recomendacoes.ANALISE_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case Recomendacoes.TO_ANALISE_ID_INDEX:
|
||||
theClass = db.data.siprp.outer.AnalisesAcidentesData.class;
|
||||
break;
|
||||
case Recomendacoes.RECOMENDACAO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : Recomendacoes._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, Recomendacoes.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,178 @@
|
||||
/*
|
||||
* RiscoValoresTemp.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp.inner;
|
||||
|
||||
|
||||
public class RiscoValoresTemp extends com.evolute.entity.evo.EvoDataObject<com.evolute.entity.utils.ObjectPrimaryKey>
|
||||
{
|
||||
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||
|
||||
static
|
||||
{
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final String TABLENAME = "risco_valores_temp";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.risco_valores_temp";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
};
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
};
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
};
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
};
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
};
|
||||
|
||||
|
||||
protected com.evolute.entity.utils.ObjectPrimaryKey primaryKey;
|
||||
|
||||
public RiscoValoresTemp()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ };
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
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()
|
||||
{
|
||||
throw new RuntimeException( "getPrimaryKeyName on RiscoValoresTemp is invalid" );
|
||||
}
|
||||
|
||||
public Class<?> getFieldClass( String fieldName )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
Class<?> theClass = null;
|
||||
switch( index )
|
||||
{
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : RiscoValoresTemp._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.ObjectPrimaryKey( TABLENAME, RiscoValoresTemp.PK_FIELD_NAMES );
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public com.evolute.entity.utils.ObjectPrimaryKey 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,178 @@
|
||||
/*
|
||||
* Roles.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp.inner;
|
||||
|
||||
|
||||
public class Roles extends com.evolute.entity.evo.EvoDataObject<com.evolute.entity.utils.ObjectPrimaryKey>
|
||||
{
|
||||
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||
|
||||
static
|
||||
{
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final String TABLENAME = "roles";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.roles";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
};
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
};
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
};
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
};
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
};
|
||||
|
||||
|
||||
protected com.evolute.entity.utils.ObjectPrimaryKey primaryKey;
|
||||
|
||||
public Roles()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ };
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
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()
|
||||
{
|
||||
throw new RuntimeException( "getPrimaryKeyName on Roles is invalid" );
|
||||
}
|
||||
|
||||
public Class<?> getFieldClass( String fieldName )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
Class<?> theClass = null;
|
||||
switch( index )
|
||||
{
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : Roles._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.ObjectPrimaryKey( TABLENAME, Roles.PK_FIELD_NAMES );
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public com.evolute.entity.utils.ObjectPrimaryKey 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,445 @@
|
||||
/*
|
||||
* Seccoes.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp.inner;
|
||||
|
||||
|
||||
public class Seccoes extends com.evolute.entity.evo.EvoDataObject<com.evolute.entity.utils.IntegerPrimaryKey>
|
||||
{
|
||||
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||
|
||||
static
|
||||
{
|
||||
FIELD_INDEXES.put( Seccoes.ID, Seccoes.ID_INDEX );
|
||||
FIELD_INDEXES.put( Seccoes.ID_FULL, Seccoes.ID_INDEX );
|
||||
FIELD_INDEXES.put( Seccoes.DESCRICAO, Seccoes.DESCRICAO_INDEX );
|
||||
FIELD_INDEXES.put( Seccoes.DESCRICAO_FULL, Seccoes.DESCRICAO_INDEX );
|
||||
com.evolute.entity.evo.EvoDataObject.register( Seccoes.CLASS_IDENTIFIER, Seccoes.DEPARTAMENTO_ID, Seccoes.TO_DEPARTAMENTO_ID );
|
||||
FIELD_INDEXES.put( Seccoes.DEPARTAMENTO_ID, Seccoes.DEPARTAMENTO_ID_INDEX );
|
||||
FIELD_INDEXES.put( Seccoes.DEPARTAMENTO_ID_FULL, Seccoes.DEPARTAMENTO_ID_INDEX );
|
||||
FIELD_INDEXES.put( Seccoes.TO_DEPARTAMENTO_ID, Seccoes.TO_DEPARTAMENTO_ID_INDEX );
|
||||
FIELD_INDEXES.put( Seccoes.ACTIVO, Seccoes.ACTIVO_INDEX );
|
||||
FIELD_INDEXES.put( Seccoes.ACTIVO_FULL, Seccoes.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 ForeignKeydepartamento_idTodepartamentos =
|
||||
new com.evolute.entity.ForeignKey( Seccoes.class, Seccoes.DEPARTAMENTO_ID, db.data.siprp.outer.DepartamentosData.class, db.data.siprp.outer.DepartamentosData.ID );
|
||||
|
||||
public static final String TABLENAME = "seccoes";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.seccoes";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "seccoes.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String DESCRICAO = "descricao";
|
||||
public static final String DESCRICAO_FULL = "seccoes.descricao";
|
||||
public static final int DESCRICAO_INDEX = 1;
|
||||
public static final String DEPARTAMENTO_ID = "departamento_id";
|
||||
public static final String DEPARTAMENTO_ID_FULL = "seccoes.departamento_id";
|
||||
public static final int DEPARTAMENTO_ID_INDEX = 2;
|
||||
public static final String TO_DEPARTAMENTO_ID = "to_departamento_id";
|
||||
public static final String TO_DEPARTAMENTO_ID_FULL = "seccoes.to_departamento_id";
|
||||
public static final int TO_DEPARTAMENTO_ID_INDEX = 3;
|
||||
public static final String ACTIVO = "activo";
|
||||
public static final String ACTIVO_FULL = "seccoes.activo";
|
||||
public static final int ACTIVO_INDEX = 4;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
DESCRICAO, DEPARTAMENTO_ID, TO_DEPARTAMENTO_ID, ACTIVO, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + DESCRICAO, TABLENAME + "." + DEPARTAMENTO_ID, TABLENAME + "." + TO_DEPARTAMENTO_ID, TABLENAME + "." + ACTIVO, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, DESCRICAO, DEPARTAMENTO_ID, ACTIVO, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, DESCRICAO, DEPARTAMENTO_ID, ACTIVO, };
|
||||
|
||||
private Integer id;
|
||||
private String descricao;
|
||||
private Integer departamento_id;
|
||||
private db.data.siprp.outer.DepartamentosData to_departamento_id;
|
||||
private String activo;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public Seccoes()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, false, false
|
||||
, false, false };
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId( Integer id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ID, id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.id = id;
|
||||
LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public java.util.List<db.data.siprp.outer.AnalisesAcidentesData>fromAnalisesAcidentes_seccao_id()
|
||||
{
|
||||
java.util.List<db.data.siprp.outer.AnalisesAcidentesData> result = null;
|
||||
try
|
||||
{
|
||||
result = fromReference( db.data.siprp.outer.AnalisesAcidentesData.class , getPrimaryKey().getMap().get("id"), "seccao_id" );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public String getDescricao()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DESCRICAO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.descricao;
|
||||
}
|
||||
|
||||
public void setDescricao( String descricao )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( DESCRICAO, descricao );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.descricao = descricao;
|
||||
LAZY_LOADED_OBJECTS.put( DESCRICAO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getDepartamento_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DEPARTAMENTO_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.departamento_id;
|
||||
}
|
||||
|
||||
public void setDepartamento_id( Integer departamento_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( DEPARTAMENTO_ID, departamento_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.departamento_id = departamento_id;
|
||||
LAZY_LOADED_OBJECTS.put( DEPARTAMENTO_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public db.data.siprp.outer.DepartamentosData toDepartamento_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
prepare( TO_DEPARTAMENTO_ID );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return this.to_departamento_id;
|
||||
}
|
||||
|
||||
public void setToDepartamento_id( db.data.siprp.outer.DepartamentosData to_departamento_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( TO_DEPARTAMENTO_ID, to_departamento_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.to_departamento_id = to_departamento_id;
|
||||
}
|
||||
|
||||
public String getActivo()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ACTIVO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.activo;
|
||||
}
|
||||
|
||||
public void setActivo( String 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 Seccoes.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case Seccoes.DESCRICAO_INDEX:
|
||||
value = getDescricao();
|
||||
break;
|
||||
case Seccoes.DEPARTAMENTO_ID_INDEX:
|
||||
value = getDepartamento_id();
|
||||
break;
|
||||
case Seccoes.TO_DEPARTAMENTO_ID_INDEX:
|
||||
value = toDepartamento_id();
|
||||
break;
|
||||
case Seccoes.ACTIVO_INDEX:
|
||||
value = getActivo();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Seccoes.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case Seccoes.DESCRICAO_INDEX:
|
||||
value = this.descricao;
|
||||
break;
|
||||
case Seccoes.DEPARTAMENTO_ID_INDEX:
|
||||
value = this.departamento_id;
|
||||
break;
|
||||
case Seccoes.TO_DEPARTAMENTO_ID_INDEX:
|
||||
value = this.to_departamento_id;
|
||||
break;
|
||||
case Seccoes.ACTIVO_INDEX:
|
||||
value = this.activo;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Seccoes.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case Seccoes.DESCRICAO_INDEX:
|
||||
setDescricao( ( String ) value );
|
||||
break;
|
||||
case Seccoes.DEPARTAMENTO_ID_INDEX:
|
||||
setDepartamento_id( ( Integer ) value );
|
||||
break;
|
||||
case Seccoes.TO_DEPARTAMENTO_ID_INDEX:
|
||||
setToDepartamento_id( ( db.data.siprp.outer.DepartamentosData ) value );
|
||||
break;
|
||||
case Seccoes.ACTIVO_INDEX:
|
||||
setActivo( ( String ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Seccoes.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case Seccoes.DESCRICAO_INDEX:
|
||||
this.descricao = ( String ) value;
|
||||
break;
|
||||
case Seccoes.DEPARTAMENTO_ID_INDEX:
|
||||
this.departamento_id = ( Integer ) value;
|
||||
break;
|
||||
case Seccoes.TO_DEPARTAMENTO_ID_INDEX:
|
||||
this.to_departamento_id = ( db.data.siprp.outer.DepartamentosData ) value;
|
||||
break;
|
||||
case Seccoes.ACTIVO_INDEX:
|
||||
this.activo = ( 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 Seccoes.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case Seccoes.DESCRICAO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case Seccoes.DEPARTAMENTO_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case Seccoes.TO_DEPARTAMENTO_ID_INDEX:
|
||||
theClass = db.data.siprp.outer.DepartamentosData.class;
|
||||
break;
|
||||
case Seccoes.ACTIVO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : Seccoes._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, Seccoes.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,343 @@
|
||||
/*
|
||||
* TiposExamesComp.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp.inner;
|
||||
|
||||
|
||||
public class TiposExamesComp extends com.evolute.entity.evo.EvoDataObject<com.evolute.entity.utils.IntegerPrimaryKey>
|
||||
{
|
||||
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||
|
||||
static
|
||||
{
|
||||
FIELD_INDEXES.put( TiposExamesComp.ID, TiposExamesComp.ID_INDEX );
|
||||
FIELD_INDEXES.put( TiposExamesComp.ID_FULL, TiposExamesComp.ID_INDEX );
|
||||
FIELD_INDEXES.put( TiposExamesComp.ORDEM, TiposExamesComp.ORDEM_INDEX );
|
||||
FIELD_INDEXES.put( TiposExamesComp.ORDEM_FULL, TiposExamesComp.ORDEM_INDEX );
|
||||
FIELD_INDEXES.put( TiposExamesComp.DESCRICAO, TiposExamesComp.DESCRICAO_INDEX );
|
||||
FIELD_INDEXES.put( TiposExamesComp.DESCRICAO_FULL, TiposExamesComp.DESCRICAO_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final String TABLENAME = "tipos_exames_comp";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.tipos_exames_comp";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "tipos_exames_comp.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String ORDEM = "ordem";
|
||||
public static final String ORDEM_FULL = "tipos_exames_comp.ordem";
|
||||
public static final int ORDEM_INDEX = 1;
|
||||
public static final String DESCRICAO = "descricao";
|
||||
public static final String DESCRICAO_FULL = "tipos_exames_comp.descricao";
|
||||
public static final int DESCRICAO_INDEX = 2;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
ORDEM, DESCRICAO, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + ORDEM, TABLENAME + "." + DESCRICAO, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, ORDEM, DESCRICAO, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, ORDEM, DESCRICAO, };
|
||||
|
||||
private Integer id;
|
||||
private Integer ordem;
|
||||
private String descricao;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public TiposExamesComp()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, false, false };
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId( Integer id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ID, id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.id = id;
|
||||
LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public java.util.List<db.data.siprp.outer.ExamesPerfisData>fromExamesPerfis_tipo()
|
||||
{
|
||||
java.util.List<db.data.siprp.outer.ExamesPerfisData> result = null;
|
||||
try
|
||||
{
|
||||
result = fromReference( db.data.siprp.outer.ExamesPerfisData.class , getPrimaryKey().getMap().get("id"), "tipo" );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public Integer getOrdem()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ORDEM );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.ordem;
|
||||
}
|
||||
|
||||
public void setOrdem( Integer ordem )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ORDEM, ordem );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.ordem = ordem;
|
||||
LAZY_LOADED_OBJECTS.put( ORDEM, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getDescricao()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DESCRICAO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.descricao;
|
||||
}
|
||||
|
||||
public void setDescricao( String descricao )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( DESCRICAO, descricao );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.descricao = descricao;
|
||||
LAZY_LOADED_OBJECTS.put( DESCRICAO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case TiposExamesComp.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case TiposExamesComp.ORDEM_INDEX:
|
||||
value = getOrdem();
|
||||
break;
|
||||
case TiposExamesComp.DESCRICAO_INDEX:
|
||||
value = getDescricao();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case TiposExamesComp.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case TiposExamesComp.ORDEM_INDEX:
|
||||
value = this.ordem;
|
||||
break;
|
||||
case TiposExamesComp.DESCRICAO_INDEX:
|
||||
value = this.descricao;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case TiposExamesComp.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case TiposExamesComp.ORDEM_INDEX:
|
||||
setOrdem( ( Integer ) value );
|
||||
break;
|
||||
case TiposExamesComp.DESCRICAO_INDEX:
|
||||
setDescricao( ( String ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case TiposExamesComp.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case TiposExamesComp.ORDEM_INDEX:
|
||||
this.ordem = ( Integer ) value;
|
||||
break;
|
||||
case TiposExamesComp.DESCRICAO_INDEX:
|
||||
this.descricao = ( String ) value;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getFieldNamesFull()
|
||||
{
|
||||
return FIELD_NAMES_FULL;
|
||||
}
|
||||
|
||||
public String []getDBFieldNames()
|
||||
{
|
||||
return DB_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getPrimaryKeyNames()
|
||||
{
|
||||
return PK_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getDefaultLoadSet()
|
||||
{
|
||||
return DEFAULT_LOAD_SET;
|
||||
}
|
||||
|
||||
public String getPrimaryKeyName()
|
||||
{
|
||||
return PK_FIELD_NAMES[ 0 ];
|
||||
}
|
||||
|
||||
public Class<?> getFieldClass( String fieldName )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
Class<?> theClass = null;
|
||||
switch( index )
|
||||
{
|
||||
case TiposExamesComp.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case TiposExamesComp.ORDEM_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case TiposExamesComp.DESCRICAO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : TiposExamesComp._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, TiposExamesComp.PK_FIELD_NAMES );
|
||||
primaryKey.set( 0, getId() );
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
|
||||
{
|
||||
return primaryKey;
|
||||
}
|
||||
|
||||
public void initLazyLoadFields()
|
||||
{
|
||||
}
|
||||
|
||||
public boolean isPropertyLoaded( String fieldName )
|
||||
{
|
||||
if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return LAZY_LOADED_OBJECTS.get( fieldName );
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,431 @@
|
||||
/*
|
||||
* TiposUtilizadores.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp.inner;
|
||||
|
||||
|
||||
public class TiposUtilizadores extends com.evolute.entity.evo.EvoDataObject<com.evolute.entity.utils.IntegerPrimaryKey>
|
||||
{
|
||||
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||
|
||||
static
|
||||
{
|
||||
FIELD_INDEXES.put( TiposUtilizadores.ID, TiposUtilizadores.ID_INDEX );
|
||||
FIELD_INDEXES.put( TiposUtilizadores.ID_FULL, TiposUtilizadores.ID_INDEX );
|
||||
FIELD_INDEXES.put( TiposUtilizadores.TIPO, TiposUtilizadores.TIPO_INDEX );
|
||||
FIELD_INDEXES.put( TiposUtilizadores.TIPO_FULL, TiposUtilizadores.TIPO_INDEX );
|
||||
FIELD_INDEXES.put( TiposUtilizadores.DESCRICAO, TiposUtilizadores.DESCRICAO_INDEX );
|
||||
FIELD_INDEXES.put( TiposUtilizadores.DESCRICAO_FULL, TiposUtilizadores.DESCRICAO_INDEX );
|
||||
FIELD_INDEXES.put( TiposUtilizadores.ACTIVO, TiposUtilizadores.ACTIVO_INDEX );
|
||||
FIELD_INDEXES.put( TiposUtilizadores.ACTIVO_FULL, TiposUtilizadores.ACTIVO_INDEX );
|
||||
FIELD_INDEXES.put( TiposUtilizadores.ORDEM, TiposUtilizadores.ORDEM_INDEX );
|
||||
FIELD_INDEXES.put( TiposUtilizadores.ORDEM_FULL, TiposUtilizadores.ORDEM_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final String TABLENAME = "tipos_utilizadores";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.tipos_utilizadores";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "tipos_utilizadores.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String TIPO = "tipo";
|
||||
public static final String TIPO_FULL = "tipos_utilizadores.tipo";
|
||||
public static final int TIPO_INDEX = 1;
|
||||
public static final String DESCRICAO = "descricao";
|
||||
public static final String DESCRICAO_FULL = "tipos_utilizadores.descricao";
|
||||
public static final int DESCRICAO_INDEX = 2;
|
||||
public static final String ACTIVO = "activo";
|
||||
public static final String ACTIVO_FULL = "tipos_utilizadores.activo";
|
||||
public static final int ACTIVO_INDEX = 3;
|
||||
public static final String ORDEM = "ordem";
|
||||
public static final String ORDEM_FULL = "tipos_utilizadores.ordem";
|
||||
public static final int ORDEM_INDEX = 4;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
TIPO, DESCRICAO, ACTIVO, ORDEM, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + TIPO, TABLENAME + "." + DESCRICAO, TABLENAME + "." + ACTIVO, TABLENAME + "." + ORDEM, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, TIPO, DESCRICAO, ACTIVO, ORDEM, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, TIPO, DESCRICAO, ACTIVO, ORDEM, };
|
||||
|
||||
private Integer id;
|
||||
private Integer tipo;
|
||||
private String descricao;
|
||||
private String activo;
|
||||
private Integer ordem;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public TiposUtilizadores()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, false, false,
|
||||
false, false };
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId( Integer id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ID, id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.id = id;
|
||||
LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getTipo()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( TIPO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.tipo;
|
||||
}
|
||||
|
||||
public void setTipo( Integer tipo )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( TIPO, tipo );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.tipo = tipo;
|
||||
LAZY_LOADED_OBJECTS.put( TIPO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getDescricao()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DESCRICAO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.descricao;
|
||||
}
|
||||
|
||||
public void setDescricao( String descricao )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( DESCRICAO, descricao );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.descricao = descricao;
|
||||
LAZY_LOADED_OBJECTS.put( DESCRICAO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getActivo()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ACTIVO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.activo;
|
||||
}
|
||||
|
||||
public void setActivo( String 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 Integer getOrdem()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ORDEM );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.ordem;
|
||||
}
|
||||
|
||||
public void setOrdem( Integer ordem )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ORDEM, ordem );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.ordem = ordem;
|
||||
LAZY_LOADED_OBJECTS.put( ORDEM, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case TiposUtilizadores.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case TiposUtilizadores.TIPO_INDEX:
|
||||
value = getTipo();
|
||||
break;
|
||||
case TiposUtilizadores.DESCRICAO_INDEX:
|
||||
value = getDescricao();
|
||||
break;
|
||||
case TiposUtilizadores.ACTIVO_INDEX:
|
||||
value = getActivo();
|
||||
break;
|
||||
case TiposUtilizadores.ORDEM_INDEX:
|
||||
value = getOrdem();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case TiposUtilizadores.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case TiposUtilizadores.TIPO_INDEX:
|
||||
value = this.tipo;
|
||||
break;
|
||||
case TiposUtilizadores.DESCRICAO_INDEX:
|
||||
value = this.descricao;
|
||||
break;
|
||||
case TiposUtilizadores.ACTIVO_INDEX:
|
||||
value = this.activo;
|
||||
break;
|
||||
case TiposUtilizadores.ORDEM_INDEX:
|
||||
value = this.ordem;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case TiposUtilizadores.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case TiposUtilizadores.TIPO_INDEX:
|
||||
setTipo( ( Integer ) value );
|
||||
break;
|
||||
case TiposUtilizadores.DESCRICAO_INDEX:
|
||||
setDescricao( ( String ) value );
|
||||
break;
|
||||
case TiposUtilizadores.ACTIVO_INDEX:
|
||||
setActivo( ( String ) value );
|
||||
break;
|
||||
case TiposUtilizadores.ORDEM_INDEX:
|
||||
setOrdem( ( Integer ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case TiposUtilizadores.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case TiposUtilizadores.TIPO_INDEX:
|
||||
this.tipo = ( Integer ) value;
|
||||
break;
|
||||
case TiposUtilizadores.DESCRICAO_INDEX:
|
||||
this.descricao = ( String ) value;
|
||||
break;
|
||||
case TiposUtilizadores.ACTIVO_INDEX:
|
||||
this.activo = ( String ) value;
|
||||
break;
|
||||
case TiposUtilizadores.ORDEM_INDEX:
|
||||
this.ordem = ( Integer ) value;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getFieldNamesFull()
|
||||
{
|
||||
return FIELD_NAMES_FULL;
|
||||
}
|
||||
|
||||
public String []getDBFieldNames()
|
||||
{
|
||||
return DB_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getPrimaryKeyNames()
|
||||
{
|
||||
return PK_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getDefaultLoadSet()
|
||||
{
|
||||
return DEFAULT_LOAD_SET;
|
||||
}
|
||||
|
||||
public String getPrimaryKeyName()
|
||||
{
|
||||
return PK_FIELD_NAMES[ 0 ];
|
||||
}
|
||||
|
||||
public Class<?> getFieldClass( String fieldName )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
Class<?> theClass = null;
|
||||
switch( index )
|
||||
{
|
||||
case TiposUtilizadores.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case TiposUtilizadores.TIPO_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case TiposUtilizadores.DESCRICAO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case TiposUtilizadores.ACTIVO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case TiposUtilizadores.ORDEM_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : TiposUtilizadores._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, TiposUtilizadores.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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,178 @@
|
||||
/*
|
||||
* Users.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp.inner;
|
||||
|
||||
|
||||
public class Users extends com.evolute.entity.evo.EvoDataObject<com.evolute.entity.utils.ObjectPrimaryKey>
|
||||
{
|
||||
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||
|
||||
static
|
||||
{
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final String TABLENAME = "users";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.users";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
};
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
};
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
};
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
};
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
};
|
||||
|
||||
|
||||
protected com.evolute.entity.utils.ObjectPrimaryKey primaryKey;
|
||||
|
||||
public Users()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ };
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
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()
|
||||
{
|
||||
throw new RuntimeException( "getPrimaryKeyName on Users is invalid" );
|
||||
}
|
||||
|
||||
public Class<?> getFieldClass( String fieldName )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
Class<?> theClass = null;
|
||||
switch( index )
|
||||
{
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : Users._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.ObjectPrimaryKey( TABLENAME, Users.PK_FIELD_NAMES );
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public com.evolute.entity.utils.ObjectPrimaryKey getPrimaryKey()
|
||||
{
|
||||
return primaryKey;
|
||||
}
|
||||
|
||||
public void initLazyLoadFields()
|
||||
{
|
||||
}
|
||||
|
||||
public boolean isPropertyLoaded( String fieldName )
|
||||
{
|
||||
if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return LAZY_LOADED_OBJECTS.get( fieldName );
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,330 @@
|
||||
/*
|
||||
* Version.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package db.data.siprp.inner;
|
||||
|
||||
|
||||
public class Version extends com.evolute.entity.evo.EvoDataObject<com.evolute.entity.utils.IntegerPrimaryKey>
|
||||
{
|
||||
private static final java.util.HashMap<String,Integer> FIELD_INDEXES = new java.util.HashMap<String,Integer>();
|
||||
|
||||
static
|
||||
{
|
||||
FIELD_INDEXES.put( Version.CURRENT_VERSION, Version.CURRENT_VERSION_INDEX );
|
||||
FIELD_INDEXES.put( Version.CURRENT_VERSION_FULL, Version.CURRENT_VERSION_INDEX );
|
||||
FIELD_INDEXES.put( Version.ID, Version.ID_INDEX );
|
||||
FIELD_INDEXES.put( Version.ID_FULL, Version.ID_INDEX );
|
||||
FIELD_INDEXES.put( Version.MODULE_NAME, Version.MODULE_NAME_INDEX );
|
||||
FIELD_INDEXES.put( Version.MODULE_NAME_FULL, Version.MODULE_NAME_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final String TABLENAME = "version";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "db.data.siprp.inner.version";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String CURRENT_VERSION = "current_version";
|
||||
public static final String CURRENT_VERSION_FULL = "version.current_version";
|
||||
public static final int CURRENT_VERSION_INDEX = 0;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "version.id";
|
||||
public static final int ID_INDEX = 1;
|
||||
public static final String MODULE_NAME = "module_name";
|
||||
public static final String MODULE_NAME_FULL = "version.module_name";
|
||||
public static final int MODULE_NAME_INDEX = 2;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
CURRENT_VERSION, MODULE_NAME, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + CURRENT_VERSION, TABLENAME + "." + MODULE_NAME, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
CURRENT_VERSION, ID, MODULE_NAME, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
CURRENT_VERSION, ID, MODULE_NAME, };
|
||||
|
||||
private Double current_version;
|
||||
private Integer id;
|
||||
private String module_name;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public Version()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, false, false };
|
||||
}
|
||||
|
||||
public Double getCurrent_version()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CURRENT_VERSION );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.current_version;
|
||||
}
|
||||
|
||||
public void setCurrent_version( Double current_version )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( CURRENT_VERSION, current_version );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.current_version = current_version;
|
||||
LAZY_LOADED_OBJECTS.put( CURRENT_VERSION, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId( Integer id )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( ID, id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.id = id;
|
||||
LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getModule_name()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( MODULE_NAME );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.module_name;
|
||||
}
|
||||
|
||||
public void setModule_name( String module_name )
|
||||
{
|
||||
try
|
||||
{
|
||||
setLockedForRefresh( true );
|
||||
preProcess( MODULE_NAME, module_name );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.module_name = module_name;
|
||||
LAZY_LOADED_OBJECTS.put( MODULE_NAME, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Version.CURRENT_VERSION_INDEX:
|
||||
value = getCurrent_version();
|
||||
break;
|
||||
case Version.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case Version.MODULE_NAME_INDEX:
|
||||
value = getModule_name();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Version.CURRENT_VERSION_INDEX:
|
||||
value = this.current_version;
|
||||
break;
|
||||
case Version.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case Version.MODULE_NAME_INDEX:
|
||||
value = this.module_name;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Version.CURRENT_VERSION_INDEX:
|
||||
setCurrent_version( ( Double ) value );
|
||||
break;
|
||||
case Version.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case Version.MODULE_NAME_INDEX:
|
||||
setModule_name( ( String ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case Version.CURRENT_VERSION_INDEX:
|
||||
this.current_version = ( Double ) value;
|
||||
break;
|
||||
case Version.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case Version.MODULE_NAME_INDEX:
|
||||
this.module_name = ( 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 Version.CURRENT_VERSION_INDEX:
|
||||
theClass = Double.class;
|
||||
break;
|
||||
case Version.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case Version.MODULE_NAME_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : Version._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, Version.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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* AcidentadosData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package db.data.siprp.outer;
|
||||
|
||||
|
||||
public final class AcidentadosData extends db.data.siprp.inner.Acidentados
|
||||
{
|
||||
|
||||
public AcidentadosData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* ActualizacaoData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package db.data.siprp.outer;
|
||||
|
||||
|
||||
public final class ActualizacaoData extends db.data.siprp.inner.Actualizacao
|
||||
{
|
||||
|
||||
public ActualizacaoData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* AnalisesAcidentesData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package db.data.siprp.outer;
|
||||
|
||||
|
||||
public final class AnalisesAcidentesData extends db.data.siprp.inner.AnalisesAcidentes
|
||||
{
|
||||
|
||||
public AnalisesAcidentesData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* AvisosData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package db.data.siprp.outer;
|
||||
|
||||
|
||||
public final class AvisosData extends db.data.siprp.inner.Avisos
|
||||
{
|
||||
|
||||
public AvisosData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* CausasData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package db.data.siprp.outer;
|
||||
|
||||
|
||||
public final class CausasData extends db.data.siprp.inner.Causas
|
||||
{
|
||||
|
||||
public CausasData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* ContactosData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package db.data.siprp.outer;
|
||||
|
||||
|
||||
public final class ContactosData extends db.data.siprp.inner.Contactos
|
||||
{
|
||||
|
||||
public ContactosData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* ControleData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package db.data.siprp.outer;
|
||||
|
||||
|
||||
public final class ControleData extends db.data.siprp.inner.Controle
|
||||
{
|
||||
|
||||
public ControleData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* DepartamentosData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package db.data.siprp.outer;
|
||||
|
||||
|
||||
public final class DepartamentosData extends db.data.siprp.inner.Departamentos
|
||||
{
|
||||
|
||||
public DepartamentosData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* EmpresasData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package db.data.siprp.outer;
|
||||
|
||||
|
||||
public final class EmpresasData extends db.data.siprp.inner.Empresas
|
||||
{
|
||||
|
||||
public EmpresasData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* ErrorsData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package db.data.siprp.outer;
|
||||
|
||||
|
||||
public final class ErrorsData extends db.data.siprp.inner.Errors
|
||||
{
|
||||
|
||||
public ErrorsData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* EstabelecimentosData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package db.data.siprp.outer;
|
||||
|
||||
|
||||
public final class EstabelecimentosData extends db.data.siprp.inner.Estabelecimentos
|
||||
{
|
||||
|
||||
public EstabelecimentosData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* EstadoMedidasData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package db.data.siprp.outer;
|
||||
|
||||
|
||||
public final class EstadoMedidasData extends db.data.siprp.inner.EstadoMedidas
|
||||
{
|
||||
|
||||
public EstadoMedidasData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* ExamesData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package db.data.siprp.outer;
|
||||
|
||||
|
||||
public final class ExamesData extends db.data.siprp.inner.Exames
|
||||
{
|
||||
|
||||
public ExamesData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* ExamesPerfisData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package db.data.siprp.outer;
|
||||
|
||||
|
||||
public final class ExamesPerfisData extends db.data.siprp.inner.ExamesPerfis
|
||||
{
|
||||
|
||||
public ExamesPerfisData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* HistoricoEstabelecimentoData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package db.data.siprp.outer;
|
||||
|
||||
|
||||
public final class HistoricoEstabelecimentoData extends db.data.siprp.inner.HistoricoEstabelecimento
|
||||
{
|
||||
|
||||
public HistoricoEstabelecimentoData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* MarcacoesEmpresaData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package db.data.siprp.outer;
|
||||
|
||||
|
||||
public final class MarcacoesEmpresaData extends db.data.siprp.inner.MarcacoesEmpresa
|
||||
{
|
||||
|
||||
public MarcacoesEmpresaData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* MarcacoesEstabelecimentoData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package db.data.siprp.outer;
|
||||
|
||||
|
||||
public final class MarcacoesEstabelecimentoData extends db.data.siprp.inner.MarcacoesEstabelecimento
|
||||
{
|
||||
|
||||
public MarcacoesEstabelecimentoData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* MarcacoesTrabalhadorData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package db.data.siprp.outer;
|
||||
|
||||
|
||||
public final class MarcacoesTrabalhadorData extends db.data.siprp.inner.MarcacoesTrabalhador
|
||||
{
|
||||
|
||||
public MarcacoesTrabalhadorData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* MedicosData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package db.data.siprp.outer;
|
||||
|
||||
|
||||
public final class MedicosData extends db.data.siprp.inner.Medicos
|
||||
{
|
||||
|
||||
public MedicosData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* MedidasData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package db.data.siprp.outer;
|
||||
|
||||
|
||||
public final class MedidasData extends db.data.siprp.inner.Medidas
|
||||
{
|
||||
|
||||
public MedidasData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* NotNoticiasData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package db.data.siprp.outer;
|
||||
|
||||
|
||||
public final class NotNoticiasData extends db.data.siprp.inner.NotNoticias
|
||||
{
|
||||
|
||||
public NotNoticiasData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* PermissoesData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package db.data.siprp.outer;
|
||||
|
||||
|
||||
public final class PermissoesData extends db.data.siprp.inner.Permissoes
|
||||
{
|
||||
|
||||
public PermissoesData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* PlanoAreasData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package db.data.siprp.outer;
|
||||
|
||||
|
||||
public final class PlanoAreasData extends db.data.siprp.inner.PlanoAreas
|
||||
{
|
||||
|
||||
public PlanoAreasData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* PlanoMedidasData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package db.data.siprp.outer;
|
||||
|
||||
|
||||
public final class PlanoMedidasData extends db.data.siprp.inner.PlanoMedidas
|
||||
{
|
||||
|
||||
public PlanoMedidasData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* PlanoPostosTrabalhoData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package db.data.siprp.outer;
|
||||
|
||||
|
||||
public final class PlanoPostosTrabalhoData extends db.data.siprp.inner.PlanoPostosTrabalho
|
||||
{
|
||||
|
||||
public PlanoPostosTrabalhoData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* PlanoRiscosData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package db.data.siprp.outer;
|
||||
|
||||
|
||||
public final class PlanoRiscosData extends db.data.siprp.inner.PlanoRiscos
|
||||
{
|
||||
|
||||
public PlanoRiscosData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* PlanosActuacaoData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package db.data.siprp.outer;
|
||||
|
||||
|
||||
public final class PlanosActuacaoData extends db.data.siprp.inner.PlanosActuacao
|
||||
{
|
||||
|
||||
public PlanosActuacaoData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue