git-svn-id: https://svn.coded.pt/svn/SIPRP@1645 bb69d46d-e84e-40c8-a05a-06db0d633741
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Diogo Neves 15 years ago
parent e11cf73470
commit c2ec7cce6c

@ -0,0 +1,71 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="PlanosActuacao" default="default" basedir=".">
<description>Builds, tests, and runs the project PlanosActuacao.</description>
<import file="nbproject/build-impl.xml"/>
<!--
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:
-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-dist: called before archive building
-post-dist: called after archive building
-post-clean: called after cleaning build products
-pre-run-deploy: called before deploying
-post-run-deploy: called after deploying
Example of pluging an obfuscator after the compilation could look like
<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>
For list of available properties check the imported
nbproject/build-impl.xml file.
Other way how to customize the build is by overriding existing main targets.
The target of interest are:
init-macrodef-javac: defines macro for javac compilation
init-macrodef-junit: defines macro for junit execution
init-macrodef-debug: defines macro for class debugging
do-dist: archive building
run: execution of project
javadoc-build: javadoc generation
Example of overriding the target for project execution could look like
<target name="run" depends="<PROJNAME>-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>
Notice that overridden target depends on jar target and not only on
compile target as regular run target does. Again, for list of available
properties which you can use check the target you are overriding in
nbproject/build-impl.xml file.
-->
</project>

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<project default="-deploy-ant" basedir=".">
<target name="-init" if="deploy.ant.enabled">
<property file="${deploy.ant.properties.file}"/>
<tempfile property="temp.module.folder" prefix="tomcat" destdir="${java.io.tmpdir}"/>
<unwar src="${deploy.ant.archive}" dest="${temp.module.folder}">
<patternset includes="META-INF/context.xml"/>
</unwar>
<xmlproperty file="${temp.module.folder}/META-INF/context.xml"/>
<delete dir="${temp.module.folder}"/>
</target>
<target name="-deploy-ant" if="deploy.ant.enabled" depends="-init">
<echo message="Deploying ${deploy.ant.archive} to ${Context(path)}"/>
<taskdef name="deploy" classname="org.apache.catalina.ant.DeployTask"
classpath="${tomcat.home}/lib/catalina-ant.jar"/>
<deploy url="${tomcat.url}/manager" username="${tomcat.username}"
password="${tomcat.password}" path="${Context(path)}"
war="${deploy.ant.archive}"/>
<property name="deploy.ant.client.url" value="${tomcat.url}${Context(path)}"/>
</target>
<target name="-undeploy-ant" if="deploy.ant.enabled" depends="-init">
<echo message="Undeploying ${Context(path)}"/>
<taskdef name="undeploy" classname="org.apache.catalina.ant.UndeployTask"
classpath="${tomcat.home}/lib/catalina-ant.jar"/>
<undeploy url="${tomcat.url}/manager" username="${tomcat.username}"
password="${tomcat.password}" path="${Context(path)}"/>
</target>
</project>

