forked from Coded/SIPRP
git-svn-id: https://svn.coded.pt/svn/SIPRP@1838 bb69d46d-e84e-40c8-a05a-06db0d633741
parent
2c04f7d010
commit
3f8874ab1b
@ -0,0 +1 @@
|
||||
Unexpected error. File contents could not be restored from local history during undo/redo.
|
||||
@ -0,0 +1,68 @@
|
||||
<project name="evo-app-build-common" basedir="../../">
|
||||
|
||||
<import file="evo-app-compile-common.xml" />
|
||||
|
||||
<target name="app-build" description="Compiles all application classes" depends="app-prepare,app-pre-build">
|
||||
<mkdir dir="${app.build.dir}" />
|
||||
<depend srcdir="${app.src.dir}" destdir="${app.build.dir}" cache="${app.dependencies.chache.dir}">
|
||||
<include name="**/*.java" />
|
||||
</depend>
|
||||
<javac srcdir="${app.src.dir}" destdir="${app.build.dir}" classpathref="app.build.classpath" debug="on" deprecation="on" fork="true" memoryMaximumSize="512M" />
|
||||
<antcall target="create-app-properties-file"/>
|
||||
<antcall target="app-post-build"/>
|
||||
</target>
|
||||
|
||||
<target name="create-app-properties-file">
|
||||
<propertyfile file="${app.build.dir}/${app.name}.properties">
|
||||
<entry key="timestamp" type="date" value="now"/>
|
||||
<entry key="user" value="${user.name}"/>
|
||||
</propertyfile>
|
||||
</target>
|
||||
|
||||
<target name="run-codegen" description="Runs codegen for this project" depends="load-properties">
|
||||
<available file="${codegen.project.ant}" property="codegen.project.exists"/>
|
||||
<antcall target="show-codegen-project-error"/>
|
||||
<antcall target="run-codegen-if-project-exists"/>
|
||||
</target>
|
||||
|
||||
<target name="run-codegen-if-project-exists" if="codegen.project.exists">
|
||||
<available file="${codegen.properties.file}" property="codegen.properties.exists"/>
|
||||
<antcall target="show-codegen-properties-error"/>
|
||||
<antcall target="run-codegen-if-exists"/>
|
||||
</target>
|
||||
|
||||
<target name="show-codegen-project-error" unless="codegen.project.exists">
|
||||
<echo message="Codegen's build-file not found at ${codegen.project.ant}"/>
|
||||
</target>
|
||||
|
||||
<target name="run-codegen-if-exists" if="codegen.properties.exists">
|
||||
<ant inheritall="false" antfile="${codegen.project.ant}" target="app-run">
|
||||
<property name="app.run.args" value="${basedir}" />
|
||||
</ant>
|
||||
</target>
|
||||
|
||||
<target name="show-codegen-properties-error" unless="codegen.properties.exists">
|
||||
<echo message="Project's codegen configuration file not found at ${codegen.properties.file}"/>
|
||||
</target>
|
||||
|
||||
<target name="run-batch-deployer" description="Batches multiple deploys" depends="load-properties">
|
||||
<path id="deployer.classpath">
|
||||
<fileset dir="${lib.tools.dir}" />
|
||||
<path refid="app.build.classpath" />
|
||||
</path>
|
||||
<java jvmversion="${app.java.version}" classname="${deployer.main}" classpathref="deployer.classpath" fork="true" dir="${app.build.dir}">
|
||||
<arg value="${basedir}"/>
|
||||
</java>
|
||||
</target>
|
||||
|
||||
<target name="run-LEAF" description="Runs LEAF for this project" depends="load-properties">
|
||||
<path id="leaf.classpath">
|
||||
<fileset dir="${lib.tools.dir}" />
|
||||
<path refid="app.build.classpath" />
|
||||
</path>
|
||||
<java jvmversion="${app.java.version}" classname="${leaf.main}" classpathref="leaf.classpath" fork="true" dir="${app.build.dir}">
|
||||
<arg value="${app.src.dir}"/>
|
||||
</java>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
@ -0,0 +1,62 @@
|
||||
<project name="evo-app-build-obfuscate-common" basedir="../../">
|
||||
|
||||
<path id="lib.tools.classpath"/>
|
||||
|
||||
<target name="obfuscate">
|
||||
<taskdef resource="proguard/ant/task.properties" classpath="${app.dir}/lib.tools/proguard.jar" />
|
||||
|
||||
<delete file="${app.deploy.dist.dir}/${evolute.jar.name}" failonerror="false" />
|
||||
|
||||
<proguard printmapping="${app.dir}/${app.name}.map">
|
||||
|
||||
<injar file="${app.lib.dir}/evologger.jar" />
|
||||
<outjar file="${app.deploy.dist.lib.dir}/evologger.jar" />
|
||||
|
||||
<injar file="${app.lib.dir}/evolute.jar" />
|
||||
<outjar file="${app.deploy.dist.lib.dir}/evolute.jar" />
|
||||
|
||||
<injar file="${app.deploy.dist.dir}/${app.jar.name}" />
|
||||
<outjar file="${app.deploy.dist.dir}/${app.jar.name}_guard.jar" />
|
||||
|
||||
<libraryjar file="${evolute.lib.dir}" />
|
||||
<libraryjar file="${app.lib.dir}" />
|
||||
<libraryjar file="${java.home}/lib/jce.jar" />
|
||||
<libraryjar file="${java.home}/lib/jsse.jar" />
|
||||
<libraryjar file="${java.home}/lib/rt.jar" />
|
||||
|
||||
-printseeds
|
||||
-verbose
|
||||
-dontskipnonpubliclibraryclasses
|
||||
|
||||
-keepclasseswithmembers public class * {
|
||||
public static void main(java.lang.String[]);
|
||||
}
|
||||
</proguard>
|
||||
<delete file="${app.deploy.dist.dir}/${app.jar.name}" failonerror="true" />
|
||||
<move file="${app.deploy.dist.dir}/${app.jar.name}_guard.jar" tofile="${app.deploy.dist.dir}/${app.jar.name}" />
|
||||
</target>
|
||||
|
||||
<target name="ProguardTask">
|
||||
<property file="${app.version.file}" prefix="version" />
|
||||
<typedef classpathref="lib.tools.classpath" resource="net/jtools/classloadertask/antlib.xml">
|
||||
<classpath>
|
||||
<path refid="lib.tools.classpath"/>
|
||||
</classpath>
|
||||
</typedef>
|
||||
<classloader loader="project">
|
||||
<classpath>
|
||||
<fileset dir="${lib.tools.dir}" includes="*.jar"/>
|
||||
<fileset dir="${app.lib.dir}" includes="*.jar"/>
|
||||
</classpath>
|
||||
</classloader>
|
||||
<taskdef name="proguardtask" classpathref="lib.tools.classpath" classname="com.evolute.ant.ProguardTask" onerror="ignore" />
|
||||
|
||||
<proguardtask filePath="${app.dir}/${app.name}.map" version="${version.major}.${version.minor}.${version.build}" fileName="${app.name}.map" projectName="${app.name}" />
|
||||
</target>
|
||||
|
||||
<target name="pre-deploy">
|
||||
<antcall target="obfuscate" />
|
||||
<antcall target="ProguardTask" />
|
||||
</target>
|
||||
|
||||
</project>
|
||||
@ -0,0 +1,108 @@
|
||||
<project name="evo-app-compile-common" basedir="../../">
|
||||
|
||||
<import file="evo-app-load-properties.xml" />
|
||||
|
||||
<!-- BUILD -->
|
||||
|
||||
<target name="app-post-build" />
|
||||
|
||||
<target name="app-pre-build" />
|
||||
|
||||
<target name="app-build" />
|
||||
|
||||
<target name="cifrar" depends="app-properties-exists" if="app.properties.exists" >
|
||||
<echo message="Encrypting app.properties" />
|
||||
<typedef classpathref="lib.tools.classpath" resource="net/jtools/classloadertask/antlib.xml">
|
||||
<classpath>
|
||||
<path refid="lib.tools.classpath"/>
|
||||
</classpath>
|
||||
</typedef>
|
||||
<classloader loader="project">
|
||||
<classpath>
|
||||
<fileset dir="${lib.tools.dir}" includes="*.jar"/>
|
||||
</classpath>
|
||||
</classloader>
|
||||
<taskdef name="cifrar-props" classpathref="lib.tools.classpath" classname="com.evolute.ant.PropsEncryptorTask" onerror="fail" />
|
||||
<cifrar-props filepath="${properties.dir}${file.separator}app.properties" destpath="${app.build.dir}${file.separator}app.properties"/>
|
||||
</target>
|
||||
|
||||
<target name="app-properties-exists">
|
||||
<available file="${properties.dir}${file.separator}app.properties" property="app.properties.exists"/>
|
||||
</target>
|
||||
|
||||
<target name="app-prepare" depends="load-properties">
|
||||
<echo message="Dealing with package-info.java files (ant compilation problem workaround)" />
|
||||
<delete failonerror="false">
|
||||
<fileset dir="${app.build.dir}" includes="**/package-info.java"/>
|
||||
</delete>
|
||||
<echo message="Copying non-java files to build directory" />
|
||||
<copy failonerror="false" overwrite="true" verbose="true" todir="${app.build.dir}" file="${app.version.file}"/>
|
||||
<copy verbose="true" failonerror="true" overwrite="true" todir="${app.build.dir}">
|
||||
<fileset dir="${app.src.dir}">
|
||||
<exclude name="**/*.java" />
|
||||
<exclude name="*.java" />
|
||||
</fileset>
|
||||
<fileset dir="${properties.dir}">
|
||||
<exclude name="app.properties" />
|
||||
<include name="**/*" />
|
||||
</fileset>
|
||||
</copy>
|
||||
<antcall target="cifrar"/>
|
||||
</target>
|
||||
|
||||
<target name="app-clean" description="Removes all generated files" depends="load-static-properties">
|
||||
<delete verbose="true" failonerror="false">
|
||||
<fileset dir="${app.build.dir}">
|
||||
<include name="**/*" />
|
||||
</fileset>
|
||||
</delete>
|
||||
<delete dir="${app.build.dir}" verbose="true" failonerror="true" />
|
||||
<delete dir="${app.dist.dir}" verbose="true" failonerror="true" />
|
||||
<delete dir="${app.deploy.dist.dir}" verbose="true" failonerror="true" />
|
||||
</target>
|
||||
|
||||
<target name="app-run" description="Runs the application" depends="app-build">
|
||||
<java jvmversion="${app.java.version}" classname="${app.main}" maxmemory="${app.max.mem}" classpathref="app.build.classpath" fork="true" dir="${app.build.dir}">
|
||||
<jvmarg value="${jvm.run.args}" />
|
||||
<arg value="${app.run.args}"/>
|
||||
</java>
|
||||
</target>
|
||||
|
||||
<!-- JAR -->
|
||||
<target name="app-deploy-create-jar" depends="app-clean, app-build" >
|
||||
<mkdir dir="${app.deploy.dist.dir}" />
|
||||
<jar destfile="${app.deploy.dist.dir}/${app.jar.name}" >
|
||||
<fileset dir="${app.build.dir}">
|
||||
<include name="**/*" />
|
||||
</fileset>
|
||||
</jar>
|
||||
<copy todir="${app.deploy.dist.lib.dir}">
|
||||
<fileset dir="${app.lib.dir}">
|
||||
<include name="**/*" />
|
||||
</fileset>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<target name="app-create-jar" description="Make application Jar" depends="app-clean, app-build" >
|
||||
<pathconvert property="jar.classpath.converted" refid="app.jar.classpath" pathsep=" ">
|
||||
<map from="${app.dir}/" to="" />
|
||||
<map from="${basedir}/" to="" />
|
||||
</pathconvert>
|
||||
<mkdir dir="${app.dist.dir}" />
|
||||
<jar destfile="${app.dist.dir}/${app.jar.name}">
|
||||
<fileset dir="${app.build.dir}">
|
||||
<include name="**/*" />
|
||||
</fileset>
|
||||
<manifest>
|
||||
<attribute name="Main-Class" value="${app.main}" />
|
||||
<attribute name="Class-Path" value="${jar.classpath.converted}" />
|
||||
</manifest>
|
||||
</jar>
|
||||
<copy todir="${app.dist.lib.dir}">
|
||||
<fileset dir="${app.lib.dir}">
|
||||
<include name="**/*" />
|
||||
</fileset>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
@ -0,0 +1,900 @@
|
||||
<project name="evo-app-deploy-common" basedir="../../" >
|
||||
<!--xmlns:ac="antlib:net.sf.antcontrib"-->
|
||||
<import file="evo-app-load-properties.xml" />
|
||||
|
||||
<!-- PROPERTIES -->
|
||||
<property name="properties.key.name" value="name" />
|
||||
<property name="properties.key.major" value="major" />
|
||||
<property name="properties.key.minor" value="minor" />
|
||||
<property name="properties.key.build" value="build" />
|
||||
|
||||
<path id="lib.dir-jars">
|
||||
<fileset dir="lib" >
|
||||
<include name="*.jar"/>
|
||||
</fileset>
|
||||
</path>
|
||||
|
||||
|
||||
|
||||
<!-- SETUP -->
|
||||
<target name="prepare-deploy-location">
|
||||
</target>
|
||||
|
||||
<target name="run-jnlp-task" >
|
||||
<typedef classpathref="lib.classpath" resource="net/jtools/classloadertask/antlib.xml">
|
||||
<classpath>
|
||||
<path refid="lib.classpath"/>
|
||||
</classpath>
|
||||
</typedef>
|
||||
<classloader loader="project">
|
||||
<classpath>
|
||||
<fileset dir="${app.lib.dir}" includes="*.jar"/>
|
||||
</classpath>
|
||||
</classloader>
|
||||
<taskdef name="generate-jnlp" classpathref="lib.classpath" classname="com.evolute.ant.JNLPGeneratorTask" onerror="ignore"/>
|
||||
<if>
|
||||
<isset property="TESTDEPLOY"/>
|
||||
<then>
|
||||
<generate-jnlp propertiesDir="${properties.dir}" basedir="${app.dir}" production="false"/>
|
||||
</then>
|
||||
<else>
|
||||
<generate-jnlp propertiesDir="${properties.dir}" basedir="${app.dir}" production="true"/>
|
||||
</else>
|
||||
</if>
|
||||
<antcall target="send-jnlp"/>
|
||||
</target>
|
||||
|
||||
<!-- DEPLOY -->
|
||||
|
||||
<target name="load-properties" />
|
||||
|
||||
<target name="pre-deploy" />
|
||||
|
||||
<target name="ask-deploy.version" unless="deploy.version">
|
||||
<input defaultvalue="" addproperty="deploy.version">
|
||||
<handler classpathref="lib.tools.classpath" classname="com.evolute.ant.VersionInputHandler" />
|
||||
</input>
|
||||
</target>
|
||||
|
||||
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
|
||||
<classpath>
|
||||
<pathelement location="${basedir}/lib.tools/ant-contrib-1.0b3.jar"/>
|
||||
</classpath>
|
||||
</taskdef>
|
||||
|
||||
<target name="ask-deploy.jars" unless="deploy.jars">
|
||||
<property name="deploy.jars" refid="lib.dir-jars"/>
|
||||
<var name="deploy.jars" value="${basedir}/${app.appName}.jar:${deploy.jars} "/>
|
||||
</target>
|
||||
|
||||
<target name="ask-deploy.user" unless="deploy.user">
|
||||
<input message="" addproperty="deploy.user">
|
||||
<handler classpathref="lib.tools.classpath" classname="com.evolute.ant.UserInputHandler" />
|
||||
</input>
|
||||
</target>
|
||||
|
||||
<target name="ask-deploy.password" unless="deploy.password">
|
||||
<input message="password:>" addproperty="deploy.password">
|
||||
<handler classpathref="lib.tools.classpath" classname="com.evolute.ant.PasswordInputHandler" />
|
||||
</input>
|
||||
</target>
|
||||
|
||||
<target name="app-deploy-version" if="deploy.version" depends="ask-deploy.jars,ask-deploy.user,ask-deploy.password" >
|
||||
<antcall target="app-deploy-create-jar"/>
|
||||
<antcall target="pre-deploy" />
|
||||
<antcall target="run-jnlp-task" />
|
||||
<antcall target="update-jar-jnlp"/>
|
||||
<condition property="do.abort">
|
||||
<equals arg1="${deploy.jars}" arg2="null"/>
|
||||
</condition>
|
||||
<fail if="do.abort">Deploy cancelled</fail>
|
||||
<antcall target="app-deploy-version-jars"/>
|
||||
</target>
|
||||
|
||||
<!--<scriptdef language="javascript" name="upper">
|
||||
<attribute name="string" />
|
||||
<attribute name="to" />
|
||||
|
||||
project.setProperty( attributes.get( "to" ),
|
||||
attributes.get( "string" ).toUpperCase() );
|
||||
</scriptdef>-->
|
||||
|
||||
<target name="update-jar-jnlp">
|
||||
<mkdir dir="${app.build.dir}/JNLP-INF"/>
|
||||
<!--<upper string="${app.name}" to="app.name.upper"/>-->
|
||||
<!--<echo message="olha auqui o nome em maiusculas ${app.name.upper}"></echo>-->
|
||||
<if>
|
||||
<isset property="TESTDEPLOY"/>
|
||||
<then>
|
||||
<copy file="${basedir}/jnlp/test/${app.name}.jnlp" tofile="${app.build.dir}/JNLP-INF/APPLICATION.JNLP"/>
|
||||
</then>
|
||||
<else>
|
||||
<copy file="${basedir}/jnlp/production/${app.name}.jnlp" tofile="${app.build.dir}/JNLP-INF/APPLICATION.JNLP"/>
|
||||
</else>
|
||||
</if>
|
||||
<jar destfile="${app.deploy.dist.dir}/${app.jar.name}" update="true" >
|
||||
<fileset dir="${app.build.dir}">
|
||||
<include name="**/*" />
|
||||
</fileset>
|
||||
</jar>
|
||||
<copy todir="${app.deploy.dist.lib.dir}">
|
||||
<fileset dir="${app.lib.dir}">
|
||||
<include name="**/*" />
|
||||
</fileset>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<target name="app-version-increase-test">
|
||||
<property name="TESTDEPLOY" value="yes"/>
|
||||
<antcall target="app-version-increase-build"/>
|
||||
</target>
|
||||
|
||||
<target name="app-version-increase-major">
|
||||
<propertyfile file="${app.version.file}" comment="${app.version.comment}" >
|
||||
<entry key="${properties.key.name}" value="${app.name}"/>
|
||||
<entry key="${properties.key.major}" type="int" operation="+" value="1" pattern="0" />
|
||||
<entry key="${properties.key.minor}" type="int" operation="=" value="0" pattern="0" />
|
||||
<entry key="${properties.key.build}" type="int" operation="=" value="0" pattern="0" />
|
||||
</propertyfile>
|
||||
<antcall target="app-deploy-version"/>
|
||||
</target>
|
||||
|
||||
<target name="app-version-increase-minor">
|
||||
<propertyfile file="${app.version.file}" comment="${app.version.comment}" >
|
||||
<entry key="${properties.key.name}" value="${app.name}"/>
|
||||
<entry key="${properties.key.major}" type="int" operation="+" value="0" pattern="0" />
|
||||
<entry key="${properties.key.minor}" type="int" operation="+" value="1" pattern="0" />
|
||||
<entry key="${properties.key.build}" type="int" operation="=" value="0" pattern="0" />
|
||||
</propertyfile>
|
||||
<antcall target="app-deploy-version"/>
|
||||
</target>
|
||||
|
||||
<target name="app-version-increase-build">
|
||||
<exec executable="hostname" outputproperty="computer.hostname"/>
|
||||
<propertyfile file="${app.version.file}" comment="${app.version.comment}" >
|
||||
<entry key="${properties.key.name}" value="${app.name}"/>
|
||||
<entry key="${properties.key.major}" type="int" operation="+" value="0" pattern="0" />
|
||||
<entry key="${properties.key.minor}" type="int" operation="+" value="0" pattern="0" />
|
||||
<entry key="${properties.key.build}" type="int" operation="+" value="1" pattern="0" />
|
||||
<entry key="timestamp" type="date" value="now"/>
|
||||
<entry key="user" value="${user.name}"/>
|
||||
<entry key="computer" value="${computer.hostname}"/>
|
||||
</propertyfile>
|
||||
<antcall target="app-deploy-version"/>
|
||||
</target>
|
||||
|
||||
<target name="deploy-test" if="TESTDEPLOY">
|
||||
</target>
|
||||
|
||||
<!-- NEW -->
|
||||
|
||||
<path id="lib.classpath">
|
||||
<fileset dir="${app.lib.dir}">
|
||||
<include name="*.jar"/>
|
||||
</fileset>
|
||||
</path>
|
||||
|
||||
<target name="send-jnlp">
|
||||
<if>
|
||||
<isset property="TESTDEPLOY"/>
|
||||
<then>
|
||||
<sshexec trust="yes" host="${app.deploy.docs.server}" username="${deploy.user}" command="mkdir -p /home/software/public_html/versoes_teste/${app.appName}/lib" password="${deploy.password}" />
|
||||
<sshexec trust="yes" host="${app.deploy.docs.server}" username="${deploy.user}" command="chmod -R -f g+w /home/software/public_html/versoes_teste/${app.appName}; true" password="${deploy.password}" />
|
||||
<sshexec trust="yes" host="${app.deploy.docs.server}" username="${deploy.user}" command="chown -R -f :software /home/software/public_html/versoes_teste/${app.appName}; true" password="${deploy.password}" />
|
||||
</then>
|
||||
<else>
|
||||
<sshexec trust="yes" host="${app.deploy.docs.server}" username="${deploy.user}" command="mkdir -p /home/software/public_html/${app.appName}/lib" password="${deploy.password}" />
|
||||
<sshexec trust="yes" host="${app.deploy.docs.server}" username="${deploy.user}" command="chmod -R -f g+w /home/software/public_html/${app.appName}; true" password="${deploy.password}" />
|
||||
<sshexec trust="yes" host="${app.deploy.docs.server}" username="${deploy.user}" command="chown -R -f :software /home/software/public_html/${app.appName}; true" password="${deploy.password}" />
|
||||
</else>
|
||||
</if>
|
||||
<if>
|
||||
<isset property="TESTDEPLOY"/>
|
||||
<then>
|
||||
<if>
|
||||
<available file="${basedir}/jnlp/test" type="dir"/>
|
||||
<then>
|
||||
<scp todir="${deploy.user}@${app.deploy.server}:/home/software/public_html/versoes_teste/${app.appName}" password="${deploy.password}" sftp="true" trust="true" >
|
||||
<fileset dir="${basedir}/jnlp/test" includes="*.jnlp"/>
|
||||
</scp>
|
||||
</then>
|
||||
</if>
|
||||
<if>
|
||||
<available file="${basedir}/jnlp/extensions/test" type="dir"/>
|
||||
<then>
|
||||
<scp todir="${deploy.user}@${app.deploy.server}:/home/software/public_html/versoes_teste/${app.appName}" password="${deploy.password}" sftp="true" trust="true" >
|
||||
<fileset dir="${basedir}/jnlp/extensions/test" includes="*.jnlp"/>
|
||||
</scp>
|
||||
</then>
|
||||
</if>
|
||||
</then>
|
||||
<else>
|
||||
<scp todir="${deploy.user}@${app.deploy.server}:/home/software/public_html/${app.appName}" password="${deploy.password}" sftp="true" trust="true" >
|
||||
<fileset dir="${basedir}/jnlp/production" includes="*.jnlp"/>
|
||||
</scp>
|
||||
<if>
|
||||
<available file="${basedir}/jnlp/extensions/production" type="dir"/>
|
||||
<then>
|
||||
<scp todir="${deploy.user}@${app.deploy.server}:/home/software/public_html/${app.appName}" password="${deploy.password}" sftp="true" trust="true" >
|
||||
<fileset dir="${basedir}/jnlp/extensions/production" includes="*.jnlp"/>
|
||||
</scp>
|
||||
</then>
|
||||
</if>
|
||||
</else>
|
||||
</if>
|
||||
|
||||
</target>
|
||||
|
||||
<!-- CORRER INICIALMENTE -->
|
||||
|
||||
<path id="pack.dir-jars">
|
||||
<fileset dir="signed/packed" >
|
||||
<include name="lib/*.jar*"/>
|
||||
<include name="${app.jar.name}*"/>
|
||||
</fileset>
|
||||
</path>
|
||||
|
||||
|
||||
<target name="inicial">
|
||||
<echo message="Jars: ${deploy.jars}"/>
|
||||
<delete dir="signed"/>
|
||||
<mkdir dir="signed/lib"/>
|
||||
<mkdir dir="signed/packed/lib"/>
|
||||
<property name="unsigned.jars" value=""/>
|
||||
<property name="signed.jars" value=""/>
|
||||
|
||||
<for list="${deploy.jars}" param="jar" delimiter=":">
|
||||
<sequential>
|
||||
<exec dir="deploy/lib" command="jarsigner" outputproperty="@{jar}.verify">
|
||||
<arg line="-verify"/>
|
||||
<arg line="@{jar}"/>
|
||||
</exec>
|
||||
<if>
|
||||
<contains string="${@{jar}.verify}" substring="jar is unsigned"/>
|
||||
<then>
|
||||
<var name="unsigned.jars" value="${unsigned.jars} @{jar}"/>
|
||||
</then>
|
||||
<else>
|
||||
<if>
|
||||
<contains string="${@{jar}.verify}" substring="jar verified"/>
|
||||
<then>
|
||||
<var name="signed.jars" value="${signed.jars} @{jar}"/>
|
||||
</then>
|
||||
</if>
|
||||
</else>
|
||||
</if>
|
||||
</sequential>
|
||||
</for>
|
||||
|
||||
<echo message="unsigned: ${unsigned.jars}"/>
|
||||
<echo message="Signed jars = ${signed.jars}"/>
|
||||
|
||||
<echo message="Repacking..."/>
|
||||
<for list="${unsigned.jars}" param="jar" delimiter=" ">
|
||||
<sequential>
|
||||
<apply executable="pack200" parallel="false" failonerror="false">
|
||||
<arg value="--repack"/>
|
||||
<arg value="--segment-limit=-1"/>
|
||||
<fileset file="@{jar}" />
|
||||
</apply>
|
||||
</sequential>
|
||||
</for>
|
||||
|
||||
<echo message=" home = ${user.home}"/>
|
||||
|
||||
|
||||
<echo message="Signing..."/>
|
||||
<for list="${unsigned.jars}" param="jar" delimiter=" ">
|
||||
<sequential>
|
||||
<signjar destDir="signed" alias="id evolute, consultoria informática do comodo ca limited" storetype="pkcs12" keystore="ant/evolute.keystore" storepass="Typein" >
|
||||
<path>
|
||||
<fileset file="@{jar}" />
|
||||
</path>
|
||||
</signjar>
|
||||
</sequential>
|
||||
</for>
|
||||
|
||||
<signjar destDir="signed" alias="id evolute, consultoria informática do comodo ca limited" storetype="pkcs12" keystore="ant/evolute.keystore" storepass="Typein" >
|
||||
<path>
|
||||
<fileset dir="deploy" includes="${app.name}.jar" />
|
||||
</path>
|
||||
</signjar>
|
||||
|
||||
<property name="deploy.jars.copy" value=""/>
|
||||
<for list="${deploy.jars}" param="jar" delimiter=":">
|
||||
<sequential>
|
||||
<var name="deploy.jars.copy" value="${deploy.jars.copy} @{jar}"/>
|
||||
</sequential>
|
||||
</for>
|
||||
|
||||
<for list="${deploy.jars.copy}" param="jar" delimiter=" ">
|
||||
<sequential>
|
||||
<delete file="@{jar}.pack.gz"/>
|
||||
</sequential>
|
||||
</for>
|
||||
|
||||
|
||||
<if>
|
||||
<equals arg1="${jnlp.resources.property.jnlp.packEnabled}" arg2="true"/>
|
||||
<then>
|
||||
<echo message="Packing..."/>
|
||||
<for list="${unsigned.jars}" param="jar" delimiter=" ">
|
||||
<sequential>
|
||||
<apply executable="pack200" parallel="false" dest="signed/packed/lib" failonerror="false">
|
||||
<arg value="--segment-limit=-1"/>
|
||||
<targetfile/>
|
||||
<srcfile/>
|
||||
<fileset file="@{jar}" />
|
||||
<mapper type="glob" from="*" to="*.pack.gz" />
|
||||
</apply>
|
||||
</sequential>
|
||||
</for>
|
||||
</then>
|
||||
</if>
|
||||
|
||||
<for list="${signed.jars}" param="jar" delimiter=" ">
|
||||
<sequential>
|
||||
<echo message="@{jar}"/>
|
||||
<copy failonerror="false" verbose="true" overwrite="true" toDir="signed/lib" >
|
||||
<fileset file="@{jar}"/>
|
||||
</copy>
|
||||
</sequential>
|
||||
</for>
|
||||
|
||||
<property name="pack.jars" refid="pack.dir-jars"/>
|
||||
<echo message="Pack jars = ${pack.jars}"/>
|
||||
|
||||
<property name="pack.jars.copy" value=""/>
|
||||
<for list="${pack.jars}" param="jar" delimiter=":">
|
||||
<sequential>
|
||||
<var name="pack.jars.copy" value="${pack.jars.copy} @{jar}"/>
|
||||
</sequential>
|
||||
</for>
|
||||
|
||||
<echo message="Pack jars = ${pack.jars.copy}"/>
|
||||
|
||||
<java fork="true" failonerror="yes" classname="com.evolute.xml.BuildXML" classpathref="lib.tools.classpath">
|
||||
<arg line="${basedir} ${deploy.jars.copy} ${pack.jars.copy} inicial"/>
|
||||
</java>
|
||||
|
||||
<if>
|
||||
<isset property="TESTDEPLOY"/>
|
||||
<then>
|
||||
<echo message="isto é um teste"/>
|
||||
<echo message="other jars = ${other.jars}"/>
|
||||
<scp todir="${deploy.user}@${app.deploy.server}:/home/software/public_html/versoes_teste/${app.appName}" password="${deploy.password}" sftp="true" trust="true" >
|
||||
<fileset dir="${basedir}/signed" includes="${deploy.jars}"/>
|
||||
</scp>
|
||||
</then>
|
||||
<else>
|
||||
<echo message="other jars = ${other.jars}"/>
|
||||
<scp todir="${deploy.user}@${app.deploy.server}:/home/software/public_html/${app.appName}" password="${deploy.password}" sftp="true" trust="true" >
|
||||
<fileset dir="${basedir}/signed" includes="**/*.jar"/>
|
||||
</scp>
|
||||
</else>
|
||||
</if>
|
||||
|
||||
|
||||
<scp todir="${deploy.user}@${app.deploy.server}:/home/software/public_html/${app.appName}" password="${deploy.password}" sftp="true" trust="true" >
|
||||
<fileset dir="${basedir}/signed/packed" includes="**/*.pack.gz"/>
|
||||
</scp>
|
||||
|
||||
<if>
|
||||
<isset property="TESTDEPLOY"/>
|
||||
<then>
|
||||
<sshexec trust="yes" host="${app.deploy.docs.server}" username="${deploy.user}" command="chmod -R -f g+w /home/software/public_html/versoes_teste/${app.appName}; true" password="${deploy.password}" />
|
||||
<sshexec trust="yes" host="${app.deploy.docs.server}" username="${deploy.user}" command="chown -R -f :software /home/software/public_html/versoes_teste/${app.appName}; true" password="${deploy.password}" />
|
||||
</then>
|
||||
<else>
|
||||
<sshexec trust="yes" host="${app.deploy.docs.server}" username="${deploy.user}" command="chmod -R -f g+w /home/software/public_html/${app.appName}; true" password="${deploy.password}" />
|
||||
<sshexec trust="yes" host="${app.deploy.docs.server}" username="${deploy.user}" command="chown -R -f :software /home/software/public_html/${app.appName}; true" password="${deploy.password}" />
|
||||
</else>
|
||||
</if>
|
||||
|
||||
<delete file="signed/${app.appName}.jar"/>
|
||||
<delete file="signed/packed/${app.appName}.jar.pack.gz"/>
|
||||
|
||||
</target>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- FIM CORRER INICIALMENTE -->
|
||||
|
||||
|
||||
<target name="deploy-production">
|
||||
<echo message="Deploying to ${deploy.user}@${app.deploy.server}"/>
|
||||
<if>
|
||||
<available file="${basedir}/clientJars.xml" type="file"/>
|
||||
<then>
|
||||
<xmlproperty file="clientJars.xml"/>
|
||||
<if>
|
||||
<not>
|
||||
<isset property="project.signed-jar-files.name"/>
|
||||
</not>
|
||||
<then>
|
||||
<antcall target="inicial"/>
|
||||
</then>
|
||||
<else>
|
||||
<antcall target="create-new-xml-client-jar"/>
|
||||
<antcall target="delete-principal-jar"/>
|
||||
</else>
|
||||
</if>
|
||||
</then>
|
||||
<else>
|
||||
<antcall target="inicial"/>
|
||||
</else>
|
||||
</if>
|
||||
</target>
|
||||
|
||||
|
||||
<target name="create-new-xml-client-jar">
|
||||
<property name="deploy.jars.copy" value=""/>
|
||||
<for list="${deploy.jars}" param="jar" delimiter=":">
|
||||
<sequential>
|
||||
<var name="deploy.jars.copy" value="${deploy.jars.copy} @{jar}"/>
|
||||
</sequential>
|
||||
</for>
|
||||
<java fork="true" failonerror="yes" classname="com.evolute.xml.BuildXML" classpathref="lib.tools.classpath">
|
||||
<arg line="${basedir} ${deploy.jars.copy} novo"/>
|
||||
</java>
|
||||
</target>
|
||||
|
||||
<target name="recognize-xml-2">
|
||||
<xmlproperty file="clientJars.xml"/>
|
||||
<xmlproperty file="newClientJars.xml"/>
|
||||
</target>
|
||||
|
||||
|
||||
<target name="compare-old-and-current-2" depends="recognize-xml-2">
|
||||
<property name="different.jars" value=" "/>
|
||||
<property name="toDeploy.packed" value=" "/>
|
||||
<echo message="project.jar-files = ${project.jar-files.name}"/>
|
||||
<echo message="project.new-jar-files = ${project.new-jar-files.name}"/>
|
||||
<for list="${project.new-jar-files.name}" param="jar">
|
||||
<sequential>
|
||||
<if>
|
||||
<and>
|
||||
<equals arg1="${jnlp.resources.property.jnlp.packEnabled}" arg2="true"/>
|
||||
<not>
|
||||
<available file="${basedir}/signed/packed/${project.new-jar-files.name(@{jar}-path)}@{jar}.pack.gz" type="file"/>
|
||||
</not>
|
||||
<not>
|
||||
<contains string="${signed.jars}" substring="@{jar}"/>
|
||||
</not>
|
||||
</and>
|
||||
<then>
|
||||
<var name="toDeploy.packed" value="${toDeploy.packed} ${project.new-jar-files.name(@{jar}-path)}@{jar}"/>
|
||||
</then>
|
||||
</if>
|
||||
<if>
|
||||
<not>
|
||||
<available file="${basedir}/signed/${project.new-jar-files.name(@{jar}-path)}@{jar}" type="file"/>
|
||||
</not>
|
||||
<then>
|
||||
<var name="different.jars" value="${different.jars} ${project.new-jar-files.name(@{jar}-path)}@{jar}"/>
|
||||
</then>
|
||||
<else>
|
||||
<for list="${project.jar-files.name}" param="oldJar">
|
||||
<sequential>
|
||||
<if>
|
||||
<equals arg1="@{jar}" arg2="@{oldJar}"/>
|
||||
<then>
|
||||
<property name="@{jar}-name-exists" value=""/>
|
||||
<if>
|
||||
<not>
|
||||
<equals arg1="${project.jar-files.name(@{jar}-md5)}" arg2="${project.new-jar-files.name(@{oldJar}-md5)}"/>
|
||||
</not>
|
||||
<then>
|
||||
<var name="different.jars" value="${different.jars} ${project.new-jar-files.name(@{jar}-path)}@{jar}"/>
|
||||
</then>
|
||||
</if>
|
||||
</then>
|
||||
</if>
|
||||
</sequential>
|
||||
</for>
|
||||
<if>
|
||||
<not>
|
||||
<isset property="@{jar}-name-exists"/>
|
||||
</not>
|
||||
<then>
|
||||
<var name="different.jars" value="${different.jars} ${project.new-jar-files.name(@{jar}-path)}@{jar}"/>
|
||||
</then>
|
||||
</if>
|
||||
</else>
|
||||
</if>
|
||||
</sequential>
|
||||
</for>
|
||||
<echo message="different jars = ${different.jars}"/>
|
||||
</target>
|
||||
|
||||
<target name="check-if-is-signed" depends="compare-old-and-current-2">
|
||||
<property name="unsigned.jars" value=""/>
|
||||
<property name="signed.jars" value=""/>
|
||||
|
||||
<for list="${different.jars}" param="jar" delimiter=" ">
|
||||
<sequential>
|
||||
<exec dir="deploy" command="jarsigner" outputproperty="@{jar}.verify">
|
||||
<arg line="-verify"/>
|
||||
<arg line="@{jar}"/>
|
||||
</exec>
|
||||
<if>
|
||||
<contains string="${@{jar}.verify}" substring="jar is unsigned"/>
|
||||
<then>
|
||||
<var name="unsigned.jars" value="${unsigned.jars} @{jar}"/>
|
||||
</then>
|
||||
<else>
|
||||
<if>
|
||||
<contains string="${@{jar}.verify}" substring="jar verified"/>
|
||||
<then>
|
||||
<var name="signed.jars" value="${signed.jars} @{jar}"/>
|
||||
</then>
|
||||
</if>
|
||||
</else>
|
||||
</if>
|
||||
</sequential>
|
||||
</for>
|
||||
|
||||
<echo message="unsigned: ${unsigned.jars}"/>
|
||||
<echo message="Signed jars = ${signed.jars}"/>
|
||||
</target>
|
||||
|
||||
<target name="repack-jars" depends="check-if-is-signed">
|
||||
<apply executable="pack200" parallel="false" failonerror="false">
|
||||
<arg value="--repack"/>
|
||||
<arg value="--segment-limit=-1"/>
|
||||
<fileset dir="deploy" includes="${unsigned.jars}" />
|
||||
</apply>
|
||||
</target>
|
||||
|
||||
<target name="sign-jars-2" depends="repack-jars">
|
||||
<echo message="Signing jars..."/>
|
||||
<mkdir dir="signed/lib"/>
|
||||
<mkdir dir="signed/packed/lib"/>
|
||||
|
||||
<signjar destDir="signed" alias="id evolute, consultoria informática do comodo ca limited" storetype="pkcs12" keystore="ant/evolute.keystore" storepass="Typein" >
|
||||
<path>
|
||||
<fileset dir="deploy" includes="${unsigned.jars}" />
|
||||
</path>
|
||||
</signjar>
|
||||
|
||||
<for list="${unsigned.jars}" param="jar" delimiter=" ">
|
||||
<sequential>
|
||||
<delete file="${basedir}/signed/packed/@{jar}.pack.gz"/>
|
||||
</sequential>
|
||||
</for>
|
||||
</target>
|
||||
|
||||
<target name="copy-signed" depends="sign-jars-2">
|
||||
<if>
|
||||
<contains string="${signed.jars}" substring=" "/>
|
||||
<then>
|
||||
<copy failonerror="false" verbose="true" overwrite="true" toDir="signed" >
|
||||
<fileset dir="deploy" includes="${signed.jars}"/>
|
||||
</copy>
|
||||
</then>
|
||||
</if>
|
||||
</target>
|
||||
|
||||
<target name="pack-jars-2" depends="copy-signed">
|
||||
<echo message="Unsigned: ${unsigned.jars} "/>
|
||||
<for list="${unsigned.jars}" param="jar" delimiter=" ">
|
||||
<sequential>
|
||||
<if>
|
||||
<not>
|
||||
<contains string="${toDeploy.packed}" substring="@{jar}"/>
|
||||
</not>
|
||||
<then>
|
||||
<var name="toDeploy.packed" value="${toDeploy.packed} @{jar}"/>
|
||||
</then>
|
||||
</if>
|
||||
</sequential>
|
||||
</for>
|
||||
<property name="toDeploy.packed.copy" value=""/>
|
||||
|
||||
<property name="deploy.signed" value=""/>
|
||||
|
||||
<if>
|
||||
<equals arg1="${jnlp.resources.property.jnlp.packEnabled}" arg2="true"/>
|
||||
<then>
|
||||
<for list="${deploy.jars}" param="jar" delimiter=":">
|
||||
<sequential>
|
||||
<exec dir="deploy/lib" command="jarsigner" outputproperty="@{jar}.verify">
|
||||
<arg line="-verify"/>
|
||||
<arg line="@{jar}"/>
|
||||
</exec>
|
||||
<if>
|
||||
<contains string="${@{jar}.verify}" substring="jar verified"/>
|
||||
<then>
|
||||
<var name="deploy.signed" value="${deploy.signed} @{jar}"/>
|
||||
</then>
|
||||
</if>
|
||||
</sequential>
|
||||
</for>
|
||||
</then>
|
||||
</if>
|
||||
|
||||
<for list="${toDeploy.packed}" param="jar" delimiter=" ">
|
||||
<sequential>
|
||||
<if>
|
||||
<not>
|
||||
<contains string="${deploy.signed}" substring="@{jar}"/>
|
||||
</not>
|
||||
<then>
|
||||
<var name="toDeploy.packed.copy" value="${toDeploy.packed.copy} @{jar}"/>
|
||||
</then>
|
||||
</if>
|
||||
</sequential>
|
||||
</for>
|
||||
<if>
|
||||
<equals arg1="${jnlp.resources.property.jnlp.packEnabled}" arg2="true"/>
|
||||
<then>
|
||||
<echo message="Packing jars..."/>
|
||||
<echo message="toDeploy.packed.copy = ${toDeploy.packed.copy}"/>
|
||||
<apply executable="pack200" parallel="false" dest="signed/packed" failonerror="false">
|
||||
<arg value="--modification-time=latest"/>
|
||||
<arg value="--deflate-hint=true"/>
|
||||
<arg value="--segment-limit=-1"/>
|
||||
<targetfile/>
|
||||
<srcfile/>
|
||||
<fileset dir="signed" includes="${toDeploy.packed.copy}" />
|
||||
<mapper type="glob" from="*" to="*.pack.gz" />
|
||||
</apply>
|
||||
</then>
|
||||
</if>
|
||||
</target>
|
||||
|
||||
<target name="alter-client-jar-xml" depends="pack-jars-2">
|
||||
<property name="deploy.jars.copy" value=""/>
|
||||
<for list="${deploy.jars}" param="jar" delimiter=":">
|
||||
<sequential>
|
||||
<var name="deploy.jars.copy" value="${deploy.jars.copy} @{jar}"/>
|
||||
</sequential>
|
||||
</for>
|
||||
|
||||
<property name="pack.jars" refid="pack.dir-jars"/>
|
||||
<echo message="Pack jars = ${pack.jars}"/>
|
||||
|
||||
<property name="pack.jars.copy" value=""/>
|
||||
<for list="${pack.jars}" param="jar" delimiter=":">
|
||||
<sequential>
|
||||
<var name="pack.jars.copy" value="${pack.jars.copy} @{jar}"/>
|
||||
</sequential>
|
||||
</for>
|
||||
|
||||
<echo message="Deploy jars = ${deploy.jars.copy}"/>
|
||||
<echo message="Pack jars = ${pack.jars.copy}"/>
|
||||
|
||||
<java fork="true" failonerror="yes" classname="com.evolute.xml.BuildXML" classpathref="lib.tools.classpath">
|
||||
<arg line="${basedir} ${deploy.jars.copy} ${pack.jars.copy} inicial"/>
|
||||
</java>
|
||||
</target>
|
||||
|
||||
<target name="verify-jars-at-server-2" depends="alter-client-jar-xml">
|
||||
<echo message="nome da aplicacao = ${app.name}"/>
|
||||
<if>
|
||||
<isset property="TESTDEPLOY"/>
|
||||
<then>
|
||||
<sshexec verbose="false" failonerror="true" trust="yes" host="${app.deploy.server}" username="${deploy.user}" command='find /home/software/public_html/versoes_teste/${app.name} -name "*.jar*" -exec md5sum {} +' password="${deploy.password}" output="jarsAtServer.txt" outputproperty="trash" />
|
||||
<java fork="true" failonerror="yes" classname="com.evolute.xml.ServerJarsXml" classpathref="lib.tools.classpath">
|
||||
<arg line="versoes_teste/${app.appName}"/>
|
||||
</java>
|
||||
</then>
|
||||
<else>
|
||||
<sshexec verbose="false" failonerror="true" trust="yes" host="${app.deploy.server}" username="${deploy.user}" command='find /home/software/public_html/${app.name} -name "*.jar*" -exec md5sum {} +' password="${deploy.password}" output="jarsAtServer.txt" outputproperty="trash" />
|
||||
<java fork="true" failonerror="yes" classname="com.evolute.xml.ServerJarsXml" classpathref="lib.tools.classpath">
|
||||
<arg line="${app.appName}"/>
|
||||
</java>
|
||||
</else>
|
||||
</if>
|
||||
<xmlproperty file="currentServerJars.xml"/>
|
||||
</target>
|
||||
|
||||
<target name="compare-client-and-server-jars" depends="verify-jars-at-server-2">
|
||||
<xmlproperty file="clientJars.xml" prefix="new"/>
|
||||
<xmlproperty file="currentServerJars.xml"/>
|
||||
<property name="toDeploy.jars" value=""/>
|
||||
<for list="${new.project.signed-jar-files.name}" param="jar">
|
||||
<sequential>
|
||||
<for list="${current-server-jar-files.name}" param="currJar">
|
||||
<sequential>
|
||||
<if>
|
||||
<and>
|
||||
<equals arg1="@{jar}" arg2="@{currJar}"/>
|
||||
<equals arg1="${new.project.signed-jar-files.name(@{jar}-md5)}" arg2="${current-server-jar-files.name(@{currJar}-md5)}"/>
|
||||
</and>
|
||||
<then>
|
||||
<property name="@{jar}-exists-on-server" value=""/>
|
||||
</then>
|
||||
</if>
|
||||
</sequential>
|
||||
</for>
|
||||
<if>
|
||||
<not>
|
||||
<isset property="@{jar}-exists-on-server"/>
|
||||
</not>
|
||||
<then>
|
||||
<var name="toDeploy.jars" value="${toDeploy.jars} ${new.project.signed-jar-files.name(@{jar}-path)}@{jar}"/>
|
||||
</then>
|
||||
</if>
|
||||
</sequential>
|
||||
</for>
|
||||
<echo message="toDeploy.jars = ${toDeploy.jars}"/>
|
||||
</target>
|
||||
|
||||
<target name="send-jars-to-server-2" depends="compare-client-and-server-jars">
|
||||
<echo message="Jars to deploy: ${toDeploy.jars}"/>
|
||||
<for list="${toDeploy.jars}" param="jar" delimiter=" ">
|
||||
<sequential>
|
||||
<if>
|
||||
<and>
|
||||
<contains string="@{jar}" substring=".pack.gz"/>
|
||||
<equals arg1="${jnlp.resources.property.jnlp.packEnabled}" arg2="true"/>
|
||||
</and>
|
||||
<then>
|
||||
<if>
|
||||
<isset property="TESTDEPLOY"/>
|
||||
<then>
|
||||
<echo message="scp @{jar} ${deploy.user}@${app.deploy.server}:/home/software/public_html/versoes_teste/${app.appName}"/>
|
||||
<scp todir="${deploy.user}@${app.deploy.server}:/home/software/public_html/versoes_teste/${app.appName}" password="${deploy.password}" sftp="true" trust="true" >
|
||||
<fileset dir="${basedir}/signed/packed" includes="@{jar}"/>
|
||||
</scp>
|
||||
</then>
|
||||
<else>
|
||||
<echo message="scp @{jar} ${deploy.user}@${app.deploy.server}:/home/software/public_html/${app.appName}"/>
|
||||
<scp todir="${deploy.user}@${app.deploy.server}:/home/software/public_html/${app.appName}" password="${deploy.password}" sftp="true" trust="true" >
|
||||
<fileset dir="${basedir}/signed/packed" includes="@{jar}"/>
|
||||
</scp>
|
||||
</else>
|
||||
</if>
|
||||
</then>
|
||||
<else>
|
||||
<if>
|
||||
<and>
|
||||
<not>
|
||||
<contains string="@{jar}" substring=".pack.gz"/>
|
||||
</not>
|
||||
<not>
|
||||
<equals arg1="${jnlp.resources.property.jnlp.packEnabled}" arg2="true"/>
|
||||
</not>
|
||||
</and>
|
||||
<then>
|
||||
<if>
|
||||
<isset property="TESTDEPLOY"/>
|
||||
<then>
|
||||
<echo message="scp @{jar} ${deploy.user}@${app.deploy.server}:/home/software/public_html/versoes_teste/${app.appName}"/>
|
||||
<scp todir="${deploy.user}@${app.deploy.server}:/home/software/public_html/versoes_teste/${app.appName}" password="${deploy.password}" sftp="true" trust="true" >
|
||||
<fileset dir="${basedir}/signed" includes="@{jar}"/>
|
||||
</scp>
|
||||
</then>
|
||||
<else>
|
||||
<echo message="scp @{jar} ${deploy.user}@${app.deploy.server}:/home/software/public_html/${app.appName}"/>
|
||||
<scp todir="${deploy.user}@${app.deploy.server}:/home/software/public_html/${app.appName}" password="${deploy.password}" sftp="true" trust="true" >
|
||||
<fileset dir="${basedir}/signed" includes="@{jar}"/>
|
||||
</scp>
|
||||
</else>
|
||||
</if>
|
||||
</then>
|
||||
</if>
|
||||
</else>
|
||||
</if>
|
||||
</sequential>
|
||||
</for>
|
||||
<if>
|
||||
<isset property="TESTDEPLOY"/>
|
||||
<then>
|
||||
<sshexec trust="yes" host="${app.deploy.docs.server}" username="${deploy.user}" command="chmod -R -f g+w /home/software/public_html/versoes_teste/${app.appName}; true" password="${deploy.password}" />
|
||||
<sshexec trust="yes" host="${app.deploy.docs.server}" username="${deploy.user}" command="chown -R -f :software /home/software/public_html/versoes_teste/${app.appName}; true" password="${deploy.password}" />
|
||||
</then>
|
||||
<else>
|
||||
<sshexec trust="yes" host="${app.deploy.docs.server}" username="${deploy.user}" command="chmod -R -f g+w /home/software/public_html/${app.appName}; true" password="${deploy.password}" />
|
||||
<sshexec trust="yes" host="${app.deploy.docs.server}" username="${deploy.user}" command="chown -R -f :software /home/software/public_html/${app.appName}; true" password="${deploy.password}" />
|
||||
</else>
|
||||
</if>
|
||||
</target>
|
||||
|
||||
<target name="delete-principal-jar" depends="send-jars-to-server-2">
|
||||
<delete file="signed/${app.appName}.jar"/>
|
||||
<delete file="signed/packed/${app.appName}.jar.pack.gz"/>
|
||||
<delete file="currentServerJars.xml"/>
|
||||
<delete file="jarsAtServer.txt"/>
|
||||
<delete file="newClientJars.xml"/>
|
||||
</target>
|
||||
|
||||
<!-- END NEW -->
|
||||
|
||||
<!-- TEST PROJECT -->
|
||||
|
||||
|
||||
<target name="test-project">
|
||||
<property file="script.properties"/>
|
||||
<echo message="${svn_repo} ${user} ${pass} ${target} ${build}"/>
|
||||
<antcall target="app-create-jar"/>
|
||||
</target>
|
||||
|
||||
<target name="deploy-project-script">
|
||||
<property file="script.properties"/>
|
||||
<antcall target="app-deploy"/>
|
||||
</target>
|
||||
|
||||
|
||||
<!-- END TEST PROJECT -->
|
||||
|
||||
<target name="app-deploy-version-jars-user-pass" if="deploy.password">
|
||||
<antcall target="prepare-deploy-location" />
|
||||
<echo message="Uploading files: ${deploy.jars}"/>
|
||||
<scp todir="${deploy.user}@${app.deploy.server}:${app.deploy.path}" password="${deploy.password}" sftp="true" trust="true" >
|
||||
<fileset dir="${app.deploy.dist.dir}" includes="${deploy.jars}"/>
|
||||
</scp>
|
||||
<echo message="Uploading jnlps"/>
|
||||
<antcall target="deploy-test"/>
|
||||
<antcall target="deploy-production"/>
|
||||
</target>
|
||||
|
||||
<target name="app-deploy-version-jars-user" if="deploy.user">
|
||||
<antcall target="app-deploy-version-jars-user-pass"/>
|
||||
</target>
|
||||
|
||||
<target name="app-deploy-version-jars" if="deploy.jars" >
|
||||
<antcall target="app-deploy-version-jars-user" />
|
||||
</target>
|
||||
|
||||
<target name="app-deploy-choose-version" if="deploy.version" >
|
||||
<antcall target="app-version-increase-${deploy.version}" />
|
||||
</target>
|
||||
|
||||
<target name="app-deploy" description="Deploys application" depends="load-properties,ask-deploy.version">
|
||||
<antcall target="app-deploy-choose-version"/>
|
||||
<antcall target="app-create-software-evo-licensor"/>
|
||||
</target>
|
||||
|
||||
<target name="app-create-software-evo-licensor" depends="load-properties">
|
||||
<property file="${app.version.file}" prefix="version" />
|
||||
<typedef classpathref="lib.tools.classpath" resource="net/jtools/classloadertask/antlib.xml">
|
||||
<classpath>
|
||||
<path refid="lib.tools.classpath"/>
|
||||
</classpath>
|
||||
</typedef>
|
||||
<classloader loader="project">
|
||||
<classpath>
|
||||
<fileset dir="${lib.tools.dir}" includes="*.jar"/>
|
||||
<fileset dir="${app.lib.dir}" includes="*.jar"/>
|
||||
</classpath>
|
||||
</classloader>
|
||||
<taskdef name="createTask" classpathref="lib.tools.classpath" classname="com.evolute.ant.CreateSoftwareAntTask" onerror="ignore"/>
|
||||
<createTask projectVersion="${version.major}.${version.minor}.${version.build}" projectName="${app.name}" />
|
||||
</target>
|
||||
|
||||
<!-- DOCUMENTATION -->
|
||||
|
||||
<target name="docs-generate-upload" description="Generates and uploads the project documentation" depends="load-properties,docs-generate,docs-upload"/>
|
||||
|
||||
<target name="docs-generate">
|
||||
<mkdir dir="${docs.api.dir}"/>
|
||||
<javadoc verbose="true" classpath="lib.docs.classpath" destdir="${docs.api.dir}" docencoding="UTF-8" doctitle="${app.name}" sourcepath="${app.src.dir}" />
|
||||
</target>
|
||||
|
||||
<target name="docs-upload">
|
||||
<input message="" addproperty="deploy.user">
|
||||
<handler classpathref="lib.tools.classpath" classname="com.evolute.ant.UserInputHandler" />
|
||||
</input>
|
||||
<input message="password:>" addproperty="deploy.password">
|
||||
<handler classpathref="lib.tools.classpath" classname="com.evolute.ant.PasswordInputHandler" />
|
||||
</input>
|
||||
<typedef classpathref="lib.tools.classpath" resource="net/jtools/classloadertask/antlib.xml">
|
||||
<classpath>
|
||||
<path refid="lib.tools.classpath"/>
|
||||
</classpath>
|
||||
</typedef>
|
||||
<classloader loader="project">
|
||||
<classpath>
|
||||
<fileset dir="${lib.tools.dir}" includes="*.jar"/>
|
||||
</classpath>
|
||||
</classloader>
|
||||
<sshexec trust="yes" host="${app.deploy.docs.server}" username="${deploy.user}" command="sh ${app.docs.prepare.script} ${app.name}" password="${deploy.password}" />
|
||||
<scp todir="${deploy.user}@${app.deploy.docs.server}:${app.deploy.docs.path}" password="${deploy.password}" sftp="true" trust="true" >
|
||||
<fileset dir="${docs.dir}"/>
|
||||
</scp>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
@ -0,0 +1,88 @@
|
||||
<project name="evo-app-load-properties" basedir="../../">
|
||||
|
||||
<property name="properties.base.dir" value="${basedir}/properties" />
|
||||
<property name="lib.tools.dir" value="${basedir}/lib.tools" />
|
||||
|
||||
<path id="lib.tools.classpath">
|
||||
<fileset dir="${lib.tools.dir}" />
|
||||
</path>
|
||||
|
||||
<target name="load-static-properties" >
|
||||
<property name="app.dir" value="${basedir}" />
|
||||
<property name="evolute.dir" value="${basedir}/../evolute" />
|
||||
<property name="evolute.lib.dir" value="${evolute.dir}/lib" />
|
||||
<property name="evolute.lib.tools.dir" value="${evolute.dir}/lib.tools" />
|
||||
<property name="evolute.ant.dir" value="${evolute.dir}/ant" />
|
||||
<property name="evolute.jar.name" value="evolute.jar" />
|
||||
<property name="docs.dir" value="${app.dir}/docs" />
|
||||
<property name="docs.api.dir" value="${docs.dir}/api" />
|
||||
<property name="app.src.dir" value="${app.dir}/src" />
|
||||
<property name="app.lib.dir" value="${app.dir}/lib" />
|
||||
<property name="deploy.project.relative.lib.dir" value="lib" />
|
||||
<property name="app.dist.dir" value="${app.dir}/dist" />
|
||||
<property name="app.dist.lib.dir" value="${app.dist.dir}/lib" />
|
||||
<property name="app.deploy.dist.dir" value="${app.dir}/deploy" />
|
||||
<property name="app.deploy.dist.lib.dir" value="${app.deploy.dist.dir}/lib" />
|
||||
<property name="app.build.dir" value="${app.dir}/build" />
|
||||
<property name="app.dependencies.chache.dir" value="${app.dir}/dependenciesCache" />
|
||||
<property name="codegen.project.ant" value="${basedir}/../codegen/build.xml"/>
|
||||
<property name="codegen.properties.file" value="${basedir}/properties/codegen.xml"/>
|
||||
<property name="leaf.project.ant" value="${basedir}/../LEAF/build.xml"/>
|
||||
|
||||
<path id="app.jar.classpath">
|
||||
<fileset dir="${app.lib.dir}" />
|
||||
</path>
|
||||
|
||||
<path id="app.build.classpath">
|
||||
<pathelement location="${app.build.dir}" />
|
||||
<path refid="app.jar.classpath" />
|
||||
</path>
|
||||
|
||||
<path id="lib.docs.classpath">
|
||||
<path refid="lib.tools.classpath" />
|
||||
<path refid="app.jar.classpath" />
|
||||
</path>
|
||||
|
||||
<typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="lib.tools.classpath" />
|
||||
|
||||
</target>
|
||||
|
||||
<target name="load-properties-file" >
|
||||
<property name="properties.dir" value="${properties.base.dir}" />
|
||||
<property file="${properties.dir}/app.properties" />
|
||||
<property file="${properties.dir}/project.properties" />
|
||||
<antcall target="load-static-properties"/>
|
||||
</target>
|
||||
|
||||
<target name="load-properties" depends="load-static-properties,load-properties-file">
|
||||
|
||||
<property name="app.name" value="${app.appName}" />
|
||||
<property name="app.main" value="${app.main-class}" />
|
||||
|
||||
<property name="app.jar.name" value="${app.name}.jar" />
|
||||
<property name="jnlp.dir" value="${app.dir}/jnlp" />
|
||||
<property name="jnlp.extensions.dir" value="${jnlp.dir}/extensions" />
|
||||
<property name="app.java.version" value="${java.version}" />
|
||||
<property name="app.deploy.server" value="www.evolute.pt" />
|
||||
<property name="app.deploy.path" value="/home/software/src_${app.name}" />
|
||||
<property name="app.deploy.jnlp.path" value="${app.deploy.path}/jnlp" />
|
||||
<property name="app.deploy.production.script" value="/home/software/auto_deploy.sh ${app.name}" />
|
||||
<property name="app.deploy.test.script" value="/home/software/auto_test_deploy.sh ${app.name}" />
|
||||
<property name="deploy.prepare.script" value="/home/software/auto_prepare_deploy.sh ${app.name}" />
|
||||
<property name="app.deploy.docs.server" value="${app.deploy.server}" />
|
||||
<property name="app.deploy.docs.path" value="/home/software/public_html/docs/${app.name}" />
|
||||
<property name="app.docs.prepare.script" value="/home/software/auto_prepare_docs_upload.sh" />
|
||||
|
||||
<property name="app.version.file" value="${properties.base.dir}/version.properties" />
|
||||
<property name="app.version.comment" value="${app.name} versioning file" />
|
||||
<property name="app.run.args" value="" />
|
||||
<property name="jvm.run.args" value="-XX:-UseGCOverheadLimit" />
|
||||
<property name="app.ws.wsdl.url" value="${app.ws.wsdl.url.protocol}://${app.ws.wsdl.url.host}:${app.ws.wsdl.url.port}${app.ws.wsdl.url.path}" />
|
||||
|
||||
<property name="app.max.mem" value="512M" />
|
||||
|
||||
<property name="leaf.main" value="com.evolute.leaf.Main" />
|
||||
<property name="deployer.main" value="com.evolute.deploy.Main" />
|
||||
</target>
|
||||
|
||||
</project>
|
||||
@ -0,0 +1,22 @@
|
||||
<project name="evo-app-multiple-client-common" basedir="../../">
|
||||
|
||||
<target name="load-properties-file" depends="ask-target">
|
||||
<property file="${properties.dir}/app.properties" />
|
||||
<property file="${properties.dir}/project.properties" />
|
||||
<property file="${properties.base.dir}/app.properties" />
|
||||
<property file="${properties.base.dir}/project.properties" />
|
||||
<copy verbose="true" failonerror="true" overwrite="true" todir="${basedir}/build">
|
||||
<fileset dir="${properties.dir}">
|
||||
<include name="*" />
|
||||
<include name="**/*" />
|
||||
</fileset>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<target name="ask-target" unless="properties.dir">
|
||||
<input defaultvalue="${properties.base.dir}" addproperty="properties.dir">
|
||||
<handler classpathref="lib.tools.classpath" classname="com.evolute.ant.ProjectClientInputHandler" />
|
||||
</input>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
@ -0,0 +1,113 @@
|
||||
<project name="evo-app-build-5" basedir="../">
|
||||
|
||||
<import file="common/evo-app-load-properties.xml" />
|
||||
<import file="common/evo-app-deploy-common.xml" />
|
||||
|
||||
<!-- CLASSPATH -->
|
||||
<path id="app.jar.classpath">
|
||||
<fileset dir="${app.lib.dir}" />
|
||||
</path>
|
||||
|
||||
<path id="app.build.classpath">
|
||||
<path refid="app.jar.classpath" />
|
||||
<pathelement location="${app.build.dir}" />
|
||||
</path>
|
||||
|
||||
<path id="svn.classpath">
|
||||
<fileset dir="${evolute.lib.tools.dir}" />
|
||||
</path>
|
||||
|
||||
<path id="jsch.classpath">
|
||||
<fileset dir="${evolute.lib.tools.dir}" />
|
||||
</path>
|
||||
|
||||
<path id="lib.tools.classpath">
|
||||
<fileset dir="${lib.tools.dir}" />
|
||||
</path>
|
||||
|
||||
<!-- BUILD -->
|
||||
<target name="app-prepare" depends="load-properties">
|
||||
<echo message="Copying non-java files to build directory" />
|
||||
<copy todir="${app.build.dir}">
|
||||
<fileset dir="${app.src.dir}">
|
||||
<exclude name="**/*.java" />
|
||||
<exclude name="*.java" />
|
||||
</fileset>
|
||||
<fileset dir="${properties.dir}">
|
||||
<include name="*" />
|
||||
<include name="**/*" />
|
||||
</fileset>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<target name="app-build" description="Compiles all application classes" depends="app-prepare">
|
||||
<mkdir dir="${app.build.dir}" />
|
||||
<depend srcdir="${app.src.dir}" destdir="${app.build.dir}" cache="${app.dependencies.chache.dir}">
|
||||
<include name="**/*.java" />
|
||||
</depend>
|
||||
<javac srcdir="${app.src.dir}" destdir="${app.build.dir}" classpathref="app.build.classpath" debug="on" deprecation="on" fork="true" memoryMaximumSize="512M" source="1.5" target="1.5" />
|
||||
<!-- <antcall target="app-datanucleus"/>-->
|
||||
</target>
|
||||
|
||||
<!-- <target name="app-datanucleus">
|
||||
<path id="jpox.enhancer.classpath">
|
||||
<fileset dir="${lib.tools.dir}" />
|
||||
<path refid="app.build.classpath" />
|
||||
</path>
|
||||
<taskdef name="jpoxEnhancer" description="JPOX Enhancer" classpathref="jpox.enhancer.classpath" classname="org.datanucleus.enhancer.tools.EnhancerTask" />
|
||||
<jpoxEnhancer maxmemory="256M" classpathref="jpox.enhancer.classpath" dir="${app.build.dir}" verbose="true"/>
|
||||
</target>-->
|
||||
|
||||
<target name="app-clean" description="Removes all generated files">
|
||||
<delete failonerror="false">
|
||||
<fileset dir="${app.build.dir}">
|
||||
<include name="**/*" />
|
||||
</fileset>
|
||||
</delete>
|
||||
<delete dir="${app.build.dir}" failonerror="false" />
|
||||
<delete dir="${app.dist.dir}" failonerror="false" />
|
||||
<delete dir="${app.deploy.dist.dir}" failonerror="false" />
|
||||
</target>
|
||||
|
||||
<target name="app-run" description="Runs the application" depends="app-build">
|
||||
<java classname="${app.main}" classpathref="app.build.classpath" fork="true" dir="${app.build.dir}" />
|
||||
</target>
|
||||
|
||||
<!-- JAR -->
|
||||
<target name="app-deploy-create-jar" depends="app-clean, app-build" >
|
||||
<mkdir dir="${app.deploy.dist.dir}" />
|
||||
<jar destfile="${app.deploy.dist.dir}/${app.jar.name}" >
|
||||
<fileset dir="${app.build.dir}">
|
||||
<include name="**/*" />
|
||||
</fileset>
|
||||
</jar>
|
||||
<copy todir="${app.deploy.dist.lib.dir}">
|
||||
<fileset dir="${app.lib.dir}">
|
||||
<include name="**/*" />
|
||||
</fileset>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<target name="app-create-jar" description="Make application Jar" depends="app-clean, app-build" >
|
||||
<pathconvert property="jar.classpath.converted" refid="app.jar.classpath" pathsep=" ">
|
||||
<map from="${app.dir}/" to="" />
|
||||
<map from="${basedir}/" to="" />
|
||||
</pathconvert>
|
||||
<mkdir dir="${app.dist.dir}" />
|
||||
<jar destfile="${app.dist.dir}/${app.jar.name}">
|
||||
<fileset dir="${app.build.dir}">
|
||||
<include name="**/*" />
|
||||
</fileset>
|
||||
<manifest>
|
||||
<attribute name="Main-Class" value="${app.main}" />
|
||||
<attribute name="Class-Path" value="${jar.classpath.converted}" />
|
||||
</manifest>
|
||||
</jar>
|
||||
<copy todir="${app.dist.lib.dir}">
|
||||
<fileset dir="${app.lib.dir}">
|
||||
<include name="**/*" />
|
||||
</fileset>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
@ -0,0 +1,6 @@
|
||||
<project name="evo-app-build-obfuscate-jdo" basedir="../">
|
||||
|
||||
<import file="common/evo-app-compile-common.xml" />
|
||||
<import file="common/evo-app-deploy-common.xml" />
|
||||
|
||||
</project>
|
||||
@ -0,0 +1,7 @@
|
||||
<project name="evo-app-build-obfuscate" basedir="../">
|
||||
|
||||
<import file="common/evo-app-build-common.xml" />
|
||||
<import file="common/evo-app-build-obfuscate-common.xml" />
|
||||
<import file="common/evo-app-deploy-common.xml" />
|
||||
|
||||
</project>
|
||||
@ -0,0 +1,6 @@
|
||||
<project name="evo-app-build" basedir="../">
|
||||
|
||||
<import file="common/evo-app-build-common.xml" />
|
||||
<import file="common/evo-app-deploy-common.xml" />
|
||||
|
||||
</project>
|
||||
@ -0,0 +1,7 @@
|
||||
<project name="evo-app-multiple-client-build" basedir="../">
|
||||
|
||||
<import file="common/evo-app-multiple-client-common.xml" />
|
||||
<import file="common/evo-app-build-common.xml" />
|
||||
<import file="common/evo-app-deploy-common.xml" />
|
||||
|
||||
</project>
|
||||
@ -0,0 +1,6 @@
|
||||
<project name="evo-app-multiple-client-build" basedir="../">
|
||||
|
||||
<import file="common/evo-app-multiple-client-common.xml" />
|
||||
<import file="evo-app-build-obfuscate.xml" />
|
||||
|
||||
</project>
|
||||
@ -0,0 +1,31 @@
|
||||
<project name="evo-app-ws-client-build" basedir="../">
|
||||
|
||||
|
||||
<import file="common/evo-app-build-common.xml" />
|
||||
|
||||
<path id="jaxws.classpath">
|
||||
<path refid="lib.tools.classpath"/>
|
||||
<pathelement location="${java.home}/../lib/tools.jar" />
|
||||
</path>
|
||||
|
||||
<target name="receitas-gen-client" depends="app-build" description="generates client">
|
||||
<taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport" onerror="ignore">
|
||||
<classpath refid="lib.tools.classpath" />
|
||||
</taskdef>
|
||||
<java fork="false" classname="com.evolute.ssl.InstallCert" classpathref="app.build.classpath">
|
||||
<arg value="${app.ws.wsdl.url.host}"/>
|
||||
<arg value="${app.ws.wsdl.url.port}"/>
|
||||
<arg value="${app.ssl.truststore.file}"/>
|
||||
<arg value="${app.ssl.truststore.pass}"/>
|
||||
<arg value="true"/>
|
||||
<arg value="true"/>
|
||||
</java>
|
||||
<wsimport fork="false" debug="true" verbose="true" keep="true" sourcedestdir="${app.src.dir}" package="${app.ws.dest.package}" wsdl="${app.ws.wsdl.url}">
|
||||
<jvmarg value="-Djavax.net.ssl.trustStore=${basedir}/jssecacerts" />
|
||||
<jvmarg value="-Djavax.net.ssl.trustStorePassword=changeit" />
|
||||
<jvmarg value="-Djavax.net.ssl.keyStore=${basedir}/jssecacerts" />
|
||||
<jvmarg value="-Djavax.net.ssl.keyStorePassword=changeit" />
|
||||
</wsimport>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
@ -0,0 +1,14 @@
|
||||
<project name="evo-gwt-library-build" default="library-deploy" basedir="../">
|
||||
|
||||
<target name="app-pre-build">
|
||||
<copy verbose="true" failonerror="true" overwrite="true" todir="${app.build.dir}">
|
||||
<fileset dir="${app.src.dir}">
|
||||
<include name="**/*.java" />
|
||||
<include name="*.java" />
|
||||
</fileset>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<import file="evo-library-build.xml" />
|
||||
|
||||
</project>
|
||||
@ -0,0 +1,21 @@
|
||||
<project name="evo-library-build" default="library-deploy" basedir="../">
|
||||
|
||||
<import file="common/evo-app-build-common.xml" />
|
||||
|
||||
<target name="deploy-default-project" depends="app-create-jar">
|
||||
<mkdir dir="${deploy.project.dir}${file.separator}${deploy.project.relative.lib.dir}"/>
|
||||
<copy failonerror="false" verbose="true" file="${app.dist.dir}/${app.jar.name}" toDir="${deploy.project.dir}${file.separator}${deploy.project.relative.lib.dir}" />
|
||||
</target>
|
||||
|
||||
<target name="deploy-project" if="deploy.project.dir">
|
||||
<antcall target="deploy-default-project" />
|
||||
</target>
|
||||
|
||||
<target name="library-deploy" description="Deploys current version of evolute utilities" depends="load-static-properties">
|
||||
<input defaultvalue="${basedir}" addproperty="deploy.project.dir">
|
||||
<handler classpathref="lib.tools.classpath" classname="com.evolute.ant.ProjectInputHandler" />
|
||||
</input>
|
||||
<antcall target="deploy-project" />
|
||||
</target>
|
||||
|
||||
</project>
|
||||
@ -0,0 +1,21 @@
|
||||
<project name="evo-tool-build" default="tool-deploy" basedir="../">
|
||||
|
||||
<import file="common/evo-app-build-common.xml" />
|
||||
|
||||
<target name="deploy-default-tool" depends="app-create-jar">
|
||||
<mkdir dir="${deploy.project.dir}/lib.tools"/>
|
||||
<copy failonerror="false" verbose="true" file="${app.dist.dir}/${app.jar.name}" toDir="${deploy.project.dir}/lib.tools" />
|
||||
</target>
|
||||
|
||||
<target name="deploy-to-project" if="deploy.project.dir">
|
||||
<antcall target="deploy-default-tool" />
|
||||
</target>
|
||||
|
||||
<target name="tool-deploy" description="Deploys current version of evolute utilities" depends="load-static-properties">
|
||||
<input defaultvalue="${basedir}" addproperty="deploy.project.dir">
|
||||
<handler classpathref="lib.tools.classpath" classname="com.evolute.ant.ProjectInputHandler" />
|
||||
</input>
|
||||
<antcall target="deploy-to-project" />
|
||||
</target>
|
||||
|
||||
</project>
|
||||
Binary file not shown.
@ -0,0 +1,5 @@
|
||||
<project name="SIPRPWebFichasClinicas" basedir="." default="app-run">
|
||||
|
||||
<!--<import file="ant/evo-app-multiple-client-build.xml"/>-->
|
||||
<import file="ant/evo-library-build.xml"/>
|
||||
</project>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,135 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<entity-gen-configuration>
|
||||
<connection>
|
||||
<project>SIPRP Web Fichas Clinicas</project>
|
||||
<url>jdbc:postgresql://www.evolute.pt:5436/siprp_fichas_clinicas</url>
|
||||
<user>tsimao</user>
|
||||
<password>sleepsun</password>
|
||||
</connection>
|
||||
<generate-objects>y</generate-objects>
|
||||
<base-path>/Documents/workspace/SiprpWebFichasClinicas/src</base-path>
|
||||
<inner-package>shst.medicina.fichasclinicas.data.inner</inner-package>
|
||||
<outer-package>shst.medicina.fichasclinicas.data</outer-package>
|
||||
<xml-beans-package>com.evolute.module.utilizadores.data</xml-beans-package>
|
||||
<generate-beans>n</generate-beans>
|
||||
<inner-beans-package />
|
||||
<outer-beans-package />
|
||||
<super-class />
|
||||
<package-file-name>package.xml</package-file-name>
|
||||
<table>
|
||||
<name>aut_autorizacao</name>
|
||||
<class-name>AutAutorizacao</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>fc_ficha</name>
|
||||
<class-name>FcFicha</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>fc_ficha_absentismo</name>
|
||||
<class-name>FcFichaAbsentismo</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>fc_ficha_actividade</name>
|
||||
<class-name>FcFichaActividade</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>fc_ficha_antecedentes_familiares</name>
|
||||
<class-name>FcFichaAntecedentesFamiliares</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>fc_ficha_antecedentes_ocupacionais</name>
|
||||
<class-name>FcFichaAntecedentesOcupacionais</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>fc_ficha_antecedentes_ocupacionais_acidentes_trabalho</name>
|
||||
<class-name>FcFichaAntecedentesOcupacionaisAcidentesTrabalho</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>fc_ficha_antecedentes_ocupacionais_actividades_anteriores</name>
|
||||
<class-name>FcFichaAntecedentesOcupacionaisActividadesAnteriores</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>fc_ficha_antecedentes_ocupacionais_doencas_profissionais</name>
|
||||
<class-name>FcFichaAntecedentesOcupacionaisDoencasProfissionais</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>fc_ficha_classificacao_individual_saude</name>
|
||||
<class-name>FcFichaClassificacaoIndividualSaude</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>fc_ficha_conclusoes</name>
|
||||
<class-name>FcFichaConclusoes</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>fc_ficha_doencas</name>
|
||||
<class-name>FcFichaDoencas</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>fc_ficha_enfermagem</name>
|
||||
<class-name>FcFichaEnfermagem</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>fc_ficha_esquema_vacinal</name>
|
||||
<class-name>FcFichaEsquemaVacinal</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>fc_ficha_exame_objectivo</name>
|
||||
<class-name>FcFichaExameObjectivo</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>fc_ficha_habitos</name>
|
||||
<class-name>FcFichaHabitos</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>fc_ficha_informacao_periodica</name>
|
||||
<class-name>FcFichaInformacaoPeriodica</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>fc_ficha_medicina_curativa</name>
|
||||
<class-name>FcFichaMedicinaCurativa</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>fc_ficha_problemas_solucoes</name>
|
||||
<class-name>FcFichaProblemasSolucoes</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>fc_motivos</name>
|
||||
<class-name>FcMotivos</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>fc_tipo_ficha</name>
|
||||
<class-name>FcTipoFicha</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>trb_estado_civil</name>
|
||||
<class-name>TrbEstadoCivil</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
<table>
|
||||
<name>trb_habilitacoes</name>
|
||||
<class-name>TrbHabilitacoes</class-name>
|
||||
<super-class-name />
|
||||
</table>
|
||||
</entity-gen-configuration>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* AutAutorizacaoData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data;
|
||||
|
||||
|
||||
public final class AutAutorizacaoData extends shst.medicina.fichasclinicas.data.inner.AutAutorizacao
|
||||
{
|
||||
|
||||
public AutAutorizacaoData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* FcFichaAbsentismoData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data;
|
||||
|
||||
|
||||
public final class FcFichaAbsentismoData extends shst.medicina.fichasclinicas.data.inner.FcFichaAbsentismo
|
||||
{
|
||||
|
||||
public FcFichaAbsentismoData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* FcFichaActividadeData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data;
|
||||
|
||||
|
||||
public final class FcFichaActividadeData extends shst.medicina.fichasclinicas.data.inner.FcFichaActividade
|
||||
{
|
||||
|
||||
public FcFichaActividadeData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* FcFichaAntecedentesFamiliaresData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data;
|
||||
|
||||
|
||||
public final class FcFichaAntecedentesFamiliaresData extends shst.medicina.fichasclinicas.data.inner.FcFichaAntecedentesFamiliares
|
||||
{
|
||||
|
||||
public FcFichaAntecedentesFamiliaresData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* FcFichaAntecedentesOcupacionaisAcidentesTrabalhoData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data;
|
||||
|
||||
|
||||
public final class FcFichaAntecedentesOcupacionaisAcidentesTrabalhoData extends shst.medicina.fichasclinicas.data.inner.FcFichaAntecedentesOcupacionaisAcidentesTrabalho
|
||||
{
|
||||
|
||||
public FcFichaAntecedentesOcupacionaisAcidentesTrabalhoData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* FcFichaAntecedentesOcupacionaisActividadesAnterioresData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data;
|
||||
|
||||
|
||||
public final class FcFichaAntecedentesOcupacionaisActividadesAnterioresData extends shst.medicina.fichasclinicas.data.inner.FcFichaAntecedentesOcupacionaisActividadesAnteriores
|
||||
{
|
||||
|
||||
public FcFichaAntecedentesOcupacionaisActividadesAnterioresData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* FcFichaAntecedentesOcupacionaisData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data;
|
||||
|
||||
|
||||
public final class FcFichaAntecedentesOcupacionaisData extends shst.medicina.fichasclinicas.data.inner.FcFichaAntecedentesOcupacionais
|
||||
{
|
||||
|
||||
public FcFichaAntecedentesOcupacionaisData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* FcFichaAntecedentesOcupacionaisDoencasProfissionaisData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data;
|
||||
|
||||
|
||||
public final class FcFichaAntecedentesOcupacionaisDoencasProfissionaisData extends shst.medicina.fichasclinicas.data.inner.FcFichaAntecedentesOcupacionaisDoencasProfissionais
|
||||
{
|
||||
|
||||
public FcFichaAntecedentesOcupacionaisDoencasProfissionaisData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* FcFichaClassificacaoIndividualSaudeData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data;
|
||||
|
||||
|
||||
public final class FcFichaClassificacaoIndividualSaudeData extends shst.medicina.fichasclinicas.data.inner.FcFichaClassificacaoIndividualSaude
|
||||
{
|
||||
|
||||
public FcFichaClassificacaoIndividualSaudeData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* FcFichaConclusoesData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data;
|
||||
|
||||
|
||||
public final class FcFichaConclusoesData extends shst.medicina.fichasclinicas.data.inner.FcFichaConclusoes
|
||||
{
|
||||
|
||||
public FcFichaConclusoesData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* FcFichaData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data;
|
||||
|
||||
|
||||
public final class FcFichaData extends shst.medicina.fichasclinicas.data.inner.FcFicha
|
||||
{
|
||||
|
||||
public FcFichaData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* FcFichaDoencasData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data;
|
||||
|
||||
|
||||
public final class FcFichaDoencasData extends shst.medicina.fichasclinicas.data.inner.FcFichaDoencas
|
||||
{
|
||||
|
||||
public FcFichaDoencasData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* FcFichaEnfermagemData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data;
|
||||
|
||||
|
||||
public final class FcFichaEnfermagemData extends shst.medicina.fichasclinicas.data.inner.FcFichaEnfermagem
|
||||
{
|
||||
|
||||
public FcFichaEnfermagemData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* FcFichaEsquemaVacinalData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data;
|
||||
|
||||
|
||||
public final class FcFichaEsquemaVacinalData extends shst.medicina.fichasclinicas.data.inner.FcFichaEsquemaVacinal
|
||||
{
|
||||
|
||||
public FcFichaEsquemaVacinalData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* FcFichaExameObjectivoData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data;
|
||||
|
||||
|
||||
public final class FcFichaExameObjectivoData extends shst.medicina.fichasclinicas.data.inner.FcFichaExameObjectivo
|
||||
{
|
||||
|
||||
public FcFichaExameObjectivoData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* FcFichaHabitosData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data;
|
||||
|
||||
|
||||
public final class FcFichaHabitosData extends shst.medicina.fichasclinicas.data.inner.FcFichaHabitos
|
||||
{
|
||||
|
||||
public FcFichaHabitosData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* FcFichaInformacaoPeriodicaData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data;
|
||||
|
||||
|
||||
public final class FcFichaInformacaoPeriodicaData extends shst.medicina.fichasclinicas.data.inner.FcFichaInformacaoPeriodica
|
||||
{
|
||||
|
||||
public FcFichaInformacaoPeriodicaData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* FcFichaMedicinaCurativaData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data;
|
||||
|
||||
|
||||
public final class FcFichaMedicinaCurativaData extends shst.medicina.fichasclinicas.data.inner.FcFichaMedicinaCurativa
|
||||
{
|
||||
|
||||
public FcFichaMedicinaCurativaData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* FcFichaProblemasSolucoesData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data;
|
||||
|
||||
|
||||
public final class FcFichaProblemasSolucoesData extends shst.medicina.fichasclinicas.data.inner.FcFichaProblemasSolucoes
|
||||
{
|
||||
|
||||
public FcFichaProblemasSolucoesData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* FcMotivosData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data;
|
||||
|
||||
|
||||
public final class FcMotivosData extends shst.medicina.fichasclinicas.data.inner.FcMotivos
|
||||
{
|
||||
|
||||
public FcMotivosData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* FcTipoFichaData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data;
|
||||
|
||||
|
||||
public final class FcTipoFichaData extends shst.medicina.fichasclinicas.data.inner.FcTipoFicha
|
||||
{
|
||||
|
||||
public FcTipoFichaData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* TrbEstadoCivilData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data;
|
||||
|
||||
|
||||
public final class TrbEstadoCivilData extends shst.medicina.fichasclinicas.data.inner.TrbEstadoCivil
|
||||
{
|
||||
|
||||
public TrbEstadoCivilData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* TrbHabilitacoesData.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data;
|
||||
|
||||
|
||||
public final class TrbHabilitacoesData extends shst.medicina.fichasclinicas.data.inner.TrbHabilitacoes
|
||||
{
|
||||
|
||||
public TrbHabilitacoesData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,844 @@
|
||||
/*
|
||||
* AutAutorizacao.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data.inner;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Date;
|
||||
|
||||
public class AutAutorizacao 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( AutAutorizacao.ID, AutAutorizacao.ID_INDEX );
|
||||
FIELD_INDEXES.put( AutAutorizacao.ID_FULL, AutAutorizacao.ID_INDEX );
|
||||
FIELD_INDEXES.put( AutAutorizacao.EMPRESA_ID, AutAutorizacao.EMPRESA_ID_INDEX );
|
||||
FIELD_INDEXES.put( AutAutorizacao.EMPRESA_ID_FULL, AutAutorizacao.EMPRESA_ID_INDEX );
|
||||
FIELD_INDEXES.put( AutAutorizacao.ESTABELECIMENTO_ID, AutAutorizacao.ESTABELECIMENTO_ID_INDEX );
|
||||
FIELD_INDEXES.put( AutAutorizacao.ESTABELECIMENTO_ID_FULL, AutAutorizacao.ESTABELECIMENTO_ID_INDEX );
|
||||
FIELD_INDEXES.put( AutAutorizacao.TRABALHADOR_ID, AutAutorizacao.TRABALHADOR_ID_INDEX );
|
||||
FIELD_INDEXES.put( AutAutorizacao.TRABALHADOR_ID_FULL, AutAutorizacao.TRABALHADOR_ID_INDEX );
|
||||
FIELD_INDEXES.put( AutAutorizacao.FICHA_ID, AutAutorizacao.FICHA_ID_INDEX );
|
||||
FIELD_INDEXES.put( AutAutorizacao.FICHA_ID_FULL, AutAutorizacao.FICHA_ID_INDEX );
|
||||
FIELD_INDEXES.put( AutAutorizacao.PODE_EDITAR, AutAutorizacao.PODE_EDITAR_INDEX );
|
||||
FIELD_INDEXES.put( AutAutorizacao.PODE_EDITAR_FULL, AutAutorizacao.PODE_EDITAR_INDEX );
|
||||
FIELD_INDEXES.put( AutAutorizacao.USER_ID, AutAutorizacao.USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( AutAutorizacao.USER_ID_FULL, AutAutorizacao.USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( AutAutorizacao.VALIDADE_INCIO, AutAutorizacao.VALIDADE_INCIO_INDEX );
|
||||
FIELD_INDEXES.put( AutAutorizacao.VALIDADE_INCIO_FULL, AutAutorizacao.VALIDADE_INCIO_INDEX );
|
||||
FIELD_INDEXES.put( AutAutorizacao.VALIDADE_FIM, AutAutorizacao.VALIDADE_FIM_INDEX );
|
||||
FIELD_INDEXES.put( AutAutorizacao.VALIDADE_FIM_FULL, AutAutorizacao.VALIDADE_FIM_INDEX );
|
||||
FIELD_INDEXES.put( AutAutorizacao.CREATED_STAMP, AutAutorizacao.CREATED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( AutAutorizacao.CREATED_STAMP_FULL, AutAutorizacao.CREATED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( AutAutorizacao.CREATED_USER_ID, AutAutorizacao.CREATED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( AutAutorizacao.CREATED_USER_ID_FULL, AutAutorizacao.CREATED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( AutAutorizacao.DELETED_STAMP, AutAutorizacao.DELETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( AutAutorizacao.DELETED_STAMP_FULL, AutAutorizacao.DELETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( AutAutorizacao.DELETED_USER_ID, AutAutorizacao.DELETED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( AutAutorizacao.DELETED_USER_ID_FULL, AutAutorizacao.DELETED_USER_ID_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final String TABLENAME = "aut_autorizacao";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "shst.medicina.fichasclinicas.data.inner.aut_autorizacao";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "aut_autorizacao.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String EMPRESA_ID = "empresa_id";
|
||||
public static final String EMPRESA_ID_FULL = "aut_autorizacao.empresa_id";
|
||||
public static final int EMPRESA_ID_INDEX = 1;
|
||||
public static final String ESTABELECIMENTO_ID = "estabelecimento_id";
|
||||
public static final String ESTABELECIMENTO_ID_FULL = "aut_autorizacao.estabelecimento_id";
|
||||
public static final int ESTABELECIMENTO_ID_INDEX = 2;
|
||||
public static final String TRABALHADOR_ID = "trabalhador_id";
|
||||
public static final String TRABALHADOR_ID_FULL = "aut_autorizacao.trabalhador_id";
|
||||
public static final int TRABALHADOR_ID_INDEX = 3;
|
||||
public static final String FICHA_ID = "ficha_id";
|
||||
public static final String FICHA_ID_FULL = "aut_autorizacao.ficha_id";
|
||||
public static final int FICHA_ID_INDEX = 4;
|
||||
public static final String PODE_EDITAR = "pode_editar";
|
||||
public static final String PODE_EDITAR_FULL = "aut_autorizacao.pode_editar";
|
||||
public static final int PODE_EDITAR_INDEX = 5;
|
||||
public static final String USER_ID = "user_id";
|
||||
public static final String USER_ID_FULL = "aut_autorizacao.user_id";
|
||||
public static final int USER_ID_INDEX = 6;
|
||||
public static final String VALIDADE_INCIO = "validade_incio";
|
||||
public static final String VALIDADE_INCIO_FULL = "aut_autorizacao.validade_incio";
|
||||
public static final int VALIDADE_INCIO_INDEX = 7;
|
||||
public static final String VALIDADE_FIM = "validade_fim";
|
||||
public static final String VALIDADE_FIM_FULL = "aut_autorizacao.validade_fim";
|
||||
public static final int VALIDADE_FIM_INDEX = 8;
|
||||
public static final String CREATED_STAMP = "created_stamp";
|
||||
public static final String CREATED_STAMP_FULL = "aut_autorizacao.created_stamp";
|
||||
public static final int CREATED_STAMP_INDEX = 9;
|
||||
public static final String CREATED_USER_ID = "created_user_id";
|
||||
public static final String CREATED_USER_ID_FULL = "aut_autorizacao.created_user_id";
|
||||
public static final int CREATED_USER_ID_INDEX = 10;
|
||||
public static final String DELETED_STAMP = "deleted_stamp";
|
||||
public static final String DELETED_STAMP_FULL = "aut_autorizacao.deleted_stamp";
|
||||
public static final int DELETED_STAMP_INDEX = 11;
|
||||
public static final String DELETED_USER_ID = "deleted_user_id";
|
||||
public static final String DELETED_USER_ID_FULL = "aut_autorizacao.deleted_user_id";
|
||||
public static final int DELETED_USER_ID_INDEX = 12;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
EMPRESA_ID, ESTABELECIMENTO_ID, TRABALHADOR_ID, FICHA_ID, PODE_EDITAR, USER_ID,
|
||||
VALIDADE_INCIO, VALIDADE_FIM, CREATED_STAMP, CREATED_USER_ID, DELETED_STAMP,
|
||||
DELETED_USER_ID, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + EMPRESA_ID, TABLENAME + "." + ESTABELECIMENTO_ID, TABLENAME + "." + TRABALHADOR_ID, TABLENAME + "." + FICHA_ID, TABLENAME + "." + PODE_EDITAR, TABLENAME + "." + USER_ID,
|
||||
TABLENAME + "." + VALIDADE_INCIO, TABLENAME + "." + VALIDADE_FIM, TABLENAME + "." + CREATED_STAMP, TABLENAME + "." + CREATED_USER_ID, TABLENAME + "." + DELETED_STAMP,
|
||||
TABLENAME + "." + DELETED_USER_ID, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, EMPRESA_ID, ESTABELECIMENTO_ID, TRABALHADOR_ID, FICHA_ID, PODE_EDITAR, USER_ID,
|
||||
VALIDADE_INCIO, VALIDADE_FIM, CREATED_STAMP, CREATED_USER_ID, DELETED_STAMP,
|
||||
DELETED_USER_ID, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, EMPRESA_ID, ESTABELECIMENTO_ID, TRABALHADOR_ID, FICHA_ID, PODE_EDITAR, USER_ID,
|
||||
VALIDADE_INCIO, VALIDADE_FIM, CREATED_STAMP, CREATED_USER_ID, DELETED_STAMP,
|
||||
DELETED_USER_ID, };
|
||||
|
||||
private Integer id;
|
||||
private Integer empresa_id;
|
||||
private Integer estabelecimento_id;
|
||||
private Integer trabalhador_id;
|
||||
private Integer ficha_id;
|
||||
private Boolean pode_editar;
|
||||
private Integer user_id;
|
||||
private Date validade_incio;
|
||||
private Date validade_fim;
|
||||
private Timestamp created_stamp;
|
||||
private Integer created_user_id;
|
||||
private Timestamp deleted_stamp;
|
||||
private Integer deleted_user_id;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public AutAutorizacao()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, 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
|
||||
{
|
||||
preProcess( ID, id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.id = id;
|
||||
LAZY_LOADED_OBJECTS.put( ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getEmpresa_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
|
||||
{
|
||||
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 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
|
||||
{
|
||||
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 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
|
||||
{
|
||||
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 Integer getFicha_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( FICHA_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.ficha_id;
|
||||
}
|
||||
|
||||
public void setFicha_id( Integer ficha_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( FICHA_ID, ficha_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.ficha_id = ficha_id;
|
||||
LAZY_LOADED_OBJECTS.put( FICHA_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Boolean getPode_editar()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( PODE_EDITAR );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.pode_editar;
|
||||
}
|
||||
|
||||
public void setPode_editar( Boolean pode_editar )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( PODE_EDITAR, pode_editar );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.pode_editar = pode_editar;
|
||||
LAZY_LOADED_OBJECTS.put( PODE_EDITAR, 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
|
||||
{
|
||||
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 Date getValidade_incio()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( VALIDADE_INCIO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.validade_incio;
|
||||
}
|
||||
|
||||
public void setValidade_incio( Date validade_incio )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( VALIDADE_INCIO, validade_incio );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.validade_incio = validade_incio;
|
||||
LAZY_LOADED_OBJECTS.put( VALIDADE_INCIO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Date getValidade_fim()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( VALIDADE_FIM );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.validade_fim;
|
||||
}
|
||||
|
||||
public void setValidade_fim( Date validade_fim )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( VALIDADE_FIM, validade_fim );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.validade_fim = validade_fim;
|
||||
LAZY_LOADED_OBJECTS.put( VALIDADE_FIM, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Timestamp getCreated_stamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CREATED_STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.created_stamp;
|
||||
}
|
||||
|
||||
public void setCreated_stamp( Timestamp created_stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CREATED_STAMP, created_stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.created_stamp = created_stamp;
|
||||
LAZY_LOADED_OBJECTS.put( CREATED_STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getCreated_user_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CREATED_USER_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.created_user_id;
|
||||
}
|
||||
|
||||
public void setCreated_user_id( Integer created_user_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CREATED_USER_ID, created_user_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.created_user_id = created_user_id;
|
||||
LAZY_LOADED_OBJECTS.put( CREATED_USER_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Timestamp getDeleted_stamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DELETED_STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.deleted_stamp;
|
||||
}
|
||||
|
||||
public void setDeleted_stamp( Timestamp deleted_stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DELETED_STAMP, deleted_stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.deleted_stamp = deleted_stamp;
|
||||
LAZY_LOADED_OBJECTS.put( DELETED_STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getDeleted_user_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DELETED_USER_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.deleted_user_id;
|
||||
}
|
||||
|
||||
public void setDeleted_user_id( Integer deleted_user_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DELETED_USER_ID, deleted_user_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.deleted_user_id = deleted_user_id;
|
||||
LAZY_LOADED_OBJECTS.put( DELETED_USER_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case AutAutorizacao.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case AutAutorizacao.EMPRESA_ID_INDEX:
|
||||
value = getEmpresa_id();
|
||||
break;
|
||||
case AutAutorizacao.ESTABELECIMENTO_ID_INDEX:
|
||||
value = getEstabelecimento_id();
|
||||
break;
|
||||
case AutAutorizacao.TRABALHADOR_ID_INDEX:
|
||||
value = getTrabalhador_id();
|
||||
break;
|
||||
case AutAutorizacao.FICHA_ID_INDEX:
|
||||
value = getFicha_id();
|
||||
break;
|
||||
case AutAutorizacao.PODE_EDITAR_INDEX:
|
||||
value = getPode_editar();
|
||||
break;
|
||||
case AutAutorizacao.USER_ID_INDEX:
|
||||
value = getUser_id();
|
||||
break;
|
||||
case AutAutorizacao.VALIDADE_INCIO_INDEX:
|
||||
value = getValidade_incio();
|
||||
break;
|
||||
case AutAutorizacao.VALIDADE_FIM_INDEX:
|
||||
value = getValidade_fim();
|
||||
break;
|
||||
case AutAutorizacao.CREATED_STAMP_INDEX:
|
||||
value = getCreated_stamp();
|
||||
break;
|
||||
case AutAutorizacao.CREATED_USER_ID_INDEX:
|
||||
value = getCreated_user_id();
|
||||
break;
|
||||
case AutAutorizacao.DELETED_STAMP_INDEX:
|
||||
value = getDeleted_stamp();
|
||||
break;
|
||||
case AutAutorizacao.DELETED_USER_ID_INDEX:
|
||||
value = getDeleted_user_id();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case AutAutorizacao.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case AutAutorizacao.EMPRESA_ID_INDEX:
|
||||
value = this.empresa_id;
|
||||
break;
|
||||
case AutAutorizacao.ESTABELECIMENTO_ID_INDEX:
|
||||
value = this.estabelecimento_id;
|
||||
break;
|
||||
case AutAutorizacao.TRABALHADOR_ID_INDEX:
|
||||
value = this.trabalhador_id;
|
||||
break;
|
||||
case AutAutorizacao.FICHA_ID_INDEX:
|
||||
value = this.ficha_id;
|
||||
break;
|
||||
case AutAutorizacao.PODE_EDITAR_INDEX:
|
||||
value = this.pode_editar;
|
||||
break;
|
||||
case AutAutorizacao.USER_ID_INDEX:
|
||||
value = this.user_id;
|
||||
break;
|
||||
case AutAutorizacao.VALIDADE_INCIO_INDEX:
|
||||
value = this.validade_incio;
|
||||
break;
|
||||
case AutAutorizacao.VALIDADE_FIM_INDEX:
|
||||
value = this.validade_fim;
|
||||
break;
|
||||
case AutAutorizacao.CREATED_STAMP_INDEX:
|
||||
value = this.created_stamp;
|
||||
break;
|
||||
case AutAutorizacao.CREATED_USER_ID_INDEX:
|
||||
value = this.created_user_id;
|
||||
break;
|
||||
case AutAutorizacao.DELETED_STAMP_INDEX:
|
||||
value = this.deleted_stamp;
|
||||
break;
|
||||
case AutAutorizacao.DELETED_USER_ID_INDEX:
|
||||
value = this.deleted_user_id;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case AutAutorizacao.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case AutAutorizacao.EMPRESA_ID_INDEX:
|
||||
setEmpresa_id( ( Integer ) value );
|
||||
break;
|
||||
case AutAutorizacao.ESTABELECIMENTO_ID_INDEX:
|
||||
setEstabelecimento_id( ( Integer ) value );
|
||||
break;
|
||||
case AutAutorizacao.TRABALHADOR_ID_INDEX:
|
||||
setTrabalhador_id( ( Integer ) value );
|
||||
break;
|
||||
case AutAutorizacao.FICHA_ID_INDEX:
|
||||
setFicha_id( ( Integer ) value );
|
||||
break;
|
||||
case AutAutorizacao.PODE_EDITAR_INDEX:
|
||||
setPode_editar( ( Boolean ) value );
|
||||
break;
|
||||
case AutAutorizacao.USER_ID_INDEX:
|
||||
setUser_id( ( Integer ) value );
|
||||
break;
|
||||
case AutAutorizacao.VALIDADE_INCIO_INDEX:
|
||||
setValidade_incio( ( Date ) value );
|
||||
break;
|
||||
case AutAutorizacao.VALIDADE_FIM_INDEX:
|
||||
setValidade_fim( ( Date ) value );
|
||||
break;
|
||||
case AutAutorizacao.CREATED_STAMP_INDEX:
|
||||
setCreated_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case AutAutorizacao.CREATED_USER_ID_INDEX:
|
||||
setCreated_user_id( ( Integer ) value );
|
||||
break;
|
||||
case AutAutorizacao.DELETED_STAMP_INDEX:
|
||||
setDeleted_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case AutAutorizacao.DELETED_USER_ID_INDEX:
|
||||
setDeleted_user_id( ( Integer ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case AutAutorizacao.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case AutAutorizacao.EMPRESA_ID_INDEX:
|
||||
this.empresa_id = ( Integer ) value;
|
||||
break;
|
||||
case AutAutorizacao.ESTABELECIMENTO_ID_INDEX:
|
||||
this.estabelecimento_id = ( Integer ) value;
|
||||
break;
|
||||
case AutAutorizacao.TRABALHADOR_ID_INDEX:
|
||||
this.trabalhador_id = ( Integer ) value;
|
||||
break;
|
||||
case AutAutorizacao.FICHA_ID_INDEX:
|
||||
this.ficha_id = ( Integer ) value;
|
||||
break;
|
||||
case AutAutorizacao.PODE_EDITAR_INDEX:
|
||||
this.pode_editar = ( Boolean ) value;
|
||||
break;
|
||||
case AutAutorizacao.USER_ID_INDEX:
|
||||
this.user_id = ( Integer ) value;
|
||||
break;
|
||||
case AutAutorizacao.VALIDADE_INCIO_INDEX:
|
||||
this.validade_incio = ( Date ) value;
|
||||
break;
|
||||
case AutAutorizacao.VALIDADE_FIM_INDEX:
|
||||
this.validade_fim = ( Date ) value;
|
||||
break;
|
||||
case AutAutorizacao.CREATED_STAMP_INDEX:
|
||||
this.created_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case AutAutorizacao.CREATED_USER_ID_INDEX:
|
||||
this.created_user_id = ( Integer ) value;
|
||||
break;
|
||||
case AutAutorizacao.DELETED_STAMP_INDEX:
|
||||
this.deleted_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case AutAutorizacao.DELETED_USER_ID_INDEX:
|
||||
this.deleted_user_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 AutAutorizacao.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case AutAutorizacao.EMPRESA_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case AutAutorizacao.ESTABELECIMENTO_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case AutAutorizacao.TRABALHADOR_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case AutAutorizacao.FICHA_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case AutAutorizacao.PODE_EDITAR_INDEX:
|
||||
theClass = Boolean.class;
|
||||
break;
|
||||
case AutAutorizacao.USER_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case AutAutorizacao.VALIDADE_INCIO_INDEX:
|
||||
theClass = Date.class;
|
||||
break;
|
||||
case AutAutorizacao.VALIDADE_FIM_INDEX:
|
||||
theClass = Date.class;
|
||||
break;
|
||||
case AutAutorizacao.CREATED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case AutAutorizacao.CREATED_USER_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case AutAutorizacao.DELETED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case AutAutorizacao.DELETED_USER_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : AutAutorizacao._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, AutAutorizacao.PK_FIELD_NAMES );
|
||||
Object idObject = array.get( row, col + 0 );
|
||||
try
|
||||
{
|
||||
primaryKey.set( 0, ( Integer ) idObject );
|
||||
setId( ( Integer ) idObject );
|
||||
}
|
||||
catch( ClassCastException ex )
|
||||
{
|
||||
if( idObject instanceof Number )
|
||||
{
|
||||
primaryKey.set( 0, ((Number)idObject).intValue() );
|
||||
setId( ((Number)idObject).intValue() );
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
|
||||
{
|
||||
return primaryKey;
|
||||
}
|
||||
|
||||
public void initLazyLoadFields()
|
||||
{
|
||||
}
|
||||
|
||||
public boolean isPropertyLoaded( String fieldName )
|
||||
{
|
||||
if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return LAZY_LOADED_OBJECTS.get( fieldName );
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,663 @@
|
||||
/*
|
||||
* FcFichaAbsentismo.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data.inner;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
|
||||
public class FcFichaAbsentismo 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( FcFichaAbsentismo.ID, FcFichaAbsentismo.ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAbsentismo.ID_FULL, FcFichaAbsentismo.ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAbsentismo.CREATED_STAMP, FcFichaAbsentismo.CREATED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAbsentismo.CREATED_STAMP_FULL, FcFichaAbsentismo.CREATED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAbsentismo.CREATED_USER_ID, FcFichaAbsentismo.CREATED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAbsentismo.CREATED_USER_ID_FULL, FcFichaAbsentismo.CREATED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAbsentismo.CREATED_USER_NAME, FcFichaAbsentismo.CREATED_USER_NAME_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAbsentismo.CREATED_USER_NAME_FULL, FcFichaAbsentismo.CREATED_USER_NAME_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAbsentismo.DELETED_STAMP, FcFichaAbsentismo.DELETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAbsentismo.DELETED_STAMP_FULL, FcFichaAbsentismo.DELETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAbsentismo.DELETED_USER_ID, FcFichaAbsentismo.DELETED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAbsentismo.DELETED_USER_ID_FULL, FcFichaAbsentismo.DELETED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAbsentismo.DELETED_USER_NAME, FcFichaAbsentismo.DELETED_USER_NAME_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAbsentismo.DELETED_USER_NAME_FULL, FcFichaAbsentismo.DELETED_USER_NAME_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAbsentismo.DIAS_AUSENCIA_ULTIMO_ANO, FcFichaAbsentismo.DIAS_AUSENCIA_ULTIMO_ANO_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAbsentismo.DIAS_AUSENCIA_ULTIMO_ANO_FULL, FcFichaAbsentismo.DIAS_AUSENCIA_ULTIMO_ANO_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAbsentismo.MOTIVOS_AUSENCIA, FcFichaAbsentismo.MOTIVOS_AUSENCIA_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAbsentismo.MOTIVOS_AUSENCIA_FULL, FcFichaAbsentismo.MOTIVOS_AUSENCIA_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final String TABLENAME = "fc_ficha_absentismo";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "shst.medicina.fichasclinicas.data.inner.fc_ficha_absentismo";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "fc_ficha_absentismo.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String CREATED_STAMP = "created_stamp";
|
||||
public static final String CREATED_STAMP_FULL = "fc_ficha_absentismo.created_stamp";
|
||||
public static final int CREATED_STAMP_INDEX = 1;
|
||||
public static final String CREATED_USER_ID = "created_user_id";
|
||||
public static final String CREATED_USER_ID_FULL = "fc_ficha_absentismo.created_user_id";
|
||||
public static final int CREATED_USER_ID_INDEX = 2;
|
||||
public static final String CREATED_USER_NAME = "created_user_name";
|
||||
public static final String CREATED_USER_NAME_FULL = "fc_ficha_absentismo.created_user_name";
|
||||
public static final int CREATED_USER_NAME_INDEX = 3;
|
||||
public static final String DELETED_STAMP = "deleted_stamp";
|
||||
public static final String DELETED_STAMP_FULL = "fc_ficha_absentismo.deleted_stamp";
|
||||
public static final int DELETED_STAMP_INDEX = 4;
|
||||
public static final String DELETED_USER_ID = "deleted_user_id";
|
||||
public static final String DELETED_USER_ID_FULL = "fc_ficha_absentismo.deleted_user_id";
|
||||
public static final int DELETED_USER_ID_INDEX = 5;
|
||||
public static final String DELETED_USER_NAME = "deleted_user_name";
|
||||
public static final String DELETED_USER_NAME_FULL = "fc_ficha_absentismo.deleted_user_name";
|
||||
public static final int DELETED_USER_NAME_INDEX = 6;
|
||||
public static final String DIAS_AUSENCIA_ULTIMO_ANO = "dias_ausencia_ultimo_ano";
|
||||
public static final String DIAS_AUSENCIA_ULTIMO_ANO_FULL = "fc_ficha_absentismo.dias_ausencia_ultimo_ano";
|
||||
public static final int DIAS_AUSENCIA_ULTIMO_ANO_INDEX = 7;
|
||||
public static final String MOTIVOS_AUSENCIA = "motivos_ausencia";
|
||||
public static final String MOTIVOS_AUSENCIA_FULL = "fc_ficha_absentismo.motivos_ausencia";
|
||||
public static final int MOTIVOS_AUSENCIA_INDEX = 8;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
CREATED_STAMP, CREATED_USER_ID, CREATED_USER_NAME, DELETED_STAMP,
|
||||
DELETED_USER_ID, DELETED_USER_NAME, DIAS_AUSENCIA_ULTIMO_ANO,
|
||||
MOTIVOS_AUSENCIA, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + CREATED_STAMP, TABLENAME + "." + CREATED_USER_ID, TABLENAME + "." + CREATED_USER_NAME, TABLENAME + "." + DELETED_STAMP,
|
||||
TABLENAME + "." + DELETED_USER_ID, TABLENAME + "." + DELETED_USER_NAME, TABLENAME + "." + DIAS_AUSENCIA_ULTIMO_ANO,
|
||||
TABLENAME + "." + MOTIVOS_AUSENCIA, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, CREATED_STAMP, CREATED_USER_ID, CREATED_USER_NAME, DELETED_STAMP,
|
||||
DELETED_USER_ID, DELETED_USER_NAME, DIAS_AUSENCIA_ULTIMO_ANO,
|
||||
MOTIVOS_AUSENCIA, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, CREATED_STAMP, CREATED_USER_ID, CREATED_USER_NAME, DELETED_STAMP,
|
||||
DELETED_USER_ID, DELETED_USER_NAME, DIAS_AUSENCIA_ULTIMO_ANO,
|
||||
MOTIVOS_AUSENCIA, };
|
||||
|
||||
private Integer id;
|
||||
private Timestamp created_stamp;
|
||||
private Integer created_user_id;
|
||||
private String created_user_name;
|
||||
private Timestamp deleted_stamp;
|
||||
private Integer deleted_user_id;
|
||||
private String deleted_user_name;
|
||||
private Integer dias_ausencia_ultimo_ano;
|
||||
private String motivos_ausencia;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public FcFichaAbsentismo()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ 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
|
||||
{
|
||||
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<shst.medicina.fichasclinicas.data.FcFichaData>fromFcFicha_absentismo_id()
|
||||
{
|
||||
java.util.List<shst.medicina.fichasclinicas.data.FcFichaData> result = new java.util.LinkedList< shst.medicina.fichasclinicas.data.FcFichaData >();
|
||||
if ( getPrimaryKey() != null )
|
||||
{
|
||||
try
|
||||
{
|
||||
result = fromReference( shst.medicina.fichasclinicas.data.FcFichaData.class , getPrimaryKey().getMap().get("id"), "absentismo_id" );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public Timestamp getCreated_stamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CREATED_STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.created_stamp;
|
||||
}
|
||||
|
||||
public void setCreated_stamp( Timestamp created_stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CREATED_STAMP, created_stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.created_stamp = created_stamp;
|
||||
LAZY_LOADED_OBJECTS.put( CREATED_STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getCreated_user_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CREATED_USER_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.created_user_id;
|
||||
}
|
||||
|
||||
public void setCreated_user_id( Integer created_user_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CREATED_USER_ID, created_user_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.created_user_id = created_user_id;
|
||||
LAZY_LOADED_OBJECTS.put( CREATED_USER_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getCreated_user_name()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CREATED_USER_NAME );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.created_user_name;
|
||||
}
|
||||
|
||||
public void setCreated_user_name( String created_user_name )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CREATED_USER_NAME, created_user_name );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.created_user_name = created_user_name;
|
||||
LAZY_LOADED_OBJECTS.put( CREATED_USER_NAME, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Timestamp getDeleted_stamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DELETED_STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.deleted_stamp;
|
||||
}
|
||||
|
||||
public void setDeleted_stamp( Timestamp deleted_stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DELETED_STAMP, deleted_stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.deleted_stamp = deleted_stamp;
|
||||
LAZY_LOADED_OBJECTS.put( DELETED_STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getDeleted_user_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DELETED_USER_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.deleted_user_id;
|
||||
}
|
||||
|
||||
public void setDeleted_user_id( Integer deleted_user_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DELETED_USER_ID, deleted_user_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.deleted_user_id = deleted_user_id;
|
||||
LAZY_LOADED_OBJECTS.put( DELETED_USER_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getDeleted_user_name()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DELETED_USER_NAME );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.deleted_user_name;
|
||||
}
|
||||
|
||||
public void setDeleted_user_name( String deleted_user_name )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DELETED_USER_NAME, deleted_user_name );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.deleted_user_name = deleted_user_name;
|
||||
LAZY_LOADED_OBJECTS.put( DELETED_USER_NAME, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getDias_ausencia_ultimo_ano()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DIAS_AUSENCIA_ULTIMO_ANO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.dias_ausencia_ultimo_ano;
|
||||
}
|
||||
|
||||
public void setDias_ausencia_ultimo_ano( Integer dias_ausencia_ultimo_ano )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DIAS_AUSENCIA_ULTIMO_ANO, dias_ausencia_ultimo_ano );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.dias_ausencia_ultimo_ano = dias_ausencia_ultimo_ano;
|
||||
LAZY_LOADED_OBJECTS.put( DIAS_AUSENCIA_ULTIMO_ANO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getMotivos_ausencia()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( MOTIVOS_AUSENCIA );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.motivos_ausencia;
|
||||
}
|
||||
|
||||
public void setMotivos_ausencia( String motivos_ausencia )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( MOTIVOS_AUSENCIA, motivos_ausencia );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.motivos_ausencia = motivos_ausencia;
|
||||
LAZY_LOADED_OBJECTS.put( MOTIVOS_AUSENCIA, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcFichaAbsentismo.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case FcFichaAbsentismo.CREATED_STAMP_INDEX:
|
||||
value = getCreated_stamp();
|
||||
break;
|
||||
case FcFichaAbsentismo.CREATED_USER_ID_INDEX:
|
||||
value = getCreated_user_id();
|
||||
break;
|
||||
case FcFichaAbsentismo.CREATED_USER_NAME_INDEX:
|
||||
value = getCreated_user_name();
|
||||
break;
|
||||
case FcFichaAbsentismo.DELETED_STAMP_INDEX:
|
||||
value = getDeleted_stamp();
|
||||
break;
|
||||
case FcFichaAbsentismo.DELETED_USER_ID_INDEX:
|
||||
value = getDeleted_user_id();
|
||||
break;
|
||||
case FcFichaAbsentismo.DELETED_USER_NAME_INDEX:
|
||||
value = getDeleted_user_name();
|
||||
break;
|
||||
case FcFichaAbsentismo.DIAS_AUSENCIA_ULTIMO_ANO_INDEX:
|
||||
value = getDias_ausencia_ultimo_ano();
|
||||
break;
|
||||
case FcFichaAbsentismo.MOTIVOS_AUSENCIA_INDEX:
|
||||
value = getMotivos_ausencia();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcFichaAbsentismo.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case FcFichaAbsentismo.CREATED_STAMP_INDEX:
|
||||
value = this.created_stamp;
|
||||
break;
|
||||
case FcFichaAbsentismo.CREATED_USER_ID_INDEX:
|
||||
value = this.created_user_id;
|
||||
break;
|
||||
case FcFichaAbsentismo.CREATED_USER_NAME_INDEX:
|
||||
value = this.created_user_name;
|
||||
break;
|
||||
case FcFichaAbsentismo.DELETED_STAMP_INDEX:
|
||||
value = this.deleted_stamp;
|
||||
break;
|
||||
case FcFichaAbsentismo.DELETED_USER_ID_INDEX:
|
||||
value = this.deleted_user_id;
|
||||
break;
|
||||
case FcFichaAbsentismo.DELETED_USER_NAME_INDEX:
|
||||
value = this.deleted_user_name;
|
||||
break;
|
||||
case FcFichaAbsentismo.DIAS_AUSENCIA_ULTIMO_ANO_INDEX:
|
||||
value = this.dias_ausencia_ultimo_ano;
|
||||
break;
|
||||
case FcFichaAbsentismo.MOTIVOS_AUSENCIA_INDEX:
|
||||
value = this.motivos_ausencia;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcFichaAbsentismo.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case FcFichaAbsentismo.CREATED_STAMP_INDEX:
|
||||
setCreated_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case FcFichaAbsentismo.CREATED_USER_ID_INDEX:
|
||||
setCreated_user_id( ( Integer ) value );
|
||||
break;
|
||||
case FcFichaAbsentismo.CREATED_USER_NAME_INDEX:
|
||||
setCreated_user_name( ( String ) value );
|
||||
break;
|
||||
case FcFichaAbsentismo.DELETED_STAMP_INDEX:
|
||||
setDeleted_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case FcFichaAbsentismo.DELETED_USER_ID_INDEX:
|
||||
setDeleted_user_id( ( Integer ) value );
|
||||
break;
|
||||
case FcFichaAbsentismo.DELETED_USER_NAME_INDEX:
|
||||
setDeleted_user_name( ( String ) value );
|
||||
break;
|
||||
case FcFichaAbsentismo.DIAS_AUSENCIA_ULTIMO_ANO_INDEX:
|
||||
setDias_ausencia_ultimo_ano( ( Integer ) value );
|
||||
break;
|
||||
case FcFichaAbsentismo.MOTIVOS_AUSENCIA_INDEX:
|
||||
setMotivos_ausencia( ( String ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcFichaAbsentismo.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case FcFichaAbsentismo.CREATED_STAMP_INDEX:
|
||||
this.created_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case FcFichaAbsentismo.CREATED_USER_ID_INDEX:
|
||||
this.created_user_id = ( Integer ) value;
|
||||
break;
|
||||
case FcFichaAbsentismo.CREATED_USER_NAME_INDEX:
|
||||
this.created_user_name = ( String ) value;
|
||||
break;
|
||||
case FcFichaAbsentismo.DELETED_STAMP_INDEX:
|
||||
this.deleted_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case FcFichaAbsentismo.DELETED_USER_ID_INDEX:
|
||||
this.deleted_user_id = ( Integer ) value;
|
||||
break;
|
||||
case FcFichaAbsentismo.DELETED_USER_NAME_INDEX:
|
||||
this.deleted_user_name = ( String ) value;
|
||||
break;
|
||||
case FcFichaAbsentismo.DIAS_AUSENCIA_ULTIMO_ANO_INDEX:
|
||||
this.dias_ausencia_ultimo_ano = ( Integer ) value;
|
||||
break;
|
||||
case FcFichaAbsentismo.MOTIVOS_AUSENCIA_INDEX:
|
||||
this.motivos_ausencia = ( 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 FcFichaAbsentismo.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case FcFichaAbsentismo.CREATED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case FcFichaAbsentismo.CREATED_USER_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case FcFichaAbsentismo.CREATED_USER_NAME_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case FcFichaAbsentismo.DELETED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case FcFichaAbsentismo.DELETED_USER_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case FcFichaAbsentismo.DELETED_USER_NAME_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case FcFichaAbsentismo.DIAS_AUSENCIA_ULTIMO_ANO_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case FcFichaAbsentismo.MOTIVOS_AUSENCIA_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : FcFichaAbsentismo._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, FcFichaAbsentismo.PK_FIELD_NAMES );
|
||||
Object idObject = array.get( row, col + 0 );
|
||||
try
|
||||
{
|
||||
primaryKey.set( 0, ( Integer ) idObject );
|
||||
setId( ( Integer ) idObject );
|
||||
}
|
||||
catch( ClassCastException ex )
|
||||
{
|
||||
if( idObject instanceof Number )
|
||||
{
|
||||
primaryKey.set( 0, ((Number)idObject).intValue() );
|
||||
setId( ((Number)idObject).intValue() );
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
|
||||
{
|
||||
return primaryKey;
|
||||
}
|
||||
|
||||
public void initLazyLoadFields()
|
||||
{
|
||||
}
|
||||
|
||||
public boolean isPropertyLoaded( String fieldName )
|
||||
{
|
||||
if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return LAZY_LOADED_OBJECTS.get( fieldName );
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,898 @@
|
||||
/*
|
||||
* FcFichaAntecedentesOcupacionaisAcidentesTrabalho.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data.inner;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Date;
|
||||
|
||||
public class FcFichaAntecedentesOcupacionaisAcidentesTrabalho 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( FcFichaAntecedentesOcupacionaisAcidentesTrabalho.ID, FcFichaAntecedentesOcupacionaisAcidentesTrabalho.ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisAcidentesTrabalho.ID_FULL, FcFichaAntecedentesOcupacionaisAcidentesTrabalho.ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisAcidentesTrabalho.CREATED_STAMP, FcFichaAntecedentesOcupacionaisAcidentesTrabalho.CREATED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisAcidentesTrabalho.CREATED_STAMP_FULL, FcFichaAntecedentesOcupacionaisAcidentesTrabalho.CREATED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisAcidentesTrabalho.CREATED_USER_ID, FcFichaAntecedentesOcupacionaisAcidentesTrabalho.CREATED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisAcidentesTrabalho.CREATED_USER_ID_FULL, FcFichaAntecedentesOcupacionaisAcidentesTrabalho.CREATED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisAcidentesTrabalho.CREATED_USER_NAME, FcFichaAntecedentesOcupacionaisAcidentesTrabalho.CREATED_USER_NAME_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisAcidentesTrabalho.CREATED_USER_NAME_FULL, FcFichaAntecedentesOcupacionaisAcidentesTrabalho.CREATED_USER_NAME_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DELETED_STAMP, FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DELETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DELETED_STAMP_FULL, FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DELETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DELETED_USER_ID, FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DELETED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DELETED_USER_ID_FULL, FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DELETED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DELETED_USER_NAME, FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DELETED_USER_NAME_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DELETED_USER_NAME_FULL, FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DELETED_USER_NAME_INDEX );
|
||||
com.evolute.entity.evo.EvoDataObject.register( FcFichaAntecedentesOcupacionaisAcidentesTrabalho.CLASS_IDENTIFIER, FcFichaAntecedentesOcupacionaisAcidentesTrabalho.ANTECEDENTES_OCUPACIONAIS_ID, FcFichaAntecedentesOcupacionaisAcidentesTrabalho.TO_ANTECEDENTES_OCUPACIONAIS_ID );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisAcidentesTrabalho.ANTECEDENTES_OCUPACIONAIS_ID, FcFichaAntecedentesOcupacionaisAcidentesTrabalho.ANTECEDENTES_OCUPACIONAIS_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisAcidentesTrabalho.ANTECEDENTES_OCUPACIONAIS_ID_FULL, FcFichaAntecedentesOcupacionaisAcidentesTrabalho.ANTECEDENTES_OCUPACIONAIS_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisAcidentesTrabalho.TO_ANTECEDENTES_OCUPACIONAIS_ID, FcFichaAntecedentesOcupacionaisAcidentesTrabalho.TO_ANTECEDENTES_OCUPACIONAIS_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisAcidentesTrabalho.ACIDENTE, FcFichaAntecedentesOcupacionaisAcidentesTrabalho.ACIDENTE_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisAcidentesTrabalho.ACIDENTE_FULL, FcFichaAntecedentesOcupacionaisAcidentesTrabalho.ACIDENTE_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DATA, FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DATA_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DATA_FULL, FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DATA_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisAcidentesTrabalho.LESAO_CORPORAL, FcFichaAntecedentesOcupacionaisAcidentesTrabalho.LESAO_CORPORAL_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisAcidentesTrabalho.LESAO_CORPORAL_FULL, FcFichaAntecedentesOcupacionaisAcidentesTrabalho.LESAO_CORPORAL_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisAcidentesTrabalho.INCAPACIDADE_RESULTANTE_DESCONHECIDA, FcFichaAntecedentesOcupacionaisAcidentesTrabalho.INCAPACIDADE_RESULTANTE_DESCONHECIDA_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisAcidentesTrabalho.INCAPACIDADE_RESULTANTE_DESCONHECIDA_FULL, FcFichaAntecedentesOcupacionaisAcidentesTrabalho.INCAPACIDADE_RESULTANTE_DESCONHECIDA_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisAcidentesTrabalho.INCAPACIDADE_RESULTANTE, FcFichaAntecedentesOcupacionaisAcidentesTrabalho.INCAPACIDADE_RESULTANTE_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisAcidentesTrabalho.INCAPACIDADE_RESULTANTE_FULL, FcFichaAntecedentesOcupacionaisAcidentesTrabalho.INCAPACIDADE_RESULTANTE_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final com.evolute.entity.ForeignKey ForeignKeyantecedentes_ocupacionais_idTofc_ficha_antecedentes_ocupacionais =
|
||||
new com.evolute.entity.ForeignKey( FcFichaAntecedentesOcupacionaisAcidentesTrabalho.class, FcFichaAntecedentesOcupacionaisAcidentesTrabalho.ANTECEDENTES_OCUPACIONAIS_ID, shst.medicina.fichasclinicas.data.FcFichaAntecedentesOcupacionaisData.class, shst.medicina.fichasclinicas.data.FcFichaAntecedentesOcupacionaisData.ID );
|
||||
|
||||
public static final String TABLENAME = "fc_ficha_antecedentes_ocupacionais_acidentes_trabalho";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "shst.medicina.fichasclinicas.data.inner.fc_ficha_antecedentes_ocupacionais_acidentes_trabalho";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "fc_ficha_antecedentes_ocupacionais_acidentes_trabalho.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String CREATED_STAMP = "created_stamp";
|
||||
public static final String CREATED_STAMP_FULL = "fc_ficha_antecedentes_ocupacionais_acidentes_trabalho.created_stamp";
|
||||
public static final int CREATED_STAMP_INDEX = 1;
|
||||
public static final String CREATED_USER_ID = "created_user_id";
|
||||
public static final String CREATED_USER_ID_FULL = "fc_ficha_antecedentes_ocupacionais_acidentes_trabalho.created_user_id";
|
||||
public static final int CREATED_USER_ID_INDEX = 2;
|
||||
public static final String CREATED_USER_NAME = "created_user_name";
|
||||
public static final String CREATED_USER_NAME_FULL = "fc_ficha_antecedentes_ocupacionais_acidentes_trabalho.created_user_name";
|
||||
public static final int CREATED_USER_NAME_INDEX = 3;
|
||||
public static final String DELETED_STAMP = "deleted_stamp";
|
||||
public static final String DELETED_STAMP_FULL = "fc_ficha_antecedentes_ocupacionais_acidentes_trabalho.deleted_stamp";
|
||||
public static final int DELETED_STAMP_INDEX = 4;
|
||||
public static final String DELETED_USER_ID = "deleted_user_id";
|
||||
public static final String DELETED_USER_ID_FULL = "fc_ficha_antecedentes_ocupacionais_acidentes_trabalho.deleted_user_id";
|
||||
public static final int DELETED_USER_ID_INDEX = 5;
|
||||
public static final String DELETED_USER_NAME = "deleted_user_name";
|
||||
public static final String DELETED_USER_NAME_FULL = "fc_ficha_antecedentes_ocupacionais_acidentes_trabalho.deleted_user_name";
|
||||
public static final int DELETED_USER_NAME_INDEX = 6;
|
||||
public static final String ANTECEDENTES_OCUPACIONAIS_ID = "antecedentes_ocupacionais_id";
|
||||
public static final String ANTECEDENTES_OCUPACIONAIS_ID_FULL = "fc_ficha_antecedentes_ocupacionais_acidentes_trabalho.antecedentes_ocupacionais_id";
|
||||
public static final int ANTECEDENTES_OCUPACIONAIS_ID_INDEX = 7;
|
||||
public static final String TO_ANTECEDENTES_OCUPACIONAIS_ID = "to_antecedentes_ocupacionais_id";
|
||||
public static final String TO_ANTECEDENTES_OCUPACIONAIS_ID_FULL = "fc_ficha_antecedentes_ocupacionais_acidentes_trabalho.to_antecedentes_ocupacionais_id";
|
||||
public static final int TO_ANTECEDENTES_OCUPACIONAIS_ID_INDEX = 8;
|
||||
public static final String ACIDENTE = "acidente";
|
||||
public static final String ACIDENTE_FULL = "fc_ficha_antecedentes_ocupacionais_acidentes_trabalho.acidente";
|
||||
public static final int ACIDENTE_INDEX = 9;
|
||||
public static final String DATA = "data";
|
||||
public static final String DATA_FULL = "fc_ficha_antecedentes_ocupacionais_acidentes_trabalho.data";
|
||||
public static final int DATA_INDEX = 10;
|
||||
public static final String LESAO_CORPORAL = "lesao_corporal";
|
||||
public static final String LESAO_CORPORAL_FULL = "fc_ficha_antecedentes_ocupacionais_acidentes_trabalho.lesao_corporal";
|
||||
public static final int LESAO_CORPORAL_INDEX = 11;
|
||||
public static final String INCAPACIDADE_RESULTANTE_DESCONHECIDA = "incapacidade_resultante_desconhecida";
|
||||
public static final String INCAPACIDADE_RESULTANTE_DESCONHECIDA_FULL = "fc_ficha_antecedentes_ocupacionais_acidentes_trabalho.incapacidade_resultante_desconhecida";
|
||||
public static final int INCAPACIDADE_RESULTANTE_DESCONHECIDA_INDEX = 12;
|
||||
public static final String INCAPACIDADE_RESULTANTE = "incapacidade_resultante";
|
||||
public static final String INCAPACIDADE_RESULTANTE_FULL = "fc_ficha_antecedentes_ocupacionais_acidentes_trabalho.incapacidade_resultante";
|
||||
public static final int INCAPACIDADE_RESULTANTE_INDEX = 13;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
CREATED_STAMP, CREATED_USER_ID, CREATED_USER_NAME, DELETED_STAMP,
|
||||
DELETED_USER_ID, DELETED_USER_NAME, ANTECEDENTES_OCUPACIONAIS_ID,
|
||||
TO_ANTECEDENTES_OCUPACIONAIS_ID, ACIDENTE, DATA, LESAO_CORPORAL,
|
||||
INCAPACIDADE_RESULTANTE_DESCONHECIDA, INCAPACIDADE_RESULTANTE, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + CREATED_STAMP, TABLENAME + "." + CREATED_USER_ID, TABLENAME + "." + CREATED_USER_NAME, TABLENAME + "." + DELETED_STAMP,
|
||||
TABLENAME + "." + DELETED_USER_ID, TABLENAME + "." + DELETED_USER_NAME, TABLENAME + "." + ANTECEDENTES_OCUPACIONAIS_ID,
|
||||
TABLENAME + "." + TO_ANTECEDENTES_OCUPACIONAIS_ID, TABLENAME + "." + ACIDENTE, TABLENAME + "." + DATA, TABLENAME + "." + LESAO_CORPORAL,
|
||||
TABLENAME + "." + INCAPACIDADE_RESULTANTE_DESCONHECIDA, TABLENAME + "." + INCAPACIDADE_RESULTANTE, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, CREATED_STAMP, CREATED_USER_ID, CREATED_USER_NAME, DELETED_STAMP,
|
||||
DELETED_USER_ID, DELETED_USER_NAME, ANTECEDENTES_OCUPACIONAIS_ID, ACIDENTE,
|
||||
DATA, LESAO_CORPORAL, INCAPACIDADE_RESULTANTE_DESCONHECIDA,
|
||||
INCAPACIDADE_RESULTANTE, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, CREATED_STAMP, CREATED_USER_ID, CREATED_USER_NAME, DELETED_STAMP,
|
||||
DELETED_USER_ID, DELETED_USER_NAME, ANTECEDENTES_OCUPACIONAIS_ID, ACIDENTE,
|
||||
DATA, LESAO_CORPORAL, INCAPACIDADE_RESULTANTE_DESCONHECIDA,
|
||||
INCAPACIDADE_RESULTANTE, };
|
||||
|
||||
private Integer id;
|
||||
private Timestamp created_stamp;
|
||||
private Integer created_user_id;
|
||||
private String created_user_name;
|
||||
private Timestamp deleted_stamp;
|
||||
private Integer deleted_user_id;
|
||||
private String deleted_user_name;
|
||||
private Integer antecedentes_ocupacionais_id;
|
||||
private shst.medicina.fichasclinicas.data.FcFichaAntecedentesOcupacionaisData to_antecedentes_ocupacionais_id;
|
||||
private String acidente;
|
||||
private Date data;
|
||||
private String lesao_corporal;
|
||||
private Boolean incapacidade_resultante_desconhecida;
|
||||
private Integer incapacidade_resultante;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public FcFichaAntecedentesOcupacionaisAcidentesTrabalho()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, false, 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
|
||||
{
|
||||
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 Timestamp getCreated_stamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CREATED_STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.created_stamp;
|
||||
}
|
||||
|
||||
public void setCreated_stamp( Timestamp created_stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CREATED_STAMP, created_stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.created_stamp = created_stamp;
|
||||
LAZY_LOADED_OBJECTS.put( CREATED_STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getCreated_user_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CREATED_USER_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.created_user_id;
|
||||
}
|
||||
|
||||
public void setCreated_user_id( Integer created_user_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CREATED_USER_ID, created_user_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.created_user_id = created_user_id;
|
||||
LAZY_LOADED_OBJECTS.put( CREATED_USER_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getCreated_user_name()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CREATED_USER_NAME );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.created_user_name;
|
||||
}
|
||||
|
||||
public void setCreated_user_name( String created_user_name )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CREATED_USER_NAME, created_user_name );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.created_user_name = created_user_name;
|
||||
LAZY_LOADED_OBJECTS.put( CREATED_USER_NAME, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Timestamp getDeleted_stamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DELETED_STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.deleted_stamp;
|
||||
}
|
||||
|
||||
public void setDeleted_stamp( Timestamp deleted_stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DELETED_STAMP, deleted_stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.deleted_stamp = deleted_stamp;
|
||||
LAZY_LOADED_OBJECTS.put( DELETED_STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getDeleted_user_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DELETED_USER_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.deleted_user_id;
|
||||
}
|
||||
|
||||
public void setDeleted_user_id( Integer deleted_user_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DELETED_USER_ID, deleted_user_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.deleted_user_id = deleted_user_id;
|
||||
LAZY_LOADED_OBJECTS.put( DELETED_USER_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getDeleted_user_name()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DELETED_USER_NAME );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.deleted_user_name;
|
||||
}
|
||||
|
||||
public void setDeleted_user_name( String deleted_user_name )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DELETED_USER_NAME, deleted_user_name );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.deleted_user_name = deleted_user_name;
|
||||
LAZY_LOADED_OBJECTS.put( DELETED_USER_NAME, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getAntecedentes_ocupacionais_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ANTECEDENTES_OCUPACIONAIS_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.antecedentes_ocupacionais_id;
|
||||
}
|
||||
|
||||
public void setAntecedentes_ocupacionais_id( Integer antecedentes_ocupacionais_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( ANTECEDENTES_OCUPACIONAIS_ID, antecedentes_ocupacionais_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.antecedentes_ocupacionais_id = antecedentes_ocupacionais_id;
|
||||
LAZY_LOADED_OBJECTS.put( ANTECEDENTES_OCUPACIONAIS_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public shst.medicina.fichasclinicas.data.FcFichaAntecedentesOcupacionaisData toAntecedentes_ocupacionais_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
prepare( TO_ANTECEDENTES_OCUPACIONAIS_ID );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return this.to_antecedentes_ocupacionais_id;
|
||||
}
|
||||
|
||||
public void setToAntecedentes_ocupacionais_id( shst.medicina.fichasclinicas.data.FcFichaAntecedentesOcupacionaisData to_antecedentes_ocupacionais_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( TO_ANTECEDENTES_OCUPACIONAIS_ID, to_antecedentes_ocupacionais_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.to_antecedentes_ocupacionais_id = to_antecedentes_ocupacionais_id;
|
||||
}
|
||||
|
||||
public String getAcidente()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ACIDENTE );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.acidente;
|
||||
}
|
||||
|
||||
public void setAcidente( String acidente )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( ACIDENTE, acidente );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.acidente = acidente;
|
||||
LAZY_LOADED_OBJECTS.put( ACIDENTE, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Date getData()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DATA );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.data;
|
||||
}
|
||||
|
||||
public void setData( Date data )
|
||||
{
|
||||
try
|
||||
{
|
||||
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 getLesao_corporal()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( LESAO_CORPORAL );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.lesao_corporal;
|
||||
}
|
||||
|
||||
public void setLesao_corporal( String lesao_corporal )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( LESAO_CORPORAL, lesao_corporal );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.lesao_corporal = lesao_corporal;
|
||||
LAZY_LOADED_OBJECTS.put( LESAO_CORPORAL, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Boolean getIncapacidade_resultante_desconhecida()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( INCAPACIDADE_RESULTANTE_DESCONHECIDA );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.incapacidade_resultante_desconhecida;
|
||||
}
|
||||
|
||||
public void setIncapacidade_resultante_desconhecida( Boolean incapacidade_resultante_desconhecida )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( INCAPACIDADE_RESULTANTE_DESCONHECIDA, incapacidade_resultante_desconhecida );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.incapacidade_resultante_desconhecida = incapacidade_resultante_desconhecida;
|
||||
LAZY_LOADED_OBJECTS.put( INCAPACIDADE_RESULTANTE_DESCONHECIDA, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getIncapacidade_resultante()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( INCAPACIDADE_RESULTANTE );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.incapacidade_resultante;
|
||||
}
|
||||
|
||||
public void setIncapacidade_resultante( Integer incapacidade_resultante )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( INCAPACIDADE_RESULTANTE, incapacidade_resultante );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.incapacidade_resultante = incapacidade_resultante;
|
||||
LAZY_LOADED_OBJECTS.put( INCAPACIDADE_RESULTANTE, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.CREATED_STAMP_INDEX:
|
||||
value = getCreated_stamp();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.CREATED_USER_ID_INDEX:
|
||||
value = getCreated_user_id();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.CREATED_USER_NAME_INDEX:
|
||||
value = getCreated_user_name();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DELETED_STAMP_INDEX:
|
||||
value = getDeleted_stamp();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DELETED_USER_ID_INDEX:
|
||||
value = getDeleted_user_id();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DELETED_USER_NAME_INDEX:
|
||||
value = getDeleted_user_name();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.ANTECEDENTES_OCUPACIONAIS_ID_INDEX:
|
||||
value = getAntecedentes_ocupacionais_id();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.TO_ANTECEDENTES_OCUPACIONAIS_ID_INDEX:
|
||||
value = toAntecedentes_ocupacionais_id();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.ACIDENTE_INDEX:
|
||||
value = getAcidente();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DATA_INDEX:
|
||||
value = getData();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.LESAO_CORPORAL_INDEX:
|
||||
value = getLesao_corporal();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.INCAPACIDADE_RESULTANTE_DESCONHECIDA_INDEX:
|
||||
value = getIncapacidade_resultante_desconhecida();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.INCAPACIDADE_RESULTANTE_INDEX:
|
||||
value = getIncapacidade_resultante();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.CREATED_STAMP_INDEX:
|
||||
value = this.created_stamp;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.CREATED_USER_ID_INDEX:
|
||||
value = this.created_user_id;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.CREATED_USER_NAME_INDEX:
|
||||
value = this.created_user_name;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DELETED_STAMP_INDEX:
|
||||
value = this.deleted_stamp;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DELETED_USER_ID_INDEX:
|
||||
value = this.deleted_user_id;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DELETED_USER_NAME_INDEX:
|
||||
value = this.deleted_user_name;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.ANTECEDENTES_OCUPACIONAIS_ID_INDEX:
|
||||
value = this.antecedentes_ocupacionais_id;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.TO_ANTECEDENTES_OCUPACIONAIS_ID_INDEX:
|
||||
value = this.to_antecedentes_ocupacionais_id;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.ACIDENTE_INDEX:
|
||||
value = this.acidente;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DATA_INDEX:
|
||||
value = this.data;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.LESAO_CORPORAL_INDEX:
|
||||
value = this.lesao_corporal;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.INCAPACIDADE_RESULTANTE_DESCONHECIDA_INDEX:
|
||||
value = this.incapacidade_resultante_desconhecida;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.INCAPACIDADE_RESULTANTE_INDEX:
|
||||
value = this.incapacidade_resultante;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.CREATED_STAMP_INDEX:
|
||||
setCreated_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.CREATED_USER_ID_INDEX:
|
||||
setCreated_user_id( ( Integer ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.CREATED_USER_NAME_INDEX:
|
||||
setCreated_user_name( ( String ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DELETED_STAMP_INDEX:
|
||||
setDeleted_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DELETED_USER_ID_INDEX:
|
||||
setDeleted_user_id( ( Integer ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DELETED_USER_NAME_INDEX:
|
||||
setDeleted_user_name( ( String ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.ANTECEDENTES_OCUPACIONAIS_ID_INDEX:
|
||||
setAntecedentes_ocupacionais_id( ( Integer ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.TO_ANTECEDENTES_OCUPACIONAIS_ID_INDEX:
|
||||
setToAntecedentes_ocupacionais_id( ( shst.medicina.fichasclinicas.data.FcFichaAntecedentesOcupacionaisData ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.ACIDENTE_INDEX:
|
||||
setAcidente( ( String ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DATA_INDEX:
|
||||
setData( ( Date ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.LESAO_CORPORAL_INDEX:
|
||||
setLesao_corporal( ( String ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.INCAPACIDADE_RESULTANTE_DESCONHECIDA_INDEX:
|
||||
setIncapacidade_resultante_desconhecida( ( Boolean ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.INCAPACIDADE_RESULTANTE_INDEX:
|
||||
setIncapacidade_resultante( ( Integer ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.CREATED_STAMP_INDEX:
|
||||
this.created_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.CREATED_USER_ID_INDEX:
|
||||
this.created_user_id = ( Integer ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.CREATED_USER_NAME_INDEX:
|
||||
this.created_user_name = ( String ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DELETED_STAMP_INDEX:
|
||||
this.deleted_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DELETED_USER_ID_INDEX:
|
||||
this.deleted_user_id = ( Integer ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DELETED_USER_NAME_INDEX:
|
||||
this.deleted_user_name = ( String ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.ANTECEDENTES_OCUPACIONAIS_ID_INDEX:
|
||||
this.antecedentes_ocupacionais_id = ( Integer ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.TO_ANTECEDENTES_OCUPACIONAIS_ID_INDEX:
|
||||
this.to_antecedentes_ocupacionais_id = ( shst.medicina.fichasclinicas.data.FcFichaAntecedentesOcupacionaisData ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.ACIDENTE_INDEX:
|
||||
this.acidente = ( String ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DATA_INDEX:
|
||||
this.data = ( Date ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.LESAO_CORPORAL_INDEX:
|
||||
this.lesao_corporal = ( String ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.INCAPACIDADE_RESULTANTE_DESCONHECIDA_INDEX:
|
||||
this.incapacidade_resultante_desconhecida = ( Boolean ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.INCAPACIDADE_RESULTANTE_INDEX:
|
||||
this.incapacidade_resultante = ( 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 FcFichaAntecedentesOcupacionaisAcidentesTrabalho.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.CREATED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.CREATED_USER_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.CREATED_USER_NAME_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DELETED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DELETED_USER_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DELETED_USER_NAME_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.ANTECEDENTES_OCUPACIONAIS_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.TO_ANTECEDENTES_OCUPACIONAIS_ID_INDEX:
|
||||
theClass = shst.medicina.fichasclinicas.data.FcFichaAntecedentesOcupacionaisData.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.ACIDENTE_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.DATA_INDEX:
|
||||
theClass = Date.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.LESAO_CORPORAL_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.INCAPACIDADE_RESULTANTE_DESCONHECIDA_INDEX:
|
||||
theClass = Boolean.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisAcidentesTrabalho.INCAPACIDADE_RESULTANTE_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : FcFichaAntecedentesOcupacionaisAcidentesTrabalho._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, FcFichaAntecedentesOcupacionaisAcidentesTrabalho.PK_FIELD_NAMES );
|
||||
Object idObject = array.get( row, col + 0 );
|
||||
try
|
||||
{
|
||||
primaryKey.set( 0, ( Integer ) idObject );
|
||||
setId( ( Integer ) idObject );
|
||||
}
|
||||
catch( ClassCastException ex )
|
||||
{
|
||||
if( idObject instanceof Number )
|
||||
{
|
||||
primaryKey.set( 0, ((Number)idObject).intValue() );
|
||||
setId( ((Number)idObject).intValue() );
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@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,846 @@
|
||||
/*
|
||||
* FcFichaAntecedentesOcupacionaisActividadesAnteriores.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data.inner;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
|
||||
public class FcFichaAntecedentesOcupacionaisActividadesAnteriores 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( FcFichaAntecedentesOcupacionaisActividadesAnteriores.ID, FcFichaAntecedentesOcupacionaisActividadesAnteriores.ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisActividadesAnteriores.ID_FULL, FcFichaAntecedentesOcupacionaisActividadesAnteriores.ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisActividadesAnteriores.CREATED_STAMP, FcFichaAntecedentesOcupacionaisActividadesAnteriores.CREATED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisActividadesAnteriores.CREATED_STAMP_FULL, FcFichaAntecedentesOcupacionaisActividadesAnteriores.CREATED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisActividadesAnteriores.CREATED_USER_ID, FcFichaAntecedentesOcupacionaisActividadesAnteriores.CREATED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisActividadesAnteriores.CREATED_USER_ID_FULL, FcFichaAntecedentesOcupacionaisActividadesAnteriores.CREATED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisActividadesAnteriores.CREATED_USER_NAME, FcFichaAntecedentesOcupacionaisActividadesAnteriores.CREATED_USER_NAME_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisActividadesAnteriores.CREATED_USER_NAME_FULL, FcFichaAntecedentesOcupacionaisActividadesAnteriores.CREATED_USER_NAME_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisActividadesAnteriores.DELETED_STAMP, FcFichaAntecedentesOcupacionaisActividadesAnteriores.DELETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisActividadesAnteriores.DELETED_STAMP_FULL, FcFichaAntecedentesOcupacionaisActividadesAnteriores.DELETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisActividadesAnteriores.DELETED_USER_ID, FcFichaAntecedentesOcupacionaisActividadesAnteriores.DELETED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisActividadesAnteriores.DELETED_USER_ID_FULL, FcFichaAntecedentesOcupacionaisActividadesAnteriores.DELETED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisActividadesAnteriores.DELETED_USER_NAME, FcFichaAntecedentesOcupacionaisActividadesAnteriores.DELETED_USER_NAME_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisActividadesAnteriores.DELETED_USER_NAME_FULL, FcFichaAntecedentesOcupacionaisActividadesAnteriores.DELETED_USER_NAME_INDEX );
|
||||
com.evolute.entity.evo.EvoDataObject.register( FcFichaAntecedentesOcupacionaisActividadesAnteriores.CLASS_IDENTIFIER, FcFichaAntecedentesOcupacionaisActividadesAnteriores.ANTECEDENTES_OCUPACIONAIS_ID, FcFichaAntecedentesOcupacionaisActividadesAnteriores.TO_ANTECEDENTES_OCUPACIONAIS_ID );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisActividadesAnteriores.ANTECEDENTES_OCUPACIONAIS_ID, FcFichaAntecedentesOcupacionaisActividadesAnteriores.ANTECEDENTES_OCUPACIONAIS_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisActividadesAnteriores.ANTECEDENTES_OCUPACIONAIS_ID_FULL, FcFichaAntecedentesOcupacionaisActividadesAnteriores.ANTECEDENTES_OCUPACIONAIS_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisActividadesAnteriores.TO_ANTECEDENTES_OCUPACIONAIS_ID, FcFichaAntecedentesOcupacionaisActividadesAnteriores.TO_ANTECEDENTES_OCUPACIONAIS_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisActividadesAnteriores.ACTIVIDADE, FcFichaAntecedentesOcupacionaisActividadesAnteriores.ACTIVIDADE_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisActividadesAnteriores.ACTIVIDADE_FULL, FcFichaAntecedentesOcupacionaisActividadesAnteriores.ACTIVIDADE_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisActividadesAnteriores.ENTIDADE, FcFichaAntecedentesOcupacionaisActividadesAnteriores.ENTIDADE_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisActividadesAnteriores.ENTIDADE_FULL, FcFichaAntecedentesOcupacionaisActividadesAnteriores.ENTIDADE_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisActividadesAnteriores.LOCAL_TRABALHO, FcFichaAntecedentesOcupacionaisActividadesAnteriores.LOCAL_TRABALHO_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisActividadesAnteriores.LOCAL_TRABALHO_FULL, FcFichaAntecedentesOcupacionaisActividadesAnteriores.LOCAL_TRABALHO_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisActividadesAnteriores.PERIODO_TEMPO, FcFichaAntecedentesOcupacionaisActividadesAnteriores.PERIODO_TEMPO_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisActividadesAnteriores.PERIODO_TEMPO_FULL, FcFichaAntecedentesOcupacionaisActividadesAnteriores.PERIODO_TEMPO_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final com.evolute.entity.ForeignKey ForeignKeyantecedentes_ocupacionais_idTofc_ficha_antecedentes_ocupacionais =
|
||||
new com.evolute.entity.ForeignKey( FcFichaAntecedentesOcupacionaisActividadesAnteriores.class, FcFichaAntecedentesOcupacionaisActividadesAnteriores.ANTECEDENTES_OCUPACIONAIS_ID, shst.medicina.fichasclinicas.data.FcFichaAntecedentesOcupacionaisData.class, shst.medicina.fichasclinicas.data.FcFichaAntecedentesOcupacionaisData.ID );
|
||||
|
||||
public static final String TABLENAME = "fc_ficha_antecedentes_ocupacionais_actividades_anteriores";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "shst.medicina.fichasclinicas.data.inner.fc_ficha_antecedentes_ocupacionais_actividades_anteriores";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "fc_ficha_antecedentes_ocupacionais_actividades_anteriores.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String CREATED_STAMP = "created_stamp";
|
||||
public static final String CREATED_STAMP_FULL = "fc_ficha_antecedentes_ocupacionais_actividades_anteriores.created_stamp";
|
||||
public static final int CREATED_STAMP_INDEX = 1;
|
||||
public static final String CREATED_USER_ID = "created_user_id";
|
||||
public static final String CREATED_USER_ID_FULL = "fc_ficha_antecedentes_ocupacionais_actividades_anteriores.created_user_id";
|
||||
public static final int CREATED_USER_ID_INDEX = 2;
|
||||
public static final String CREATED_USER_NAME = "created_user_name";
|
||||
public static final String CREATED_USER_NAME_FULL = "fc_ficha_antecedentes_ocupacionais_actividades_anteriores.created_user_name";
|
||||
public static final int CREATED_USER_NAME_INDEX = 3;
|
||||
public static final String DELETED_STAMP = "deleted_stamp";
|
||||
public static final String DELETED_STAMP_FULL = "fc_ficha_antecedentes_ocupacionais_actividades_anteriores.deleted_stamp";
|
||||
public static final int DELETED_STAMP_INDEX = 4;
|
||||
public static final String DELETED_USER_ID = "deleted_user_id";
|
||||
public static final String DELETED_USER_ID_FULL = "fc_ficha_antecedentes_ocupacionais_actividades_anteriores.deleted_user_id";
|
||||
public static final int DELETED_USER_ID_INDEX = 5;
|
||||
public static final String DELETED_USER_NAME = "deleted_user_name";
|
||||
public static final String DELETED_USER_NAME_FULL = "fc_ficha_antecedentes_ocupacionais_actividades_anteriores.deleted_user_name";
|
||||
public static final int DELETED_USER_NAME_INDEX = 6;
|
||||
public static final String ANTECEDENTES_OCUPACIONAIS_ID = "antecedentes_ocupacionais_id";
|
||||
public static final String ANTECEDENTES_OCUPACIONAIS_ID_FULL = "fc_ficha_antecedentes_ocupacionais_actividades_anteriores.antecedentes_ocupacionais_id";
|
||||
public static final int ANTECEDENTES_OCUPACIONAIS_ID_INDEX = 7;
|
||||
public static final String TO_ANTECEDENTES_OCUPACIONAIS_ID = "to_antecedentes_ocupacionais_id";
|
||||
public static final String TO_ANTECEDENTES_OCUPACIONAIS_ID_FULL = "fc_ficha_antecedentes_ocupacionais_actividades_anteriores.to_antecedentes_ocupacionais_id";
|
||||
public static final int TO_ANTECEDENTES_OCUPACIONAIS_ID_INDEX = 8;
|
||||
public static final String ACTIVIDADE = "actividade";
|
||||
public static final String ACTIVIDADE_FULL = "fc_ficha_antecedentes_ocupacionais_actividades_anteriores.actividade";
|
||||
public static final int ACTIVIDADE_INDEX = 9;
|
||||
public static final String ENTIDADE = "entidade";
|
||||
public static final String ENTIDADE_FULL = "fc_ficha_antecedentes_ocupacionais_actividades_anteriores.entidade";
|
||||
public static final int ENTIDADE_INDEX = 10;
|
||||
public static final String LOCAL_TRABALHO = "local_trabalho";
|
||||
public static final String LOCAL_TRABALHO_FULL = "fc_ficha_antecedentes_ocupacionais_actividades_anteriores.local_trabalho";
|
||||
public static final int LOCAL_TRABALHO_INDEX = 11;
|
||||
public static final String PERIODO_TEMPO = "periodo_tempo";
|
||||
public static final String PERIODO_TEMPO_FULL = "fc_ficha_antecedentes_ocupacionais_actividades_anteriores.periodo_tempo";
|
||||
public static final int PERIODO_TEMPO_INDEX = 12;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
CREATED_STAMP, CREATED_USER_ID, CREATED_USER_NAME, DELETED_STAMP,
|
||||
DELETED_USER_ID, DELETED_USER_NAME, ANTECEDENTES_OCUPACIONAIS_ID,
|
||||
TO_ANTECEDENTES_OCUPACIONAIS_ID, ACTIVIDADE, ENTIDADE, LOCAL_TRABALHO,
|
||||
PERIODO_TEMPO, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + CREATED_STAMP, TABLENAME + "." + CREATED_USER_ID, TABLENAME + "." + CREATED_USER_NAME, TABLENAME + "." + DELETED_STAMP,
|
||||
TABLENAME + "." + DELETED_USER_ID, TABLENAME + "." + DELETED_USER_NAME, TABLENAME + "." + ANTECEDENTES_OCUPACIONAIS_ID,
|
||||
TABLENAME + "." + TO_ANTECEDENTES_OCUPACIONAIS_ID, TABLENAME + "." + ACTIVIDADE, TABLENAME + "." + ENTIDADE, TABLENAME + "." + LOCAL_TRABALHO,
|
||||
TABLENAME + "." + PERIODO_TEMPO, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, CREATED_STAMP, CREATED_USER_ID, CREATED_USER_NAME, DELETED_STAMP,
|
||||
DELETED_USER_ID, DELETED_USER_NAME, ANTECEDENTES_OCUPACIONAIS_ID, ACTIVIDADE,
|
||||
ENTIDADE, LOCAL_TRABALHO, PERIODO_TEMPO, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, CREATED_STAMP, CREATED_USER_ID, CREATED_USER_NAME, DELETED_STAMP,
|
||||
DELETED_USER_ID, DELETED_USER_NAME, ANTECEDENTES_OCUPACIONAIS_ID, ACTIVIDADE,
|
||||
ENTIDADE, LOCAL_TRABALHO, PERIODO_TEMPO, };
|
||||
|
||||
private Integer id;
|
||||
private Timestamp created_stamp;
|
||||
private Integer created_user_id;
|
||||
private String created_user_name;
|
||||
private Timestamp deleted_stamp;
|
||||
private Integer deleted_user_id;
|
||||
private String deleted_user_name;
|
||||
private Integer antecedentes_ocupacionais_id;
|
||||
private shst.medicina.fichasclinicas.data.FcFichaAntecedentesOcupacionaisData to_antecedentes_ocupacionais_id;
|
||||
private String actividade;
|
||||
private String entidade;
|
||||
private String local_trabalho;
|
||||
private String periodo_tempo;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public FcFichaAntecedentesOcupacionaisActividadesAnteriores()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, 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
|
||||
{
|
||||
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 Timestamp getCreated_stamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CREATED_STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.created_stamp;
|
||||
}
|
||||
|
||||
public void setCreated_stamp( Timestamp created_stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CREATED_STAMP, created_stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.created_stamp = created_stamp;
|
||||
LAZY_LOADED_OBJECTS.put( CREATED_STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getCreated_user_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CREATED_USER_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.created_user_id;
|
||||
}
|
||||
|
||||
public void setCreated_user_id( Integer created_user_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CREATED_USER_ID, created_user_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.created_user_id = created_user_id;
|
||||
LAZY_LOADED_OBJECTS.put( CREATED_USER_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getCreated_user_name()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CREATED_USER_NAME );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.created_user_name;
|
||||
}
|
||||
|
||||
public void setCreated_user_name( String created_user_name )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CREATED_USER_NAME, created_user_name );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.created_user_name = created_user_name;
|
||||
LAZY_LOADED_OBJECTS.put( CREATED_USER_NAME, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Timestamp getDeleted_stamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DELETED_STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.deleted_stamp;
|
||||
}
|
||||
|
||||
public void setDeleted_stamp( Timestamp deleted_stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DELETED_STAMP, deleted_stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.deleted_stamp = deleted_stamp;
|
||||
LAZY_LOADED_OBJECTS.put( DELETED_STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getDeleted_user_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DELETED_USER_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.deleted_user_id;
|
||||
}
|
||||
|
||||
public void setDeleted_user_id( Integer deleted_user_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DELETED_USER_ID, deleted_user_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.deleted_user_id = deleted_user_id;
|
||||
LAZY_LOADED_OBJECTS.put( DELETED_USER_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getDeleted_user_name()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DELETED_USER_NAME );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.deleted_user_name;
|
||||
}
|
||||
|
||||
public void setDeleted_user_name( String deleted_user_name )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DELETED_USER_NAME, deleted_user_name );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.deleted_user_name = deleted_user_name;
|
||||
LAZY_LOADED_OBJECTS.put( DELETED_USER_NAME, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getAntecedentes_ocupacionais_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ANTECEDENTES_OCUPACIONAIS_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.antecedentes_ocupacionais_id;
|
||||
}
|
||||
|
||||
public void setAntecedentes_ocupacionais_id( Integer antecedentes_ocupacionais_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( ANTECEDENTES_OCUPACIONAIS_ID, antecedentes_ocupacionais_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.antecedentes_ocupacionais_id = antecedentes_ocupacionais_id;
|
||||
LAZY_LOADED_OBJECTS.put( ANTECEDENTES_OCUPACIONAIS_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public shst.medicina.fichasclinicas.data.FcFichaAntecedentesOcupacionaisData toAntecedentes_ocupacionais_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
prepare( TO_ANTECEDENTES_OCUPACIONAIS_ID );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return this.to_antecedentes_ocupacionais_id;
|
||||
}
|
||||
|
||||
public void setToAntecedentes_ocupacionais_id( shst.medicina.fichasclinicas.data.FcFichaAntecedentesOcupacionaisData to_antecedentes_ocupacionais_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( TO_ANTECEDENTES_OCUPACIONAIS_ID, to_antecedentes_ocupacionais_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.to_antecedentes_ocupacionais_id = to_antecedentes_ocupacionais_id;
|
||||
}
|
||||
|
||||
public String getActividade()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ACTIVIDADE );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.actividade;
|
||||
}
|
||||
|
||||
public void setActividade( String actividade )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( ACTIVIDADE, actividade );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.actividade = actividade;
|
||||
LAZY_LOADED_OBJECTS.put( ACTIVIDADE, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getEntidade()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ENTIDADE );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.entidade;
|
||||
}
|
||||
|
||||
public void setEntidade( String entidade )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( ENTIDADE, entidade );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.entidade = entidade;
|
||||
LAZY_LOADED_OBJECTS.put( ENTIDADE, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getLocal_trabalho()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( LOCAL_TRABALHO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.local_trabalho;
|
||||
}
|
||||
|
||||
public void setLocal_trabalho( String local_trabalho )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( LOCAL_TRABALHO, local_trabalho );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.local_trabalho = local_trabalho;
|
||||
LAZY_LOADED_OBJECTS.put( LOCAL_TRABALHO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getPeriodo_tempo()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( PERIODO_TEMPO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.periodo_tempo;
|
||||
}
|
||||
|
||||
public void setPeriodo_tempo( String periodo_tempo )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( PERIODO_TEMPO, periodo_tempo );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.periodo_tempo = periodo_tempo;
|
||||
LAZY_LOADED_OBJECTS.put( PERIODO_TEMPO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.CREATED_STAMP_INDEX:
|
||||
value = getCreated_stamp();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.CREATED_USER_ID_INDEX:
|
||||
value = getCreated_user_id();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.CREATED_USER_NAME_INDEX:
|
||||
value = getCreated_user_name();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.DELETED_STAMP_INDEX:
|
||||
value = getDeleted_stamp();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.DELETED_USER_ID_INDEX:
|
||||
value = getDeleted_user_id();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.DELETED_USER_NAME_INDEX:
|
||||
value = getDeleted_user_name();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.ANTECEDENTES_OCUPACIONAIS_ID_INDEX:
|
||||
value = getAntecedentes_ocupacionais_id();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.TO_ANTECEDENTES_OCUPACIONAIS_ID_INDEX:
|
||||
value = toAntecedentes_ocupacionais_id();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.ACTIVIDADE_INDEX:
|
||||
value = getActividade();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.ENTIDADE_INDEX:
|
||||
value = getEntidade();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.LOCAL_TRABALHO_INDEX:
|
||||
value = getLocal_trabalho();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.PERIODO_TEMPO_INDEX:
|
||||
value = getPeriodo_tempo();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.CREATED_STAMP_INDEX:
|
||||
value = this.created_stamp;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.CREATED_USER_ID_INDEX:
|
||||
value = this.created_user_id;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.CREATED_USER_NAME_INDEX:
|
||||
value = this.created_user_name;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.DELETED_STAMP_INDEX:
|
||||
value = this.deleted_stamp;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.DELETED_USER_ID_INDEX:
|
||||
value = this.deleted_user_id;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.DELETED_USER_NAME_INDEX:
|
||||
value = this.deleted_user_name;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.ANTECEDENTES_OCUPACIONAIS_ID_INDEX:
|
||||
value = this.antecedentes_ocupacionais_id;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.TO_ANTECEDENTES_OCUPACIONAIS_ID_INDEX:
|
||||
value = this.to_antecedentes_ocupacionais_id;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.ACTIVIDADE_INDEX:
|
||||
value = this.actividade;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.ENTIDADE_INDEX:
|
||||
value = this.entidade;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.LOCAL_TRABALHO_INDEX:
|
||||
value = this.local_trabalho;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.PERIODO_TEMPO_INDEX:
|
||||
value = this.periodo_tempo;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.CREATED_STAMP_INDEX:
|
||||
setCreated_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.CREATED_USER_ID_INDEX:
|
||||
setCreated_user_id( ( Integer ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.CREATED_USER_NAME_INDEX:
|
||||
setCreated_user_name( ( String ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.DELETED_STAMP_INDEX:
|
||||
setDeleted_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.DELETED_USER_ID_INDEX:
|
||||
setDeleted_user_id( ( Integer ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.DELETED_USER_NAME_INDEX:
|
||||
setDeleted_user_name( ( String ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.ANTECEDENTES_OCUPACIONAIS_ID_INDEX:
|
||||
setAntecedentes_ocupacionais_id( ( Integer ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.TO_ANTECEDENTES_OCUPACIONAIS_ID_INDEX:
|
||||
setToAntecedentes_ocupacionais_id( ( shst.medicina.fichasclinicas.data.FcFichaAntecedentesOcupacionaisData ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.ACTIVIDADE_INDEX:
|
||||
setActividade( ( String ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.ENTIDADE_INDEX:
|
||||
setEntidade( ( String ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.LOCAL_TRABALHO_INDEX:
|
||||
setLocal_trabalho( ( String ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.PERIODO_TEMPO_INDEX:
|
||||
setPeriodo_tempo( ( String ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.CREATED_STAMP_INDEX:
|
||||
this.created_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.CREATED_USER_ID_INDEX:
|
||||
this.created_user_id = ( Integer ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.CREATED_USER_NAME_INDEX:
|
||||
this.created_user_name = ( String ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.DELETED_STAMP_INDEX:
|
||||
this.deleted_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.DELETED_USER_ID_INDEX:
|
||||
this.deleted_user_id = ( Integer ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.DELETED_USER_NAME_INDEX:
|
||||
this.deleted_user_name = ( String ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.ANTECEDENTES_OCUPACIONAIS_ID_INDEX:
|
||||
this.antecedentes_ocupacionais_id = ( Integer ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.TO_ANTECEDENTES_OCUPACIONAIS_ID_INDEX:
|
||||
this.to_antecedentes_ocupacionais_id = ( shst.medicina.fichasclinicas.data.FcFichaAntecedentesOcupacionaisData ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.ACTIVIDADE_INDEX:
|
||||
this.actividade = ( String ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.ENTIDADE_INDEX:
|
||||
this.entidade = ( String ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.LOCAL_TRABALHO_INDEX:
|
||||
this.local_trabalho = ( String ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.PERIODO_TEMPO_INDEX:
|
||||
this.periodo_tempo = ( 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 FcFichaAntecedentesOcupacionaisActividadesAnteriores.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.CREATED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.CREATED_USER_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.CREATED_USER_NAME_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.DELETED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.DELETED_USER_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.DELETED_USER_NAME_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.ANTECEDENTES_OCUPACIONAIS_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.TO_ANTECEDENTES_OCUPACIONAIS_ID_INDEX:
|
||||
theClass = shst.medicina.fichasclinicas.data.FcFichaAntecedentesOcupacionaisData.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.ACTIVIDADE_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.ENTIDADE_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.LOCAL_TRABALHO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisActividadesAnteriores.PERIODO_TEMPO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : FcFichaAntecedentesOcupacionaisActividadesAnteriores._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, FcFichaAntecedentesOcupacionaisActividadesAnteriores.PK_FIELD_NAMES );
|
||||
Object idObject = array.get( row, col + 0 );
|
||||
try
|
||||
{
|
||||
primaryKey.set( 0, ( Integer ) idObject );
|
||||
setId( ( Integer ) idObject );
|
||||
}
|
||||
catch( ClassCastException ex )
|
||||
{
|
||||
if( idObject instanceof Number )
|
||||
{
|
||||
primaryKey.set( 0, ((Number)idObject).intValue() );
|
||||
setId( ((Number)idObject).intValue() );
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@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,847 @@
|
||||
/*
|
||||
* FcFichaAntecedentesOcupacionaisDoencasProfissionais.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data.inner;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Date;
|
||||
|
||||
public class FcFichaAntecedentesOcupacionaisDoencasProfissionais 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( FcFichaAntecedentesOcupacionaisDoencasProfissionais.ID, FcFichaAntecedentesOcupacionaisDoencasProfissionais.ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisDoencasProfissionais.ID_FULL, FcFichaAntecedentesOcupacionaisDoencasProfissionais.ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisDoencasProfissionais.CREATED_STAMP, FcFichaAntecedentesOcupacionaisDoencasProfissionais.CREATED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisDoencasProfissionais.CREATED_STAMP_FULL, FcFichaAntecedentesOcupacionaisDoencasProfissionais.CREATED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisDoencasProfissionais.CREATED_USER_ID, FcFichaAntecedentesOcupacionaisDoencasProfissionais.CREATED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisDoencasProfissionais.CREATED_USER_ID_FULL, FcFichaAntecedentesOcupacionaisDoencasProfissionais.CREATED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisDoencasProfissionais.CREATED_USER_NAME, FcFichaAntecedentesOcupacionaisDoencasProfissionais.CREATED_USER_NAME_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisDoencasProfissionais.CREATED_USER_NAME_FULL, FcFichaAntecedentesOcupacionaisDoencasProfissionais.CREATED_USER_NAME_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisDoencasProfissionais.DELETED_STAMP, FcFichaAntecedentesOcupacionaisDoencasProfissionais.DELETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisDoencasProfissionais.DELETED_STAMP_FULL, FcFichaAntecedentesOcupacionaisDoencasProfissionais.DELETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisDoencasProfissionais.DELETED_USER_ID, FcFichaAntecedentesOcupacionaisDoencasProfissionais.DELETED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisDoencasProfissionais.DELETED_USER_ID_FULL, FcFichaAntecedentesOcupacionaisDoencasProfissionais.DELETED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisDoencasProfissionais.DELETED_USER_NAME, FcFichaAntecedentesOcupacionaisDoencasProfissionais.DELETED_USER_NAME_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisDoencasProfissionais.DELETED_USER_NAME_FULL, FcFichaAntecedentesOcupacionaisDoencasProfissionais.DELETED_USER_NAME_INDEX );
|
||||
com.evolute.entity.evo.EvoDataObject.register( FcFichaAntecedentesOcupacionaisDoencasProfissionais.CLASS_IDENTIFIER, FcFichaAntecedentesOcupacionaisDoencasProfissionais.ANTECEDENTES_OCUPACIONAIS_ID, FcFichaAntecedentesOcupacionaisDoencasProfissionais.TO_ANTECEDENTES_OCUPACIONAIS_ID );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisDoencasProfissionais.ANTECEDENTES_OCUPACIONAIS_ID, FcFichaAntecedentesOcupacionaisDoencasProfissionais.ANTECEDENTES_OCUPACIONAIS_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisDoencasProfissionais.ANTECEDENTES_OCUPACIONAIS_ID_FULL, FcFichaAntecedentesOcupacionaisDoencasProfissionais.ANTECEDENTES_OCUPACIONAIS_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisDoencasProfissionais.TO_ANTECEDENTES_OCUPACIONAIS_ID, FcFichaAntecedentesOcupacionaisDoencasProfissionais.TO_ANTECEDENTES_OCUPACIONAIS_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisDoencasProfissionais.SUSPEITADA, FcFichaAntecedentesOcupacionaisDoencasProfissionais.SUSPEITADA_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisDoencasProfissionais.SUSPEITADA_FULL, FcFichaAntecedentesOcupacionaisDoencasProfissionais.SUSPEITADA_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisDoencasProfissionais.DECLARADA, FcFichaAntecedentesOcupacionaisDoencasProfissionais.DECLARADA_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisDoencasProfissionais.DECLARADA_FULL, FcFichaAntecedentesOcupacionaisDoencasProfissionais.DECLARADA_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisDoencasProfissionais.DATA_SUSPEITA, FcFichaAntecedentesOcupacionaisDoencasProfissionais.DATA_SUSPEITA_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisDoencasProfissionais.DATA_SUSPEITA_FULL, FcFichaAntecedentesOcupacionaisDoencasProfissionais.DATA_SUSPEITA_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisDoencasProfissionais.DATA_DECLARACAO, FcFichaAntecedentesOcupacionaisDoencasProfissionais.DATA_DECLARACAO_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaAntecedentesOcupacionaisDoencasProfissionais.DATA_DECLARACAO_FULL, FcFichaAntecedentesOcupacionaisDoencasProfissionais.DATA_DECLARACAO_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final com.evolute.entity.ForeignKey ForeignKeyantecedentes_ocupacionais_idTofc_ficha_antecedentes_ocupacionais =
|
||||
new com.evolute.entity.ForeignKey( FcFichaAntecedentesOcupacionaisDoencasProfissionais.class, FcFichaAntecedentesOcupacionaisDoencasProfissionais.ANTECEDENTES_OCUPACIONAIS_ID, shst.medicina.fichasclinicas.data.FcFichaAntecedentesOcupacionaisData.class, shst.medicina.fichasclinicas.data.FcFichaAntecedentesOcupacionaisData.ID );
|
||||
|
||||
public static final String TABLENAME = "fc_ficha_antecedentes_ocupacionais_doencas_profissionais";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "shst.medicina.fichasclinicas.data.inner.fc_ficha_antecedentes_ocupacionais_doencas_profissionais";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "fc_ficha_antecedentes_ocupacionais_doencas_profissionais.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String CREATED_STAMP = "created_stamp";
|
||||
public static final String CREATED_STAMP_FULL = "fc_ficha_antecedentes_ocupacionais_doencas_profissionais.created_stamp";
|
||||
public static final int CREATED_STAMP_INDEX = 1;
|
||||
public static final String CREATED_USER_ID = "created_user_id";
|
||||
public static final String CREATED_USER_ID_FULL = "fc_ficha_antecedentes_ocupacionais_doencas_profissionais.created_user_id";
|
||||
public static final int CREATED_USER_ID_INDEX = 2;
|
||||
public static final String CREATED_USER_NAME = "created_user_name";
|
||||
public static final String CREATED_USER_NAME_FULL = "fc_ficha_antecedentes_ocupacionais_doencas_profissionais.created_user_name";
|
||||
public static final int CREATED_USER_NAME_INDEX = 3;
|
||||
public static final String DELETED_STAMP = "deleted_stamp";
|
||||
public static final String DELETED_STAMP_FULL = "fc_ficha_antecedentes_ocupacionais_doencas_profissionais.deleted_stamp";
|
||||
public static final int DELETED_STAMP_INDEX = 4;
|
||||
public static final String DELETED_USER_ID = "deleted_user_id";
|
||||
public static final String DELETED_USER_ID_FULL = "fc_ficha_antecedentes_ocupacionais_doencas_profissionais.deleted_user_id";
|
||||
public static final int DELETED_USER_ID_INDEX = 5;
|
||||
public static final String DELETED_USER_NAME = "deleted_user_name";
|
||||
public static final String DELETED_USER_NAME_FULL = "fc_ficha_antecedentes_ocupacionais_doencas_profissionais.deleted_user_name";
|
||||
public static final int DELETED_USER_NAME_INDEX = 6;
|
||||
public static final String ANTECEDENTES_OCUPACIONAIS_ID = "antecedentes_ocupacionais_id";
|
||||
public static final String ANTECEDENTES_OCUPACIONAIS_ID_FULL = "fc_ficha_antecedentes_ocupacionais_doencas_profissionais.antecedentes_ocupacionais_id";
|
||||
public static final int ANTECEDENTES_OCUPACIONAIS_ID_INDEX = 7;
|
||||
public static final String TO_ANTECEDENTES_OCUPACIONAIS_ID = "to_antecedentes_ocupacionais_id";
|
||||
public static final String TO_ANTECEDENTES_OCUPACIONAIS_ID_FULL = "fc_ficha_antecedentes_ocupacionais_doencas_profissionais.to_antecedentes_ocupacionais_id";
|
||||
public static final int TO_ANTECEDENTES_OCUPACIONAIS_ID_INDEX = 8;
|
||||
public static final String SUSPEITADA = "suspeitada";
|
||||
public static final String SUSPEITADA_FULL = "fc_ficha_antecedentes_ocupacionais_doencas_profissionais.suspeitada";
|
||||
public static final int SUSPEITADA_INDEX = 9;
|
||||
public static final String DECLARADA = "declarada";
|
||||
public static final String DECLARADA_FULL = "fc_ficha_antecedentes_ocupacionais_doencas_profissionais.declarada";
|
||||
public static final int DECLARADA_INDEX = 10;
|
||||
public static final String DATA_SUSPEITA = "data_suspeita";
|
||||
public static final String DATA_SUSPEITA_FULL = "fc_ficha_antecedentes_ocupacionais_doencas_profissionais.data_suspeita";
|
||||
public static final int DATA_SUSPEITA_INDEX = 11;
|
||||
public static final String DATA_DECLARACAO = "data_declaracao";
|
||||
public static final String DATA_DECLARACAO_FULL = "fc_ficha_antecedentes_ocupacionais_doencas_profissionais.data_declaracao";
|
||||
public static final int DATA_DECLARACAO_INDEX = 12;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
CREATED_STAMP, CREATED_USER_ID, CREATED_USER_NAME, DELETED_STAMP,
|
||||
DELETED_USER_ID, DELETED_USER_NAME, ANTECEDENTES_OCUPACIONAIS_ID,
|
||||
TO_ANTECEDENTES_OCUPACIONAIS_ID, SUSPEITADA, DECLARADA, DATA_SUSPEITA,
|
||||
DATA_DECLARACAO, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + CREATED_STAMP, TABLENAME + "." + CREATED_USER_ID, TABLENAME + "." + CREATED_USER_NAME, TABLENAME + "." + DELETED_STAMP,
|
||||
TABLENAME + "." + DELETED_USER_ID, TABLENAME + "." + DELETED_USER_NAME, TABLENAME + "." + ANTECEDENTES_OCUPACIONAIS_ID,
|
||||
TABLENAME + "." + TO_ANTECEDENTES_OCUPACIONAIS_ID, TABLENAME + "." + SUSPEITADA, TABLENAME + "." + DECLARADA, TABLENAME + "." + DATA_SUSPEITA,
|
||||
TABLENAME + "." + DATA_DECLARACAO, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, CREATED_STAMP, CREATED_USER_ID, CREATED_USER_NAME, DELETED_STAMP,
|
||||
DELETED_USER_ID, DELETED_USER_NAME, ANTECEDENTES_OCUPACIONAIS_ID, SUSPEITADA,
|
||||
DECLARADA, DATA_SUSPEITA, DATA_DECLARACAO, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, CREATED_STAMP, CREATED_USER_ID, CREATED_USER_NAME, DELETED_STAMP,
|
||||
DELETED_USER_ID, DELETED_USER_NAME, ANTECEDENTES_OCUPACIONAIS_ID, SUSPEITADA,
|
||||
DECLARADA, DATA_SUSPEITA, DATA_DECLARACAO, };
|
||||
|
||||
private Integer id;
|
||||
private Timestamp created_stamp;
|
||||
private Integer created_user_id;
|
||||
private String created_user_name;
|
||||
private Timestamp deleted_stamp;
|
||||
private Integer deleted_user_id;
|
||||
private String deleted_user_name;
|
||||
private Integer antecedentes_ocupacionais_id;
|
||||
private shst.medicina.fichasclinicas.data.FcFichaAntecedentesOcupacionaisData to_antecedentes_ocupacionais_id;
|
||||
private Boolean suspeitada;
|
||||
private Boolean declarada;
|
||||
private Date data_suspeita;
|
||||
private Date data_declaracao;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public FcFichaAntecedentesOcupacionaisDoencasProfissionais()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, 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
|
||||
{
|
||||
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 Timestamp getCreated_stamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CREATED_STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.created_stamp;
|
||||
}
|
||||
|
||||
public void setCreated_stamp( Timestamp created_stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CREATED_STAMP, created_stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.created_stamp = created_stamp;
|
||||
LAZY_LOADED_OBJECTS.put( CREATED_STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getCreated_user_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CREATED_USER_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.created_user_id;
|
||||
}
|
||||
|
||||
public void setCreated_user_id( Integer created_user_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CREATED_USER_ID, created_user_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.created_user_id = created_user_id;
|
||||
LAZY_LOADED_OBJECTS.put( CREATED_USER_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getCreated_user_name()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CREATED_USER_NAME );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.created_user_name;
|
||||
}
|
||||
|
||||
public void setCreated_user_name( String created_user_name )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CREATED_USER_NAME, created_user_name );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.created_user_name = created_user_name;
|
||||
LAZY_LOADED_OBJECTS.put( CREATED_USER_NAME, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Timestamp getDeleted_stamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DELETED_STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.deleted_stamp;
|
||||
}
|
||||
|
||||
public void setDeleted_stamp( Timestamp deleted_stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DELETED_STAMP, deleted_stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.deleted_stamp = deleted_stamp;
|
||||
LAZY_LOADED_OBJECTS.put( DELETED_STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getDeleted_user_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DELETED_USER_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.deleted_user_id;
|
||||
}
|
||||
|
||||
public void setDeleted_user_id( Integer deleted_user_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DELETED_USER_ID, deleted_user_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.deleted_user_id = deleted_user_id;
|
||||
LAZY_LOADED_OBJECTS.put( DELETED_USER_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getDeleted_user_name()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DELETED_USER_NAME );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.deleted_user_name;
|
||||
}
|
||||
|
||||
public void setDeleted_user_name( String deleted_user_name )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DELETED_USER_NAME, deleted_user_name );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.deleted_user_name = deleted_user_name;
|
||||
LAZY_LOADED_OBJECTS.put( DELETED_USER_NAME, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getAntecedentes_ocupacionais_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ANTECEDENTES_OCUPACIONAIS_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.antecedentes_ocupacionais_id;
|
||||
}
|
||||
|
||||
public void setAntecedentes_ocupacionais_id( Integer antecedentes_ocupacionais_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( ANTECEDENTES_OCUPACIONAIS_ID, antecedentes_ocupacionais_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.antecedentes_ocupacionais_id = antecedentes_ocupacionais_id;
|
||||
LAZY_LOADED_OBJECTS.put( ANTECEDENTES_OCUPACIONAIS_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public shst.medicina.fichasclinicas.data.FcFichaAntecedentesOcupacionaisData toAntecedentes_ocupacionais_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
prepare( TO_ANTECEDENTES_OCUPACIONAIS_ID );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
return this.to_antecedentes_ocupacionais_id;
|
||||
}
|
||||
|
||||
public void setToAntecedentes_ocupacionais_id( shst.medicina.fichasclinicas.data.FcFichaAntecedentesOcupacionaisData to_antecedentes_ocupacionais_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( TO_ANTECEDENTES_OCUPACIONAIS_ID, to_antecedentes_ocupacionais_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.to_antecedentes_ocupacionais_id = to_antecedentes_ocupacionais_id;
|
||||
}
|
||||
|
||||
public Boolean getSuspeitada()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( SUSPEITADA );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.suspeitada;
|
||||
}
|
||||
|
||||
public void setSuspeitada( Boolean suspeitada )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( SUSPEITADA, suspeitada );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.suspeitada = suspeitada;
|
||||
LAZY_LOADED_OBJECTS.put( SUSPEITADA, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Boolean getDeclarada()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DECLARADA );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.declarada;
|
||||
}
|
||||
|
||||
public void setDeclarada( Boolean declarada )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DECLARADA, declarada );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.declarada = declarada;
|
||||
LAZY_LOADED_OBJECTS.put( DECLARADA, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Date getData_suspeita()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DATA_SUSPEITA );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.data_suspeita;
|
||||
}
|
||||
|
||||
public void setData_suspeita( Date data_suspeita )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DATA_SUSPEITA, data_suspeita );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.data_suspeita = data_suspeita;
|
||||
LAZY_LOADED_OBJECTS.put( DATA_SUSPEITA, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Date getData_declaracao()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DATA_DECLARACAO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.data_declaracao;
|
||||
}
|
||||
|
||||
public void setData_declaracao( Date data_declaracao )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DATA_DECLARACAO, data_declaracao );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.data_declaracao = data_declaracao;
|
||||
LAZY_LOADED_OBJECTS.put( DATA_DECLARACAO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.CREATED_STAMP_INDEX:
|
||||
value = getCreated_stamp();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.CREATED_USER_ID_INDEX:
|
||||
value = getCreated_user_id();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.CREATED_USER_NAME_INDEX:
|
||||
value = getCreated_user_name();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.DELETED_STAMP_INDEX:
|
||||
value = getDeleted_stamp();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.DELETED_USER_ID_INDEX:
|
||||
value = getDeleted_user_id();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.DELETED_USER_NAME_INDEX:
|
||||
value = getDeleted_user_name();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.ANTECEDENTES_OCUPACIONAIS_ID_INDEX:
|
||||
value = getAntecedentes_ocupacionais_id();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.TO_ANTECEDENTES_OCUPACIONAIS_ID_INDEX:
|
||||
value = toAntecedentes_ocupacionais_id();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.SUSPEITADA_INDEX:
|
||||
value = getSuspeitada();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.DECLARADA_INDEX:
|
||||
value = getDeclarada();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.DATA_SUSPEITA_INDEX:
|
||||
value = getData_suspeita();
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.DATA_DECLARACAO_INDEX:
|
||||
value = getData_declaracao();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.CREATED_STAMP_INDEX:
|
||||
value = this.created_stamp;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.CREATED_USER_ID_INDEX:
|
||||
value = this.created_user_id;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.CREATED_USER_NAME_INDEX:
|
||||
value = this.created_user_name;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.DELETED_STAMP_INDEX:
|
||||
value = this.deleted_stamp;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.DELETED_USER_ID_INDEX:
|
||||
value = this.deleted_user_id;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.DELETED_USER_NAME_INDEX:
|
||||
value = this.deleted_user_name;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.ANTECEDENTES_OCUPACIONAIS_ID_INDEX:
|
||||
value = this.antecedentes_ocupacionais_id;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.TO_ANTECEDENTES_OCUPACIONAIS_ID_INDEX:
|
||||
value = this.to_antecedentes_ocupacionais_id;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.SUSPEITADA_INDEX:
|
||||
value = this.suspeitada;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.DECLARADA_INDEX:
|
||||
value = this.declarada;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.DATA_SUSPEITA_INDEX:
|
||||
value = this.data_suspeita;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.DATA_DECLARACAO_INDEX:
|
||||
value = this.data_declaracao;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.CREATED_STAMP_INDEX:
|
||||
setCreated_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.CREATED_USER_ID_INDEX:
|
||||
setCreated_user_id( ( Integer ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.CREATED_USER_NAME_INDEX:
|
||||
setCreated_user_name( ( String ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.DELETED_STAMP_INDEX:
|
||||
setDeleted_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.DELETED_USER_ID_INDEX:
|
||||
setDeleted_user_id( ( Integer ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.DELETED_USER_NAME_INDEX:
|
||||
setDeleted_user_name( ( String ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.ANTECEDENTES_OCUPACIONAIS_ID_INDEX:
|
||||
setAntecedentes_ocupacionais_id( ( Integer ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.TO_ANTECEDENTES_OCUPACIONAIS_ID_INDEX:
|
||||
setToAntecedentes_ocupacionais_id( ( shst.medicina.fichasclinicas.data.FcFichaAntecedentesOcupacionaisData ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.SUSPEITADA_INDEX:
|
||||
setSuspeitada( ( Boolean ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.DECLARADA_INDEX:
|
||||
setDeclarada( ( Boolean ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.DATA_SUSPEITA_INDEX:
|
||||
setData_suspeita( ( Date ) value );
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.DATA_DECLARACAO_INDEX:
|
||||
setData_declaracao( ( Date ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.CREATED_STAMP_INDEX:
|
||||
this.created_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.CREATED_USER_ID_INDEX:
|
||||
this.created_user_id = ( Integer ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.CREATED_USER_NAME_INDEX:
|
||||
this.created_user_name = ( String ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.DELETED_STAMP_INDEX:
|
||||
this.deleted_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.DELETED_USER_ID_INDEX:
|
||||
this.deleted_user_id = ( Integer ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.DELETED_USER_NAME_INDEX:
|
||||
this.deleted_user_name = ( String ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.ANTECEDENTES_OCUPACIONAIS_ID_INDEX:
|
||||
this.antecedentes_ocupacionais_id = ( Integer ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.TO_ANTECEDENTES_OCUPACIONAIS_ID_INDEX:
|
||||
this.to_antecedentes_ocupacionais_id = ( shst.medicina.fichasclinicas.data.FcFichaAntecedentesOcupacionaisData ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.SUSPEITADA_INDEX:
|
||||
this.suspeitada = ( Boolean ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.DECLARADA_INDEX:
|
||||
this.declarada = ( Boolean ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.DATA_SUSPEITA_INDEX:
|
||||
this.data_suspeita = ( Date ) value;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.DATA_DECLARACAO_INDEX:
|
||||
this.data_declaracao = ( Date ) 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 FcFichaAntecedentesOcupacionaisDoencasProfissionais.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.CREATED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.CREATED_USER_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.CREATED_USER_NAME_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.DELETED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.DELETED_USER_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.DELETED_USER_NAME_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.ANTECEDENTES_OCUPACIONAIS_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.TO_ANTECEDENTES_OCUPACIONAIS_ID_INDEX:
|
||||
theClass = shst.medicina.fichasclinicas.data.FcFichaAntecedentesOcupacionaisData.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.SUSPEITADA_INDEX:
|
||||
theClass = Boolean.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.DECLARADA_INDEX:
|
||||
theClass = Boolean.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.DATA_SUSPEITA_INDEX:
|
||||
theClass = Date.class;
|
||||
break;
|
||||
case FcFichaAntecedentesOcupacionaisDoencasProfissionais.DATA_DECLARACAO_INDEX:
|
||||
theClass = Date.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : FcFichaAntecedentesOcupacionaisDoencasProfissionais._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, FcFichaAntecedentesOcupacionaisDoencasProfissionais.PK_FIELD_NAMES );
|
||||
Object idObject = array.get( row, col + 0 );
|
||||
try
|
||||
{
|
||||
primaryKey.set( 0, ( Integer ) idObject );
|
||||
setId( ( Integer ) idObject );
|
||||
}
|
||||
catch( ClassCastException ex )
|
||||
{
|
||||
if( idObject instanceof Number )
|
||||
{
|
||||
primaryKey.set( 0, ((Number)idObject).intValue() );
|
||||
setId( ((Number)idObject).intValue() );
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@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,966 @@
|
||||
/*
|
||||
* FcFichaClassificacaoIndividualSaude.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data.inner;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
|
||||
public class FcFichaClassificacaoIndividualSaude 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( FcFichaClassificacaoIndividualSaude.ID, FcFichaClassificacaoIndividualSaude.ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaClassificacaoIndividualSaude.ID_FULL, FcFichaClassificacaoIndividualSaude.ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaClassificacaoIndividualSaude.CREATED_STAMP, FcFichaClassificacaoIndividualSaude.CREATED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaClassificacaoIndividualSaude.CREATED_STAMP_FULL, FcFichaClassificacaoIndividualSaude.CREATED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaClassificacaoIndividualSaude.CREATED_USER_ID, FcFichaClassificacaoIndividualSaude.CREATED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaClassificacaoIndividualSaude.CREATED_USER_ID_FULL, FcFichaClassificacaoIndividualSaude.CREATED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaClassificacaoIndividualSaude.CREATED_USER_NAME, FcFichaClassificacaoIndividualSaude.CREATED_USER_NAME_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaClassificacaoIndividualSaude.CREATED_USER_NAME_FULL, FcFichaClassificacaoIndividualSaude.CREATED_USER_NAME_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaClassificacaoIndividualSaude.DELETED_STAMP, FcFichaClassificacaoIndividualSaude.DELETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaClassificacaoIndividualSaude.DELETED_STAMP_FULL, FcFichaClassificacaoIndividualSaude.DELETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaClassificacaoIndividualSaude.DELETED_USER_ID, FcFichaClassificacaoIndividualSaude.DELETED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaClassificacaoIndividualSaude.DELETED_USER_ID_FULL, FcFichaClassificacaoIndividualSaude.DELETED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaClassificacaoIndividualSaude.DELETED_USER_NAME, FcFichaClassificacaoIndividualSaude.DELETED_USER_NAME_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaClassificacaoIndividualSaude.DELETED_USER_NAME_FULL, FcFichaClassificacaoIndividualSaude.DELETED_USER_NAME_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaClassificacaoIndividualSaude.SEM_PROBLEMAS_SAUDE, FcFichaClassificacaoIndividualSaude.SEM_PROBLEMAS_SAUDE_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaClassificacaoIndividualSaude.SEM_PROBLEMAS_SAUDE_FULL, FcFichaClassificacaoIndividualSaude.SEM_PROBLEMAS_SAUDE_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaClassificacaoIndividualSaude.ALTERACAO_TEMPORARIA_SAUDE, FcFichaClassificacaoIndividualSaude.ALTERACAO_TEMPORARIA_SAUDE_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaClassificacaoIndividualSaude.ALTERACAO_TEMPORARIA_SAUDE_FULL, FcFichaClassificacaoIndividualSaude.ALTERACAO_TEMPORARIA_SAUDE_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaClassificacaoIndividualSaude.DOENCA_CRONICA_SEM_INTERFERENCIA, FcFichaClassificacaoIndividualSaude.DOENCA_CRONICA_SEM_INTERFERENCIA_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaClassificacaoIndividualSaude.DOENCA_CRONICA_SEM_INTERFERENCIA_FULL, FcFichaClassificacaoIndividualSaude.DOENCA_CRONICA_SEM_INTERFERENCIA_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaClassificacaoIndividualSaude.DOENCA_CRONICA_COM_INTERFERENCIA, FcFichaClassificacaoIndividualSaude.DOENCA_CRONICA_COM_INTERFERENCIA_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaClassificacaoIndividualSaude.DOENCA_CRONICA_COM_INTERFERENCIA_FULL, FcFichaClassificacaoIndividualSaude.DOENCA_CRONICA_COM_INTERFERENCIA_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaClassificacaoIndividualSaude.DOENCA_PROFISSIONAL, FcFichaClassificacaoIndividualSaude.DOENCA_PROFISSIONAL_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaClassificacaoIndividualSaude.DOENCA_PROFISSIONAL_FULL, FcFichaClassificacaoIndividualSaude.DOENCA_PROFISSIONAL_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaClassificacaoIndividualSaude.INCAPACIDADE_PARCIAL, FcFichaClassificacaoIndividualSaude.INCAPACIDADE_PARCIAL_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaClassificacaoIndividualSaude.INCAPACIDADE_PARCIAL_FULL, FcFichaClassificacaoIndividualSaude.INCAPACIDADE_PARCIAL_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaClassificacaoIndividualSaude.INCAPACIDADE_TOTAL, FcFichaClassificacaoIndividualSaude.INCAPACIDADE_TOTAL_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaClassificacaoIndividualSaude.INCAPACIDADE_TOTAL_FULL, FcFichaClassificacaoIndividualSaude.INCAPACIDADE_TOTAL_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaClassificacaoIndividualSaude.PARECER_EM_ESTUDO, FcFichaClassificacaoIndividualSaude.PARECER_EM_ESTUDO_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaClassificacaoIndividualSaude.PARECER_EM_ESTUDO_FULL, FcFichaClassificacaoIndividualSaude.PARECER_EM_ESTUDO_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final String TABLENAME = "fc_ficha_classificacao_individual_saude";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "shst.medicina.fichasclinicas.data.inner.fc_ficha_classificacao_individual_saude";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "fc_ficha_classificacao_individual_saude.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String CREATED_STAMP = "created_stamp";
|
||||
public static final String CREATED_STAMP_FULL = "fc_ficha_classificacao_individual_saude.created_stamp";
|
||||
public static final int CREATED_STAMP_INDEX = 1;
|
||||
public static final String CREATED_USER_ID = "created_user_id";
|
||||
public static final String CREATED_USER_ID_FULL = "fc_ficha_classificacao_individual_saude.created_user_id";
|
||||
public static final int CREATED_USER_ID_INDEX = 2;
|
||||
public static final String CREATED_USER_NAME = "created_user_name";
|
||||
public static final String CREATED_USER_NAME_FULL = "fc_ficha_classificacao_individual_saude.created_user_name";
|
||||
public static final int CREATED_USER_NAME_INDEX = 3;
|
||||
public static final String DELETED_STAMP = "deleted_stamp";
|
||||
public static final String DELETED_STAMP_FULL = "fc_ficha_classificacao_individual_saude.deleted_stamp";
|
||||
public static final int DELETED_STAMP_INDEX = 4;
|
||||
public static final String DELETED_USER_ID = "deleted_user_id";
|
||||
public static final String DELETED_USER_ID_FULL = "fc_ficha_classificacao_individual_saude.deleted_user_id";
|
||||
public static final int DELETED_USER_ID_INDEX = 5;
|
||||
public static final String DELETED_USER_NAME = "deleted_user_name";
|
||||
public static final String DELETED_USER_NAME_FULL = "fc_ficha_classificacao_individual_saude.deleted_user_name";
|
||||
public static final int DELETED_USER_NAME_INDEX = 6;
|
||||
public static final String SEM_PROBLEMAS_SAUDE = "sem_problemas_saude";
|
||||
public static final String SEM_PROBLEMAS_SAUDE_FULL = "fc_ficha_classificacao_individual_saude.sem_problemas_saude";
|
||||
public static final int SEM_PROBLEMAS_SAUDE_INDEX = 7;
|
||||
public static final String ALTERACAO_TEMPORARIA_SAUDE = "alteracao_temporaria_saude";
|
||||
public static final String ALTERACAO_TEMPORARIA_SAUDE_FULL = "fc_ficha_classificacao_individual_saude.alteracao_temporaria_saude";
|
||||
public static final int ALTERACAO_TEMPORARIA_SAUDE_INDEX = 8;
|
||||
public static final String DOENCA_CRONICA_SEM_INTERFERENCIA = "doenca_cronica_sem_interferencia";
|
||||
public static final String DOENCA_CRONICA_SEM_INTERFERENCIA_FULL = "fc_ficha_classificacao_individual_saude.doenca_cronica_sem_interferencia";
|
||||
public static final int DOENCA_CRONICA_SEM_INTERFERENCIA_INDEX = 9;
|
||||
public static final String DOENCA_CRONICA_COM_INTERFERENCIA = "doenca_cronica_com_interferencia";
|
||||
public static final String DOENCA_CRONICA_COM_INTERFERENCIA_FULL = "fc_ficha_classificacao_individual_saude.doenca_cronica_com_interferencia";
|
||||
public static final int DOENCA_CRONICA_COM_INTERFERENCIA_INDEX = 10;
|
||||
public static final String DOENCA_PROFISSIONAL = "doenca_profissional";
|
||||
public static final String DOENCA_PROFISSIONAL_FULL = "fc_ficha_classificacao_individual_saude.doenca_profissional";
|
||||
public static final int DOENCA_PROFISSIONAL_INDEX = 11;
|
||||
public static final String INCAPACIDADE_PARCIAL = "incapacidade_parcial";
|
||||
public static final String INCAPACIDADE_PARCIAL_FULL = "fc_ficha_classificacao_individual_saude.incapacidade_parcial";
|
||||
public static final int INCAPACIDADE_PARCIAL_INDEX = 12;
|
||||
public static final String INCAPACIDADE_TOTAL = "incapacidade_total";
|
||||
public static final String INCAPACIDADE_TOTAL_FULL = "fc_ficha_classificacao_individual_saude.incapacidade_total";
|
||||
public static final int INCAPACIDADE_TOTAL_INDEX = 13;
|
||||
public static final String PARECER_EM_ESTUDO = "parecer_em_estudo";
|
||||
public static final String PARECER_EM_ESTUDO_FULL = "fc_ficha_classificacao_individual_saude.parecer_em_estudo";
|
||||
public static final int PARECER_EM_ESTUDO_INDEX = 14;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
CREATED_STAMP, CREATED_USER_ID, CREATED_USER_NAME, DELETED_STAMP,
|
||||
DELETED_USER_ID, DELETED_USER_NAME, SEM_PROBLEMAS_SAUDE,
|
||||
ALTERACAO_TEMPORARIA_SAUDE, DOENCA_CRONICA_SEM_INTERFERENCIA,
|
||||
DOENCA_CRONICA_COM_INTERFERENCIA, DOENCA_PROFISSIONAL,
|
||||
INCAPACIDADE_PARCIAL, INCAPACIDADE_TOTAL, PARECER_EM_ESTUDO, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + CREATED_STAMP, TABLENAME + "." + CREATED_USER_ID, TABLENAME + "." + CREATED_USER_NAME, TABLENAME + "." + DELETED_STAMP,
|
||||
TABLENAME + "." + DELETED_USER_ID, TABLENAME + "." + DELETED_USER_NAME, TABLENAME + "." + SEM_PROBLEMAS_SAUDE,
|
||||
TABLENAME + "." + ALTERACAO_TEMPORARIA_SAUDE, TABLENAME + "." + DOENCA_CRONICA_SEM_INTERFERENCIA,
|
||||
TABLENAME + "." + DOENCA_CRONICA_COM_INTERFERENCIA, TABLENAME + "." + DOENCA_PROFISSIONAL,
|
||||
TABLENAME + "." + INCAPACIDADE_PARCIAL, TABLENAME + "." + INCAPACIDADE_TOTAL, TABLENAME + "." + PARECER_EM_ESTUDO, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, CREATED_STAMP, CREATED_USER_ID, CREATED_USER_NAME, DELETED_STAMP,
|
||||
DELETED_USER_ID, DELETED_USER_NAME, SEM_PROBLEMAS_SAUDE,
|
||||
ALTERACAO_TEMPORARIA_SAUDE, DOENCA_CRONICA_SEM_INTERFERENCIA,
|
||||
DOENCA_CRONICA_COM_INTERFERENCIA, DOENCA_PROFISSIONAL,
|
||||
INCAPACIDADE_PARCIAL, INCAPACIDADE_TOTAL, PARECER_EM_ESTUDO, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, CREATED_STAMP, CREATED_USER_ID, CREATED_USER_NAME, DELETED_STAMP,
|
||||
DELETED_USER_ID, DELETED_USER_NAME, SEM_PROBLEMAS_SAUDE,
|
||||
ALTERACAO_TEMPORARIA_SAUDE, DOENCA_CRONICA_SEM_INTERFERENCIA,
|
||||
DOENCA_CRONICA_COM_INTERFERENCIA, DOENCA_PROFISSIONAL,
|
||||
INCAPACIDADE_PARCIAL, INCAPACIDADE_TOTAL, PARECER_EM_ESTUDO, };
|
||||
|
||||
private Integer id;
|
||||
private Timestamp created_stamp;
|
||||
private Integer created_user_id;
|
||||
private String created_user_name;
|
||||
private Timestamp deleted_stamp;
|
||||
private Integer deleted_user_id;
|
||||
private String deleted_user_name;
|
||||
private Boolean sem_problemas_saude;
|
||||
private Boolean alteracao_temporaria_saude;
|
||||
private Boolean doenca_cronica_sem_interferencia;
|
||||
private Boolean doenca_cronica_com_interferencia;
|
||||
private Boolean doenca_profissional;
|
||||
private Boolean incapacidade_parcial;
|
||||
private Boolean incapacidade_total;
|
||||
private Boolean parecer_em_estudo;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public FcFichaClassificacaoIndividualSaude()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ false, false, false,
|
||||
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
|
||||
{
|
||||
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<shst.medicina.fichasclinicas.data.FcFichaData>fromFcFicha_classificacao_individual_saude_id()
|
||||
{
|
||||
java.util.List<shst.medicina.fichasclinicas.data.FcFichaData> result = new java.util.LinkedList< shst.medicina.fichasclinicas.data.FcFichaData >();
|
||||
if ( getPrimaryKey() != null )
|
||||
{
|
||||
try
|
||||
{
|
||||
result = fromReference( shst.medicina.fichasclinicas.data.FcFichaData.class , getPrimaryKey().getMap().get("id"), "classificacao_individual_saude_id" );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public Timestamp getCreated_stamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CREATED_STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.created_stamp;
|
||||
}
|
||||
|
||||
public void setCreated_stamp( Timestamp created_stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CREATED_STAMP, created_stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.created_stamp = created_stamp;
|
||||
LAZY_LOADED_OBJECTS.put( CREATED_STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getCreated_user_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CREATED_USER_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.created_user_id;
|
||||
}
|
||||
|
||||
public void setCreated_user_id( Integer created_user_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CREATED_USER_ID, created_user_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.created_user_id = created_user_id;
|
||||
LAZY_LOADED_OBJECTS.put( CREATED_USER_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getCreated_user_name()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CREATED_USER_NAME );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.created_user_name;
|
||||
}
|
||||
|
||||
public void setCreated_user_name( String created_user_name )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CREATED_USER_NAME, created_user_name );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.created_user_name = created_user_name;
|
||||
LAZY_LOADED_OBJECTS.put( CREATED_USER_NAME, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Timestamp getDeleted_stamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DELETED_STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.deleted_stamp;
|
||||
}
|
||||
|
||||
public void setDeleted_stamp( Timestamp deleted_stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DELETED_STAMP, deleted_stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.deleted_stamp = deleted_stamp;
|
||||
LAZY_LOADED_OBJECTS.put( DELETED_STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getDeleted_user_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DELETED_USER_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.deleted_user_id;
|
||||
}
|
||||
|
||||
public void setDeleted_user_id( Integer deleted_user_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DELETED_USER_ID, deleted_user_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.deleted_user_id = deleted_user_id;
|
||||
LAZY_LOADED_OBJECTS.put( DELETED_USER_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getDeleted_user_name()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DELETED_USER_NAME );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.deleted_user_name;
|
||||
}
|
||||
|
||||
public void setDeleted_user_name( String deleted_user_name )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DELETED_USER_NAME, deleted_user_name );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.deleted_user_name = deleted_user_name;
|
||||
LAZY_LOADED_OBJECTS.put( DELETED_USER_NAME, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Boolean getSem_problemas_saude()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( SEM_PROBLEMAS_SAUDE );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.sem_problemas_saude;
|
||||
}
|
||||
|
||||
public void setSem_problemas_saude( Boolean sem_problemas_saude )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( SEM_PROBLEMAS_SAUDE, sem_problemas_saude );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.sem_problemas_saude = sem_problemas_saude;
|
||||
LAZY_LOADED_OBJECTS.put( SEM_PROBLEMAS_SAUDE, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Boolean getAlteracao_temporaria_saude()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( ALTERACAO_TEMPORARIA_SAUDE );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.alteracao_temporaria_saude;
|
||||
}
|
||||
|
||||
public void setAlteracao_temporaria_saude( Boolean alteracao_temporaria_saude )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( ALTERACAO_TEMPORARIA_SAUDE, alteracao_temporaria_saude );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.alteracao_temporaria_saude = alteracao_temporaria_saude;
|
||||
LAZY_LOADED_OBJECTS.put( ALTERACAO_TEMPORARIA_SAUDE, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Boolean getDoenca_cronica_sem_interferencia()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DOENCA_CRONICA_SEM_INTERFERENCIA );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.doenca_cronica_sem_interferencia;
|
||||
}
|
||||
|
||||
public void setDoenca_cronica_sem_interferencia( Boolean doenca_cronica_sem_interferencia )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DOENCA_CRONICA_SEM_INTERFERENCIA, doenca_cronica_sem_interferencia );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.doenca_cronica_sem_interferencia = doenca_cronica_sem_interferencia;
|
||||
LAZY_LOADED_OBJECTS.put( DOENCA_CRONICA_SEM_INTERFERENCIA, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Boolean getDoenca_cronica_com_interferencia()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DOENCA_CRONICA_COM_INTERFERENCIA );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.doenca_cronica_com_interferencia;
|
||||
}
|
||||
|
||||
public void setDoenca_cronica_com_interferencia( Boolean doenca_cronica_com_interferencia )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DOENCA_CRONICA_COM_INTERFERENCIA, doenca_cronica_com_interferencia );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.doenca_cronica_com_interferencia = doenca_cronica_com_interferencia;
|
||||
LAZY_LOADED_OBJECTS.put( DOENCA_CRONICA_COM_INTERFERENCIA, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Boolean getDoenca_profissional()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DOENCA_PROFISSIONAL );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.doenca_profissional;
|
||||
}
|
||||
|
||||
public void setDoenca_profissional( Boolean doenca_profissional )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DOENCA_PROFISSIONAL, doenca_profissional );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.doenca_profissional = doenca_profissional;
|
||||
LAZY_LOADED_OBJECTS.put( DOENCA_PROFISSIONAL, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Boolean getIncapacidade_parcial()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( INCAPACIDADE_PARCIAL );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.incapacidade_parcial;
|
||||
}
|
||||
|
||||
public void setIncapacidade_parcial( Boolean incapacidade_parcial )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( INCAPACIDADE_PARCIAL, incapacidade_parcial );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.incapacidade_parcial = incapacidade_parcial;
|
||||
LAZY_LOADED_OBJECTS.put( INCAPACIDADE_PARCIAL, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Boolean getIncapacidade_total()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( INCAPACIDADE_TOTAL );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.incapacidade_total;
|
||||
}
|
||||
|
||||
public void setIncapacidade_total( Boolean incapacidade_total )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( INCAPACIDADE_TOTAL, incapacidade_total );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.incapacidade_total = incapacidade_total;
|
||||
LAZY_LOADED_OBJECTS.put( INCAPACIDADE_TOTAL, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Boolean getParecer_em_estudo()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( PARECER_EM_ESTUDO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.parecer_em_estudo;
|
||||
}
|
||||
|
||||
public void setParecer_em_estudo( Boolean parecer_em_estudo )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( PARECER_EM_ESTUDO, parecer_em_estudo );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.parecer_em_estudo = parecer_em_estudo;
|
||||
LAZY_LOADED_OBJECTS.put( PARECER_EM_ESTUDO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcFichaClassificacaoIndividualSaude.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.CREATED_STAMP_INDEX:
|
||||
value = getCreated_stamp();
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.CREATED_USER_ID_INDEX:
|
||||
value = getCreated_user_id();
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.CREATED_USER_NAME_INDEX:
|
||||
value = getCreated_user_name();
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.DELETED_STAMP_INDEX:
|
||||
value = getDeleted_stamp();
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.DELETED_USER_ID_INDEX:
|
||||
value = getDeleted_user_id();
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.DELETED_USER_NAME_INDEX:
|
||||
value = getDeleted_user_name();
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.SEM_PROBLEMAS_SAUDE_INDEX:
|
||||
value = getSem_problemas_saude();
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.ALTERACAO_TEMPORARIA_SAUDE_INDEX:
|
||||
value = getAlteracao_temporaria_saude();
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.DOENCA_CRONICA_SEM_INTERFERENCIA_INDEX:
|
||||
value = getDoenca_cronica_sem_interferencia();
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.DOENCA_CRONICA_COM_INTERFERENCIA_INDEX:
|
||||
value = getDoenca_cronica_com_interferencia();
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.DOENCA_PROFISSIONAL_INDEX:
|
||||
value = getDoenca_profissional();
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.INCAPACIDADE_PARCIAL_INDEX:
|
||||
value = getIncapacidade_parcial();
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.INCAPACIDADE_TOTAL_INDEX:
|
||||
value = getIncapacidade_total();
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.PARECER_EM_ESTUDO_INDEX:
|
||||
value = getParecer_em_estudo();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcFichaClassificacaoIndividualSaude.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.CREATED_STAMP_INDEX:
|
||||
value = this.created_stamp;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.CREATED_USER_ID_INDEX:
|
||||
value = this.created_user_id;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.CREATED_USER_NAME_INDEX:
|
||||
value = this.created_user_name;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.DELETED_STAMP_INDEX:
|
||||
value = this.deleted_stamp;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.DELETED_USER_ID_INDEX:
|
||||
value = this.deleted_user_id;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.DELETED_USER_NAME_INDEX:
|
||||
value = this.deleted_user_name;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.SEM_PROBLEMAS_SAUDE_INDEX:
|
||||
value = this.sem_problemas_saude;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.ALTERACAO_TEMPORARIA_SAUDE_INDEX:
|
||||
value = this.alteracao_temporaria_saude;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.DOENCA_CRONICA_SEM_INTERFERENCIA_INDEX:
|
||||
value = this.doenca_cronica_sem_interferencia;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.DOENCA_CRONICA_COM_INTERFERENCIA_INDEX:
|
||||
value = this.doenca_cronica_com_interferencia;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.DOENCA_PROFISSIONAL_INDEX:
|
||||
value = this.doenca_profissional;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.INCAPACIDADE_PARCIAL_INDEX:
|
||||
value = this.incapacidade_parcial;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.INCAPACIDADE_TOTAL_INDEX:
|
||||
value = this.incapacidade_total;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.PARECER_EM_ESTUDO_INDEX:
|
||||
value = this.parecer_em_estudo;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcFichaClassificacaoIndividualSaude.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.CREATED_STAMP_INDEX:
|
||||
setCreated_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.CREATED_USER_ID_INDEX:
|
||||
setCreated_user_id( ( Integer ) value );
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.CREATED_USER_NAME_INDEX:
|
||||
setCreated_user_name( ( String ) value );
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.DELETED_STAMP_INDEX:
|
||||
setDeleted_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.DELETED_USER_ID_INDEX:
|
||||
setDeleted_user_id( ( Integer ) value );
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.DELETED_USER_NAME_INDEX:
|
||||
setDeleted_user_name( ( String ) value );
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.SEM_PROBLEMAS_SAUDE_INDEX:
|
||||
setSem_problemas_saude( ( Boolean ) value );
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.ALTERACAO_TEMPORARIA_SAUDE_INDEX:
|
||||
setAlteracao_temporaria_saude( ( Boolean ) value );
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.DOENCA_CRONICA_SEM_INTERFERENCIA_INDEX:
|
||||
setDoenca_cronica_sem_interferencia( ( Boolean ) value );
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.DOENCA_CRONICA_COM_INTERFERENCIA_INDEX:
|
||||
setDoenca_cronica_com_interferencia( ( Boolean ) value );
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.DOENCA_PROFISSIONAL_INDEX:
|
||||
setDoenca_profissional( ( Boolean ) value );
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.INCAPACIDADE_PARCIAL_INDEX:
|
||||
setIncapacidade_parcial( ( Boolean ) value );
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.INCAPACIDADE_TOTAL_INDEX:
|
||||
setIncapacidade_total( ( Boolean ) value );
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.PARECER_EM_ESTUDO_INDEX:
|
||||
setParecer_em_estudo( ( Boolean ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcFichaClassificacaoIndividualSaude.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.CREATED_STAMP_INDEX:
|
||||
this.created_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.CREATED_USER_ID_INDEX:
|
||||
this.created_user_id = ( Integer ) value;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.CREATED_USER_NAME_INDEX:
|
||||
this.created_user_name = ( String ) value;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.DELETED_STAMP_INDEX:
|
||||
this.deleted_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.DELETED_USER_ID_INDEX:
|
||||
this.deleted_user_id = ( Integer ) value;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.DELETED_USER_NAME_INDEX:
|
||||
this.deleted_user_name = ( String ) value;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.SEM_PROBLEMAS_SAUDE_INDEX:
|
||||
this.sem_problemas_saude = ( Boolean ) value;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.ALTERACAO_TEMPORARIA_SAUDE_INDEX:
|
||||
this.alteracao_temporaria_saude = ( Boolean ) value;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.DOENCA_CRONICA_SEM_INTERFERENCIA_INDEX:
|
||||
this.doenca_cronica_sem_interferencia = ( Boolean ) value;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.DOENCA_CRONICA_COM_INTERFERENCIA_INDEX:
|
||||
this.doenca_cronica_com_interferencia = ( Boolean ) value;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.DOENCA_PROFISSIONAL_INDEX:
|
||||
this.doenca_profissional = ( Boolean ) value;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.INCAPACIDADE_PARCIAL_INDEX:
|
||||
this.incapacidade_parcial = ( Boolean ) value;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.INCAPACIDADE_TOTAL_INDEX:
|
||||
this.incapacidade_total = ( Boolean ) value;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.PARECER_EM_ESTUDO_INDEX:
|
||||
this.parecer_em_estudo = ( Boolean ) value;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getFieldNamesFull()
|
||||
{
|
||||
return FIELD_NAMES_FULL;
|
||||
}
|
||||
|
||||
public String []getDBFieldNames()
|
||||
{
|
||||
return DB_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getPrimaryKeyNames()
|
||||
{
|
||||
return PK_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getDefaultLoadSet()
|
||||
{
|
||||
return DEFAULT_LOAD_SET;
|
||||
}
|
||||
|
||||
public String getPrimaryKeyName()
|
||||
{
|
||||
return PK_FIELD_NAMES[ 0 ];
|
||||
}
|
||||
|
||||
public Class<?> getFieldClass( String fieldName )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
Class<?> theClass = null;
|
||||
switch( index )
|
||||
{
|
||||
case FcFichaClassificacaoIndividualSaude.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.CREATED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.CREATED_USER_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.CREATED_USER_NAME_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.DELETED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.DELETED_USER_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.DELETED_USER_NAME_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.SEM_PROBLEMAS_SAUDE_INDEX:
|
||||
theClass = Boolean.class;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.ALTERACAO_TEMPORARIA_SAUDE_INDEX:
|
||||
theClass = Boolean.class;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.DOENCA_CRONICA_SEM_INTERFERENCIA_INDEX:
|
||||
theClass = Boolean.class;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.DOENCA_CRONICA_COM_INTERFERENCIA_INDEX:
|
||||
theClass = Boolean.class;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.DOENCA_PROFISSIONAL_INDEX:
|
||||
theClass = Boolean.class;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.INCAPACIDADE_PARCIAL_INDEX:
|
||||
theClass = Boolean.class;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.INCAPACIDADE_TOTAL_INDEX:
|
||||
theClass = Boolean.class;
|
||||
break;
|
||||
case FcFichaClassificacaoIndividualSaude.PARECER_EM_ESTUDO_INDEX:
|
||||
theClass = Boolean.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : FcFichaClassificacaoIndividualSaude._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, FcFichaClassificacaoIndividualSaude.PK_FIELD_NAMES );
|
||||
Object idObject = array.get( row, col + 0 );
|
||||
try
|
||||
{
|
||||
primaryKey.set( 0, ( Integer ) idObject );
|
||||
setId( ( Integer ) idObject );
|
||||
}
|
||||
catch( ClassCastException ex )
|
||||
{
|
||||
if( idObject instanceof Number )
|
||||
{
|
||||
primaryKey.set( 0, ((Number)idObject).intValue() );
|
||||
setId( ((Number)idObject).intValue() );
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
|
||||
{
|
||||
return primaryKey;
|
||||
}
|
||||
|
||||
public void initLazyLoadFields()
|
||||
{
|
||||
}
|
||||
|
||||
public boolean isPropertyLoaded( String fieldName )
|
||||
{
|
||||
if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return LAZY_LOADED_OBJECTS.get( fieldName );
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,667 @@
|
||||
/*
|
||||
* FcFichaEnfermagem.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data.inner;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Date;
|
||||
|
||||
public class FcFichaEnfermagem 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( FcFichaEnfermagem.ID, FcFichaEnfermagem.ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaEnfermagem.ID_FULL, FcFichaEnfermagem.ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaEnfermagem.CREATED_STAMP, FcFichaEnfermagem.CREATED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaEnfermagem.CREATED_STAMP_FULL, FcFichaEnfermagem.CREATED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaEnfermagem.CREATED_USER_ID, FcFichaEnfermagem.CREATED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaEnfermagem.CREATED_USER_ID_FULL, FcFichaEnfermagem.CREATED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaEnfermagem.CREATED_USER_NAME, FcFichaEnfermagem.CREATED_USER_NAME_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaEnfermagem.CREATED_USER_NAME_FULL, FcFichaEnfermagem.CREATED_USER_NAME_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaEnfermagem.DELETED_STAMP, FcFichaEnfermagem.DELETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaEnfermagem.DELETED_STAMP_FULL, FcFichaEnfermagem.DELETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaEnfermagem.DELETED_USER_ID, FcFichaEnfermagem.DELETED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaEnfermagem.DELETED_USER_ID_FULL, FcFichaEnfermagem.DELETED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaEnfermagem.DELETED_USER_NAME, FcFichaEnfermagem.DELETED_USER_NAME_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaEnfermagem.DELETED_USER_NAME_FULL, FcFichaEnfermagem.DELETED_USER_NAME_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaEnfermagem.DATA, FcFichaEnfermagem.DATA_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaEnfermagem.DATA_FULL, FcFichaEnfermagem.DATA_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaEnfermagem.DESCRICAO, FcFichaEnfermagem.DESCRICAO_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaEnfermagem.DESCRICAO_FULL, FcFichaEnfermagem.DESCRICAO_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final String TABLENAME = "fc_ficha_enfermagem";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "shst.medicina.fichasclinicas.data.inner.fc_ficha_enfermagem";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "fc_ficha_enfermagem.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String CREATED_STAMP = "created_stamp";
|
||||
public static final String CREATED_STAMP_FULL = "fc_ficha_enfermagem.created_stamp";
|
||||
public static final int CREATED_STAMP_INDEX = 1;
|
||||
public static final String CREATED_USER_ID = "created_user_id";
|
||||
public static final String CREATED_USER_ID_FULL = "fc_ficha_enfermagem.created_user_id";
|
||||
public static final int CREATED_USER_ID_INDEX = 2;
|
||||
public static final String CREATED_USER_NAME = "created_user_name";
|
||||
public static final String CREATED_USER_NAME_FULL = "fc_ficha_enfermagem.created_user_name";
|
||||
public static final int CREATED_USER_NAME_INDEX = 3;
|
||||
public static final String DELETED_STAMP = "deleted_stamp";
|
||||
public static final String DELETED_STAMP_FULL = "fc_ficha_enfermagem.deleted_stamp";
|
||||
public static final int DELETED_STAMP_INDEX = 4;
|
||||
public static final String DELETED_USER_ID = "deleted_user_id";
|
||||
public static final String DELETED_USER_ID_FULL = "fc_ficha_enfermagem.deleted_user_id";
|
||||
public static final int DELETED_USER_ID_INDEX = 5;
|
||||
public static final String DELETED_USER_NAME = "deleted_user_name";
|
||||
public static final String DELETED_USER_NAME_FULL = "fc_ficha_enfermagem.deleted_user_name";
|
||||
public static final int DELETED_USER_NAME_INDEX = 6;
|
||||
public static final String DATA = "data";
|
||||
public static final String DATA_FULL = "fc_ficha_enfermagem.data";
|
||||
public static final int DATA_INDEX = 7;
|
||||
public static final String DESCRICAO = "descricao";
|
||||
public static final String DESCRICAO_FULL = "fc_ficha_enfermagem.descricao";
|
||||
public static final int DESCRICAO_INDEX = 8;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
CREATED_STAMP, CREATED_USER_ID, CREATED_USER_NAME, DELETED_STAMP,
|
||||
DELETED_USER_ID, DELETED_USER_NAME, DATA, DESCRICAO, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + CREATED_STAMP, TABLENAME + "." + CREATED_USER_ID, TABLENAME + "." + CREATED_USER_NAME, TABLENAME + "." + DELETED_STAMP,
|
||||
TABLENAME + "." + DELETED_USER_ID, TABLENAME + "." + DELETED_USER_NAME, TABLENAME + "." + DATA, TABLENAME + "." + DESCRICAO, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, CREATED_STAMP, CREATED_USER_ID, CREATED_USER_NAME, DELETED_STAMP,
|
||||
DELETED_USER_ID, DELETED_USER_NAME, DATA, DESCRICAO, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, CREATED_STAMP, CREATED_USER_ID, CREATED_USER_NAME, DELETED_STAMP,
|
||||
DELETED_USER_ID, DELETED_USER_NAME, DATA, };
|
||||
|
||||
private Integer id;
|
||||
private Timestamp created_stamp;
|
||||
private Integer created_user_id;
|
||||
private String created_user_name;
|
||||
private Timestamp deleted_stamp;
|
||||
private Integer deleted_user_id;
|
||||
private String deleted_user_name;
|
||||
private Date data;
|
||||
private String descricao;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public FcFichaEnfermagem()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ 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
|
||||
{
|
||||
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<shst.medicina.fichasclinicas.data.FcFichaData>fromFcFicha_enfermagem_id()
|
||||
{
|
||||
java.util.List<shst.medicina.fichasclinicas.data.FcFichaData> result = new java.util.LinkedList< shst.medicina.fichasclinicas.data.FcFichaData >();
|
||||
if ( getPrimaryKey() != null )
|
||||
{
|
||||
try
|
||||
{
|
||||
result = fromReference( shst.medicina.fichasclinicas.data.FcFichaData.class , getPrimaryKey().getMap().get("id"), "enfermagem_id" );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public Timestamp getCreated_stamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CREATED_STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.created_stamp;
|
||||
}
|
||||
|
||||
public void setCreated_stamp( Timestamp created_stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CREATED_STAMP, created_stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.created_stamp = created_stamp;
|
||||
LAZY_LOADED_OBJECTS.put( CREATED_STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getCreated_user_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CREATED_USER_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.created_user_id;
|
||||
}
|
||||
|
||||
public void setCreated_user_id( Integer created_user_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CREATED_USER_ID, created_user_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.created_user_id = created_user_id;
|
||||
LAZY_LOADED_OBJECTS.put( CREATED_USER_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getCreated_user_name()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CREATED_USER_NAME );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.created_user_name;
|
||||
}
|
||||
|
||||
public void setCreated_user_name( String created_user_name )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CREATED_USER_NAME, created_user_name );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.created_user_name = created_user_name;
|
||||
LAZY_LOADED_OBJECTS.put( CREATED_USER_NAME, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Timestamp getDeleted_stamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DELETED_STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.deleted_stamp;
|
||||
}
|
||||
|
||||
public void setDeleted_stamp( Timestamp deleted_stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DELETED_STAMP, deleted_stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.deleted_stamp = deleted_stamp;
|
||||
LAZY_LOADED_OBJECTS.put( DELETED_STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getDeleted_user_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DELETED_USER_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.deleted_user_id;
|
||||
}
|
||||
|
||||
public void setDeleted_user_id( Integer deleted_user_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DELETED_USER_ID, deleted_user_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.deleted_user_id = deleted_user_id;
|
||||
LAZY_LOADED_OBJECTS.put( DELETED_USER_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getDeleted_user_name()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DELETED_USER_NAME );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.deleted_user_name;
|
||||
}
|
||||
|
||||
public void setDeleted_user_name( String deleted_user_name )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DELETED_USER_NAME, deleted_user_name );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.deleted_user_name = deleted_user_name;
|
||||
LAZY_LOADED_OBJECTS.put( DELETED_USER_NAME, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Date getData()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DATA );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.data;
|
||||
}
|
||||
|
||||
public void setData( Date data )
|
||||
{
|
||||
try
|
||||
{
|
||||
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 getDescricao()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DESCRICAO );
|
||||
Boolean isLazyLoaded = isPropertyLoaded( DESCRICAO );
|
||||
if ( ! isLazyLoaded )
|
||||
{
|
||||
this.descricao = ( String ) getProvider().loadFieldFromDatabase( DESCRICAO, this );
|
||||
LAZY_LOADED_OBJECTS.put( DESCRICAO, Boolean.TRUE );
|
||||
}
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.descricao;
|
||||
}
|
||||
|
||||
public void setDescricao( String descricao )
|
||||
{
|
||||
try
|
||||
{
|
||||
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 FcFichaEnfermagem.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case FcFichaEnfermagem.CREATED_STAMP_INDEX:
|
||||
value = getCreated_stamp();
|
||||
break;
|
||||
case FcFichaEnfermagem.CREATED_USER_ID_INDEX:
|
||||
value = getCreated_user_id();
|
||||
break;
|
||||
case FcFichaEnfermagem.CREATED_USER_NAME_INDEX:
|
||||
value = getCreated_user_name();
|
||||
break;
|
||||
case FcFichaEnfermagem.DELETED_STAMP_INDEX:
|
||||
value = getDeleted_stamp();
|
||||
break;
|
||||
case FcFichaEnfermagem.DELETED_USER_ID_INDEX:
|
||||
value = getDeleted_user_id();
|
||||
break;
|
||||
case FcFichaEnfermagem.DELETED_USER_NAME_INDEX:
|
||||
value = getDeleted_user_name();
|
||||
break;
|
||||
case FcFichaEnfermagem.DATA_INDEX:
|
||||
value = getData();
|
||||
break;
|
||||
case FcFichaEnfermagem.DESCRICAO_INDEX:
|
||||
value = getDescricao();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcFichaEnfermagem.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case FcFichaEnfermagem.CREATED_STAMP_INDEX:
|
||||
value = this.created_stamp;
|
||||
break;
|
||||
case FcFichaEnfermagem.CREATED_USER_ID_INDEX:
|
||||
value = this.created_user_id;
|
||||
break;
|
||||
case FcFichaEnfermagem.CREATED_USER_NAME_INDEX:
|
||||
value = this.created_user_name;
|
||||
break;
|
||||
case FcFichaEnfermagem.DELETED_STAMP_INDEX:
|
||||
value = this.deleted_stamp;
|
||||
break;
|
||||
case FcFichaEnfermagem.DELETED_USER_ID_INDEX:
|
||||
value = this.deleted_user_id;
|
||||
break;
|
||||
case FcFichaEnfermagem.DELETED_USER_NAME_INDEX:
|
||||
value = this.deleted_user_name;
|
||||
break;
|
||||
case FcFichaEnfermagem.DATA_INDEX:
|
||||
value = this.data;
|
||||
break;
|
||||
case FcFichaEnfermagem.DESCRICAO_INDEX:
|
||||
value = this.descricao;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcFichaEnfermagem.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case FcFichaEnfermagem.CREATED_STAMP_INDEX:
|
||||
setCreated_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case FcFichaEnfermagem.CREATED_USER_ID_INDEX:
|
||||
setCreated_user_id( ( Integer ) value );
|
||||
break;
|
||||
case FcFichaEnfermagem.CREATED_USER_NAME_INDEX:
|
||||
setCreated_user_name( ( String ) value );
|
||||
break;
|
||||
case FcFichaEnfermagem.DELETED_STAMP_INDEX:
|
||||
setDeleted_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case FcFichaEnfermagem.DELETED_USER_ID_INDEX:
|
||||
setDeleted_user_id( ( Integer ) value );
|
||||
break;
|
||||
case FcFichaEnfermagem.DELETED_USER_NAME_INDEX:
|
||||
setDeleted_user_name( ( String ) value );
|
||||
break;
|
||||
case FcFichaEnfermagem.DATA_INDEX:
|
||||
setData( ( Date ) value );
|
||||
break;
|
||||
case FcFichaEnfermagem.DESCRICAO_INDEX:
|
||||
setDescricao( ( String ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcFichaEnfermagem.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case FcFichaEnfermagem.CREATED_STAMP_INDEX:
|
||||
this.created_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case FcFichaEnfermagem.CREATED_USER_ID_INDEX:
|
||||
this.created_user_id = ( Integer ) value;
|
||||
break;
|
||||
case FcFichaEnfermagem.CREATED_USER_NAME_INDEX:
|
||||
this.created_user_name = ( String ) value;
|
||||
break;
|
||||
case FcFichaEnfermagem.DELETED_STAMP_INDEX:
|
||||
this.deleted_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case FcFichaEnfermagem.DELETED_USER_ID_INDEX:
|
||||
this.deleted_user_id = ( Integer ) value;
|
||||
break;
|
||||
case FcFichaEnfermagem.DELETED_USER_NAME_INDEX:
|
||||
this.deleted_user_name = ( String ) value;
|
||||
break;
|
||||
case FcFichaEnfermagem.DATA_INDEX:
|
||||
this.data = ( Date ) value;
|
||||
break;
|
||||
case FcFichaEnfermagem.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 FcFichaEnfermagem.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case FcFichaEnfermagem.CREATED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case FcFichaEnfermagem.CREATED_USER_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case FcFichaEnfermagem.CREATED_USER_NAME_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case FcFichaEnfermagem.DELETED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case FcFichaEnfermagem.DELETED_USER_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case FcFichaEnfermagem.DELETED_USER_NAME_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case FcFichaEnfermagem.DATA_INDEX:
|
||||
theClass = Date.class;
|
||||
break;
|
||||
case FcFichaEnfermagem.DESCRICAO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : FcFichaEnfermagem._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, FcFichaEnfermagem.PK_FIELD_NAMES );
|
||||
Object idObject = array.get( row, col + 0 );
|
||||
try
|
||||
{
|
||||
primaryKey.set( 0, ( Integer ) idObject );
|
||||
setId( ( Integer ) idObject );
|
||||
}
|
||||
catch( ClassCastException ex )
|
||||
{
|
||||
if( idObject instanceof Number )
|
||||
{
|
||||
primaryKey.set( 0, ((Number)idObject).intValue() );
|
||||
setId( ((Number)idObject).intValue() );
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
|
||||
{
|
||||
return primaryKey;
|
||||
}
|
||||
|
||||
public void initLazyLoadFields()
|
||||
{
|
||||
LAZY_LOADED_OBJECTS.put( DESCRICAO, Boolean.FALSE );
|
||||
}
|
||||
|
||||
public boolean isPropertyLoaded( String fieldName )
|
||||
{
|
||||
if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return LAZY_LOADED_OBJECTS.get( fieldName );
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,667 @@
|
||||
/*
|
||||
* FcFichaMedicinaCurativa.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data.inner;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Date;
|
||||
|
||||
public class FcFichaMedicinaCurativa 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( FcFichaMedicinaCurativa.ID, FcFichaMedicinaCurativa.ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaMedicinaCurativa.ID_FULL, FcFichaMedicinaCurativa.ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaMedicinaCurativa.CREATED_STAMP, FcFichaMedicinaCurativa.CREATED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaMedicinaCurativa.CREATED_STAMP_FULL, FcFichaMedicinaCurativa.CREATED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaMedicinaCurativa.CREATED_USER_ID, FcFichaMedicinaCurativa.CREATED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaMedicinaCurativa.CREATED_USER_ID_FULL, FcFichaMedicinaCurativa.CREATED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaMedicinaCurativa.CREATED_USER_NAME, FcFichaMedicinaCurativa.CREATED_USER_NAME_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaMedicinaCurativa.CREATED_USER_NAME_FULL, FcFichaMedicinaCurativa.CREATED_USER_NAME_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaMedicinaCurativa.DELETED_STAMP, FcFichaMedicinaCurativa.DELETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaMedicinaCurativa.DELETED_STAMP_FULL, FcFichaMedicinaCurativa.DELETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaMedicinaCurativa.DELETED_USER_ID, FcFichaMedicinaCurativa.DELETED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaMedicinaCurativa.DELETED_USER_ID_FULL, FcFichaMedicinaCurativa.DELETED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaMedicinaCurativa.DELETED_USER_NAME, FcFichaMedicinaCurativa.DELETED_USER_NAME_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaMedicinaCurativa.DELETED_USER_NAME_FULL, FcFichaMedicinaCurativa.DELETED_USER_NAME_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaMedicinaCurativa.DATA, FcFichaMedicinaCurativa.DATA_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaMedicinaCurativa.DATA_FULL, FcFichaMedicinaCurativa.DATA_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaMedicinaCurativa.DESCRICAO, FcFichaMedicinaCurativa.DESCRICAO_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaMedicinaCurativa.DESCRICAO_FULL, FcFichaMedicinaCurativa.DESCRICAO_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final String TABLENAME = "fc_ficha_medicina_curativa";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "shst.medicina.fichasclinicas.data.inner.fc_ficha_medicina_curativa";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "fc_ficha_medicina_curativa.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String CREATED_STAMP = "created_stamp";
|
||||
public static final String CREATED_STAMP_FULL = "fc_ficha_medicina_curativa.created_stamp";
|
||||
public static final int CREATED_STAMP_INDEX = 1;
|
||||
public static final String CREATED_USER_ID = "created_user_id";
|
||||
public static final String CREATED_USER_ID_FULL = "fc_ficha_medicina_curativa.created_user_id";
|
||||
public static final int CREATED_USER_ID_INDEX = 2;
|
||||
public static final String CREATED_USER_NAME = "created_user_name";
|
||||
public static final String CREATED_USER_NAME_FULL = "fc_ficha_medicina_curativa.created_user_name";
|
||||
public static final int CREATED_USER_NAME_INDEX = 3;
|
||||
public static final String DELETED_STAMP = "deleted_stamp";
|
||||
public static final String DELETED_STAMP_FULL = "fc_ficha_medicina_curativa.deleted_stamp";
|
||||
public static final int DELETED_STAMP_INDEX = 4;
|
||||
public static final String DELETED_USER_ID = "deleted_user_id";
|
||||
public static final String DELETED_USER_ID_FULL = "fc_ficha_medicina_curativa.deleted_user_id";
|
||||
public static final int DELETED_USER_ID_INDEX = 5;
|
||||
public static final String DELETED_USER_NAME = "deleted_user_name";
|
||||
public static final String DELETED_USER_NAME_FULL = "fc_ficha_medicina_curativa.deleted_user_name";
|
||||
public static final int DELETED_USER_NAME_INDEX = 6;
|
||||
public static final String DATA = "data";
|
||||
public static final String DATA_FULL = "fc_ficha_medicina_curativa.data";
|
||||
public static final int DATA_INDEX = 7;
|
||||
public static final String DESCRICAO = "descricao";
|
||||
public static final String DESCRICAO_FULL = "fc_ficha_medicina_curativa.descricao";
|
||||
public static final int DESCRICAO_INDEX = 8;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
CREATED_STAMP, CREATED_USER_ID, CREATED_USER_NAME, DELETED_STAMP,
|
||||
DELETED_USER_ID, DELETED_USER_NAME, DATA, DESCRICAO, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + CREATED_STAMP, TABLENAME + "." + CREATED_USER_ID, TABLENAME + "." + CREATED_USER_NAME, TABLENAME + "." + DELETED_STAMP,
|
||||
TABLENAME + "." + DELETED_USER_ID, TABLENAME + "." + DELETED_USER_NAME, TABLENAME + "." + DATA, TABLENAME + "." + DESCRICAO, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, CREATED_STAMP, CREATED_USER_ID, CREATED_USER_NAME, DELETED_STAMP,
|
||||
DELETED_USER_ID, DELETED_USER_NAME, DATA, DESCRICAO, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, CREATED_STAMP, CREATED_USER_ID, CREATED_USER_NAME, DELETED_STAMP,
|
||||
DELETED_USER_ID, DELETED_USER_NAME, DATA, };
|
||||
|
||||
private Integer id;
|
||||
private Timestamp created_stamp;
|
||||
private Integer created_user_id;
|
||||
private String created_user_name;
|
||||
private Timestamp deleted_stamp;
|
||||
private Integer deleted_user_id;
|
||||
private String deleted_user_name;
|
||||
private Date data;
|
||||
private String descricao;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public FcFichaMedicinaCurativa()
|
||||
{
|
||||
super();
|
||||
dirtyProperties = new boolean[]{ 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
|
||||
{
|
||||
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<shst.medicina.fichasclinicas.data.FcFichaData>fromFcFicha_medicina_curativa_id()
|
||||
{
|
||||
java.util.List<shst.medicina.fichasclinicas.data.FcFichaData> result = new java.util.LinkedList< shst.medicina.fichasclinicas.data.FcFichaData >();
|
||||
if ( getPrimaryKey() != null )
|
||||
{
|
||||
try
|
||||
{
|
||||
result = fromReference( shst.medicina.fichasclinicas.data.FcFichaData.class , getPrimaryKey().getMap().get("id"), "medicina_curativa_id" );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public Timestamp getCreated_stamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CREATED_STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.created_stamp;
|
||||
}
|
||||
|
||||
public void setCreated_stamp( Timestamp created_stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CREATED_STAMP, created_stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.created_stamp = created_stamp;
|
||||
LAZY_LOADED_OBJECTS.put( CREATED_STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getCreated_user_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CREATED_USER_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.created_user_id;
|
||||
}
|
||||
|
||||
public void setCreated_user_id( Integer created_user_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CREATED_USER_ID, created_user_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.created_user_id = created_user_id;
|
||||
LAZY_LOADED_OBJECTS.put( CREATED_USER_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getCreated_user_name()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CREATED_USER_NAME );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.created_user_name;
|
||||
}
|
||||
|
||||
public void setCreated_user_name( String created_user_name )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CREATED_USER_NAME, created_user_name );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.created_user_name = created_user_name;
|
||||
LAZY_LOADED_OBJECTS.put( CREATED_USER_NAME, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Timestamp getDeleted_stamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DELETED_STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.deleted_stamp;
|
||||
}
|
||||
|
||||
public void setDeleted_stamp( Timestamp deleted_stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DELETED_STAMP, deleted_stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.deleted_stamp = deleted_stamp;
|
||||
LAZY_LOADED_OBJECTS.put( DELETED_STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getDeleted_user_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DELETED_USER_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.deleted_user_id;
|
||||
}
|
||||
|
||||
public void setDeleted_user_id( Integer deleted_user_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DELETED_USER_ID, deleted_user_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.deleted_user_id = deleted_user_id;
|
||||
LAZY_LOADED_OBJECTS.put( DELETED_USER_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getDeleted_user_name()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DELETED_USER_NAME );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.deleted_user_name;
|
||||
}
|
||||
|
||||
public void setDeleted_user_name( String deleted_user_name )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DELETED_USER_NAME, deleted_user_name );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.deleted_user_name = deleted_user_name;
|
||||
LAZY_LOADED_OBJECTS.put( DELETED_USER_NAME, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Date getData()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DATA );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.data;
|
||||
}
|
||||
|
||||
public void setData( Date data )
|
||||
{
|
||||
try
|
||||
{
|
||||
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 getDescricao()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DESCRICAO );
|
||||
Boolean isLazyLoaded = isPropertyLoaded( DESCRICAO );
|
||||
if ( ! isLazyLoaded )
|
||||
{
|
||||
this.descricao = ( String ) getProvider().loadFieldFromDatabase( DESCRICAO, this );
|
||||
LAZY_LOADED_OBJECTS.put( DESCRICAO, Boolean.TRUE );
|
||||
}
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.descricao;
|
||||
}
|
||||
|
||||
public void setDescricao( String descricao )
|
||||
{
|
||||
try
|
||||
{
|
||||
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 FcFichaMedicinaCurativa.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.CREATED_STAMP_INDEX:
|
||||
value = getCreated_stamp();
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.CREATED_USER_ID_INDEX:
|
||||
value = getCreated_user_id();
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.CREATED_USER_NAME_INDEX:
|
||||
value = getCreated_user_name();
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.DELETED_STAMP_INDEX:
|
||||
value = getDeleted_stamp();
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.DELETED_USER_ID_INDEX:
|
||||
value = getDeleted_user_id();
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.DELETED_USER_NAME_INDEX:
|
||||
value = getDeleted_user_name();
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.DATA_INDEX:
|
||||
value = getData();
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.DESCRICAO_INDEX:
|
||||
value = getDescricao();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcFichaMedicinaCurativa.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.CREATED_STAMP_INDEX:
|
||||
value = this.created_stamp;
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.CREATED_USER_ID_INDEX:
|
||||
value = this.created_user_id;
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.CREATED_USER_NAME_INDEX:
|
||||
value = this.created_user_name;
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.DELETED_STAMP_INDEX:
|
||||
value = this.deleted_stamp;
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.DELETED_USER_ID_INDEX:
|
||||
value = this.deleted_user_id;
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.DELETED_USER_NAME_INDEX:
|
||||
value = this.deleted_user_name;
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.DATA_INDEX:
|
||||
value = this.data;
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.DESCRICAO_INDEX:
|
||||
value = this.descricao;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcFichaMedicinaCurativa.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.CREATED_STAMP_INDEX:
|
||||
setCreated_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.CREATED_USER_ID_INDEX:
|
||||
setCreated_user_id( ( Integer ) value );
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.CREATED_USER_NAME_INDEX:
|
||||
setCreated_user_name( ( String ) value );
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.DELETED_STAMP_INDEX:
|
||||
setDeleted_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.DELETED_USER_ID_INDEX:
|
||||
setDeleted_user_id( ( Integer ) value );
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.DELETED_USER_NAME_INDEX:
|
||||
setDeleted_user_name( ( String ) value );
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.DATA_INDEX:
|
||||
setData( ( Date ) value );
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.DESCRICAO_INDEX:
|
||||
setDescricao( ( String ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcFichaMedicinaCurativa.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.CREATED_STAMP_INDEX:
|
||||
this.created_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.CREATED_USER_ID_INDEX:
|
||||
this.created_user_id = ( Integer ) value;
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.CREATED_USER_NAME_INDEX:
|
||||
this.created_user_name = ( String ) value;
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.DELETED_STAMP_INDEX:
|
||||
this.deleted_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.DELETED_USER_ID_INDEX:
|
||||
this.deleted_user_id = ( Integer ) value;
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.DELETED_USER_NAME_INDEX:
|
||||
this.deleted_user_name = ( String ) value;
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.DATA_INDEX:
|
||||
this.data = ( Date ) value;
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.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 FcFichaMedicinaCurativa.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.CREATED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.CREATED_USER_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.CREATED_USER_NAME_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.DELETED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.DELETED_USER_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.DELETED_USER_NAME_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.DATA_INDEX:
|
||||
theClass = Date.class;
|
||||
break;
|
||||
case FcFichaMedicinaCurativa.DESCRICAO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : FcFichaMedicinaCurativa._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, FcFichaMedicinaCurativa.PK_FIELD_NAMES );
|
||||
Object idObject = array.get( row, col + 0 );
|
||||
try
|
||||
{
|
||||
primaryKey.set( 0, ( Integer ) idObject );
|
||||
setId( ( Integer ) idObject );
|
||||
}
|
||||
catch( ClassCastException ex )
|
||||
{
|
||||
if( idObject instanceof Number )
|
||||
{
|
||||
primaryKey.set( 0, ((Number)idObject).intValue() );
|
||||
setId( ((Number)idObject).intValue() );
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
|
||||
{
|
||||
return primaryKey;
|
||||
}
|
||||
|
||||
public void initLazyLoadFields()
|
||||
{
|
||||
LAZY_LOADED_OBJECTS.put( DESCRICAO, Boolean.FALSE );
|
||||
}
|
||||
|
||||
public boolean isPropertyLoaded( String fieldName )
|
||||
{
|
||||
if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return LAZY_LOADED_OBJECTS.get( fieldName );
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,788 @@
|
||||
/*
|
||||
* FcFichaProblemasSolucoes.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data.inner;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
|
||||
public class FcFichaProblemasSolucoes 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( FcFichaProblemasSolucoes.ID, FcFichaProblemasSolucoes.ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaProblemasSolucoes.ID_FULL, FcFichaProblemasSolucoes.ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaProblemasSolucoes.CREATED_STAMP, FcFichaProblemasSolucoes.CREATED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaProblemasSolucoes.CREATED_STAMP_FULL, FcFichaProblemasSolucoes.CREATED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaProblemasSolucoes.CREATED_USER_ID, FcFichaProblemasSolucoes.CREATED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaProblemasSolucoes.CREATED_USER_ID_FULL, FcFichaProblemasSolucoes.CREATED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaProblemasSolucoes.CREATED_USER_NAME, FcFichaProblemasSolucoes.CREATED_USER_NAME_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaProblemasSolucoes.CREATED_USER_NAME_FULL, FcFichaProblemasSolucoes.CREATED_USER_NAME_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaProblemasSolucoes.DELETED_STAMP, FcFichaProblemasSolucoes.DELETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaProblemasSolucoes.DELETED_STAMP_FULL, FcFichaProblemasSolucoes.DELETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaProblemasSolucoes.DELETED_USER_ID, FcFichaProblemasSolucoes.DELETED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaProblemasSolucoes.DELETED_USER_ID_FULL, FcFichaProblemasSolucoes.DELETED_USER_ID_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaProblemasSolucoes.DELETED_USER_NAME, FcFichaProblemasSolucoes.DELETED_USER_NAME_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaProblemasSolucoes.DELETED_USER_NAME_FULL, FcFichaProblemasSolucoes.DELETED_USER_NAME_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaProblemasSolucoes.PROBLEMAS_SAUDE, FcFichaProblemasSolucoes.PROBLEMAS_SAUDE_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaProblemasSolucoes.PROBLEMAS_SAUDE_FULL, FcFichaProblemasSolucoes.PROBLEMAS_SAUDE_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaProblemasSolucoes.PROBLEMAS_TRABALHO, FcFichaProblemasSolucoes.PROBLEMAS_TRABALHO_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaProblemasSolucoes.PROBLEMAS_TRABALHO_FULL, FcFichaProblemasSolucoes.PROBLEMAS_TRABALHO_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaProblemasSolucoes.SOLUCOES_PROBLEMAS_SAUDE, FcFichaProblemasSolucoes.SOLUCOES_PROBLEMAS_SAUDE_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaProblemasSolucoes.SOLUCOES_PROBLEMAS_SAUDE_FULL, FcFichaProblemasSolucoes.SOLUCOES_PROBLEMAS_SAUDE_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaProblemasSolucoes.SOLUCOES_PROBLEMAS_TRABALHO, FcFichaProblemasSolucoes.SOLUCOES_PROBLEMAS_TRABALHO_INDEX );
|
||||
FIELD_INDEXES.put( FcFichaProblemasSolucoes.SOLUCOES_PROBLEMAS_TRABALHO_FULL, FcFichaProblemasSolucoes.SOLUCOES_PROBLEMAS_TRABALHO_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final String TABLENAME = "fc_ficha_problemas_solucoes";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "shst.medicina.fichasclinicas.data.inner.fc_ficha_problemas_solucoes";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "fc_ficha_problemas_solucoes.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String CREATED_STAMP = "created_stamp";
|
||||
public static final String CREATED_STAMP_FULL = "fc_ficha_problemas_solucoes.created_stamp";
|
||||
public static final int CREATED_STAMP_INDEX = 1;
|
||||
public static final String CREATED_USER_ID = "created_user_id";
|
||||
public static final String CREATED_USER_ID_FULL = "fc_ficha_problemas_solucoes.created_user_id";
|
||||
public static final int CREATED_USER_ID_INDEX = 2;
|
||||
public static final String CREATED_USER_NAME = "created_user_name";
|
||||
public static final String CREATED_USER_NAME_FULL = "fc_ficha_problemas_solucoes.created_user_name";
|
||||
public static final int CREATED_USER_NAME_INDEX = 3;
|
||||
public static final String DELETED_STAMP = "deleted_stamp";
|
||||
public static final String DELETED_STAMP_FULL = "fc_ficha_problemas_solucoes.deleted_stamp";
|
||||
public static final int DELETED_STAMP_INDEX = 4;
|
||||
public static final String DELETED_USER_ID = "deleted_user_id";
|
||||
public static final String DELETED_USER_ID_FULL = "fc_ficha_problemas_solucoes.deleted_user_id";
|
||||
public static final int DELETED_USER_ID_INDEX = 5;
|
||||
public static final String DELETED_USER_NAME = "deleted_user_name";
|
||||
public static final String DELETED_USER_NAME_FULL = "fc_ficha_problemas_solucoes.deleted_user_name";
|
||||
public static final int DELETED_USER_NAME_INDEX = 6;
|
||||
public static final String PROBLEMAS_SAUDE = "problemas_saude";
|
||||
public static final String PROBLEMAS_SAUDE_FULL = "fc_ficha_problemas_solucoes.problemas_saude";
|
||||
public static final int PROBLEMAS_SAUDE_INDEX = 7;
|
||||
public static final String PROBLEMAS_TRABALHO = "problemas_trabalho";
|
||||
public static final String PROBLEMAS_TRABALHO_FULL = "fc_ficha_problemas_solucoes.problemas_trabalho";
|
||||
public static final int PROBLEMAS_TRABALHO_INDEX = 8;
|
||||
public static final String SOLUCOES_PROBLEMAS_SAUDE = "solucoes_problemas_saude";
|
||||
public static final String SOLUCOES_PROBLEMAS_SAUDE_FULL = "fc_ficha_problemas_solucoes.solucoes_problemas_saude";
|
||||
public static final int SOLUCOES_PROBLEMAS_SAUDE_INDEX = 9;
|
||||
public static final String SOLUCOES_PROBLEMAS_TRABALHO = "solucoes_problemas_trabalho";
|
||||
public static final String SOLUCOES_PROBLEMAS_TRABALHO_FULL = "fc_ficha_problemas_solucoes.solucoes_problemas_trabalho";
|
||||
public static final int SOLUCOES_PROBLEMAS_TRABALHO_INDEX = 10;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
CREATED_STAMP, CREATED_USER_ID, CREATED_USER_NAME, DELETED_STAMP,
|
||||
DELETED_USER_ID, DELETED_USER_NAME, PROBLEMAS_SAUDE, PROBLEMAS_TRABALHO,
|
||||
SOLUCOES_PROBLEMAS_SAUDE, SOLUCOES_PROBLEMAS_TRABALHO, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + CREATED_STAMP, TABLENAME + "." + CREATED_USER_ID, TABLENAME + "." + CREATED_USER_NAME, TABLENAME + "." + DELETED_STAMP,
|
||||
TABLENAME + "." + DELETED_USER_ID, TABLENAME + "." + DELETED_USER_NAME, TABLENAME + "." + PROBLEMAS_SAUDE, TABLENAME + "." + PROBLEMAS_TRABALHO,
|
||||
TABLENAME + "." + SOLUCOES_PROBLEMAS_SAUDE, TABLENAME + "." + SOLUCOES_PROBLEMAS_TRABALHO, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, CREATED_STAMP, CREATED_USER_ID, CREATED_USER_NAME, DELETED_STAMP,
|
||||
DELETED_USER_ID, DELETED_USER_NAME, PROBLEMAS_SAUDE, PROBLEMAS_TRABALHO,
|
||||
SOLUCOES_PROBLEMAS_SAUDE, SOLUCOES_PROBLEMAS_TRABALHO, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, CREATED_STAMP, CREATED_USER_ID, CREATED_USER_NAME, DELETED_STAMP,
|
||||
DELETED_USER_ID, DELETED_USER_NAME, };
|
||||
|
||||
private Integer id;
|
||||
private Timestamp created_stamp;
|
||||
private Integer created_user_id;
|
||||
private String created_user_name;
|
||||
private Timestamp deleted_stamp;
|
||||
private Integer deleted_user_id;
|
||||
private String deleted_user_name;
|
||||
private String problemas_saude;
|
||||
private String problemas_trabalho;
|
||||
private String solucoes_problemas_saude;
|
||||
private String solucoes_problemas_trabalho;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public FcFichaProblemasSolucoes()
|
||||
{
|
||||
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
|
||||
{
|
||||
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<shst.medicina.fichasclinicas.data.FcFichaData>fromFcFicha_problemas_solucoes_id()
|
||||
{
|
||||
java.util.List<shst.medicina.fichasclinicas.data.FcFichaData> result = new java.util.LinkedList< shst.medicina.fichasclinicas.data.FcFichaData >();
|
||||
if ( getPrimaryKey() != null )
|
||||
{
|
||||
try
|
||||
{
|
||||
result = fromReference( shst.medicina.fichasclinicas.data.FcFichaData.class , getPrimaryKey().getMap().get("id"), "problemas_solucoes_id" );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public Timestamp getCreated_stamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CREATED_STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.created_stamp;
|
||||
}
|
||||
|
||||
public void setCreated_stamp( Timestamp created_stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CREATED_STAMP, created_stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.created_stamp = created_stamp;
|
||||
LAZY_LOADED_OBJECTS.put( CREATED_STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getCreated_user_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CREATED_USER_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.created_user_id;
|
||||
}
|
||||
|
||||
public void setCreated_user_id( Integer created_user_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CREATED_USER_ID, created_user_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.created_user_id = created_user_id;
|
||||
LAZY_LOADED_OBJECTS.put( CREATED_USER_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getCreated_user_name()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CREATED_USER_NAME );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.created_user_name;
|
||||
}
|
||||
|
||||
public void setCreated_user_name( String created_user_name )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CREATED_USER_NAME, created_user_name );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.created_user_name = created_user_name;
|
||||
LAZY_LOADED_OBJECTS.put( CREATED_USER_NAME, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Timestamp getDeleted_stamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DELETED_STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.deleted_stamp;
|
||||
}
|
||||
|
||||
public void setDeleted_stamp( Timestamp deleted_stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DELETED_STAMP, deleted_stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.deleted_stamp = deleted_stamp;
|
||||
LAZY_LOADED_OBJECTS.put( DELETED_STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Integer getDeleted_user_id()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DELETED_USER_ID );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.deleted_user_id;
|
||||
}
|
||||
|
||||
public void setDeleted_user_id( Integer deleted_user_id )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DELETED_USER_ID, deleted_user_id );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.deleted_user_id = deleted_user_id;
|
||||
LAZY_LOADED_OBJECTS.put( DELETED_USER_ID, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getDeleted_user_name()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DELETED_USER_NAME );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.deleted_user_name;
|
||||
}
|
||||
|
||||
public void setDeleted_user_name( String deleted_user_name )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DELETED_USER_NAME, deleted_user_name );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.deleted_user_name = deleted_user_name;
|
||||
LAZY_LOADED_OBJECTS.put( DELETED_USER_NAME, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getProblemas_saude()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( PROBLEMAS_SAUDE );
|
||||
Boolean isLazyLoaded = isPropertyLoaded( PROBLEMAS_SAUDE );
|
||||
if ( ! isLazyLoaded )
|
||||
{
|
||||
this.problemas_saude = ( String ) getProvider().loadFieldFromDatabase( PROBLEMAS_SAUDE, this );
|
||||
LAZY_LOADED_OBJECTS.put( PROBLEMAS_SAUDE, Boolean.TRUE );
|
||||
}
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.problemas_saude;
|
||||
}
|
||||
|
||||
public void setProblemas_saude( String problemas_saude )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( PROBLEMAS_SAUDE, problemas_saude );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.problemas_saude = problemas_saude;
|
||||
LAZY_LOADED_OBJECTS.put( PROBLEMAS_SAUDE, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getProblemas_trabalho()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( PROBLEMAS_TRABALHO );
|
||||
Boolean isLazyLoaded = isPropertyLoaded( PROBLEMAS_TRABALHO );
|
||||
if ( ! isLazyLoaded )
|
||||
{
|
||||
this.problemas_trabalho = ( String ) getProvider().loadFieldFromDatabase( PROBLEMAS_TRABALHO, this );
|
||||
LAZY_LOADED_OBJECTS.put( PROBLEMAS_TRABALHO, Boolean.TRUE );
|
||||
}
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.problemas_trabalho;
|
||||
}
|
||||
|
||||
public void setProblemas_trabalho( String problemas_trabalho )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( PROBLEMAS_TRABALHO, problemas_trabalho );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.problemas_trabalho = problemas_trabalho;
|
||||
LAZY_LOADED_OBJECTS.put( PROBLEMAS_TRABALHO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getSolucoes_problemas_saude()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( SOLUCOES_PROBLEMAS_SAUDE );
|
||||
Boolean isLazyLoaded = isPropertyLoaded( SOLUCOES_PROBLEMAS_SAUDE );
|
||||
if ( ! isLazyLoaded )
|
||||
{
|
||||
this.solucoes_problemas_saude = ( String ) getProvider().loadFieldFromDatabase( SOLUCOES_PROBLEMAS_SAUDE, this );
|
||||
LAZY_LOADED_OBJECTS.put( SOLUCOES_PROBLEMAS_SAUDE, Boolean.TRUE );
|
||||
}
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.solucoes_problemas_saude;
|
||||
}
|
||||
|
||||
public void setSolucoes_problemas_saude( String solucoes_problemas_saude )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( SOLUCOES_PROBLEMAS_SAUDE, solucoes_problemas_saude );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.solucoes_problemas_saude = solucoes_problemas_saude;
|
||||
LAZY_LOADED_OBJECTS.put( SOLUCOES_PROBLEMAS_SAUDE, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getSolucoes_problemas_trabalho()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( SOLUCOES_PROBLEMAS_TRABALHO );
|
||||
Boolean isLazyLoaded = isPropertyLoaded( SOLUCOES_PROBLEMAS_TRABALHO );
|
||||
if ( ! isLazyLoaded )
|
||||
{
|
||||
this.solucoes_problemas_trabalho = ( String ) getProvider().loadFieldFromDatabase( SOLUCOES_PROBLEMAS_TRABALHO, this );
|
||||
LAZY_LOADED_OBJECTS.put( SOLUCOES_PROBLEMAS_TRABALHO, Boolean.TRUE );
|
||||
}
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.solucoes_problemas_trabalho;
|
||||
}
|
||||
|
||||
public void setSolucoes_problemas_trabalho( String solucoes_problemas_trabalho )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( SOLUCOES_PROBLEMAS_TRABALHO, solucoes_problemas_trabalho );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.solucoes_problemas_trabalho = solucoes_problemas_trabalho;
|
||||
LAZY_LOADED_OBJECTS.put( SOLUCOES_PROBLEMAS_TRABALHO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcFichaProblemasSolucoes.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.CREATED_STAMP_INDEX:
|
||||
value = getCreated_stamp();
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.CREATED_USER_ID_INDEX:
|
||||
value = getCreated_user_id();
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.CREATED_USER_NAME_INDEX:
|
||||
value = getCreated_user_name();
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.DELETED_STAMP_INDEX:
|
||||
value = getDeleted_stamp();
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.DELETED_USER_ID_INDEX:
|
||||
value = getDeleted_user_id();
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.DELETED_USER_NAME_INDEX:
|
||||
value = getDeleted_user_name();
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.PROBLEMAS_SAUDE_INDEX:
|
||||
value = getProblemas_saude();
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.PROBLEMAS_TRABALHO_INDEX:
|
||||
value = getProblemas_trabalho();
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.SOLUCOES_PROBLEMAS_SAUDE_INDEX:
|
||||
value = getSolucoes_problemas_saude();
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.SOLUCOES_PROBLEMAS_TRABALHO_INDEX:
|
||||
value = getSolucoes_problemas_trabalho();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcFichaProblemasSolucoes.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.CREATED_STAMP_INDEX:
|
||||
value = this.created_stamp;
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.CREATED_USER_ID_INDEX:
|
||||
value = this.created_user_id;
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.CREATED_USER_NAME_INDEX:
|
||||
value = this.created_user_name;
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.DELETED_STAMP_INDEX:
|
||||
value = this.deleted_stamp;
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.DELETED_USER_ID_INDEX:
|
||||
value = this.deleted_user_id;
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.DELETED_USER_NAME_INDEX:
|
||||
value = this.deleted_user_name;
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.PROBLEMAS_SAUDE_INDEX:
|
||||
value = this.problemas_saude;
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.PROBLEMAS_TRABALHO_INDEX:
|
||||
value = this.problemas_trabalho;
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.SOLUCOES_PROBLEMAS_SAUDE_INDEX:
|
||||
value = this.solucoes_problemas_saude;
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.SOLUCOES_PROBLEMAS_TRABALHO_INDEX:
|
||||
value = this.solucoes_problemas_trabalho;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcFichaProblemasSolucoes.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.CREATED_STAMP_INDEX:
|
||||
setCreated_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.CREATED_USER_ID_INDEX:
|
||||
setCreated_user_id( ( Integer ) value );
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.CREATED_USER_NAME_INDEX:
|
||||
setCreated_user_name( ( String ) value );
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.DELETED_STAMP_INDEX:
|
||||
setDeleted_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.DELETED_USER_ID_INDEX:
|
||||
setDeleted_user_id( ( Integer ) value );
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.DELETED_USER_NAME_INDEX:
|
||||
setDeleted_user_name( ( String ) value );
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.PROBLEMAS_SAUDE_INDEX:
|
||||
setProblemas_saude( ( String ) value );
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.PROBLEMAS_TRABALHO_INDEX:
|
||||
setProblemas_trabalho( ( String ) value );
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.SOLUCOES_PROBLEMAS_SAUDE_INDEX:
|
||||
setSolucoes_problemas_saude( ( String ) value );
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.SOLUCOES_PROBLEMAS_TRABALHO_INDEX:
|
||||
setSolucoes_problemas_trabalho( ( String ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcFichaProblemasSolucoes.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.CREATED_STAMP_INDEX:
|
||||
this.created_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.CREATED_USER_ID_INDEX:
|
||||
this.created_user_id = ( Integer ) value;
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.CREATED_USER_NAME_INDEX:
|
||||
this.created_user_name = ( String ) value;
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.DELETED_STAMP_INDEX:
|
||||
this.deleted_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.DELETED_USER_ID_INDEX:
|
||||
this.deleted_user_id = ( Integer ) value;
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.DELETED_USER_NAME_INDEX:
|
||||
this.deleted_user_name = ( String ) value;
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.PROBLEMAS_SAUDE_INDEX:
|
||||
this.problemas_saude = ( String ) value;
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.PROBLEMAS_TRABALHO_INDEX:
|
||||
this.problemas_trabalho = ( String ) value;
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.SOLUCOES_PROBLEMAS_SAUDE_INDEX:
|
||||
this.solucoes_problemas_saude = ( String ) value;
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.SOLUCOES_PROBLEMAS_TRABALHO_INDEX:
|
||||
this.solucoes_problemas_trabalho = ( 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 FcFichaProblemasSolucoes.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.CREATED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.CREATED_USER_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.CREATED_USER_NAME_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.DELETED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.DELETED_USER_ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.DELETED_USER_NAME_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.PROBLEMAS_SAUDE_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.PROBLEMAS_TRABALHO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.SOLUCOES_PROBLEMAS_SAUDE_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case FcFichaProblemasSolucoes.SOLUCOES_PROBLEMAS_TRABALHO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : FcFichaProblemasSolucoes._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, FcFichaProblemasSolucoes.PK_FIELD_NAMES );
|
||||
Object idObject = array.get( row, col + 0 );
|
||||
try
|
||||
{
|
||||
primaryKey.set( 0, ( Integer ) idObject );
|
||||
setId( ( Integer ) idObject );
|
||||
}
|
||||
catch( ClassCastException ex )
|
||||
{
|
||||
if( idObject instanceof Number )
|
||||
{
|
||||
primaryKey.set( 0, ((Number)idObject).intValue() );
|
||||
setId( ((Number)idObject).intValue() );
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
|
||||
{
|
||||
return primaryKey;
|
||||
}
|
||||
|
||||
public void initLazyLoadFields()
|
||||
{
|
||||
LAZY_LOADED_OBJECTS.put( PROBLEMAS_SAUDE, Boolean.FALSE );
|
||||
LAZY_LOADED_OBJECTS.put( PROBLEMAS_TRABALHO, Boolean.FALSE );
|
||||
LAZY_LOADED_OBJECTS.put( SOLUCOES_PROBLEMAS_SAUDE, Boolean.FALSE );
|
||||
LAZY_LOADED_OBJECTS.put( SOLUCOES_PROBLEMAS_TRABALHO, Boolean.FALSE );
|
||||
}
|
||||
|
||||
public boolean isPropertyLoaded( String fieldName )
|
||||
{
|
||||
if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return LAZY_LOADED_OBJECTS.get( fieldName );
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,459 @@
|
||||
/*
|
||||
* FcMotivos.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data.inner;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
|
||||
public class FcMotivos 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( FcMotivos.ID, FcMotivos.ID_INDEX );
|
||||
FIELD_INDEXES.put( FcMotivos.ID_FULL, FcMotivos.ID_INDEX );
|
||||
FIELD_INDEXES.put( FcMotivos.CREATED_STAMP, FcMotivos.CREATED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcMotivos.CREATED_STAMP_FULL, FcMotivos.CREATED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcMotivos.DELETED_STAMP, FcMotivos.DELETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcMotivos.DELETED_STAMP_FULL, FcMotivos.DELETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcMotivos.CODIGO, FcMotivos.CODIGO_INDEX );
|
||||
FIELD_INDEXES.put( FcMotivos.CODIGO_FULL, FcMotivos.CODIGO_INDEX );
|
||||
FIELD_INDEXES.put( FcMotivos.DESCRICAO, FcMotivos.DESCRICAO_INDEX );
|
||||
FIELD_INDEXES.put( FcMotivos.DESCRICAO_FULL, FcMotivos.DESCRICAO_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final String TABLENAME = "fc_motivos";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "shst.medicina.fichasclinicas.data.inner.fc_motivos";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "fc_motivos.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String CREATED_STAMP = "created_stamp";
|
||||
public static final String CREATED_STAMP_FULL = "fc_motivos.created_stamp";
|
||||
public static final int CREATED_STAMP_INDEX = 1;
|
||||
public static final String DELETED_STAMP = "deleted_stamp";
|
||||
public static final String DELETED_STAMP_FULL = "fc_motivos.deleted_stamp";
|
||||
public static final int DELETED_STAMP_INDEX = 2;
|
||||
public static final String CODIGO = "codigo";
|
||||
public static final String CODIGO_FULL = "fc_motivos.codigo";
|
||||
public static final int CODIGO_INDEX = 3;
|
||||
public static final String DESCRICAO = "descricao";
|
||||
public static final String DESCRICAO_FULL = "fc_motivos.descricao";
|
||||
public static final int DESCRICAO_INDEX = 4;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
CREATED_STAMP, DELETED_STAMP, CODIGO, DESCRICAO, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + CREATED_STAMP, TABLENAME + "." + DELETED_STAMP, TABLENAME + "." + CODIGO, TABLENAME + "." + DESCRICAO, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, CREATED_STAMP, DELETED_STAMP, CODIGO, DESCRICAO, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, CREATED_STAMP, DELETED_STAMP, CODIGO, DESCRICAO, };
|
||||
|
||||
private Integer id;
|
||||
private Timestamp created_stamp;
|
||||
private Timestamp deleted_stamp;
|
||||
private String codigo;
|
||||
private String descricao;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public FcMotivos()
|
||||
{
|
||||
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
|
||||
{
|
||||
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<shst.medicina.fichasclinicas.data.FcFichaData>fromFcFicha_motivo_id()
|
||||
{
|
||||
java.util.List<shst.medicina.fichasclinicas.data.FcFichaData> result = new java.util.LinkedList< shst.medicina.fichasclinicas.data.FcFichaData >();
|
||||
if ( getPrimaryKey() != null )
|
||||
{
|
||||
try
|
||||
{
|
||||
result = fromReference( shst.medicina.fichasclinicas.data.FcFichaData.class , getPrimaryKey().getMap().get("id"), "motivo_id" );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public Timestamp getCreated_stamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CREATED_STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.created_stamp;
|
||||
}
|
||||
|
||||
public void setCreated_stamp( Timestamp created_stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CREATED_STAMP, created_stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.created_stamp = created_stamp;
|
||||
LAZY_LOADED_OBJECTS.put( CREATED_STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Timestamp getDeleted_stamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DELETED_STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.deleted_stamp;
|
||||
}
|
||||
|
||||
public void setDeleted_stamp( Timestamp deleted_stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DELETED_STAMP, deleted_stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.deleted_stamp = deleted_stamp;
|
||||
LAZY_LOADED_OBJECTS.put( DELETED_STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getCodigo()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CODIGO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.codigo;
|
||||
}
|
||||
|
||||
public void setCodigo( String codigo )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CODIGO, codigo );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.codigo = codigo;
|
||||
LAZY_LOADED_OBJECTS.put( CODIGO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getDescricao()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DESCRICAO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.descricao;
|
||||
}
|
||||
|
||||
public void setDescricao( String descricao )
|
||||
{
|
||||
try
|
||||
{
|
||||
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 FcMotivos.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case FcMotivos.CREATED_STAMP_INDEX:
|
||||
value = getCreated_stamp();
|
||||
break;
|
||||
case FcMotivos.DELETED_STAMP_INDEX:
|
||||
value = getDeleted_stamp();
|
||||
break;
|
||||
case FcMotivos.CODIGO_INDEX:
|
||||
value = getCodigo();
|
||||
break;
|
||||
case FcMotivos.DESCRICAO_INDEX:
|
||||
value = getDescricao();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcMotivos.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case FcMotivos.CREATED_STAMP_INDEX:
|
||||
value = this.created_stamp;
|
||||
break;
|
||||
case FcMotivos.DELETED_STAMP_INDEX:
|
||||
value = this.deleted_stamp;
|
||||
break;
|
||||
case FcMotivos.CODIGO_INDEX:
|
||||
value = this.codigo;
|
||||
break;
|
||||
case FcMotivos.DESCRICAO_INDEX:
|
||||
value = this.descricao;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcMotivos.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case FcMotivos.CREATED_STAMP_INDEX:
|
||||
setCreated_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case FcMotivos.DELETED_STAMP_INDEX:
|
||||
setDeleted_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case FcMotivos.CODIGO_INDEX:
|
||||
setCodigo( ( String ) value );
|
||||
break;
|
||||
case FcMotivos.DESCRICAO_INDEX:
|
||||
setDescricao( ( String ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcMotivos.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case FcMotivos.CREATED_STAMP_INDEX:
|
||||
this.created_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case FcMotivos.DELETED_STAMP_INDEX:
|
||||
this.deleted_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case FcMotivos.CODIGO_INDEX:
|
||||
this.codigo = ( String ) value;
|
||||
break;
|
||||
case FcMotivos.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 FcMotivos.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case FcMotivos.CREATED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case FcMotivos.DELETED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case FcMotivos.CODIGO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case FcMotivos.DESCRICAO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : FcMotivos._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, FcMotivos.PK_FIELD_NAMES );
|
||||
Object idObject = array.get( row, col + 0 );
|
||||
try
|
||||
{
|
||||
primaryKey.set( 0, ( Integer ) idObject );
|
||||
setId( ( Integer ) idObject );
|
||||
}
|
||||
catch( ClassCastException ex )
|
||||
{
|
||||
if( idObject instanceof Number )
|
||||
{
|
||||
primaryKey.set( 0, ((Number)idObject).intValue() );
|
||||
setId( ((Number)idObject).intValue() );
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@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,442 @@
|
||||
/*
|
||||
* FcTipoFicha.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data.inner;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
|
||||
public class FcTipoFicha 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( FcTipoFicha.ID, FcTipoFicha.ID_INDEX );
|
||||
FIELD_INDEXES.put( FcTipoFicha.ID_FULL, FcTipoFicha.ID_INDEX );
|
||||
FIELD_INDEXES.put( FcTipoFicha.CREATED_STAMP, FcTipoFicha.CREATED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcTipoFicha.CREATED_STAMP_FULL, FcTipoFicha.CREATED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcTipoFicha.DELETED_STAMP, FcTipoFicha.DELETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcTipoFicha.DELETED_STAMP_FULL, FcTipoFicha.DELETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( FcTipoFicha.CODIGO, FcTipoFicha.CODIGO_INDEX );
|
||||
FIELD_INDEXES.put( FcTipoFicha.CODIGO_FULL, FcTipoFicha.CODIGO_INDEX );
|
||||
FIELD_INDEXES.put( FcTipoFicha.DESCRICAO, FcTipoFicha.DESCRICAO_INDEX );
|
||||
FIELD_INDEXES.put( FcTipoFicha.DESCRICAO_FULL, FcTipoFicha.DESCRICAO_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final String TABLENAME = "fc_tipo_ficha";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "shst.medicina.fichasclinicas.data.inner.fc_tipo_ficha";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "fc_tipo_ficha.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String CREATED_STAMP = "created_stamp";
|
||||
public static final String CREATED_STAMP_FULL = "fc_tipo_ficha.created_stamp";
|
||||
public static final int CREATED_STAMP_INDEX = 1;
|
||||
public static final String DELETED_STAMP = "deleted_stamp";
|
||||
public static final String DELETED_STAMP_FULL = "fc_tipo_ficha.deleted_stamp";
|
||||
public static final int DELETED_STAMP_INDEX = 2;
|
||||
public static final String CODIGO = "codigo";
|
||||
public static final String CODIGO_FULL = "fc_tipo_ficha.codigo";
|
||||
public static final int CODIGO_INDEX = 3;
|
||||
public static final String DESCRICAO = "descricao";
|
||||
public static final String DESCRICAO_FULL = "fc_tipo_ficha.descricao";
|
||||
public static final int DESCRICAO_INDEX = 4;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
CREATED_STAMP, DELETED_STAMP, CODIGO, DESCRICAO, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + CREATED_STAMP, TABLENAME + "." + DELETED_STAMP, TABLENAME + "." + CODIGO, TABLENAME + "." + DESCRICAO, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, CREATED_STAMP, DELETED_STAMP, CODIGO, DESCRICAO, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, CREATED_STAMP, DELETED_STAMP, CODIGO, DESCRICAO, };
|
||||
|
||||
private Integer id;
|
||||
private Timestamp created_stamp;
|
||||
private Timestamp deleted_stamp;
|
||||
private String codigo;
|
||||
private String descricao;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public FcTipoFicha()
|
||||
{
|
||||
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
|
||||
{
|
||||
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 Timestamp getCreated_stamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CREATED_STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.created_stamp;
|
||||
}
|
||||
|
||||
public void setCreated_stamp( Timestamp created_stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CREATED_STAMP, created_stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.created_stamp = created_stamp;
|
||||
LAZY_LOADED_OBJECTS.put( CREATED_STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Timestamp getDeleted_stamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DELETED_STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.deleted_stamp;
|
||||
}
|
||||
|
||||
public void setDeleted_stamp( Timestamp deleted_stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DELETED_STAMP, deleted_stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.deleted_stamp = deleted_stamp;
|
||||
LAZY_LOADED_OBJECTS.put( DELETED_STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getCodigo()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CODIGO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.codigo;
|
||||
}
|
||||
|
||||
public void setCodigo( String codigo )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CODIGO, codigo );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.codigo = codigo;
|
||||
LAZY_LOADED_OBJECTS.put( CODIGO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getDescricao()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DESCRICAO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.descricao;
|
||||
}
|
||||
|
||||
public void setDescricao( String descricao )
|
||||
{
|
||||
try
|
||||
{
|
||||
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 FcTipoFicha.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case FcTipoFicha.CREATED_STAMP_INDEX:
|
||||
value = getCreated_stamp();
|
||||
break;
|
||||
case FcTipoFicha.DELETED_STAMP_INDEX:
|
||||
value = getDeleted_stamp();
|
||||
break;
|
||||
case FcTipoFicha.CODIGO_INDEX:
|
||||
value = getCodigo();
|
||||
break;
|
||||
case FcTipoFicha.DESCRICAO_INDEX:
|
||||
value = getDescricao();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcTipoFicha.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case FcTipoFicha.CREATED_STAMP_INDEX:
|
||||
value = this.created_stamp;
|
||||
break;
|
||||
case FcTipoFicha.DELETED_STAMP_INDEX:
|
||||
value = this.deleted_stamp;
|
||||
break;
|
||||
case FcTipoFicha.CODIGO_INDEX:
|
||||
value = this.codigo;
|
||||
break;
|
||||
case FcTipoFicha.DESCRICAO_INDEX:
|
||||
value = this.descricao;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcTipoFicha.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case FcTipoFicha.CREATED_STAMP_INDEX:
|
||||
setCreated_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case FcTipoFicha.DELETED_STAMP_INDEX:
|
||||
setDeleted_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case FcTipoFicha.CODIGO_INDEX:
|
||||
setCodigo( ( String ) value );
|
||||
break;
|
||||
case FcTipoFicha.DESCRICAO_INDEX:
|
||||
setDescricao( ( String ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case FcTipoFicha.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case FcTipoFicha.CREATED_STAMP_INDEX:
|
||||
this.created_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case FcTipoFicha.DELETED_STAMP_INDEX:
|
||||
this.deleted_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case FcTipoFicha.CODIGO_INDEX:
|
||||
this.codigo = ( String ) value;
|
||||
break;
|
||||
case FcTipoFicha.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 FcTipoFicha.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case FcTipoFicha.CREATED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case FcTipoFicha.DELETED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case FcTipoFicha.CODIGO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case FcTipoFicha.DESCRICAO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : FcTipoFicha._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, FcTipoFicha.PK_FIELD_NAMES );
|
||||
Object idObject = array.get( row, col + 0 );
|
||||
try
|
||||
{
|
||||
primaryKey.set( 0, ( Integer ) idObject );
|
||||
setId( ( Integer ) idObject );
|
||||
}
|
||||
catch( ClassCastException ex )
|
||||
{
|
||||
if( idObject instanceof Number )
|
||||
{
|
||||
primaryKey.set( 0, ((Number)idObject).intValue() );
|
||||
setId( ((Number)idObject).intValue() );
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@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,459 @@
|
||||
/*
|
||||
* TrbEstadoCivil.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data.inner;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
|
||||
public class TrbEstadoCivil 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( TrbEstadoCivil.ID, TrbEstadoCivil.ID_INDEX );
|
||||
FIELD_INDEXES.put( TrbEstadoCivil.ID_FULL, TrbEstadoCivil.ID_INDEX );
|
||||
FIELD_INDEXES.put( TrbEstadoCivil.CREATED_STAMP, TrbEstadoCivil.CREATED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( TrbEstadoCivil.CREATED_STAMP_FULL, TrbEstadoCivil.CREATED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( TrbEstadoCivil.DELETED_STAMP, TrbEstadoCivil.DELETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( TrbEstadoCivil.DELETED_STAMP_FULL, TrbEstadoCivil.DELETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( TrbEstadoCivil.CODIGO, TrbEstadoCivil.CODIGO_INDEX );
|
||||
FIELD_INDEXES.put( TrbEstadoCivil.CODIGO_FULL, TrbEstadoCivil.CODIGO_INDEX );
|
||||
FIELD_INDEXES.put( TrbEstadoCivil.DESCRICAO, TrbEstadoCivil.DESCRICAO_INDEX );
|
||||
FIELD_INDEXES.put( TrbEstadoCivil.DESCRICAO_FULL, TrbEstadoCivil.DESCRICAO_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final String TABLENAME = "trb_estado_civil";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "shst.medicina.fichasclinicas.data.inner.trb_estado_civil";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "trb_estado_civil.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String CREATED_STAMP = "created_stamp";
|
||||
public static final String CREATED_STAMP_FULL = "trb_estado_civil.created_stamp";
|
||||
public static final int CREATED_STAMP_INDEX = 1;
|
||||
public static final String DELETED_STAMP = "deleted_stamp";
|
||||
public static final String DELETED_STAMP_FULL = "trb_estado_civil.deleted_stamp";
|
||||
public static final int DELETED_STAMP_INDEX = 2;
|
||||
public static final String CODIGO = "codigo";
|
||||
public static final String CODIGO_FULL = "trb_estado_civil.codigo";
|
||||
public static final int CODIGO_INDEX = 3;
|
||||
public static final String DESCRICAO = "descricao";
|
||||
public static final String DESCRICAO_FULL = "trb_estado_civil.descricao";
|
||||
public static final int DESCRICAO_INDEX = 4;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
CREATED_STAMP, DELETED_STAMP, CODIGO, DESCRICAO, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + CREATED_STAMP, TABLENAME + "." + DELETED_STAMP, TABLENAME + "." + CODIGO, TABLENAME + "." + DESCRICAO, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, CREATED_STAMP, DELETED_STAMP, CODIGO, DESCRICAO, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, CREATED_STAMP, DELETED_STAMP, CODIGO, DESCRICAO, };
|
||||
|
||||
private Integer id;
|
||||
private Timestamp created_stamp;
|
||||
private Timestamp deleted_stamp;
|
||||
private String codigo;
|
||||
private String descricao;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public TrbEstadoCivil()
|
||||
{
|
||||
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
|
||||
{
|
||||
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<shst.medicina.fichasclinicas.data.FcFichaData>fromFcFicha_trabalhador_estado_civil_id()
|
||||
{
|
||||
java.util.List<shst.medicina.fichasclinicas.data.FcFichaData> result = new java.util.LinkedList< shst.medicina.fichasclinicas.data.FcFichaData >();
|
||||
if ( getPrimaryKey() != null )
|
||||
{
|
||||
try
|
||||
{
|
||||
result = fromReference( shst.medicina.fichasclinicas.data.FcFichaData.class , getPrimaryKey().getMap().get("id"), "trabalhador_estado_civil_id" );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public Timestamp getCreated_stamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CREATED_STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.created_stamp;
|
||||
}
|
||||
|
||||
public void setCreated_stamp( Timestamp created_stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CREATED_STAMP, created_stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.created_stamp = created_stamp;
|
||||
LAZY_LOADED_OBJECTS.put( CREATED_STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Timestamp getDeleted_stamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DELETED_STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.deleted_stamp;
|
||||
}
|
||||
|
||||
public void setDeleted_stamp( Timestamp deleted_stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DELETED_STAMP, deleted_stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.deleted_stamp = deleted_stamp;
|
||||
LAZY_LOADED_OBJECTS.put( DELETED_STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getCodigo()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CODIGO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.codigo;
|
||||
}
|
||||
|
||||
public void setCodigo( String codigo )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CODIGO, codigo );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.codigo = codigo;
|
||||
LAZY_LOADED_OBJECTS.put( CODIGO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getDescricao()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DESCRICAO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.descricao;
|
||||
}
|
||||
|
||||
public void setDescricao( String descricao )
|
||||
{
|
||||
try
|
||||
{
|
||||
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 TrbEstadoCivil.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case TrbEstadoCivil.CREATED_STAMP_INDEX:
|
||||
value = getCreated_stamp();
|
||||
break;
|
||||
case TrbEstadoCivil.DELETED_STAMP_INDEX:
|
||||
value = getDeleted_stamp();
|
||||
break;
|
||||
case TrbEstadoCivil.CODIGO_INDEX:
|
||||
value = getCodigo();
|
||||
break;
|
||||
case TrbEstadoCivil.DESCRICAO_INDEX:
|
||||
value = getDescricao();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case TrbEstadoCivil.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case TrbEstadoCivil.CREATED_STAMP_INDEX:
|
||||
value = this.created_stamp;
|
||||
break;
|
||||
case TrbEstadoCivil.DELETED_STAMP_INDEX:
|
||||
value = this.deleted_stamp;
|
||||
break;
|
||||
case TrbEstadoCivil.CODIGO_INDEX:
|
||||
value = this.codigo;
|
||||
break;
|
||||
case TrbEstadoCivil.DESCRICAO_INDEX:
|
||||
value = this.descricao;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case TrbEstadoCivil.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case TrbEstadoCivil.CREATED_STAMP_INDEX:
|
||||
setCreated_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case TrbEstadoCivil.DELETED_STAMP_INDEX:
|
||||
setDeleted_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case TrbEstadoCivil.CODIGO_INDEX:
|
||||
setCodigo( ( String ) value );
|
||||
break;
|
||||
case TrbEstadoCivil.DESCRICAO_INDEX:
|
||||
setDescricao( ( String ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case TrbEstadoCivil.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case TrbEstadoCivil.CREATED_STAMP_INDEX:
|
||||
this.created_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case TrbEstadoCivil.DELETED_STAMP_INDEX:
|
||||
this.deleted_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case TrbEstadoCivil.CODIGO_INDEX:
|
||||
this.codigo = ( String ) value;
|
||||
break;
|
||||
case TrbEstadoCivil.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 TrbEstadoCivil.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case TrbEstadoCivil.CREATED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case TrbEstadoCivil.DELETED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case TrbEstadoCivil.CODIGO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case TrbEstadoCivil.DESCRICAO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : TrbEstadoCivil._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, TrbEstadoCivil.PK_FIELD_NAMES );
|
||||
Object idObject = array.get( row, col + 0 );
|
||||
try
|
||||
{
|
||||
primaryKey.set( 0, ( Integer ) idObject );
|
||||
setId( ( Integer ) idObject );
|
||||
}
|
||||
catch( ClassCastException ex )
|
||||
{
|
||||
if( idObject instanceof Number )
|
||||
{
|
||||
primaryKey.set( 0, ((Number)idObject).intValue() );
|
||||
setId( ((Number)idObject).intValue() );
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@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,508 @@
|
||||
/*
|
||||
* TrbHabilitacoes.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.EntityObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
* -> (can't touch this)
|
||||
*/
|
||||
package shst.medicina.fichasclinicas.data.inner;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
|
||||
public class TrbHabilitacoes 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( TrbHabilitacoes.ID, TrbHabilitacoes.ID_INDEX );
|
||||
FIELD_INDEXES.put( TrbHabilitacoes.ID_FULL, TrbHabilitacoes.ID_INDEX );
|
||||
FIELD_INDEXES.put( TrbHabilitacoes.CREATED_STAMP, TrbHabilitacoes.CREATED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( TrbHabilitacoes.CREATED_STAMP_FULL, TrbHabilitacoes.CREATED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( TrbHabilitacoes.DELETED_STAMP, TrbHabilitacoes.DELETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( TrbHabilitacoes.DELETED_STAMP_FULL, TrbHabilitacoes.DELETED_STAMP_INDEX );
|
||||
FIELD_INDEXES.put( TrbHabilitacoes.CODIGO, TrbHabilitacoes.CODIGO_INDEX );
|
||||
FIELD_INDEXES.put( TrbHabilitacoes.CODIGO_FULL, TrbHabilitacoes.CODIGO_INDEX );
|
||||
FIELD_INDEXES.put( TrbHabilitacoes.DESCRICAO, TrbHabilitacoes.DESCRICAO_INDEX );
|
||||
FIELD_INDEXES.put( TrbHabilitacoes.DESCRICAO_FULL, TrbHabilitacoes.DESCRICAO_INDEX );
|
||||
FIELD_INDEXES.put( TrbHabilitacoes.TEM_INFO_EXTRA, TrbHabilitacoes.TEM_INFO_EXTRA_INDEX );
|
||||
FIELD_INDEXES.put( TrbHabilitacoes.TEM_INFO_EXTRA_FULL, TrbHabilitacoes.TEM_INFO_EXTRA_INDEX );
|
||||
}
|
||||
|
||||
private final java.util.HashMap< String, Boolean > LAZY_LOADED_OBJECTS = new java.util.HashMap< String, Boolean >();
|
||||
|
||||
|
||||
public static final String TABLENAME = "trb_habilitacoes";
|
||||
|
||||
|
||||
public static final String CLASS_IDENTIFIER = "shst.medicina.fichasclinicas.data.inner.trb_habilitacoes";
|
||||
|
||||
public static final int _INVALID__INDEX = -1;
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "trb_habilitacoes.id";
|
||||
public static final int ID_INDEX = 0;
|
||||
public static final String CREATED_STAMP = "created_stamp";
|
||||
public static final String CREATED_STAMP_FULL = "trb_habilitacoes.created_stamp";
|
||||
public static final int CREATED_STAMP_INDEX = 1;
|
||||
public static final String DELETED_STAMP = "deleted_stamp";
|
||||
public static final String DELETED_STAMP_FULL = "trb_habilitacoes.deleted_stamp";
|
||||
public static final int DELETED_STAMP_INDEX = 2;
|
||||
public static final String CODIGO = "codigo";
|
||||
public static final String CODIGO_FULL = "trb_habilitacoes.codigo";
|
||||
public static final int CODIGO_INDEX = 3;
|
||||
public static final String DESCRICAO = "descricao";
|
||||
public static final String DESCRICAO_FULL = "trb_habilitacoes.descricao";
|
||||
public static final int DESCRICAO_INDEX = 4;
|
||||
public static final String TEM_INFO_EXTRA = "tem_info_extra";
|
||||
public static final String TEM_INFO_EXTRA_FULL = "trb_habilitacoes.tem_info_extra";
|
||||
public static final int TEM_INFO_EXTRA_INDEX = 5;
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
CREATED_STAMP, DELETED_STAMP, CODIGO, DESCRICAO, TEM_INFO_EXTRA, };
|
||||
|
||||
public static final String FIELD_NAMES_FULL[] = new String[]{
|
||||
TABLENAME + "." + CREATED_STAMP, TABLENAME + "." + DELETED_STAMP, TABLENAME + "." + CODIGO, TABLENAME + "." + DESCRICAO, TABLENAME + "." + TEM_INFO_EXTRA, };
|
||||
|
||||
protected static final String DB_FIELD_NAMES[] = new String[]{
|
||||
ID, CREATED_STAMP, DELETED_STAMP, CODIGO, DESCRICAO, TEM_INFO_EXTRA, };
|
||||
|
||||
|
||||
protected static final String PK_FIELD_NAMES[] = new String[]{
|
||||
ID, };
|
||||
|
||||
|
||||
public static final String DEFAULT_LOAD_SET[] = new String[] {
|
||||
ID, CREATED_STAMP, DELETED_STAMP, CODIGO, DESCRICAO, TEM_INFO_EXTRA, };
|
||||
|
||||
private Integer id;
|
||||
private Timestamp created_stamp;
|
||||
private Timestamp deleted_stamp;
|
||||
private String codigo;
|
||||
private String descricao;
|
||||
private Boolean tem_info_extra;
|
||||
|
||||
protected com.evolute.entity.utils.IntegerPrimaryKey primaryKey;
|
||||
|
||||
public TrbHabilitacoes()
|
||||
{
|
||||
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
|
||||
{
|
||||
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<shst.medicina.fichasclinicas.data.FcFichaData>fromFcFicha_trabalhador_habilitacoes_id()
|
||||
{
|
||||
java.util.List<shst.medicina.fichasclinicas.data.FcFichaData> result = new java.util.LinkedList< shst.medicina.fichasclinicas.data.FcFichaData >();
|
||||
if ( getPrimaryKey() != null )
|
||||
{
|
||||
try
|
||||
{
|
||||
result = fromReference( shst.medicina.fichasclinicas.data.FcFichaData.class , getPrimaryKey().getMap().get("id"), "trabalhador_habilitacoes_id" );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public Timestamp getCreated_stamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CREATED_STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.created_stamp;
|
||||
}
|
||||
|
||||
public void setCreated_stamp( Timestamp created_stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CREATED_STAMP, created_stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.created_stamp = created_stamp;
|
||||
LAZY_LOADED_OBJECTS.put( CREATED_STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Timestamp getDeleted_stamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DELETED_STAMP );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.deleted_stamp;
|
||||
}
|
||||
|
||||
public void setDeleted_stamp( Timestamp deleted_stamp )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( DELETED_STAMP, deleted_stamp );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.deleted_stamp = deleted_stamp;
|
||||
LAZY_LOADED_OBJECTS.put( DELETED_STAMP, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getCodigo()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( CODIGO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.codigo;
|
||||
}
|
||||
|
||||
public void setCodigo( String codigo )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( CODIGO, codigo );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.codigo = codigo;
|
||||
LAZY_LOADED_OBJECTS.put( CODIGO, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public String getDescricao()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( DESCRICAO );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.descricao;
|
||||
}
|
||||
|
||||
public void setDescricao( String descricao )
|
||||
{
|
||||
try
|
||||
{
|
||||
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 Boolean getTem_info_extra()
|
||||
{
|
||||
try
|
||||
{
|
||||
setLastAccess( System.currentTimeMillis() );
|
||||
prepare( TEM_INFO_EXTRA );
|
||||
}
|
||||
catch( java.lang.Exception ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
return this.tem_info_extra;
|
||||
}
|
||||
|
||||
public void setTem_info_extra( Boolean tem_info_extra )
|
||||
{
|
||||
try
|
||||
{
|
||||
preProcess( TEM_INFO_EXTRA, tem_info_extra );
|
||||
}
|
||||
catch( com.evolute.entity.evo.EvoDataException edex )
|
||||
{
|
||||
throw new RuntimeException( edex );
|
||||
}
|
||||
this.tem_info_extra = tem_info_extra;
|
||||
LAZY_LOADED_OBJECTS.put( TEM_INFO_EXTRA, Boolean.TRUE );
|
||||
}
|
||||
|
||||
public Object get( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case TrbHabilitacoes.ID_INDEX:
|
||||
value = getId();
|
||||
break;
|
||||
case TrbHabilitacoes.CREATED_STAMP_INDEX:
|
||||
value = getCreated_stamp();
|
||||
break;
|
||||
case TrbHabilitacoes.DELETED_STAMP_INDEX:
|
||||
value = getDeleted_stamp();
|
||||
break;
|
||||
case TrbHabilitacoes.CODIGO_INDEX:
|
||||
value = getCodigo();
|
||||
break;
|
||||
case TrbHabilitacoes.DESCRICAO_INDEX:
|
||||
value = getDescricao();
|
||||
break;
|
||||
case TrbHabilitacoes.TEM_INFO_EXTRA_INDEX:
|
||||
value = getTem_info_extra();
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object rawGet( String fieldName )
|
||||
{
|
||||
Object value = null;
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case TrbHabilitacoes.ID_INDEX:
|
||||
value = this.id;
|
||||
break;
|
||||
case TrbHabilitacoes.CREATED_STAMP_INDEX:
|
||||
value = this.created_stamp;
|
||||
break;
|
||||
case TrbHabilitacoes.DELETED_STAMP_INDEX:
|
||||
value = this.deleted_stamp;
|
||||
break;
|
||||
case TrbHabilitacoes.CODIGO_INDEX:
|
||||
value = this.codigo;
|
||||
break;
|
||||
case TrbHabilitacoes.DESCRICAO_INDEX:
|
||||
value = this.descricao;
|
||||
break;
|
||||
case TrbHabilitacoes.TEM_INFO_EXTRA_INDEX:
|
||||
value = this.tem_info_extra;
|
||||
break;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void set( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case TrbHabilitacoes.ID_INDEX:
|
||||
setId( ( Integer ) value );
|
||||
break;
|
||||
case TrbHabilitacoes.CREATED_STAMP_INDEX:
|
||||
setCreated_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case TrbHabilitacoes.DELETED_STAMP_INDEX:
|
||||
setDeleted_stamp( ( Timestamp ) value );
|
||||
break;
|
||||
case TrbHabilitacoes.CODIGO_INDEX:
|
||||
setCodigo( ( String ) value );
|
||||
break;
|
||||
case TrbHabilitacoes.DESCRICAO_INDEX:
|
||||
setDescricao( ( String ) value );
|
||||
break;
|
||||
case TrbHabilitacoes.TEM_INFO_EXTRA_INDEX:
|
||||
setTem_info_extra( ( Boolean ) value );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void rawSet( String fieldName, Object value )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
switch( index )
|
||||
{
|
||||
case TrbHabilitacoes.ID_INDEX:
|
||||
this.id = ( Integer ) value;
|
||||
break;
|
||||
case TrbHabilitacoes.CREATED_STAMP_INDEX:
|
||||
this.created_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case TrbHabilitacoes.DELETED_STAMP_INDEX:
|
||||
this.deleted_stamp = ( Timestamp ) value;
|
||||
break;
|
||||
case TrbHabilitacoes.CODIGO_INDEX:
|
||||
this.codigo = ( String ) value;
|
||||
break;
|
||||
case TrbHabilitacoes.DESCRICAO_INDEX:
|
||||
this.descricao = ( String ) value;
|
||||
break;
|
||||
case TrbHabilitacoes.TEM_INFO_EXTRA_INDEX:
|
||||
this.tem_info_extra = ( Boolean ) value;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getFieldNamesFull()
|
||||
{
|
||||
return FIELD_NAMES_FULL;
|
||||
}
|
||||
|
||||
public String []getDBFieldNames()
|
||||
{
|
||||
return DB_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getPrimaryKeyNames()
|
||||
{
|
||||
return PK_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public String []getDefaultLoadSet()
|
||||
{
|
||||
return DEFAULT_LOAD_SET;
|
||||
}
|
||||
|
||||
public String getPrimaryKeyName()
|
||||
{
|
||||
return PK_FIELD_NAMES[ 0 ];
|
||||
}
|
||||
|
||||
public Class<?> getFieldClass( String fieldName )
|
||||
{
|
||||
Integer index = getFieldIndex( fieldName );
|
||||
Class<?> theClass = null;
|
||||
switch( index )
|
||||
{
|
||||
case TrbHabilitacoes.ID_INDEX:
|
||||
theClass = Integer.class;
|
||||
break;
|
||||
case TrbHabilitacoes.CREATED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case TrbHabilitacoes.DELETED_STAMP_INDEX:
|
||||
theClass = Timestamp.class;
|
||||
break;
|
||||
case TrbHabilitacoes.CODIGO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case TrbHabilitacoes.DESCRICAO_INDEX:
|
||||
theClass = String.class;
|
||||
break;
|
||||
case TrbHabilitacoes.TEM_INFO_EXTRA_INDEX:
|
||||
theClass = Boolean.class;
|
||||
break;
|
||||
}
|
||||
return theClass;
|
||||
}
|
||||
|
||||
public Integer getFieldIndex( String fieldName )
|
||||
{
|
||||
Integer index = FIELD_INDEXES.get( fieldName );
|
||||
return index != null ? index : TrbHabilitacoes._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, TrbHabilitacoes.PK_FIELD_NAMES );
|
||||
Object idObject = array.get( row, col + 0 );
|
||||
try
|
||||
{
|
||||
primaryKey.set( 0, ( Integer ) idObject );
|
||||
setId( ( Integer ) idObject );
|
||||
}
|
||||
catch( ClassCastException ex )
|
||||
{
|
||||
if( idObject instanceof Number )
|
||||
{
|
||||
primaryKey.set( 0, ((Number)idObject).intValue() );
|
||||
setId( ((Number)idObject).intValue() );
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public com.evolute.entity.utils.IntegerPrimaryKey getPrimaryKey()
|
||||
{
|
||||
return primaryKey;
|
||||
}
|
||||
|
||||
public void initLazyLoadFields()
|
||||
{
|
||||
}
|
||||
|
||||
public boolean isPropertyLoaded( String fieldName )
|
||||
{
|
||||
if ( LAZY_LOADED_OBJECTS.get( fieldName ) == null )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return LAZY_LOADED_OBJECTS.get( fieldName );
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,25 @@
|
||||
package shst.medicina.fichasclinicas.provider;
|
||||
|
||||
public class FichasClinicasDataProvider
|
||||
{
|
||||
private static FichasClinicasDataProvider instance = null;
|
||||
private static final Object LOCK = new Object();
|
||||
|
||||
private FichasClinicasDataProvider()
|
||||
throws Exception
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public static FichasClinicasDataProvider getInstance()
|
||||
throws Exception
|
||||
{
|
||||
synchronized (LOCK) {
|
||||
if( instance == null )
|
||||
{
|
||||
instance = new FichasClinicasDataProvider();
|
||||
}
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in new issue