@ -0,0 +1,921 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
*** GENERATED FROM project.xml - DO NOT EDIT ***
*** EDIT ../build.xml INSTEAD ***
For the purpose of easier reading the script
is divided into following sections:
- initialization
- compilation
- dist
- execution
- debugging
- javadoc
- junit compilation
- junit execution
- junit debugging
- cleanup
-->
<project xmlns:webproject1="http://www.netbeans.org/ns/web-project/1" xmlns:webproject2="http://www.netbeans.org/ns/web-project/2" xmlns:webproject3="http://www.netbeans.org/ns/web-project/3" basedir=".." default="default" name="PlanosActuacao-impl">
<import file="ant-deploy.xml"/>
<fail message="Please build using Ant 1.7.1 or higher.">
<condition>
<not>
<antversion atleast="1.7.1"/>
</not>
</condition>
</fail>
<target depends="dist,javadoc" description="Build whole project." name="default"/>
<!--
INITIALIZATION SECTION
-->
<target name="-pre-init">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="-pre-init" name="-init-private">
<property file="nbproject/private/private.properties"/>
</target>
<target depends="-pre-init,-init-private" name="-init-user">
<property file="${user.properties.file}"/>
<!-- The two properties below are usually overridden -->
<!-- by the active platform. Just a fallback. -->
<property name="default.javac.source" value="1.4"/>
<property name="default.javac.target" value="1.4"/>
</target>
<target depends="-pre-init,-init-private,-init-user" name="-init-project">
<property file="nbproject/project.properties"/>
</target>
<target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" if="dist.ear.dir" name="-do-ear-init"/>
<target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
<condition property="have.tests">
<or>
<available file="${test.src.dir}"/>
</or>
</condition>
<condition property="have.sources">
<or>
<available file="${src.dir}"/>
</or>
</condition>
<condition property="netbeans.home+have.tests">
<and>
<isset property="netbeans.home"/>
<isset property="have.tests"/>
</and>
</condition>
<condition property="no.javadoc.preview">
<isfalse value="${javadoc.preview}"/>
</condition>
<property name="javac.compilerargs" value=""/>
<condition property="no.deps">
<and>
<istrue value="${no.dependencies}"/>
</and>
</condition>
<condition property="no.dist.ear.dir">
<not>
<isset property="dist.ear.dir"/>
</not>
</condition>
<property name="build.web.excludes" value="${build.classes.excludes}"/>
<condition property="do.compile.jsps">
<istrue value="${compile.jsps}"/>
</condition>
<condition property="do.debug.server">
<or>
<not>
<isset property="debug.server"/>
</not>
<istrue value="${debug.server}"/>
<and>
<not>
<istrue value="${debug.server}"/>
</not>
<not>
<istrue value="${debug.client}"/>
</not>
</and>
</or>
</condition>
<condition property="do.debug.client">
<istrue value="${debug.client}"/>
</condition>
<condition property="do.display.browser">
<istrue value="${display.browser}"/>
</condition>
<condition property="do.display.browser.debug">
<and>
<isset property="do.display.browser"/>
<not>
<isset property="do.debug.client"/>
</not>
</and>
</condition>
<available file="${conf.dir}/MANIFEST.MF" property="has.custom.manifest"/>
<available file="${persistence.xml.dir}/persistence.xml" property="has.persistence.xml"/>
<condition property="do.war.package.with.custom.manifest">
<isset property="has.custom.manifest"/>
</condition>
<condition property="do.war.package.without.custom.manifest">
<not>
<isset property="has.custom.manifest"/>
</not>
</condition>
<condition property="do.tmp.war.package.with.custom.manifest">
<and>
<isset property="has.custom.manifest"/>
<isfalse value="${directory.deployment.supported}"/>
</and>
</condition>
<condition property="do.tmp.war.package.without.custom.manifest">
<and>
<not>
<isset property="has.custom.manifest"/>
</not>
<isfalse value="${directory.deployment.supported}"/>
</and>
</condition>
<condition property="do.tmp.war.package">
<isfalse value="${directory.deployment.supported}"/>
</condition>
<property name="build.meta.inf.dir" value="${build.web.dir}/META-INF"/>
<condition else="" property="application.args.param" value="${application.args}">
<and>
<isset property="application.args"/>
<not>
<equals arg1="${application.args}" arg2="" trim="true"/>
</not>
</and>
</condition>
<property name="source.encoding" value="${file.encoding}"/>
<condition property="javadoc.encoding.used" value="${javadoc.encoding}">
<and>
<isset property="javadoc.encoding"/>
<not>
<equals arg1="${javadoc.encoding}" arg2=""/>
</not>
</and>
</condition>
<property name="javadoc.encoding.used" value="${source.encoding}"/>
<property name="includes" value="**"/>
<property name="excludes" value=""/>
<condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
<and>
<isset property="jaxws.endorsed.dir"/>
<available file="nbproject/jaxws-build.xml"/>
</and>
</condition>
<property name="runmain.jvmargs" value=""/>
</target>
<target depends="init" name="-init-cos" unless="deploy.on.save">
<condition property="deploy.on.save" value="true">
<istrue value="${j2ee.deploy.on.save}"/>
</condition>
</target>
<target name="-post-init">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
<fail unless="src.dir">Must set src.dir</fail>
<fail unless="test.src.dir">Must set test.src.dir</fail>
<fail unless="build.dir">Must set build.dir</fail>
<fail unless="build.web.dir">Must set build.web.dir</fail>
<fail unless="build.generated.dir">Must set build.generated.dir</fail>
<fail unless="dist.dir">Must set dist.dir</fail>
<fail unless="build.classes.dir">Must set build.classes.dir</fail>
<fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
<fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
<fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
<fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
<fail unless="dist.war">Must set dist.war</fail>
<fail unless="j2ee.platform.classpath">
The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
Either open the project in the IDE and assign the server or setup the server classpath manually.
For example like this:
ant -Duser.properties.file=&lt;path_to_property_file&gt; (where you put the property "j2ee.platform.classpath" in a .properties file)
or ant -Dj2ee.platform.classpath=&lt;server_classpath&gt; (where no properties file is used)
</fail>
</target>
<target name="-init-macrodef-property">
<macrodef name="property" uri="http://www.netbeans.org/ns/web-project/1">
<attribute name="name"/>
<attribute name="value"/>
<sequential>
<property name="@{name}" value="${@{value}}"/>
</sequential>
</macrodef>
</target>
<target name="-init-macrodef-javac">
<macrodef name="javac" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${src.dir}" name="srcdir"/>
<attribute default="${build.classes.dir}" name="destdir"/>
<attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="${javac.debug}" name="debug"/>
<attribute default="${empty.dir}" name="gensrcdir"/>
<element name="customize" optional="true"/>
<sequential>
<property location="${build.dir}/empty" name="empty.dir"/>
<mkdir dir="${empty.dir}"/>
<javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}">
<src>
<dirset dir="@{gensrcdir}" erroronmissingdir="false">
<include name="*"/>
</dirset>
</src>
<classpath>
<path path="@{classpath}"/>
</classpath>
<compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
<customize/>
</javac>
</sequential>
</macrodef>
</target>
<target name="-init-macrodef-junit">
<macrodef name="junit" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="**" name="testincludes"/>
<sequential>
<junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
<batchtest todir="${build.test.results.dir}">
<fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
<filename name="@{testincludes}"/>
</fileset>
</batchtest>
<classpath>
<path path="${run.test.classpath}:${j2ee.platform.classpath}"/>
</classpath>
<syspropertyset>
<propertyref prefix="test-sys-prop."/>
<mapper from="test-sys-prop.*" to="*" type="glob"/>
</syspropertyset>
<formatter type="brief" usefile="false"/>
<formatter type="xml"/>
<jvmarg line="${runmain.jvmargs}"/>
</junit>
</sequential>
</macrodef>
</target>
<target name="-init-macrodef-java">
<macrodef name="java" uri="http://www.netbeans.org/ns/web-project/1">
<attribute default="${main.class}" name="classname"/>
<attribute default="${debug.classpath}" name="classpath"/>
<element name="customize" optional="true"/>
<sequential>
<java classname="@{classname}" fork="true">
<jvmarg line="${runmain.jvmargs}"/>
<classpath>
<path path="@{classpath}:${j2ee.platform.classpath}"/>
</classpath>
<syspropertyset>
<propertyref prefix="run-sys-prop."/>
<mapper from="run-sys-prop.*" to="*" type="glob"/>
</syspropertyset>
<customize/>
</java>
</sequential>
</macrodef>
</target>
<target name="-init-macrodef-nbjsdebug">
<macrodef name="nbjsdebugstart" uri="http://www.netbeans.org/ns/web-project/1">
<attribute default="${client.url}" name="webUrl"/>
<sequential>
<nbjsdebugstart urlPart="${client.urlPart}" webUrl="@{webUrl}"/>
</sequential>
</macrodef>
</target>
<target depends="-init-debug-args" name="-init-macrodef-nbjpda">
<macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/web-project/1">
<attribute default="${main.class}" name="name"/>
<attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
<sequential>
<nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
<classpath>
<path path="@{classpath}"/>
</classpath>
</nbjpdastart>
</sequential>
</macrodef>
<macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/web-project/1">
<attribute default="${build.classes.dir}" name="dir"/>
<sequential>
<nbjpdareload>
<fileset dir="@{dir}" includes="${fix.classes}">
<include name="${fix.includes}*.class"/>
</fileset>
</nbjpdareload>
</sequential>
</macrodef>
<macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
<sequential>
<nbjpdaappreloaded/>
</sequential>
</macrodef>
</target>
<target name="-init-debug-args">
<property name="version-output" value="java version &quot;${ant.java.version}"/>
<condition property="have-jdk-older-than-1.4">
<or>
<contains string="${version-output}" substring="java version &quot;1.0"/>
<contains string="${version-output}" substring="java version &quot;1.1"/>
<contains string="${version-output}" substring="java version &quot;1.2"/>
<contains string="${version-output}" substring="java version &quot;1.3"/>
</or>
</condition>
<condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
<istrue value="${have-jdk-older-than-1.4}"/>
</condition>
<condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
<os family="windows"/>
</condition>
<condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
<isset property="debug.transport"/>
</condition>
</target>
<target depends="-init-debug-args" name="-init-macrodef-debug">
<macrodef name="debug" uri="http://www.netbeans.org/ns/web-project/1">
<attribute default="${main.class}" name="classname"/>
<attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
<attribute default="${application.args.param}" name="args"/>
<element name="customize" optional="true"/>
<sequential>
<java classname="@{classname}" fork="true">
<jvmarg line="${debug-args-line}"/>
<jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
<jvmarg line="${runmain.jvmargs}"/>
<classpath>
<path path="@{classpath}"/>
</classpath>
<syspropertyset>
<propertyref prefix="run-sys-prop."/>
<mapper from="run-sys-prop.*" to="*" type="glob"/>
</syspropertyset>
<arg line="@{args}"/>
<customize/>
</java>
</sequential>
</macrodef>
</target>
<target name="-init-taskdefs">
<fail unless="libs.CopyLibs.classpath">
The libs.CopyLibs.classpath property is not set up.
This property must point to
org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
of NetBeans IDE installation and is usually located at
&lt;netbeans_installation&gt;/java&lt;version&gt;/ant/extra folder.
Either open the project in the IDE and make sure CopyLibs library
exists or setup the property manually. For example like this:
ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
</fail>
<taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
</target>
<target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-java,-init-macrodef-nbjpda,-init-macrodef-nbjsdebug,-init-macrodef-debug,-init-taskdefs" name="init"/>
<!--
COMPILATION SECTION
-->
<target depends="init" if="no.dist.ear.dir" name="deps-module-jar" unless="no.deps"/>
<target depends="init" if="dist.ear.dir" name="deps-ear-jar" unless="no.deps"/>
<target depends="init, deps-module-jar, deps-ear-jar" name="deps-jar" unless="no.deps"/>
<target depends="init,deps-jar" name="-pre-pre-compile">
<mkdir dir="${build.classes.dir}"/>
</target>
<target name="-pre-compile">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target name="-copy-webdir">
<copy todir="${build.web.dir}">
<fileset dir="${web.docbase.dir}" excludes="${build.web.excludes},${excludes}" includes="${includes}"/>
</copy>
<copy todir="${build.web.dir}/WEB-INF">
<fileset dir="${webinf.dir}" excludes="${build.web.excludes}"/>
</copy>
</target>
<target depends="init, deps-jar, -pre-pre-compile, -pre-compile, -copy-manifest, -copy-persistence-xml, -copy-webdir, library-inclusion-in-archive,library-inclusion-in-manifest" if="have.sources" name="-do-compile">
<webproject2:javac destdir="${build.classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
<copy todir="${build.classes.dir}">
<fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
</copy>
</target>
<target if="has.custom.manifest" name="-copy-manifest">
<mkdir dir="${build.meta.inf.dir}"/>
<copy todir="${build.meta.inf.dir}">
<fileset dir="${conf.dir}" includes="MANIFEST.MF"/>
</copy>
</target>
<target if="has.persistence.xml" name="-copy-persistence-xml">
<mkdir dir="${build.web.dir}/WEB-INF/classes/META-INF"/>
<copy todir="${build.web.dir}/WEB-INF/classes/META-INF">
<fileset dir="${persistence.xml.dir}" includes="persistence.xml"/>
</copy>
</target>
<target name="-post-compile">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
<target name="-pre-compile-single">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
<fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
<webproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
<copy todir="${build.classes.dir}">
<fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
</copy>
</target>
<target name="-post-compile-single">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
<target depends="compile" description="Test compile JSP pages to expose compilation errors." if="do.compile.jsps" name="compile-jsps">
<mkdir dir="${build.generated.dir}/src"/>
<java classname="org.netbeans.modules.web.project.ant.JspC" failonerror="true" fork="true">
<arg value="-uriroot"/>
<arg file="${basedir}/${build.web.dir}"/>
<arg value="-d"/>
<arg file="${basedir}/${build.generated.dir}/src"/>
<arg value="-die1"/>
<arg value="-compilerSourceVM ${javac.source}"/>
<arg value="-compilerTargetVM ${javac.target}"/>
<arg value="-javaEncoding ${source.encoding}"/>
<classpath path="${java.home}/../lib/tools.jar:${jspctask.classpath}:${jspcompilation.classpath}"/>
</java>
<mkdir dir="${build.generated.dir}/classes"/>
<webproject2:javac classpath="${j2ee.platform.classpath}:${build.classes.dir}:${jspcompilation.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src"/>
</target>
<target depends="compile" if="jsp.includes" name="-do-compile-single-jsp">
<fail unless="javac.jsp.includes">Must select some files in the IDE or set javac.jsp.includes</fail>
<mkdir dir="${build.generated.dir}/src"/>
<java classname="org.netbeans.modules.web.project.ant.JspCSingle" failonerror="true" fork="true">
<arg value="-uriroot"/>
<arg file="${basedir}/${build.web.dir}"/>
<arg value="-d"/>
<arg file="${basedir}/${build.generated.dir}/src"/>
<arg value="-die1"/>
<arg value="-jspc.files"/>
<arg path="${jsp.includes}"/>
<arg value="-compilerSourceVM ${javac.source}"/>
<arg value="-compilerTargetVM ${javac.target}"/>
<arg value="-javaEncoding ${source.encoding}"/>
<classpath path="${java.home}/../lib/tools.jar:${jspctask.classpath}:${jspcompilation.classpath}"/>
</java>
<mkdir dir="${build.generated.dir}/classes"/>
<webproject2:javac classpath="${j2ee.platform.classpath}:${build.classes.dir}:${jspcompilation.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src">
<customize>
<patternset includes="${javac.jsp.includes}"/>
</customize>
</webproject2:javac>
</target>
<target name="compile-single-jsp">
<fail unless="jsp.includes">Must select a file in the IDE or set jsp.includes</fail>
<antcall target="-do-compile-single-jsp"/>
</target>
<!--
DIST BUILDING SECTION
-->
<target name="-pre-dist">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.without.custom.manifest" name="-do-dist-without-manifest">
<dirname file="${dist.war}" property="dist.jar.dir"/>
<mkdir dir="${dist.jar.dir}"/>
<jar compress="${jar.compress}" jarfile="${dist.war}">
<fileset dir="${build.web.dir}"/>
</jar>
</target>
<target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.with.custom.manifest" name="-do-dist-with-manifest">
<dirname file="${dist.war}" property="dist.jar.dir"/>
<mkdir dir="${dist.jar.dir}"/>
<jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
<fileset dir="${build.web.dir}"/>
</jar>
</target>
<target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.without.custom.manifest" name="-do-tmp-dist-without-manifest">
<dirname file="${dist.war}" property="dist.jar.dir"/>
<mkdir dir="${dist.jar.dir}"/>
<jar compress="${jar.compress}" jarfile="${dist.war}">
<fileset dir="${build.web.dir}"/>
</jar>
</target>
<target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.with.custom.manifest" name="-do-tmp-dist-with-manifest">
<dirname file="${dist.war}" property="dist.jar.dir"/>
<mkdir dir="${dist.jar.dir}"/>
<jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
<fileset dir="${build.web.dir}"/>
</jar>
</target>
<target depends="init,compile,compile-jsps,-pre-dist,-do-dist-with-manifest,-do-dist-without-manifest" name="do-dist"/>
<target depends="init" if="dist.ear.dir" name="library-inclusion-in-manifest">
<copyfiles files="${libs.jsf12.classpath}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.libs.jsf12.classpath" todir="${dist.ear.dir}"/>
<copyfiles files="${libs.jstl11.classpath}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.libs.jstl11.classpath" todir="${dist.ear.dir}"/>
<copyfiles files="${libs.jsf12-support.classpath}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.libs.jsf12-support.classpath" todir="${dist.ear.dir}"/>
<copyfiles files="${libs.woodstock-components.classpath}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.libs.woodstock-components.classpath" todir="${dist.ear.dir}"/>
<copyfiles files="${libs.woodstock-theme-default.classpath}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.libs.woodstock-theme-default.classpath" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.activation.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.activation.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.ashwood-2.0.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.ashwood-2.0.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.avalon-framework-4.2.0.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.avalon-framework-4.2.0.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.batik-all-1.7.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.batik-all-1.7.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.commons-beanutils-1.8.3.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.commons-beanutils-1.8.3.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.commons-collections-3.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.commons-collections-3.1.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.commons-digester-1.8.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.commons-digester-1.8.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.commons-fileupload-1.2.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.commons-fileupload-1.2.1.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.commons-io-1.4.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.commons-io-1.4.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.commons-lang-2.4.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.commons-lang-2.4.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.commons-logging-1.1.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.commons-logging-1.1.1.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.commons-validator-1.3.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.commons-validator-1.3.1.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.cursos.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.cursos.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.evologger.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.evologger.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.evolute.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.evolute.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.fop.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.fop.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.jai_imageio.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.jai_imageio.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.jdbcappender.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.jdbcappender.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.jdom.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.jdom.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.log4j-1.2.15.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.log4j-1.2.15.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.mail.jar-1}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.mail.jar-1" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.postgresql-8.4-701.jdbc4.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.postgresql-8.4-701.jdbc4.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.richfaces-api-3.3.3.Final.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.richfaces-api-3.3.3.Final.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.richfaces-impl-3.3.3.Final.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.richfaces-impl-3.3.3.Final.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.richfaces-impl-jsf2-3.3.3.Final.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.richfaces-impl-jsf2-3.3.3.Final.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.richfaces-ui-3.3.3.Final.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.richfaces-ui-3.3.3.Final.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.serializer-2.7.0.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.serializer-2.7.0.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.shst.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.shst.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.xalan-2.7.0.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.xalan-2.7.0.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.xercesImpl-2.7.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.xercesImpl-2.7.1.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.xml-apis-1.3.04.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.xml-apis-1.3.04.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.xml-apis-ext-1.3.04.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.xml-apis-ext-1.3.04.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.xmlgraphics-commons-1.3.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.xmlgraphics-commons-1.3.1.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${libs.exceptionhandler-runtime.classpath}" todir="${build.web.dir}/WEB-INF/lib"/>
<mkdir dir="${build.web.dir}/META-INF"/>
<manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update">
<attribute name="Class-Path" value="${manifest.libs.jsf12.classpath} ${manifest.libs.jstl11.classpath} ${manifest.libs.jsf12-support.classpath} ${manifest.libs.woodstock-components.classpath} ${manifest.libs.woodstock-theme-default.classpath} ${manifest.file.reference.activation.jar} ${manifest.file.reference.ashwood-2.0.jar} ${manifest.file.reference.avalon-framework-4.2.0.jar} ${manifest.file.reference.batik-all-1.7.jar} ${manifest.file.reference.commons-beanutils-1.8.3.jar} ${manifest.file.reference.commons-collections-3.1.jar} ${manifest.file.reference.commons-digester-1.8.jar} ${manifest.file.reference.commons-fileupload-1.2.1.jar} ${manifest.file.reference.commons-io-1.4.jar} ${manifest.file.reference.commons-lang-2.4.jar} ${manifest.file.reference.commons-logging-1.1.1.jar} ${manifest.file.reference.commons-validator-1.3.1.jar} ${manifest.file.reference.cursos.jar} ${manifest.file.reference.evologger.jar} ${manifest.file.reference.evolute.jar} ${manifest.file.reference.fop.jar} ${manifest.file.reference.jai_imageio.jar} ${manifest.file.reference.jdbcappender.jar} ${manifest.file.reference.jdom.jar} ${manifest.file.reference.log4j-1.2.15.jar} ${manifest.file.reference.mail.jar-1} ${manifest.file.reference.postgresql-8.4-701.jdbc4.jar} ${manifest.file.reference.richfaces-api-3.3.3.Final.jar} ${manifest.file.reference.richfaces-impl-3.3.3.Final.jar} ${manifest.file.reference.richfaces-impl-jsf2-3.3.3.Final.jar} ${manifest.file.reference.richfaces-ui-3.3.3.Final.jar} ${manifest.file.reference.serializer-2.7.0.jar} ${manifest.file.reference.shst.jar} ${manifest.file.reference.xalan-2.7.0.jar} ${manifest.file.reference.xercesImpl-2.7.1.jar} ${manifest.file.reference.xml-apis-1.3.04.jar} ${manifest.file.reference.xml-apis-ext-1.3.04.jar} ${manifest.file.reference.xmlgraphics-commons-1.3.1.jar} "/>
</manifest>
</target>
<target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir">
<copyfiles files="${libs.jsf12.classpath}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${libs.jstl11.classpath}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${libs.jsf12-support.classpath}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${libs.woodstock-components.classpath}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${libs.woodstock-theme-default.classpath}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.activation.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.ashwood-2.0.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.avalon-framework-4.2.0.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.batik-all-1.7.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-beanutils-1.8.3.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-collections-3.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-digester-1.8.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-fileupload-1.2.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-io-1.4.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-lang-2.4.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-logging-1.1.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-validator-1.3.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.cursos.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.evologger.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.evolute.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.fop.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.jai_imageio.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.jdbcappender.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.jdom.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.log4j-1.2.15.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.mail.jar-1}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.postgresql-8.4-701.jdbc4.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.richfaces-api-3.3.3.Final.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.richfaces-impl-3.3.3.Final.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.richfaces-impl-jsf2-3.3.3.Final.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.richfaces-ui-3.3.3.Final.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.serializer-2.7.0.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.shst.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.xalan-2.7.0.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.xercesImpl-2.7.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.xml-apis-1.3.04.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.xml-apis-ext-1.3.04.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.xmlgraphics-commons-1.3.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${libs.exceptionhandler-runtime.classpath}" todir="${build.web.dir}/WEB-INF/lib"/>
</target>
<target depends="init,compile,compile-jsps,-pre-dist,library-inclusion-in-manifest" if="do.tmp.war.package" name="do-ear-dist">
<dirname file="${dist.ear.war}" property="dist.jar.dir"/>
<mkdir dir="${dist.jar.dir}"/>
<jar compress="${jar.compress}" jarfile="${dist.ear.war}" manifest="${build.web.dir}/META-INF/MANIFEST.MF">
<fileset dir="${build.web.dir}"/>
</jar>
</target>
<target name="-post-dist">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,compile,-pre-dist,do-dist,-post-dist" description="Build distribution (WAR)." name="dist"/>
<target depends="init,-init-cos,compile,-pre-dist,do-ear-dist,-post-dist" description="Build distribution (WAR) to be packaged into an EAR." name="dist-ear"/>
<!--
EXECUTION SECTION
-->
<target depends="run-deploy,run-display-browser" description="Deploy to server and show in browser." name="run"/>
<target name="-pre-run-deploy">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target name="-post-run-deploy">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target name="-pre-nbmodule-run-deploy">
<!-- Empty placeholder for easier customization. -->
<!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
</target>
<target name="-post-nbmodule-run-deploy">
<!-- Empty placeholder for easier customization. -->
<!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
</target>
<target name="-run-deploy-am">
<!-- Task to deploy to the Access Manager runtime. -->
</target>
<target depends="init,-init-cos,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-tmp-dist-with-manifest,-do-tmp-dist-without-manifest,-pre-run-deploy,-pre-nbmodule-run-deploy,-run-deploy-nb,-init-deploy-ant,-deploy-ant,-run-deploy-am,-post-nbmodule-run-deploy,-post-run-deploy" name="run-deploy">
<nbjpdaappreloaded/>
</target>
<target if="netbeans.home" name="-run-deploy-nb">
<nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
</target>
<target name="-init-deploy-ant" unless="netbeans.home">
<property name="deploy.ant.archive" value="${dist.war}"/>
<property name="deploy.ant.docbase.dir" value="${web.docbase.dir}"/>
<property name="deploy.ant.resource.dir" value="${resource.dir}"/>
<property name="deploy.ant.enabled" value="true"/>
</target>
<target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
<target if="netbeans.home" name="-run-undeploy-nb">
<fail message="Undeploy is not supported from within the IDE"/>
</target>
<target depends="init,-pre-dist,dist,-post-dist" name="verify">
<nbverify file="${dist.war}"/>
</target>
<target depends="run-deploy,-init-display-browser,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
<target if="do.display.browser" name="-init-display-browser">
<condition property="do.display.browser.nb">
<isset property="netbeans.home"/>
</condition>
<condition property="do.display.browser.cl">
<isset property="deploy.ant.enabled"/>
</condition>
</target>
<target if="do.display.browser.nb" name="-display-browser-nb">
<nbbrowse url="${client.url}"/>
</target>
<target if="do.display.browser.cl" name="-get-browser" unless="browser">
<condition property="browser" value="rundll32">
<os family="windows"/>
</condition>
<condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
<os family="windows"/>
</condition>
<condition property="browser" value="/usr/bin/open">
<os family="mac"/>
</condition>
<property environment="env"/>
<condition property="browser" value="${env.BROWSER}">
<isset property="env.BROWSER"/>
</condition>
<condition property="browser" value="/usr/bin/firefox">
<available file="/usr/bin/firefox"/>
</condition>
<condition property="browser" value="/usr/local/firefox/firefox">
<available file="/usr/local/firefox/firefox"/>
</condition>
<condition property="browser" value="/usr/bin/mozilla">
<available file="/usr/bin/mozilla"/>
</condition>
<condition property="browser" value="/usr/local/mozilla/mozilla">
<available file="/usr/local/mozilla/mozilla"/>
</condition>
<condition property="browser" value="/usr/sfw/lib/firefox/firefox">
<available file="/usr/sfw/lib/firefox/firefox"/>
</condition>
<condition property="browser" value="/opt/csw/bin/firefox">
<available file="/opt/csw/bin/firefox"/>
</condition>
<condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
<available file="/usr/sfw/lib/mozilla/mozilla"/>
</condition>
<condition property="browser" value="/opt/csw/bin/mozilla">
<available file="/opt/csw/bin/mozilla"/>
</condition>
</target>
<target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
<fail unless="browser">
Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
</fail>
<property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
<echo>Launching ${browse.url}</echo>
<exec executable="${browser}" spawn="true">
<arg line="${browser.args} ${browse.url}"/>
</exec>
</target>
<target depends="init,-init-cos,compile-single" name="run-main">
<fail unless="run.class">Must select one file in the IDE or set run.class</fail>
<webproject1:java classname="${run.class}"/>
</target>
<target depends="init,compile-test-single,-pre-test-run-single" name="run-test-with-main">
<fail unless="run.class">Must select one file in the IDE or set run.class</fail>
<webproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
</target>
<!--
DEBUGGING SECTION
-->
<target depends="init,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-tmp-dist-with-manifest,-do-tmp-dist-without-manifest" description="Debug project in IDE." if="netbeans.home" name="debug">
<nbstartserver debugmode="true"/>
<antcall target="connect-debugger"/>
<nbdeploy clientUrlPart="${client.urlPart}" debugmode="true" forceRedeploy="true"/>
<antcall target="debug-display-browser"/>
<antcall target="connect-client-debugger"/>
</target>
<target if="do.debug.server" name="connect-debugger" unless="is.debugged">
<nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
<classpath>
<path path="${debug.classpath}:${j2ee.platform.classpath}"/>
</classpath>
<sourcepath>
<path path="${web.docbase.dir}"/>
</sourcepath>
</nbjpdaconnect>
</target>
<target if="do.display.browser.debug" name="debug-display-browser">
<nbbrowse url="${client.url}"/>
</target>
<target if="do.debug.client" name="connect-client-debugger">
<webproject1:nbjsdebugstart webUrl="${client.url}"/>
</target>
<target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
<fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
<webproject1:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
</target>
<target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
<target depends="init,compile,compile-jsps,-do-compile-single-jsp,debug" if="netbeans.home" name="debug-single"/>
<target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
<webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
</target>
<target depends="init" if="netbeans.home" name="-debug-start-debugger">
<webproject1:nbjpdastart name="${debug.class}"/>
</target>
<target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
<fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
<webproject1:debug classname="${debug.class}"/>
</target>
<target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
<target depends="init" name="-pre-debug-fix">
<fail unless="fix.includes">Must set fix.includes</fail>
<property name="javac.includes" value="${fix.includes}.java"/>
</target>
<target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
<webproject1:nbjpdareload/>
</target>
<target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
<!--
JAVADOC SECTION
-->
<target depends="init" name="javadoc-build">
<mkdir dir="${dist.javadoc.dir}"/>
<javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
<classpath>
<path path="${javac.classpath}:${j2ee.platform.classpath}"/>
</classpath>
<fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
<filename name="**/*.java"/>
</fileset>
<fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
<include name="**/*.java"/>
</fileset>
</javadoc>
</target>
<target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
<nbbrowse file="${dist.javadoc.dir}/index.html"/>
</target>
<target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
<!--
JUNIT COMPILATION SECTION
-->
<target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
<mkdir dir="${build.test.classes.dir}"/>
</target>
<target name="-pre-compile-test">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
<webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
<copy todir="${build.test.classes.dir}">
<fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
</copy>
</target>
<target name="-post-compile-test">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
<target name="-pre-compile-test-single">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
<fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
<webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" srcdir="${test.src.dir}"/>
<copy todir="${build.test.classes.dir}">
<fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
</copy>
</target>
<target name="-post-compile-test-single">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
<!--
JUNIT EXECUTION SECTION
-->
<target depends="init" if="have.tests" name="-pre-test-run">
<mkdir dir="${build.test.results.dir}"/>
</target>
<target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
<webproject2:junit testincludes="**/*Test.java"/>
</target>
<target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
<fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
</target>
<target depends="init" if="have.tests" name="test-report"/>
<target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
<target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
<target depends="init" if="have.tests" name="-pre-test-run-single">
<mkdir dir="${build.test.results.dir}"/>
</target>
<target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
<fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
<webproject2:junit excludes="" includes="${test.includes}"/>
</target>
<target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
<fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
</target>
<target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
<!--
JUNIT DEBUGGING SECTION
-->
<target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
<fail unless="test.class">Must select one file in the IDE or set test.class</fail>
<property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
<delete file="${test.report.file}"/>
<!-- must exist, otherwise the XML formatter would fail -->
<mkdir dir="${build.test.results.dir}"/>
<webproject1:debug args="${test.class}" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}">
<customize>
<arg value="showoutput=true"/>
<arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
<arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
</customize>
</webproject1:debug>
</target>
<target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
<webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
</target>
<target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
<target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
<webproject1:nbjpdareload dir="${build.test.classes.dir}"/>
</target>
<target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
<!--
CLEANUP SECTION
-->
<target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps"/>
<target depends="init" name="do-clean">
<condition property="build.dir.to.clean" value="${build.web.dir}">
<isset property="dist.ear.dir"/>
</condition>
<property name="build.dir.to.clean" value="${build.web.dir}"/>
<delete includeEmptyDirs="true" quiet="true">
<fileset dir="${build.dir.to.clean}/WEB-INF/lib"/>
</delete>
<delete dir="${build.dir}"/>
<available file="${build.dir.to.clean}/WEB-INF/lib" property="status.clean-failed" type="dir"/>
<delete dir="${dist.dir}"/>
</target>
<target depends="do-clean" if="status.clean-failed" name="check-clean">
<echo message="Warning: unable to delete some files in ${build.web.dir}/WEB-INF/lib - they are probably locked by the J2EE server. "/>
<echo level="info" message="To delete all files undeploy the module from Server Registry in Runtime tab and then use Clean again."/>
</target>
<target depends="init" if="netbeans.home" name="undeploy-clean">
<nbundeploy failOnError="false" startServer="false"/>
</target>
<target name="-post-clean">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,undeploy-clean,deps-clean,do-clean,check-clean,-post-clean" description="Clean build products." name="clean"/>
<target depends="clean" description="Clean build products." name="clean-ear"/>
</project>

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scene Scope="Project" version="2">
<Scope Scope="Faces Configuration Only"/>
<Scope Scope="Project">
<Node id="ListaPlanos.jsp" x="349" y="128" zoom="false"/>
<Node id="Erro.jsp" x="257" y="64" zoom="true"/>
<Node id="EnviarCorrecao.jsp" x="150" y="150" zoom="false"/>
<Node id="Footer.jsp" x="650" y="150" zoom="true"/>
<Node id="EditarPlano.jsp" x="609" y="83" zoom="false"/>
<Node id="Dummy.jsp" x="867" y="46" zoom="true"/>
<Node id="ViewPlano.jsp" x="840" y="178" zoom="false"/>
<Node id="Login.jsp" x="348" y="307" zoom="false"/>
</Scope>
<Scope Scope="All Faces Configurations"/>
</Scene>

@ -0,0 +1,8 @@
build.xml.data.CRC32=68c8c433
build.xml.script.CRC32=50b8b881
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=68c8c433
nbproject/build-impl.xml.script.CRC32=0f9e6147
nbproject/build-impl.xml.stylesheet.CRC32=8ab4467e@1.15.2.1

@ -0,0 +1,12 @@
auxiliary.org-netbeans-modules-web-client-tools-api.clientdebug=false
auxiliary.org-netbeans-modules-web-client-tools-api.dialogShowDebugPanel=false
auxiliary.org-netbeans-modules-web-client-tools-api.FIREFOX=true
auxiliary.org-netbeans-modules-web-client-tools-api.INTERNET_5f_EXPLORER=false
auxiliary.org-netbeans-modules-web-client-tools-api.serverdebug=true
deploy.ant.properties.file=/home/dneves/.netbeans/6.7/tomcat60.properties
j2ee.platform.classpath=/usr/local/apache-tomcat-6.0.18/lib/catalina.jar:/usr/local/apache-tomcat-6.0.18/lib/catalina-tribes.jar:/usr/local/apache-tomcat-6.0.18/lib/jasper.jar:/usr/local/apache-tomcat-6.0.18/lib/tomcat-coyote.jar:/usr/local/apache-tomcat-6.0.18/lib/annotations-api.jar:/usr/local/apache-tomcat-6.0.18/lib/servlet-api.jar:/usr/local/apache-tomcat-6.0.18/lib/tomcat-i18n-es.jar:/usr/local/apache-tomcat-6.0.18/lib/jasper-el.jar:/usr/local/apache-tomcat-6.0.18/lib/tomcat-dbcp.jar:/usr/local/apache-tomcat-6.0.18/lib/el-api.jar:/usr/local/apache-tomcat-6.0.18/lib/catalina-ha.jar:/usr/local/apache-tomcat-6.0.18/lib/tomcat-i18n-ja.jar:/usr/local/apache-tomcat-6.0.18/lib/tomcat-i18n-fr.jar:/usr/local/apache-tomcat-6.0.18/lib/catalina-ant.jar:/usr/local/apache-tomcat-6.0.18/lib/jsp-api.jar:/usr/local/apache-tomcat-6.0.18/bin/tomcat-juli.jar
j2ee.server.instance=tomcat60:home=/usr/local/apache-tomcat-6.0.18:base=apache-tomcat-6.0.18_base
javac.debug=true
javadoc.preview=true
jaxws.endorsed.dir=/usr/local/netbeans-6.7.1/java2/modules/ext/jaxws21/api:/usr/local/netbeans-6.7.1/ide11/modules/ext/jaxb/api
user.properties.file=/home/dneves/.netbeans/6.7/build.properties

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/1"/>
</project-private>

@ -0,0 +1,145 @@
build.classes.dir=${build.web.dir}/WEB-INF/classes
build.classes.excludes=**/*.java,**/*.form
build.dir=build
build.generated.dir=${build.dir}/generated
build.generated.sources.dir=${build.dir}/generated-sources
build.test.classes.dir=${build.dir}/test/classes
build.test.results.dir=${build.dir}/test/results
build.web.dir=${build.dir}/web
build.web.excludes=${build.classes.excludes}
client.urlPart=
compile.jsps=false
conf.dir=${source.root}/conf
debug.classpath=${build.classes.dir}:${javac.classpath}
debug.client=false
debug.server=true
debug.test.classpath=\
${run.test.classpath}
display.browser=true
dist.dir=dist
dist.ear.war=${dist.dir}/${war.ear.name}
dist.javadoc.dir=${dist.dir}/javadoc
dist.war=${dist.dir}/${war.name}
excludes=
file.reference.activation.jar=lib/activation.jar
file.reference.ashwood-2.0.jar=lib/ashwood-2.0.jar
file.reference.avalon-framework-4.2.0.jar=lib/avalon-framework-4.2.0.jar
file.reference.batik-all-1.7.jar=lib/batik-all-1.7.jar
file.reference.common-src=../common/src
file.reference.commons-beanutils-1.8.3.jar=lib/commons-beanutils-1.8.3.jar
file.reference.commons-collections-3.1.jar=lib/commons-collections-3.1.jar
file.reference.commons-digester-1.8.jar=lib/commons-digester-1.8.jar
file.reference.commons-fileupload-1.2.1.jar=lib/commons-fileupload-1.2.1.jar
file.reference.commons-io-1.4.jar=lib/commons-io-1.4.jar
file.reference.commons-lang-2.4.jar=lib/commons-lang-2.4.jar
file.reference.commons-logging-1.1.1.jar=lib/commons-logging-1.1.1.jar
file.reference.commons-validator-1.3.1.jar=lib/commons-validator-1.3.1.jar
file.reference.cursos.jar=lib/cursos.jar
file.reference.evologger.jar=lib/evologger.jar
file.reference.evolute.jar=lib/evolute.jar
file.reference.fop.jar=lib/fop.jar
file.reference.jai_imageio.jar=lib/jai_imageio.jar
file.reference.jdbcappender.jar=lib/jdbcappender.jar
file.reference.jdom.jar=lib/jdom.jar
file.reference.log4j-1.2.15.jar=lib/log4j-1.2.15.jar
file.reference.mail.jar-1=lib/mail.jar
file.reference.postgresql-8.4-701.jdbc4.jar=lib/postgresql-8.4-701.jdbc4.jar
file.reference.richfaces-api-3.3.3.Final.jar=lib/richfaces-api-3.3.3.Final.jar
file.reference.richfaces-impl-3.3.3.Final.jar=lib/richfaces-impl-3.3.3.Final.jar
file.reference.richfaces-impl-jsf2-3.3.3.Final.jar=lib/richfaces-impl-jsf2-3.3.3.Final.jar
file.reference.richfaces-ui-3.3.3.Final.jar=lib/richfaces-ui-3.3.3.Final.jar
file.reference.serializer-2.7.0.jar=lib/serializer-2.7.0.jar
file.reference.shst.jar=lib/shst.jar
file.reference.xalan-2.7.0.jar=lib/xalan-2.7.0.jar
file.reference.xercesImpl-2.7.1.jar=lib/xercesImpl-2.7.1.jar
file.reference.xml-apis-1.3.04.jar=lib/xml-apis-1.3.04.jar
file.reference.xml-apis-ext-1.3.04.jar=lib/xml-apis-ext-1.3.04.jar
file.reference.xmlgraphics-commons-1.3.1.jar=lib/xmlgraphics-commons-1.3.1.jar
includes=**
j2ee.deploy.on.save=false
j2ee.platform=1.5
j2ee.server.type=Tomcat60
jar.compress=false
javac.classpath=\
${libs.jsf12.classpath}:\
${libs.jstl11.classpath}:\
${libs.jsf12-support.classpath}:\
${libs.woodstock-components.classpath}:\
${libs.woodstock-theme-default.classpath}:\
${file.reference.activation.jar}:\
${file.reference.ashwood-2.0.jar}:\
${file.reference.avalon-framework-4.2.0.jar}:\
${file.reference.batik-all-1.7.jar}:\
${file.reference.commons-beanutils-1.8.3.jar}:\
${file.reference.commons-collections-3.1.jar}:\
${file.reference.commons-digester-1.8.jar}:\
${file.reference.commons-fileupload-1.2.1.jar}:\
${file.reference.commons-io-1.4.jar}:\
${file.reference.commons-lang-2.4.jar}:\
${file.reference.commons-logging-1.1.1.jar}:\
${file.reference.commons-validator-1.3.1.jar}:\
${file.reference.cursos.jar}:\
${file.reference.evologger.jar}:\
${file.reference.evolute.jar}:\
${file.reference.fop.jar}:\
${file.reference.jai_imageio.jar}:\
${file.reference.jdbcappender.jar}:\
${file.reference.jdom.jar}:\
${file.reference.log4j-1.2.15.jar}:\
${file.reference.mail.jar-1}:\
${file.reference.postgresql-8.4-701.jdbc4.jar}:\
${file.reference.richfaces-api-3.3.3.Final.jar}:\
${file.reference.richfaces-impl-3.3.3.Final.jar}:\
${file.reference.richfaces-impl-jsf2-3.3.3.Final.jar}:\
${file.reference.richfaces-ui-3.3.3.Final.jar}:\
${file.reference.serializer-2.7.0.jar}:\
${file.reference.shst.jar}:\
${file.reference.xalan-2.7.0.jar}:\
${file.reference.xercesImpl-2.7.1.jar}:\
${file.reference.xml-apis-1.3.04.jar}:\
${file.reference.xml-apis-ext-1.3.04.jar}:\
${file.reference.xmlgraphics-commons-1.3.1.jar}
# Space-separated list of extra javac options
javac.compilerargs=
javac.debug=true
javac.deprecation=false
javac.source=1.5
javac.target=1.5
javac.test.classpath=\
${javac.classpath}:\
${build.classes.dir}:\
${libs.junit.classpath}:\
${libs.junit_4.classpath}
javadoc.additionalparam=
javadoc.author=false
javadoc.encoding=${source.encoding}
javadoc.noindex=false
javadoc.nonavbar=false
javadoc.notree=false
javadoc.preview=true
javadoc.private=false
javadoc.splitindex=true
javadoc.use=true
javadoc.version=false
javadoc.windowtitle=
jspcompilation.classpath=${jspc.classpath}:${javac.classpath}
lib.dir=${web.docbase.dir}/WEB-INF/lib
persistence.xml.dir=${conf.dir}
platform.active=default_platform
resource.dir=setup
run.test.classpath=\
${javac.test.classpath}:\
${build.test.classes.dir}
# Space-separated list of JVM arguments used when running a class with a main method
# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value):
runmain.jvmargs=
source.encoding=ISO-8859-1
source.root=src
src.dir=${source.root}/java
test.src.dir=test
war.content.additional=\
${libs.exceptionhandler-runtime.classpath}
war.ear.name=PlanosActuacao.war
war.name=PlanosActuacao.war
web.docbase.dir=web
webinf.dir=web/WEB-INF

@ -0,0 +1,177 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.web.project</type>
<configuration>
<creator-data xmlns="http://www.sun.com/creator/ns" jsf.current.theme="woodstock-theme-default" jsf.pagebean.package="planosactuacao" jsf.project.libraries.dir="lib" jsf.project.version="4.0" jsf.startPage="Dummy.jsp"/>
<data xmlns="http://www.netbeans.org/ns/web-project/3">
<name>PlanosActuacao</name>
<minimum-ant-version>1.6</minimum-ant-version>
<web-module-libraries>
<library>
<file>${libs.jsf12.classpath}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${libs.jstl11.classpath}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${libs.jsf12-support.classpath}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${libs.woodstock-components.classpath}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${libs.woodstock-theme-default.classpath}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.activation.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.ashwood-2.0.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.avalon-framework-4.2.0.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.batik-all-1.7.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.commons-beanutils-1.8.3.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.commons-collections-3.1.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.commons-digester-1.8.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.commons-fileupload-1.2.1.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.commons-io-1.4.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.commons-lang-2.4.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.commons-logging-1.1.1.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.commons-validator-1.3.1.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.cursos.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.evologger.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.evolute.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.fop.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.jai_imageio.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.jdbcappender.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.jdom.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.log4j-1.2.15.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.mail.jar-1}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.postgresql-8.4-701.jdbc4.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.richfaces-api-3.3.3.Final.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.richfaces-impl-3.3.3.Final.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.richfaces-impl-jsf2-3.3.3.Final.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.richfaces-ui-3.3.3.Final.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.serializer-2.7.0.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.shst.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.xalan-2.7.0.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.xercesImpl-2.7.1.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.xml-apis-1.3.04.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.xml-apis-ext-1.3.04.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.xmlgraphics-commons-1.3.1.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
</web-module-libraries>
<web-module-additional-libraries>
<library>
<file>${libs.exceptionhandler-runtime.classpath}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
</web-module-additional-libraries>
<source-roots>
<root id="src.dir"/>
</source-roots>
<test-roots>
<root id="test.src.dir"/>
</test-roots>
</data>
</configuration>
</project>

@ -0,0 +1,40 @@
# 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 = localhost
#port.siprp = 5432
#database.siprp = siprp
#username.siprp = postgres
#password.siprp = Typein
#
#server.siprp_local = localhost
#port.siprp_local = 5432
#database.siprp_local = siprp_local_3
#username.siprp_local = postgres
#password.siprp_local = Typein
#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;
}
}

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

@ -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,364 @@
/*
* 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 = new java.util.LinkedList< db.data.siprp.outer.AnalisesAcidentesData >();
if ( getPrimaryKey() != 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 = new java.util.LinkedList< db.data.siprp.outer.SeccoesData >();
if ( getPrimaryKey() != 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 );
}
}
}

@ -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,785 @@
/*
* 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 = new java.util.LinkedList< db.data.siprp.outer.AvisosData >();
if ( getPrimaryKey() != 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 = new java.util.LinkedList< db.data.siprp.outer.HistoricoEstabelecimentoData >();
if ( getPrimaryKey() != 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 = new java.util.LinkedList< db.data.siprp.outer.TrabalhadoresData >();
if ( getPrimaryKey() != 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,398 @@
/*
* 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 = new java.util.LinkedList< db.data.siprp.outer.PlanoMedidasData >();
if ( getPrimaryKey() != 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 );
}
}
}

@ -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,397 @@
/*
* 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 = new java.util.LinkedList< db.data.siprp.outer.ExamesData >();
if ( getPrimaryKey() != 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,448 @@
/*
* 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 = new java.util.LinkedList< db.data.siprp.outer.PlanoRiscosData >();
if ( getPrimaryKey() != 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,550 @@
/*
* 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 = new java.util.LinkedList< db.data.siprp.outer.PlanoPostosTrabalhoData >();
if ( getPrimaryKey() != 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,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,448 @@
/*
* 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 = new java.util.LinkedList< db.data.siprp.outer.AnalisesAcidentesData >();
if ( getPrimaryKey() != 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,346 @@
/*
* 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 = new java.util.LinkedList< db.data.siprp.outer.ExamesPerfisData >();
if ( getPrimaryKey() != 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 );
}
}
}

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

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

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

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save