forked from Coded/SIPRP
git-svn-id: https://svn.coded.pt/svn/SIPRP@1119 bb69d46d-e84e-40c8-a05a-06db0d633741
parent
962f36039b
commit
dcdc6dc4b6
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="con" path="com.google.gwt.eclipse.core.GWT_CONTAINER"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="lib" path="lib/evolute.jar"/>
|
||||
<classpathentry kind="output" path="war/WEB-INF/classes"/>
|
||||
</classpath>
|
||||
@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>GestaoSHST</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>com.google.gwt.eclipse.core.gwtProjectValidator</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>com.google.gdt.eclipse.core.webAppProjectValidator</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
<nature>com.google.gwt.eclipse.core.gwtNature</nature>
|
||||
<nature>com.google.gdt.eclipse.core.webAppNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
@ -0,0 +1,3 @@
|
||||
#Fri Dec 11 10:46:39 WET 2009
|
||||
eclipse.preferences.version=1
|
||||
filesCopiedToWebInfLib=gwt-servlet.jar
|
||||
Binary file not shown.
@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module rename-to='gestaoshst'>
|
||||
<!-- Inherit the core Web Toolkit stuff. -->
|
||||
<inherits name='com.google.gwt.user.User'/>
|
||||
|
||||
<!-- Inherit the default GWT style sheet. You can change -->
|
||||
<!-- the theme of your GWT application by uncommenting -->
|
||||
<!-- any one of the following lines. -->
|
||||
<inherits name='com.google.gwt.user.theme.standard.Standard'/>
|
||||
<!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
|
||||
<!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> -->
|
||||
|
||||
<!-- Other module inherits -->
|
||||
|
||||
<!-- Specify the app entry point class. -->
|
||||
<entry-point class='com.evolute.siprp.client.GestaoSHST'/>
|
||||
|
||||
<!-- Specify the paths for translatable code -->
|
||||
<source path='client'/>
|
||||
|
||||
<stylesheet src="GestaoSHST.css" />
|
||||
</module>
|
||||
@ -0,0 +1,21 @@
|
||||
package com.evolute.siprp.client;
|
||||
|
||||
import com.evolute.siprp.client.panels.footer.FooterPanel;
|
||||
import com.evolute.siprp.client.panels.utils.NavigationConstants;
|
||||
import com.evolute.siprp.client.panels.utils.PageNavigation;
|
||||
import com.google.gwt.core.client.EntryPoint;
|
||||
import com.google.gwt.user.client.ui.RootPanel;
|
||||
|
||||
/**
|
||||
* Entry point classes define <code>onModuleLoad()</code>.
|
||||
*/
|
||||
public class GestaoSHST implements EntryPoint {
|
||||
|
||||
public void onModuleLoad()
|
||||
{
|
||||
PageNavigation.goPage( NavigationConstants.LOGIN_PANEL );
|
||||
|
||||
RootPanel.get( "footer" ).add( new FooterPanel() );
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,81 @@
|
||||
package com.evolute.siprp.client.panels.apps.AnaliseAcidentesTrabalho;
|
||||
|
||||
import com.evolute.siprp.client.panels.utils.AppConstants;
|
||||
import com.evolute.siprp.client.panels.utils.NavigationConstants;
|
||||
import com.evolute.siprp.client.panels.utils.PageNavigation;
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.event.dom.client.ClickEvent;
|
||||
import com.google.gwt.uibinder.client.UiBinder;
|
||||
import com.google.gwt.uibinder.client.UiField;
|
||||
import com.google.gwt.uibinder.client.UiHandler;
|
||||
import com.google.gwt.user.client.Window;
|
||||
import com.google.gwt.user.client.ui.Anchor;
|
||||
import com.google.gwt.user.client.ui.Composite;
|
||||
import com.google.gwt.user.client.ui.Image;
|
||||
import com.google.gwt.user.client.ui.InlineLabel;
|
||||
import com.google.gwt.user.client.ui.Widget;
|
||||
|
||||
public class AnaliseAcidentesTrabalhoPanel extends Composite
|
||||
{
|
||||
|
||||
private static AnaliseAcidentesTrabalhoPanelUiBinder uiBinder = GWT.create( AnaliseAcidentesTrabalhoPanelUiBinder.class );
|
||||
interface AnaliseAcidentesTrabalhoPanelUiBinder extends UiBinder< Widget, AnaliseAcidentesTrabalhoPanel > { }
|
||||
|
||||
|
||||
@UiField protected Image imgSiprp;
|
||||
@UiField protected Image imgAuchan;
|
||||
@UiField protected Anchor lnkSair;
|
||||
@UiField protected Anchor lnkPlanosActuacao;
|
||||
@UiField protected InlineLabel lblUsername;
|
||||
|
||||
@UiField protected Anchor lnkGerirUtilizadores;
|
||||
@UiField protected Anchor lnkAlterarDados;
|
||||
@UiField protected Anchor lnkAjuda;
|
||||
|
||||
|
||||
public AnaliseAcidentesTrabalhoPanel()
|
||||
{
|
||||
initWidget( uiBinder.createAndBindUi( this ) );
|
||||
|
||||
lblUsername.setText( "username" );
|
||||
lnkSair.setText( "sair>>" );
|
||||
|
||||
imgSiprp.setTitle( "SIPRP" );
|
||||
imgSiprp.setUrl( AppConstants.IMAGES_FOLDER + "SIPRP_logo_small.jpg" );
|
||||
imgAuchan.setTitle( "Auchan" );
|
||||
imgAuchan.setUrl( AppConstants.IMAGES_FOLDER + "logo_empresa32.jpg" );
|
||||
imgAuchan.setHeight( "40" );
|
||||
|
||||
lnkPlanosActuacao.setText( "planos actua\u00E7\u00E3o>>" );
|
||||
lnkGerirUtilizadores.setText( "gerir utilizadores" );
|
||||
lnkAlterarDados.setText( "alterar dados utilizador" );
|
||||
lnkAjuda.setText( "ajuda" );
|
||||
}
|
||||
|
||||
@UiHandler( {"lnkSair", "lnkPlanosActuacao", "lnkGerirUtilizadores", "lnkAlterarDados", "lnkAjuda" } )
|
||||
protected void onClick( ClickEvent e )
|
||||
{
|
||||
if ( e.getSource().equals( lnkSair ) )
|
||||
{
|
||||
//TODO: logout stuff
|
||||
PageNavigation.goPage( NavigationConstants.LOGIN_PANEL );
|
||||
}
|
||||
else if ( e.getSource().equals( lnkPlanosActuacao ) )
|
||||
{
|
||||
Window.alert( "planos actuacao..." );
|
||||
}
|
||||
else if ( e.getSource().equals( lnkGerirUtilizadores ) )
|
||||
{
|
||||
Window.alert( "gerir utilizadores" );
|
||||
}
|
||||
else if ( e.getSource().equals( lnkAlterarDados ) )
|
||||
{
|
||||
Window.alert( "alterar dados" );
|
||||
}
|
||||
else if ( e.getSource().equals( lnkAjuda ) )
|
||||
{
|
||||
Window.alert( "ajuda" );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,74 @@
|
||||
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
|
||||
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
|
||||
xmlns:g="urn:import:com.google.gwt.user.client.ui">
|
||||
<ui:style>
|
||||
|
||||
.headerDiv {
|
||||
width: 100%;
|
||||
margin-top: 75px;
|
||||
}
|
||||
|
||||
.headerTable {
|
||||
width: 100%;
|
||||
border-bottom: 1px solid #000000;
|
||||
}
|
||||
|
||||
.bodyDiv {
|
||||
margin-top: 10px;
|
||||
|
||||
width: 100%;
|
||||
border: 1px solid black;
|
||||
background-color: rgb( 238, 238, 238 );
|
||||
}
|
||||
.bodyDiv2 {
|
||||
margin-top: 65px;
|
||||
}
|
||||
|
||||
.lblUsername {
|
||||
margin-right: 30px;
|
||||
}
|
||||
|
||||
</ui:style>
|
||||
<g:HTMLPanel>
|
||||
|
||||
<div class="mainDiv">
|
||||
|
||||
<div class="{style.headerDiv}">
|
||||
<table class="{style.headerTable}">
|
||||
<tr>
|
||||
<td rowspan="2">
|
||||
<g:Image ui:field="imgSiprp" /> <g:Image ui:field="imgAuchan" />
|
||||
</td>
|
||||
<td class="alignRight"><g:Anchor ui:field="lnkPlanosActuacao" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="alignRight">
|
||||
<g:InlineLabel styleName="{style.lblUsername} lblBold" ui:field="lblUsername" />
|
||||
<g:Anchor ui:field="lnkGerirUtilizadores" />
|
||||
| <g:Anchor ui:field="lnkAlterarDados" />
|
||||
| <g:Anchor ui:field="lnkAjuda" />
|
||||
| <g:Anchor ui:field="lnkSair" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="{style.bodyDiv2} {style.bodyDiv}">
|
||||
|
||||
<div class="alignCenterText lblBold font18">Em seguimento</div>
|
||||
|
||||
table
|
||||
|
||||
</div>
|
||||
|
||||
<div class="{style.bodyDiv}">
|
||||
|
||||
<div class="alignCenterText lblBold font18">Conclu\u00EDdos</div>
|
||||
|
||||
table
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</g:HTMLPanel>
|
||||
</ui:UiBinder>
|
||||
@ -0,0 +1,69 @@
|
||||
package com.evolute.siprp.client.panels.apps;
|
||||
|
||||
import com.evolute.siprp.client.panels.utils.AppConstants;
|
||||
import com.evolute.siprp.client.panels.utils.NavigationConstants;
|
||||
import com.evolute.siprp.client.panels.utils.PageNavigation;
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.event.dom.client.ClickEvent;
|
||||
import com.google.gwt.uibinder.client.UiBinder;
|
||||
import com.google.gwt.uibinder.client.UiField;
|
||||
import com.google.gwt.uibinder.client.UiHandler;
|
||||
import com.google.gwt.user.client.Window;
|
||||
import com.google.gwt.user.client.ui.Anchor;
|
||||
import com.google.gwt.user.client.ui.Composite;
|
||||
import com.google.gwt.user.client.ui.Image;
|
||||
import com.google.gwt.user.client.ui.InlineLabel;
|
||||
import com.google.gwt.user.client.ui.Widget;
|
||||
|
||||
public class MainPanel extends Composite {
|
||||
|
||||
private static MainPanelUiBinder uiBinder = GWT.create( MainPanelUiBinder.class );
|
||||
interface MainPanelUiBinder extends UiBinder< Widget, MainPanel > { }
|
||||
|
||||
@UiField protected InlineLabel lblUsername;
|
||||
@UiField protected InlineLabel lblName;
|
||||
@UiField protected Anchor lnkSair;
|
||||
@UiField protected Anchor lnkAnaliseAcidentesTrabalho;
|
||||
@UiField protected Anchor lnkPlanosActuacao;
|
||||
@UiField protected Image imgSiprp;
|
||||
@UiField protected Image imgAuchan;
|
||||
|
||||
|
||||
public MainPanel()
|
||||
{
|
||||
initWidget( uiBinder.createAndBindUi( this ) );
|
||||
|
||||
lblUsername.setText( "username" );
|
||||
lnkSair.setText( "sair>>" );
|
||||
|
||||
imgSiprp.setTitle( "SIPRP" );
|
||||
imgSiprp.setUrl( AppConstants.IMAGES_FOLDER + "SIPRP_logo_small.jpg" );
|
||||
imgAuchan.setTitle( "Auchan" );
|
||||
imgAuchan.setUrl( AppConstants.IMAGES_FOLDER + "logo_empresa32.jpg" );
|
||||
imgAuchan.setHeight( "40" );
|
||||
|
||||
lblName.setText( "user name" );
|
||||
lnkAnaliseAcidentesTrabalho.setText( "An\u00E1lise de Acidentes de Trabalho" );
|
||||
lnkPlanosActuacao.setText( "Planos de Actua\u00E7\u00E3o" );
|
||||
}
|
||||
|
||||
|
||||
@UiHandler( {"lnkSair", "lnkAnaliseAcidentesTrabalho", "lnkPlanosActuacao"} )
|
||||
protected void onClick( ClickEvent e )
|
||||
{
|
||||
if ( e.getSource().equals( lnkSair ) )
|
||||
{
|
||||
PageNavigation.goPage( NavigationConstants.LOGIN_PANEL );
|
||||
}
|
||||
else if ( e.getSource().equals( lnkAnaliseAcidentesTrabalho ) )
|
||||
{
|
||||
PageNavigation.goPage( NavigationConstants.ANALISE_ACIDENTES_TRABALHO_PANEL );
|
||||
}
|
||||
else if ( e.getSource().equals( lnkPlanosActuacao ) )
|
||||
{
|
||||
//TODO:
|
||||
Window.alert( "TODO" );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,71 @@
|
||||
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
|
||||
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
|
||||
xmlns:g="urn:import:com.google.gwt.user.client.ui"
|
||||
>
|
||||
<ui:style>
|
||||
|
||||
.headerDiv {
|
||||
width: 100%;
|
||||
text-align: right;
|
||||
margin-top: 75px;
|
||||
}
|
||||
|
||||
.bodyDiv {
|
||||
margin-top: 75px;
|
||||
|
||||
width: 100%;
|
||||
border: 1px solid black;
|
||||
background-color: rgb( 238, 238, 238 );
|
||||
}
|
||||
|
||||
.logosDiv {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.welcomeDiv {
|
||||
margin-bottom: 50px;
|
||||
}
|
||||
|
||||
.linksDiv {
|
||||
margin-top: 50px;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.lblUsername {
|
||||
margin-right: 30px;
|
||||
}
|
||||
|
||||
</ui:style>
|
||||
<g:HTMLPanel>
|
||||
|
||||
<div class="mainDiv">
|
||||
|
||||
<div class="{style.headerDiv}">
|
||||
<g:InlineLabel ui:field="lblUsername" styleName="lblBold {style.lblUsername}" /> <g:Anchor ui:field="lnkSair" />
|
||||
</div>
|
||||
|
||||
<div class="{style.bodyDiv} alignCenterText">
|
||||
|
||||
<div class="{style.logosDiv}">
|
||||
<g:Image ui:field="imgSiprp" /> <g:Image ui:field="imgAuchan" />
|
||||
</div>
|
||||
|
||||
<div class="font14 {style.welcomeDiv}">
|
||||
Bem vindo(a) <g:InlineLabel styleName="font14" ui:field="lblName" />
|
||||
</div>
|
||||
|
||||
aceder a
|
||||
|
||||
<div class="{style.linksDiv}">
|
||||
<g:Anchor ui:field="lnkAnaliseAcidentesTrabalho" styleName="font16" />
|
||||
|
|
||||
<g:Anchor ui:field="lnkPlanosActuacao" styleName="font16" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</g:HTMLPanel>
|
||||
</ui:UiBinder>
|
||||
@ -0,0 +1,35 @@
|
||||
package com.evolute.siprp.client.panels.footer;
|
||||
|
||||
import com.evolute.siprp.client.panels.utils.AppConstants;
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.event.dom.client.ClickEvent;
|
||||
import com.google.gwt.uibinder.client.UiBinder;
|
||||
import com.google.gwt.uibinder.client.UiField;
|
||||
import com.google.gwt.uibinder.client.UiHandler;
|
||||
import com.google.gwt.user.client.Window;
|
||||
import com.google.gwt.user.client.ui.Composite;
|
||||
import com.google.gwt.user.client.ui.Image;
|
||||
import com.google.gwt.user.client.ui.Widget;
|
||||
|
||||
public class FooterPanel extends Composite {
|
||||
|
||||
private static FooterPanelUiBinder uiBinder = GWT.create( FooterPanelUiBinder.class );
|
||||
interface FooterPanelUiBinder extends UiBinder< Widget, FooterPanel > { }
|
||||
|
||||
@UiField protected Image image;
|
||||
|
||||
public FooterPanel()
|
||||
{
|
||||
initWidget( uiBinder.createAndBindUi( this ) );
|
||||
image.setUrl( AppConstants.IMAGES_FOLDER + "logo_evolute_small.png" );
|
||||
image.setTitle( "Evolute" );
|
||||
}
|
||||
|
||||
|
||||
@UiHandler( "image" )
|
||||
protected void onClick( ClickEvent e )
|
||||
{
|
||||
Window.Location.assign( "http://www.evolute.pt" );
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
|
||||
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
|
||||
xmlns:g="urn:import:com.google.gwt.user.client.ui">
|
||||
<ui:style>
|
||||
.footer {
|
||||
margin-top: 50px;
|
||||
text-align: center;
|
||||
}
|
||||
.borderBottom {
|
||||
border-bottom: 1px solid #FFFFFF;
|
||||
}
|
||||
</ui:style>
|
||||
<g:HTMLPanel>
|
||||
|
||||
<div class="{style.footer}">
|
||||
<span class="{style.borderBottom}">Software desenvolvido por <g:Image ui:field="image" /> © 2009</span>
|
||||
</div>
|
||||
|
||||
</g:HTMLPanel>
|
||||
</ui:UiBinder>
|
||||
@ -0,0 +1,122 @@
|
||||
package com.evolute.siprp.client.panels.index.login;
|
||||
|
||||
import com.evolute.siprp.client.panels.utils.CDialogBox;
|
||||
import com.evolute.siprp.client.panels.utils.NavigationConstants;
|
||||
import com.evolute.siprp.client.panels.utils.PageNavigation;
|
||||
import com.evolute.siprp.client.vo.Utilizador;
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.event.dom.client.ClickEvent;
|
||||
import com.google.gwt.event.dom.client.KeyCodes;
|
||||
import com.google.gwt.event.dom.client.KeyUpEvent;
|
||||
import com.google.gwt.uibinder.client.UiBinder;
|
||||
import com.google.gwt.uibinder.client.UiField;
|
||||
import com.google.gwt.uibinder.client.UiHandler;
|
||||
import com.google.gwt.user.client.Window;
|
||||
import com.google.gwt.user.client.rpc.AsyncCallback;
|
||||
import com.google.gwt.user.client.rpc.ServiceDefTarget;
|
||||
import com.google.gwt.user.client.ui.Anchor;
|
||||
import com.google.gwt.user.client.ui.Button;
|
||||
import com.google.gwt.user.client.ui.Composite;
|
||||
import com.google.gwt.user.client.ui.PasswordTextBox;
|
||||
import com.google.gwt.user.client.ui.TextBox;
|
||||
import com.google.gwt.user.client.ui.Widget;
|
||||
|
||||
public class LoginPanel extends Composite
|
||||
{
|
||||
|
||||
private static LoginPanelUiBinder uiBinder = GWT.create( LoginPanelUiBinder.class );
|
||||
interface LoginPanelUiBinder extends UiBinder< Widget, LoginPanel > { }
|
||||
|
||||
@UiField protected TextBox txtUsername;
|
||||
@UiField protected PasswordTextBox txtPassword;
|
||||
@UiField protected Anchor lnkRecoverPwd;
|
||||
@UiField protected Button btnLogin;
|
||||
|
||||
private LoginServiceAsync loginService;
|
||||
|
||||
|
||||
public LoginPanel()
|
||||
{
|
||||
initWidget( uiBinder.createAndBindUi( this ) );
|
||||
|
||||
this.loginService = ( LoginServiceAsync ) GWT.create( LoginService.class );
|
||||
ServiceDefTarget serviceDef = ( ServiceDefTarget ) this.loginService;
|
||||
serviceDef.setServiceEntryPoint( GWT.getModuleBaseURL() + "loginService" );
|
||||
|
||||
lnkRecoverPwd.setText( "Recuperar palavra-chave" );
|
||||
btnLogin.setText( "Entrar" );
|
||||
}
|
||||
|
||||
@UiHandler( {"btnLogin", "lnkRecoverPwd"} )
|
||||
protected void onClick( ClickEvent e )
|
||||
{
|
||||
if ( e.getSource().equals( btnLogin ) )
|
||||
{
|
||||
doLogin();
|
||||
}
|
||||
else if ( e.getSource().equals( lnkRecoverPwd ) )
|
||||
{
|
||||
gotoRecoverPwd();
|
||||
}
|
||||
}
|
||||
|
||||
@UiHandler( {"txtPassword", "txtUsername"} )
|
||||
protected void onKeyUp( KeyUpEvent e )
|
||||
{
|
||||
if ( e.getNativeKeyCode() == KeyCodes.KEY_ENTER )
|
||||
{
|
||||
doLogin();
|
||||
}
|
||||
}
|
||||
|
||||
private void doLogin()
|
||||
{
|
||||
String userName = txtUsername.getText().trim();
|
||||
String passwd = txtPassword.getText().trim();
|
||||
|
||||
if ( ! userName.equals( "" ) )
|
||||
{
|
||||
if ( ! passwd.equals( "" ) )
|
||||
{
|
||||
loginService.doLogin( txtUsername.getText(), txtPassword.getText(), new AsyncCallback< Utilizador >() {
|
||||
@Override
|
||||
public void onFailure( Throwable caught )
|
||||
{
|
||||
Window.alert( "Oops ! Unable to perform login." );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSuccess( Utilizador result )
|
||||
{
|
||||
if ( result == null )
|
||||
{
|
||||
CDialogBox box = new CDialogBox( "Dados inv\u00E1lidos", new String[] { "Utilizador e/ou palavra-chave incorrectos." } );
|
||||
box.center();
|
||||
}
|
||||
else
|
||||
{
|
||||
PageNavigation.goPage( NavigationConstants.APP_MAIN_PANEL );
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
CDialogBox box = new CDialogBox( "Erro ...", new String[] { "Tem de introduzir uma palavra-chave." } );
|
||||
box.center();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
CDialogBox box = new CDialogBox( "Erro ...", new String[] { "Tem de introduzir um nome de utilizador." } );
|
||||
box.center();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void gotoRecoverPwd()
|
||||
{
|
||||
PageNavigation.goPage( NavigationConstants.RECOVER_PWD_PANEL );
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,30 @@
|
||||
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
|
||||
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
|
||||
xmlns:g="urn:import:com.google.gwt.user.client.ui"
|
||||
>
|
||||
|
||||
<ui:style>
|
||||
|
||||
</ui:style>
|
||||
|
||||
<g:HTMLPanel>
|
||||
|
||||
<div class="indexDiv">
|
||||
<table class="indexTable alignCenter">
|
||||
<tr>
|
||||
<td><span class="lblBold alignLeft">Utilizador:</span></td>
|
||||
<td><g:TextBox styleName="inputBox alignRight" ui:field="txtUsername" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="lblBold alignLeft">Palavra-chave:</span></td>
|
||||
<td><g:PasswordTextBox styleName="inputBox alignRight" ui:field="txtPassword" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><g:Anchor styleName="alignLeft" ui:field="lnkRecoverPwd" /></td>
|
||||
<td><g:Button styleName="button alignRight" ui:field="btnLogin" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</g:HTMLPanel>
|
||||
</ui:UiBinder>
|
||||
@ -0,0 +1,9 @@
|
||||
package com.evolute.siprp.client.panels.index.login;
|
||||
|
||||
import com.evolute.siprp.client.vo.Utilizador;
|
||||
import com.google.gwt.user.client.rpc.RemoteService;
|
||||
|
||||
public interface LoginService extends RemoteService
|
||||
{
|
||||
public Utilizador doLogin( String username, String password );
|
||||
}
|
||||
@ -0,0 +1,9 @@
|
||||
package com.evolute.siprp.client.panels.index.login;
|
||||
|
||||
import com.evolute.siprp.client.vo.Utilizador;
|
||||
import com.google.gwt.user.client.rpc.AsyncCallback;
|
||||
|
||||
public interface LoginServiceAsync
|
||||
{
|
||||
public void doLogin( String username, String password, AsyncCallback< Utilizador > callback );
|
||||
}
|
||||
@ -0,0 +1,72 @@
|
||||
package com.evolute.siprp.client.panels.index.recover_pwd;
|
||||
|
||||
import com.evolute.siprp.client.panels.utils.NavigationConstants;
|
||||
import com.evolute.siprp.client.panels.utils.PageNavigation;
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.event.dom.client.ClickEvent;
|
||||
import com.google.gwt.uibinder.client.UiBinder;
|
||||
import com.google.gwt.uibinder.client.UiField;
|
||||
import com.google.gwt.uibinder.client.UiHandler;
|
||||
import com.google.gwt.user.client.Window;
|
||||
import com.google.gwt.user.client.rpc.AsyncCallback;
|
||||
import com.google.gwt.user.client.rpc.ServiceDefTarget;
|
||||
import com.google.gwt.user.client.ui.Button;
|
||||
import com.google.gwt.user.client.ui.Composite;
|
||||
import com.google.gwt.user.client.ui.TextBox;
|
||||
import com.google.gwt.user.client.ui.Widget;
|
||||
|
||||
public class RecoverPwdPanel extends Composite
|
||||
{
|
||||
|
||||
private static RecoverPwdPanelUiBinder uiBinder = GWT.create( RecoverPwdPanelUiBinder.class );
|
||||
interface RecoverPwdPanelUiBinder extends UiBinder< Widget, RecoverPwdPanel > { }
|
||||
|
||||
private RecoverServiceAsync recoverService;
|
||||
|
||||
@UiField protected Button btnOK;
|
||||
@UiField protected Button btnCancel;
|
||||
@UiField protected TextBox txtUsername;
|
||||
@UiField protected TextBox txtEmail;
|
||||
|
||||
|
||||
public RecoverPwdPanel()
|
||||
{
|
||||
initWidget( uiBinder.createAndBindUi( this ) );
|
||||
|
||||
this.recoverService = ( RecoverServiceAsync ) GWT.create( RecoverService.class );
|
||||
ServiceDefTarget serviceDef = ( ServiceDefTarget ) this.recoverService;
|
||||
serviceDef.setServiceEntryPoint( GWT.getModuleBaseURL() + "recoverService" );
|
||||
|
||||
btnOK.setText( "OK" );
|
||||
btnCancel.setText( "Cancelar" );
|
||||
}
|
||||
|
||||
@UiHandler( {"btnOK", "btnCancel"} )
|
||||
protected void onClick( ClickEvent e )
|
||||
{
|
||||
if ( e.getSource().equals( btnOK ) )
|
||||
{
|
||||
String userName = txtUsername.getText().trim();
|
||||
String eMail = txtEmail.getText().trim();
|
||||
|
||||
this.recoverService.recoverPWD( userName, eMail, new AsyncCallback< String >() {
|
||||
@Override
|
||||
public void onFailure( Throwable caught )
|
||||
{
|
||||
Window.alert( "Oops !" );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSuccess( String result )
|
||||
{
|
||||
Window.alert( result );
|
||||
}
|
||||
});
|
||||
}
|
||||
else if ( e.getSource().equals( btnCancel ) )
|
||||
{
|
||||
PageNavigation.goPage( NavigationConstants.LOGIN_PANEL );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
|
||||
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
|
||||
xmlns:g="urn:import:com.google.gwt.user.client.ui">
|
||||
|
||||
<ui:style>
|
||||
|
||||
</ui:style>
|
||||
|
||||
<g:HTMLPanel>
|
||||
|
||||
<div class="indexDiv">
|
||||
<table class="indexTable alignCenter">
|
||||
<tr>
|
||||
<td colspan="2" class="alignCenterText lblBold">Preencha os seguintes dados pessoais</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="lblBold alignLeft">Utilizador:</span></td>
|
||||
<td><g:TextBox styleName="inputBoxRec alignRight" ui:field="txtUsername" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="lblBold alignLeft">E-mail:</span></td>
|
||||
<td><g:PasswordTextBox styleName="inputBoxRec alignRight" ui:field="txtEmail" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<g:Button styleName="button alignRight" ui:field="btnOK" />
|
||||
<g:Button styleName="button alignRight" ui:field="btnCancel" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</g:HTMLPanel>
|
||||
</ui:UiBinder>
|
||||
@ -0,0 +1,8 @@
|
||||
package com.evolute.siprp.client.panels.index.recover_pwd;
|
||||
|
||||
import com.google.gwt.user.client.rpc.RemoteService;
|
||||
|
||||
public interface RecoverService extends RemoteService
|
||||
{
|
||||
public String recoverPWD( String username, String email );
|
||||
}
|
||||
@ -0,0 +1,8 @@
|
||||
package com.evolute.siprp.client.panels.index.recover_pwd;
|
||||
|
||||
import com.google.gwt.user.client.rpc.AsyncCallback;
|
||||
|
||||
public interface RecoverServiceAsync
|
||||
{
|
||||
public void recoverPWD( String username, String email, AsyncCallback< String > callback );
|
||||
}
|
||||
@ -0,0 +1,10 @@
|
||||
package com.evolute.siprp.client.panels.utils;
|
||||
|
||||
public interface AppConstants
|
||||
{
|
||||
|
||||
public final String IMAGES_FOLDER = "gestaoshst/images/";
|
||||
|
||||
public final String MAIN_DIV = "main";
|
||||
|
||||
}
|
||||
@ -0,0 +1,52 @@
|
||||
package com.evolute.siprp.client.panels.utils;
|
||||
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.event.dom.client.ClickEvent;
|
||||
import com.google.gwt.uibinder.client.UiBinder;
|
||||
import com.google.gwt.uibinder.client.UiFactory;
|
||||
import com.google.gwt.uibinder.client.UiField;
|
||||
import com.google.gwt.uibinder.client.UiHandler;
|
||||
import com.google.gwt.user.client.ui.Button;
|
||||
import com.google.gwt.user.client.ui.DialogBox;
|
||||
import com.google.gwt.user.client.ui.Widget;
|
||||
|
||||
public class CDialogBox extends DialogBox
|
||||
{
|
||||
|
||||
private static CDialogBoxUiBinder uiBinder = GWT.create( CDialogBoxUiBinder.class );
|
||||
interface CDialogBoxUiBinder extends UiBinder< Widget, CDialogBox > { }
|
||||
|
||||
@UiField Button btnClose;
|
||||
@UiField ErrorMsgs msgs;
|
||||
|
||||
private String[] errorMsgs;
|
||||
|
||||
public CDialogBox( String[] errorMsg )
|
||||
{
|
||||
this( "Erro ...", errorMsg );
|
||||
}
|
||||
|
||||
public CDialogBox( String title, String[] errorMsg )
|
||||
{
|
||||
this.errorMsgs = errorMsg;
|
||||
setWidget( uiBinder.createAndBindUi( this ) );
|
||||
|
||||
this.setText( title );
|
||||
btnClose.setText( "Fechar" );
|
||||
|
||||
this.setAnimationEnabled( true );
|
||||
this.setGlassEnabled( true );
|
||||
}
|
||||
|
||||
@UiFactory ErrorMsgs makeErrorMsgs()
|
||||
{
|
||||
return new ErrorMsgs( errorMsgs );
|
||||
}
|
||||
|
||||
@UiHandler( "btnClose" )
|
||||
void onClick( ClickEvent e )
|
||||
{
|
||||
this.hide();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,28 @@
|
||||
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
|
||||
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
|
||||
xmlns:g="urn:import:com.google.gwt.user.client.ui"
|
||||
xmlns:my="urn:import:com.evolute.siprp.client.panels.utils"
|
||||
>
|
||||
<ui:style>
|
||||
|
||||
.lblError {
|
||||
text-align: center;
|
||||
margin-top: 30px;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.btnClose {
|
||||
float: right;
|
||||
}
|
||||
</ui:style>
|
||||
<g:HTMLPanel>
|
||||
|
||||
<div class="{style.lblError}">
|
||||
<my:ErrorMsgs ui:field="msgs" />
|
||||
</div>
|
||||
<div class="{style.btnClose}">
|
||||
<g:Button ui:field="btnClose" />
|
||||
</div>
|
||||
|
||||
</g:HTMLPanel>
|
||||
</ui:UiBinder>
|
||||
@ -0,0 +1,29 @@
|
||||
package com.evolute.siprp.client.panels.utils;
|
||||
|
||||
import com.google.gwt.user.client.ui.Composite;
|
||||
import com.google.gwt.user.client.ui.HTML;
|
||||
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
|
||||
import com.google.gwt.user.client.ui.VerticalPanel;
|
||||
|
||||
public class ErrorMsgs extends Composite
|
||||
{
|
||||
private VerticalPanel panel;
|
||||
private HTML[] msgElems;
|
||||
|
||||
public ErrorMsgs( String[] msgs )
|
||||
{
|
||||
super();
|
||||
|
||||
this.panel = new VerticalPanel();
|
||||
this.msgElems = new HTML[ msgs.length ];
|
||||
for ( int i = 0; i < msgs.length; i++ )
|
||||
{
|
||||
this.msgElems[ i ] = new HTML( msgs[ i ] );
|
||||
this.panel.add( this.msgElems[ i ] );
|
||||
this.panel.setCellHorizontalAlignment( this.msgElems[ i ], HasHorizontalAlignment.ALIGN_LEFT );
|
||||
}
|
||||
|
||||
this.initWidget( this.panel );
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
package com.evolute.siprp.client.panels.utils;
|
||||
|
||||
public interface NavigationConstants
|
||||
{
|
||||
|
||||
public final int LOGIN_PANEL = 1;
|
||||
public final int RECOVER_PWD_PANEL = 2;
|
||||
public final int APP_MAIN_PANEL = 3;
|
||||
public final int ANALISE_ACIDENTES_TRABALHO_PANEL = 4;
|
||||
|
||||
}
|
||||
@ -0,0 +1,113 @@
|
||||
package com.evolute.siprp.client.panels.utils;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import com.evolute.siprp.client.panels.apps.MainPanel;
|
||||
import com.evolute.siprp.client.panels.apps.AnaliseAcidentesTrabalho.AnaliseAcidentesTrabalhoPanel;
|
||||
import com.evolute.siprp.client.panels.index.login.LoginPanel;
|
||||
import com.evolute.siprp.client.panels.index.recover_pwd.RecoverPwdPanel;
|
||||
import com.google.gwt.user.client.ui.Composite;
|
||||
import com.google.gwt.user.client.ui.RootPanel;
|
||||
|
||||
public class PageNavigation
|
||||
{
|
||||
private static PageNavigation instance = null;
|
||||
|
||||
private RootPanel mainPanel;
|
||||
private String containerID;
|
||||
|
||||
private Map< Integer, Object > panelsCache;
|
||||
|
||||
private PageNavigation( String id )
|
||||
{
|
||||
this.containerID = id;
|
||||
if ( id == null )
|
||||
{
|
||||
this.containerID = AppConstants.MAIN_DIV;
|
||||
}
|
||||
|
||||
mainPanel = RootPanel.get( this.containerID );
|
||||
panelsCache = new HashMap< Integer, Object >();
|
||||
}
|
||||
|
||||
public static PageNavigation getProvider()
|
||||
{
|
||||
return getProvider( null );
|
||||
}
|
||||
public static PageNavigation getProvider( String id )
|
||||
{
|
||||
if ( instance == null )
|
||||
{
|
||||
instance = new PageNavigation( id );
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
|
||||
public static void goPage( Composite newWindow )
|
||||
{
|
||||
PageNavigation.getProvider().gotoPage( newWindow );
|
||||
}
|
||||
|
||||
public static void goPage( Integer pageID )
|
||||
{
|
||||
PageNavigation.getProvider().gotoPage( pageID );
|
||||
}
|
||||
|
||||
public void gotoPage( Composite newWindow )
|
||||
{
|
||||
if ( newWindow != null )
|
||||
{
|
||||
mainPanel.clear();
|
||||
mainPanel.add( newWindow );
|
||||
}
|
||||
}
|
||||
|
||||
public void gotoPage( Integer pageID )
|
||||
{
|
||||
switch ( pageID.intValue() )
|
||||
{
|
||||
case NavigationConstants.LOGIN_PANEL:
|
||||
{
|
||||
if ( ! panelsCache.containsKey( NavigationConstants.LOGIN_PANEL ) )
|
||||
{
|
||||
panelsCache.put( NavigationConstants.LOGIN_PANEL, new LoginPanel() );
|
||||
}
|
||||
gotoPage( ( LoginPanel ) panelsCache.get( NavigationConstants.LOGIN_PANEL ) );
|
||||
break;
|
||||
}
|
||||
case NavigationConstants.RECOVER_PWD_PANEL:
|
||||
{
|
||||
if ( ! panelsCache.containsKey( NavigationConstants.RECOVER_PWD_PANEL ) )
|
||||
{
|
||||
panelsCache.put( NavigationConstants.RECOVER_PWD_PANEL, new RecoverPwdPanel() );
|
||||
}
|
||||
gotoPage( ( RecoverPwdPanel ) panelsCache.get( NavigationConstants.RECOVER_PWD_PANEL ) );
|
||||
break;
|
||||
}
|
||||
case NavigationConstants.APP_MAIN_PANEL:
|
||||
{
|
||||
if ( ! panelsCache.containsKey( NavigationConstants.APP_MAIN_PANEL ) )
|
||||
{
|
||||
panelsCache.put( NavigationConstants.APP_MAIN_PANEL, new MainPanel() );
|
||||
}
|
||||
gotoPage( ( MainPanel ) panelsCache.get( NavigationConstants.APP_MAIN_PANEL) );
|
||||
break;
|
||||
}
|
||||
case NavigationConstants.ANALISE_ACIDENTES_TRABALHO_PANEL:
|
||||
{
|
||||
if ( ! panelsCache.containsKey( NavigationConstants.ANALISE_ACIDENTES_TRABALHO_PANEL ) )
|
||||
{
|
||||
panelsCache.put( NavigationConstants.ANALISE_ACIDENTES_TRABALHO_PANEL, new AnaliseAcidentesTrabalhoPanel() );
|
||||
}
|
||||
gotoPage( ( AnaliseAcidentesTrabalhoPanel ) panelsCache.get( NavigationConstants.ANALISE_ACIDENTES_TRABALHO_PANEL ) );
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package com.evolute.siprp.client.vo;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class Utilizador implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = -5152657979121031157L;
|
||||
|
||||
private Integer userID;
|
||||
private String username;
|
||||
|
||||
public Utilizador()
|
||||
{
|
||||
this.userID = null;
|
||||
this.username = null;
|
||||
}
|
||||
|
||||
public Utilizador( Integer id, String uName )
|
||||
{
|
||||
this.userID = id;
|
||||
this.username = uName;
|
||||
}
|
||||
|
||||
public Integer getUserID() {
|
||||
return userID;
|
||||
}
|
||||
|
||||
public void setUserID(Integer userID) {
|
||||
this.userID = userID;
|
||||
}
|
||||
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,88 @@
|
||||
/** Add css rules here for your application. */
|
||||
|
||||
body {
|
||||
color: #000;
|
||||
background-color: #BBD400;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
body, th, td, p, div, span, input, button, select, textarea, form, b, strong, i, u, h1, h2, h3, h4, h5, h6, dl, dd, dt, ul, li, ol, option, optgroup, a {
|
||||
font-family: sans-serif;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
a, a:visited {
|
||||
color: #035899;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #035899;
|
||||
text-decoration: underline;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.alignCenterText {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.alignCenter {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
.alignLeft {
|
||||
float: left;
|
||||
}
|
||||
.alignRight {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.font12 {
|
||||
font-size: 12px;
|
||||
}
|
||||
.font14 {
|
||||
font-size: 14px;
|
||||
}
|
||||
.font16 {
|
||||
font-size: 16px;
|
||||
}
|
||||
.font18 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.indexTable {
|
||||
border: 1px solid #000000;
|
||||
width: 432px;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.lblBold {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.inputBox {
|
||||
width: 220px;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
.inputBoxRec {
|
||||
width: 432px;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
.button {
|
||||
width: 120px;
|
||||
height: 24px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.indexDiv {
|
||||
width: 100%;
|
||||
margin-top: 300px;
|
||||
}
|
||||
|
||||
.mainDiv {
|
||||
width: 80%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 53 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
@ -0,0 +1,46 @@
|
||||
package com.evolute.siprp.server.db;
|
||||
|
||||
import com.evolute.utils.Singleton;
|
||||
import com.evolute.utils.db.DBManager;
|
||||
import com.evolute.utils.db.JDBCManager;
|
||||
import com.evolute.utils.db.keyretrievers.PostgresqlAutoKeyRetriever;
|
||||
import com.evolute.utils.jdbc.DBStatementExecuter;
|
||||
import com.evolute.utils.jdbc.StatementExecuterFactory;
|
||||
import com.evolute.utils.jdo.JDOProvider;
|
||||
import com.evolute.utils.sql.Insert;
|
||||
import com.evolute.utils.sql.SQLQuery;
|
||||
import com.evolute.utils.strings.UnicodeChecker;
|
||||
|
||||
|
||||
public class InitDB
|
||||
{
|
||||
private static DBManager manager;
|
||||
private static JDOProvider jdoProvider;
|
||||
|
||||
private static String dbUsername = "postgres";
|
||||
private static String dbPassword = "Typein";
|
||||
private static String URL = "jdbc:postgresql://storage:5432/siprp";
|
||||
|
||||
public static void init() throws Exception
|
||||
{
|
||||
if ( manager == null && jdoProvider == null )
|
||||
{
|
||||
System.out.println( "Initializing db manager ..." );
|
||||
|
||||
DBManager manager = new JDBCManager( URL, dbUsername, dbPassword, 100, 80, 80, new SQLQuery[]{} );
|
||||
Singleton.setInstance( Singleton.DEFAULT_DBMANAGER, manager );
|
||||
Insert.setDefaultKeyRetriever( PostgresqlAutoKeyRetriever.RETRIEVER );
|
||||
StatementExecuterFactory.initialize( new DBStatementExecuter( manager.getSharedExecuter( InitDB.class ) ) );
|
||||
UnicodeChecker.setUseDoubleSlash( true );
|
||||
|
||||
initJDOConnection( dbUsername, dbPassword );
|
||||
}
|
||||
}
|
||||
|
||||
private static void initJDOConnection( String username, String password )
|
||||
{
|
||||
jdoProvider = JDOProviderFactory.createInstance( URL, username, password );
|
||||
Singleton.setInstance( Singleton.DEFAULT_JDO_PROVIDER, jdoProvider );
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,65 @@
|
||||
package com.evolute.siprp.server.db;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.Properties;
|
||||
|
||||
import com.evolute.utils.jdo.JDOProvider;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author jneto
|
||||
*/
|
||||
public abstract class JDOProviderFactory
|
||||
{
|
||||
public static JDOProvider createInstance(String url, String user, String password)
|
||||
{
|
||||
Date d = new Date();
|
||||
System.out.println("INIT: " + d);
|
||||
|
||||
Properties jpoxProps;
|
||||
jpoxProps = new Properties();
|
||||
jpoxProps.setProperty("javax.jdo.PersistenceManagerFactoryClass", "org.datanucleus.jdo.JDOPersistenceManagerFactory");
|
||||
jpoxProps.setProperty("javax.jdo.option.ConnectionDriverName", "org.postgresql.Driver");
|
||||
jpoxProps.setProperty("datanucleus.identifier.fullyQualifiedNames", "false");
|
||||
jpoxProps.setProperty("datanucleus.identifier.case", "PreserveCase");
|
||||
jpoxProps.setProperty("javax.jdo.option.ConnectionURL", url );
|
||||
jpoxProps.setProperty("javax.jdo.option.ConnectionUserName", user);
|
||||
jpoxProps.setProperty("javax.jdo.option.ConnectionPassword", password);
|
||||
jpoxProps.setProperty("javax.jdo.option.IgnoreCache", "false");
|
||||
jpoxProps.setProperty("javax.jdo.option.NontransactionalRead", "true");
|
||||
jpoxProps.setProperty("javax.jdo.option.RetainValues", "true");
|
||||
jpoxProps.setProperty("datanucleus.autoCreateTables", "false");
|
||||
jpoxProps.setProperty("datanucleus.autoCreateSchema", "false");
|
||||
jpoxProps.setProperty("datanucleus.autoCreateConstraints", "false");
|
||||
jpoxProps.setProperty("datanucleus.autoCreateColumns", "false");
|
||||
jpoxProps.setProperty("datanucleus.validateTables", "false");
|
||||
jpoxProps.setProperty("datanucleus.validateColumns", "false");
|
||||
jpoxProps.setProperty("datanucleus.validateConstraints", "false");
|
||||
jpoxProps.setProperty("datanucleus.rdbms.CheckExistTablesOrViews", "false");
|
||||
jpoxProps.setProperty("datanucleus.rdbms.initializeColumnInfo", "None");
|
||||
// jpoxProps.setProperty("datanucleus.fixedDatastore", "true");
|
||||
jpoxProps.setProperty("datanucleus.identifier.defaultSchemaName", "public");
|
||||
jpoxProps.setProperty("datanucleus.autoStartMechanismMode", "Ignored");
|
||||
jpoxProps.setProperty("datanucleus.autoStartMechanism", "None");
|
||||
jpoxProps.setProperty("datanucleus.poid.transactionAttribute", "UsePM");
|
||||
jpoxProps.setProperty("datanucleus.connectionPoolingType", "C3P0");
|
||||
jpoxProps.setProperty("datanucleus.connectionPool.maxPoolSize", "5");
|
||||
jpoxProps.setProperty("datanucleus.connectionPool.minPoolSize", "1");
|
||||
jpoxProps.setProperty("datanucleus.connectionPool.initialPoolSize", "1");
|
||||
jpoxProps.setProperty("datanucleus.catalogName", "siprp");
|
||||
|
||||
// System.setProperty( "datanucleus.schemaName", "public" );
|
||||
// PersistenceManagerFactory pmf =
|
||||
// JDOHelper.getPersistenceManagerFactory( jpoxProps );
|
||||
// // pmf.setOptimistic( true );
|
||||
// System.out.print( "Loading PM: " + new Date() );
|
||||
// // ( ( PersistenceManagerFactoryImpl )pmf ).setTransactionIsolation(
|
||||
// Connection.TRANSACTION_READ_UNCOMMITTED );
|
||||
// // Retrieve a PersistenceManager from the PersistenceManagerFactory.
|
||||
// PersistenceManager pm = pmf.getPersistenceManager();
|
||||
// JDOObject.setPersistentManager( pm );
|
||||
// System.out.println( "PM done " + new Date() );
|
||||
JDOProvider defaultProvider = new JDOProvider( jpoxProps );
|
||||
return defaultProvider;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,507 @@
|
||||
/*
|
||||
* Acidentados.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
|
||||
public final class Acidentados implements JDOInnerObject
|
||||
{
|
||||
private Integer id;
|
||||
private String nome;
|
||||
private java.util.Date data_nascimento;
|
||||
private String bilhete_identidade;
|
||||
private String morada;
|
||||
private String cod_postal;
|
||||
private String localidade;
|
||||
private String contacto_telefonico;
|
||||
private java.util.Date data_admissao;
|
||||
private String funcao;
|
||||
private Integer trabalhador_id;
|
||||
private String turno;
|
||||
private String numero_mecanografico;
|
||||
private String nome_superior_hierarquico;
|
||||
private String email_superior_hierarquico;
|
||||
private String estabelecimento_origem;
|
||||
private java.util.Date data_email_superior_hierarquico;
|
||||
|
||||
public Acidentados()
|
||||
{
|
||||
}
|
||||
|
||||
public Object getField( String fieldName )
|
||||
{
|
||||
if( fieldName == AcidentadosDataAuto.ID )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName == AcidentadosDataAuto.NOME )
|
||||
{
|
||||
return nome;
|
||||
}
|
||||
else if( fieldName == AcidentadosDataAuto.DATA_NASCIMENTO )
|
||||
{
|
||||
return data_nascimento;
|
||||
}
|
||||
else if( fieldName == AcidentadosDataAuto.BILHETE_IDENTIDADE )
|
||||
{
|
||||
return bilhete_identidade;
|
||||
}
|
||||
else if( fieldName == AcidentadosDataAuto.MORADA )
|
||||
{
|
||||
return morada;
|
||||
}
|
||||
else if( fieldName == AcidentadosDataAuto.COD_POSTAL )
|
||||
{
|
||||
return cod_postal;
|
||||
}
|
||||
else if( fieldName == AcidentadosDataAuto.LOCALIDADE )
|
||||
{
|
||||
return localidade;
|
||||
}
|
||||
else if( fieldName == AcidentadosDataAuto.CONTACTO_TELEFONICO )
|
||||
{
|
||||
return contacto_telefonico;
|
||||
}
|
||||
else if( fieldName == AcidentadosDataAuto.DATA_ADMISSAO )
|
||||
{
|
||||
return data_admissao;
|
||||
}
|
||||
else if( fieldName == AcidentadosDataAuto.FUNCAO )
|
||||
{
|
||||
return funcao;
|
||||
}
|
||||
else if( fieldName == AcidentadosDataAuto.TRABALHADOR_ID )
|
||||
{
|
||||
return trabalhador_id;
|
||||
}
|
||||
else if( fieldName == AcidentadosDataAuto.TURNO )
|
||||
{
|
||||
return turno;
|
||||
}
|
||||
else if( fieldName == AcidentadosDataAuto.NUMERO_MECANOGRAFICO )
|
||||
{
|
||||
return numero_mecanografico;
|
||||
}
|
||||
else if( fieldName == AcidentadosDataAuto.NOME_SUPERIOR_HIERARQUICO )
|
||||
{
|
||||
return nome_superior_hierarquico;
|
||||
}
|
||||
else if( fieldName == AcidentadosDataAuto.EMAIL_SUPERIOR_HIERARQUICO )
|
||||
{
|
||||
return email_superior_hierarquico;
|
||||
}
|
||||
else if( fieldName == AcidentadosDataAuto.ESTABELECIMENTO_ORIGEM )
|
||||
{
|
||||
return estabelecimento_origem;
|
||||
}
|
||||
else if( fieldName == AcidentadosDataAuto.DATA_EMAIL_SUPERIOR_HIERARQUICO )
|
||||
{
|
||||
return data_email_superior_hierarquico;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.ID ) )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.NOME ) )
|
||||
{
|
||||
return nome;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.DATA_NASCIMENTO ) )
|
||||
{
|
||||
return data_nascimento;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.BILHETE_IDENTIDADE ) )
|
||||
{
|
||||
return bilhete_identidade;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.MORADA ) )
|
||||
{
|
||||
return morada;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.COD_POSTAL ) )
|
||||
{
|
||||
return cod_postal;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.LOCALIDADE ) )
|
||||
{
|
||||
return localidade;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.CONTACTO_TELEFONICO ) )
|
||||
{
|
||||
return contacto_telefonico;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.DATA_ADMISSAO ) )
|
||||
{
|
||||
return data_admissao;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.FUNCAO ) )
|
||||
{
|
||||
return funcao;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.TRABALHADOR_ID ) )
|
||||
{
|
||||
return trabalhador_id;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.TURNO ) )
|
||||
{
|
||||
return turno;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.NUMERO_MECANOGRAFICO ) )
|
||||
{
|
||||
return numero_mecanografico;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.NOME_SUPERIOR_HIERARQUICO ) )
|
||||
{
|
||||
return nome_superior_hierarquico;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.EMAIL_SUPERIOR_HIERARQUICO ) )
|
||||
{
|
||||
return email_superior_hierarquico;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.ESTABELECIMENTO_ORIGEM ) )
|
||||
{
|
||||
return estabelecimento_origem;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.DATA_EMAIL_SUPERIOR_HIERARQUICO ) )
|
||||
{
|
||||
return data_email_superior_hierarquico;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setField( String fieldName, Object value )
|
||||
{
|
||||
if( fieldName == AcidentadosDataAuto.ID )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == AcidentadosDataAuto.NOME )
|
||||
{
|
||||
nome = ( String ) value;
|
||||
}
|
||||
else if( fieldName == AcidentadosDataAuto.DATA_NASCIMENTO )
|
||||
{
|
||||
data_nascimento = ( java.util.Date ) value;
|
||||
}
|
||||
else if( fieldName == AcidentadosDataAuto.BILHETE_IDENTIDADE )
|
||||
{
|
||||
bilhete_identidade = ( String ) value;
|
||||
}
|
||||
else if( fieldName == AcidentadosDataAuto.MORADA )
|
||||
{
|
||||
morada = ( String ) value;
|
||||
}
|
||||
else if( fieldName == AcidentadosDataAuto.COD_POSTAL )
|
||||
{
|
||||
cod_postal = ( String ) value;
|
||||
}
|
||||
else if( fieldName == AcidentadosDataAuto.LOCALIDADE )
|
||||
{
|
||||
localidade = ( String ) value;
|
||||
}
|
||||
else if( fieldName == AcidentadosDataAuto.CONTACTO_TELEFONICO )
|
||||
{
|
||||
contacto_telefonico = ( String ) value;
|
||||
}
|
||||
else if( fieldName == AcidentadosDataAuto.DATA_ADMISSAO )
|
||||
{
|
||||
data_admissao = ( java.util.Date ) value;
|
||||
}
|
||||
else if( fieldName == AcidentadosDataAuto.FUNCAO )
|
||||
{
|
||||
funcao = ( String ) value;
|
||||
}
|
||||
else if( fieldName == AcidentadosDataAuto.TRABALHADOR_ID )
|
||||
{
|
||||
trabalhador_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == AcidentadosDataAuto.TURNO )
|
||||
{
|
||||
turno = ( String ) value;
|
||||
}
|
||||
else if( fieldName == AcidentadosDataAuto.NUMERO_MECANOGRAFICO )
|
||||
{
|
||||
numero_mecanografico = ( String ) value;
|
||||
}
|
||||
else if( fieldName == AcidentadosDataAuto.NOME_SUPERIOR_HIERARQUICO )
|
||||
{
|
||||
nome_superior_hierarquico = ( String ) value;
|
||||
}
|
||||
else if( fieldName == AcidentadosDataAuto.EMAIL_SUPERIOR_HIERARQUICO )
|
||||
{
|
||||
email_superior_hierarquico = ( String ) value;
|
||||
}
|
||||
else if( fieldName == AcidentadosDataAuto.ESTABELECIMENTO_ORIGEM )
|
||||
{
|
||||
estabelecimento_origem = ( String ) value;
|
||||
}
|
||||
else if( fieldName == AcidentadosDataAuto.DATA_EMAIL_SUPERIOR_HIERARQUICO )
|
||||
{
|
||||
data_email_superior_hierarquico = ( java.util.Date ) value;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.ID ) )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.NOME ) )
|
||||
{
|
||||
nome = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.DATA_NASCIMENTO ) )
|
||||
{
|
||||
data_nascimento = ( java.util.Date ) value;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.BILHETE_IDENTIDADE ) )
|
||||
{
|
||||
bilhete_identidade = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.MORADA ) )
|
||||
{
|
||||
morada = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.COD_POSTAL ) )
|
||||
{
|
||||
cod_postal = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.LOCALIDADE ) )
|
||||
{
|
||||
localidade = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.CONTACTO_TELEFONICO ) )
|
||||
{
|
||||
contacto_telefonico = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.DATA_ADMISSAO ) )
|
||||
{
|
||||
data_admissao = ( java.util.Date ) value;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.FUNCAO ) )
|
||||
{
|
||||
funcao = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.TRABALHADOR_ID ) )
|
||||
{
|
||||
trabalhador_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.TURNO ) )
|
||||
{
|
||||
turno = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.NUMERO_MECANOGRAFICO ) )
|
||||
{
|
||||
numero_mecanografico = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.NOME_SUPERIOR_HIERARQUICO ) )
|
||||
{
|
||||
nome_superior_hierarquico = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.EMAIL_SUPERIOR_HIERARQUICO ) )
|
||||
{
|
||||
email_superior_hierarquico = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.ESTABELECIMENTO_ORIGEM ) )
|
||||
{
|
||||
estabelecimento_origem = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( AcidentadosDataAuto.DATA_EMAIL_SUPERIOR_HIERARQUICO ) )
|
||||
{
|
||||
data_email_superior_hierarquico = ( java.util.Date ) value;
|
||||
}
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.id = idValue;
|
||||
}
|
||||
|
||||
public String getNome()
|
||||
{
|
||||
return nome;
|
||||
}
|
||||
|
||||
public void setNome(String nomeValue )
|
||||
{
|
||||
this.nome = nomeValue;
|
||||
}
|
||||
|
||||
public java.util.Date getData_nascimento()
|
||||
{
|
||||
return data_nascimento;
|
||||
}
|
||||
|
||||
public void setData_nascimento(java.util.Date data_nascimentoValue )
|
||||
{
|
||||
this.data_nascimento = data_nascimentoValue;
|
||||
}
|
||||
|
||||
public String getBilhete_identidade()
|
||||
{
|
||||
return bilhete_identidade;
|
||||
}
|
||||
|
||||
public void setBilhete_identidade(String bilhete_identidadeValue )
|
||||
{
|
||||
this.bilhete_identidade = bilhete_identidadeValue;
|
||||
}
|
||||
|
||||
public String getMorada()
|
||||
{
|
||||
return morada;
|
||||
}
|
||||
|
||||
public void setMorada(String moradaValue )
|
||||
{
|
||||
this.morada = moradaValue;
|
||||
}
|
||||
|
||||
public String getCod_postal()
|
||||
{
|
||||
return cod_postal;
|
||||
}
|
||||
|
||||
public void setCod_postal(String cod_postalValue )
|
||||
{
|
||||
this.cod_postal = cod_postalValue;
|
||||
}
|
||||
|
||||
public String getLocalidade()
|
||||
{
|
||||
return localidade;
|
||||
}
|
||||
|
||||
public void setLocalidade(String localidadeValue )
|
||||
{
|
||||
this.localidade = localidadeValue;
|
||||
}
|
||||
|
||||
public String getContacto_telefonico()
|
||||
{
|
||||
return contacto_telefonico;
|
||||
}
|
||||
|
||||
public void setContacto_telefonico(String contacto_telefonicoValue )
|
||||
{
|
||||
this.contacto_telefonico = contacto_telefonicoValue;
|
||||
}
|
||||
|
||||
public java.util.Date getData_admissao()
|
||||
{
|
||||
return data_admissao;
|
||||
}
|
||||
|
||||
public void setData_admissao(java.util.Date data_admissaoValue )
|
||||
{
|
||||
this.data_admissao = data_admissaoValue;
|
||||
}
|
||||
|
||||
public String getFuncao()
|
||||
{
|
||||
return funcao;
|
||||
}
|
||||
|
||||
public void setFuncao(String funcaoValue )
|
||||
{
|
||||
this.funcao = funcaoValue;
|
||||
}
|
||||
|
||||
public Integer getTrabalhador_id()
|
||||
{
|
||||
return trabalhador_id;
|
||||
}
|
||||
|
||||
public void setTrabalhador_id(Integer trabalhador_idValue )
|
||||
{
|
||||
this.trabalhador_id = trabalhador_idValue;
|
||||
}
|
||||
|
||||
public String getTurno()
|
||||
{
|
||||
return turno;
|
||||
}
|
||||
|
||||
public void setTurno(String turnoValue )
|
||||
{
|
||||
this.turno = turnoValue;
|
||||
}
|
||||
|
||||
public String getNumero_mecanografico()
|
||||
{
|
||||
return numero_mecanografico;
|
||||
}
|
||||
|
||||
public void setNumero_mecanografico(String numero_mecanograficoValue )
|
||||
{
|
||||
this.numero_mecanografico = numero_mecanograficoValue;
|
||||
}
|
||||
|
||||
public String getNome_superior_hierarquico()
|
||||
{
|
||||
return nome_superior_hierarquico;
|
||||
}
|
||||
|
||||
public void setNome_superior_hierarquico(String nome_superior_hierarquicoValue )
|
||||
{
|
||||
this.nome_superior_hierarquico = nome_superior_hierarquicoValue;
|
||||
}
|
||||
|
||||
public String getEmail_superior_hierarquico()
|
||||
{
|
||||
return email_superior_hierarquico;
|
||||
}
|
||||
|
||||
public void setEmail_superior_hierarquico(String email_superior_hierarquicoValue )
|
||||
{
|
||||
this.email_superior_hierarquico = email_superior_hierarquicoValue;
|
||||
}
|
||||
|
||||
public String getEstabelecimento_origem()
|
||||
{
|
||||
return estabelecimento_origem;
|
||||
}
|
||||
|
||||
public void setEstabelecimento_origem(String estabelecimento_origemValue )
|
||||
{
|
||||
this.estabelecimento_origem = estabelecimento_origemValue;
|
||||
}
|
||||
|
||||
public java.util.Date getData_email_superior_hierarquico()
|
||||
{
|
||||
return data_email_superior_hierarquico;
|
||||
}
|
||||
|
||||
public void setData_email_superior_hierarquico(java.util.Date data_email_superior_hierarquicoValue )
|
||||
{
|
||||
this.data_email_superior_hierarquico = data_email_superior_hierarquicoValue;
|
||||
}
|
||||
|
||||
public Class<AcidentadosDataAuto> getOuterClass()
|
||||
{
|
||||
return AcidentadosDataAuto.class;
|
||||
}
|
||||
|
||||
public AcidentadosDataAuto getOuterClassInstance()
|
||||
{
|
||||
AcidentadosDataAuto outerObj = new AcidentadosDataAuto();
|
||||
outerObj.setInnerObject(this);
|
||||
return outerObj;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* AcidentadosDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
|
||||
public final class AcidentadosData extends com.evolute.siprp.server.db.data.siprp.AcidentadosDataAuto
|
||||
{
|
||||
|
||||
public AcidentadosData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,283 @@
|
||||
/*
|
||||
* AcidentadosDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
class AcidentadosDataAuto extends JDOObject
|
||||
{
|
||||
|
||||
public static final String TABLENAME = "acidentados";
|
||||
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "acidentados.id";
|
||||
public static final String NOME = "nome";
|
||||
public static final String NOME_FULL = "acidentados.nome";
|
||||
public static final String DATA_NASCIMENTO = "data_nascimento";
|
||||
public static final String DATA_NASCIMENTO_FULL = "acidentados.data_nascimento";
|
||||
public static final String BILHETE_IDENTIDADE = "bilhete_identidade";
|
||||
public static final String BILHETE_IDENTIDADE_FULL = "acidentados.bilhete_identidade";
|
||||
public static final String MORADA = "morada";
|
||||
public static final String MORADA_FULL = "acidentados.morada";
|
||||
public static final String COD_POSTAL = "cod_postal";
|
||||
public static final String COD_POSTAL_FULL = "acidentados.cod_postal";
|
||||
public static final String LOCALIDADE = "localidade";
|
||||
public static final String LOCALIDADE_FULL = "acidentados.localidade";
|
||||
public static final String CONTACTO_TELEFONICO = "contacto_telefonico";
|
||||
public static final String CONTACTO_TELEFONICO_FULL = "acidentados.contacto_telefonico";
|
||||
public static final String DATA_ADMISSAO = "data_admissao";
|
||||
public static final String DATA_ADMISSAO_FULL = "acidentados.data_admissao";
|
||||
public static final String FUNCAO = "funcao";
|
||||
public static final String FUNCAO_FULL = "acidentados.funcao";
|
||||
public static final String TRABALHADOR_ID = "trabalhador_id";
|
||||
public static final String TRABALHADOR_ID_FULL = "acidentados.trabalhador_id";
|
||||
public static final String TURNO = "turno";
|
||||
public static final String TURNO_FULL = "acidentados.turno";
|
||||
public static final String NUMERO_MECANOGRAFICO = "numero_mecanografico";
|
||||
public static final String NUMERO_MECANOGRAFICO_FULL = "acidentados.numero_mecanografico";
|
||||
public static final String NOME_SUPERIOR_HIERARQUICO = "nome_superior_hierarquico";
|
||||
public static final String NOME_SUPERIOR_HIERARQUICO_FULL = "acidentados.nome_superior_hierarquico";
|
||||
public static final String EMAIL_SUPERIOR_HIERARQUICO = "email_superior_hierarquico";
|
||||
public static final String EMAIL_SUPERIOR_HIERARQUICO_FULL = "acidentados.email_superior_hierarquico";
|
||||
public static final String ESTABELECIMENTO_ORIGEM = "estabelecimento_origem";
|
||||
public static final String ESTABELECIMENTO_ORIGEM_FULL = "acidentados.estabelecimento_origem";
|
||||
public static final String DATA_EMAIL_SUPERIOR_HIERARQUICO = "data_email_superior_hierarquico";
|
||||
public static final String DATA_EMAIL_SUPERIOR_HIERARQUICO_FULL = "acidentados.data_email_superior_hierarquico";
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
NOME, DATA_NASCIMENTO, BILHETE_IDENTIDADE, MORADA, COD_POSTAL, LOCALIDADE,
|
||||
CONTACTO_TELEFONICO, DATA_ADMISSAO, FUNCAO, TRABALHADOR_ID, TURNO,
|
||||
NUMERO_MECANOGRAFICO, NOME_SUPERIOR_HIERARQUICO,
|
||||
EMAIL_SUPERIOR_HIERARQUICO, ESTABELECIMENTO_ORIGEM,
|
||||
DATA_EMAIL_SUPERIOR_HIERARQUICO, };
|
||||
|
||||
|
||||
protected static final String ALL_FIELD_NAMES[] = new String[]{
|
||||
ID, NOME, DATA_NASCIMENTO, BILHETE_IDENTIDADE, MORADA, COD_POSTAL, LOCALIDADE,
|
||||
CONTACTO_TELEFONICO, DATA_ADMISSAO, FUNCAO, TRABALHADOR_ID, TURNO,
|
||||
NUMERO_MECANOGRAFICO, NOME_SUPERIOR_HIERARQUICO,
|
||||
EMAIL_SUPERIOR_HIERARQUICO, ESTABELECIMENTO_ORIGEM,
|
||||
DATA_EMAIL_SUPERIOR_HIERARQUICO, };
|
||||
|
||||
private Map<String, Object> dataHash;
|
||||
|
||||
public AcidentadosDataAuto()
|
||||
{
|
||||
dataHash = new HashMap<String, Object>();
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return (Integer) get(ID);
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.set(ID, idValue );
|
||||
}
|
||||
|
||||
public String getNome()
|
||||
{
|
||||
return (String) get(NOME);
|
||||
}
|
||||
|
||||
public void setNome(String nomeValue )
|
||||
{
|
||||
this.set(NOME, nomeValue );
|
||||
}
|
||||
|
||||
public java.util.Date getData_nascimento()
|
||||
{
|
||||
return (java.util.Date) get(DATA_NASCIMENTO);
|
||||
}
|
||||
|
||||
public void setData_nascimento(java.util.Date data_nascimentoValue )
|
||||
{
|
||||
this.set(DATA_NASCIMENTO, data_nascimentoValue );
|
||||
}
|
||||
|
||||
public String getBilhete_identidade()
|
||||
{
|
||||
return (String) get(BILHETE_IDENTIDADE);
|
||||
}
|
||||
|
||||
public void setBilhete_identidade(String bilhete_identidadeValue )
|
||||
{
|
||||
this.set(BILHETE_IDENTIDADE, bilhete_identidadeValue );
|
||||
}
|
||||
|
||||
public String getMorada()
|
||||
{
|
||||
return (String) get(MORADA);
|
||||
}
|
||||
|
||||
public void setMorada(String moradaValue )
|
||||
{
|
||||
this.set(MORADA, moradaValue );
|
||||
}
|
||||
|
||||
public String getCod_postal()
|
||||
{
|
||||
return (String) get(COD_POSTAL);
|
||||
}
|
||||
|
||||
public void setCod_postal(String cod_postalValue )
|
||||
{
|
||||
this.set(COD_POSTAL, cod_postalValue );
|
||||
}
|
||||
|
||||
public String getLocalidade()
|
||||
{
|
||||
return (String) get(LOCALIDADE);
|
||||
}
|
||||
|
||||
public void setLocalidade(String localidadeValue )
|
||||
{
|
||||
this.set(LOCALIDADE, localidadeValue );
|
||||
}
|
||||
|
||||
public String getContacto_telefonico()
|
||||
{
|
||||
return (String) get(CONTACTO_TELEFONICO);
|
||||
}
|
||||
|
||||
public void setContacto_telefonico(String contacto_telefonicoValue )
|
||||
{
|
||||
this.set(CONTACTO_TELEFONICO, contacto_telefonicoValue );
|
||||
}
|
||||
|
||||
public java.util.Date getData_admissao()
|
||||
{
|
||||
return (java.util.Date) get(DATA_ADMISSAO);
|
||||
}
|
||||
|
||||
public void setData_admissao(java.util.Date data_admissaoValue )
|
||||
{
|
||||
this.set(DATA_ADMISSAO, data_admissaoValue );
|
||||
}
|
||||
|
||||
public String getFuncao()
|
||||
{
|
||||
return (String) get(FUNCAO);
|
||||
}
|
||||
|
||||
public void setFuncao(String funcaoValue )
|
||||
{
|
||||
this.set(FUNCAO, funcaoValue );
|
||||
}
|
||||
|
||||
public Integer getTrabalhador_id()
|
||||
{
|
||||
return (Integer) get(TRABALHADOR_ID);
|
||||
}
|
||||
|
||||
public void setTrabalhador_id(Integer trabalhador_idValue )
|
||||
{
|
||||
this.set(TRABALHADOR_ID, trabalhador_idValue );
|
||||
}
|
||||
|
||||
public String getTurno()
|
||||
{
|
||||
return (String) get(TURNO);
|
||||
}
|
||||
|
||||
public void setTurno(String turnoValue )
|
||||
{
|
||||
this.set(TURNO, turnoValue );
|
||||
}
|
||||
|
||||
public String getNumero_mecanografico()
|
||||
{
|
||||
return (String) get(NUMERO_MECANOGRAFICO);
|
||||
}
|
||||
|
||||
public void setNumero_mecanografico(String numero_mecanograficoValue )
|
||||
{
|
||||
this.set(NUMERO_MECANOGRAFICO, numero_mecanograficoValue );
|
||||
}
|
||||
|
||||
public String getNome_superior_hierarquico()
|
||||
{
|
||||
return (String) get(NOME_SUPERIOR_HIERARQUICO);
|
||||
}
|
||||
|
||||
public void setNome_superior_hierarquico(String nome_superior_hierarquicoValue )
|
||||
{
|
||||
this.set(NOME_SUPERIOR_HIERARQUICO, nome_superior_hierarquicoValue );
|
||||
}
|
||||
|
||||
public String getEmail_superior_hierarquico()
|
||||
{
|
||||
return (String) get(EMAIL_SUPERIOR_HIERARQUICO);
|
||||
}
|
||||
|
||||
public void setEmail_superior_hierarquico(String email_superior_hierarquicoValue )
|
||||
{
|
||||
this.set(EMAIL_SUPERIOR_HIERARQUICO, email_superior_hierarquicoValue );
|
||||
}
|
||||
|
||||
public String getEstabelecimento_origem()
|
||||
{
|
||||
return (String) get(ESTABELECIMENTO_ORIGEM);
|
||||
}
|
||||
|
||||
public void setEstabelecimento_origem(String estabelecimento_origemValue )
|
||||
{
|
||||
this.set(ESTABELECIMENTO_ORIGEM, estabelecimento_origemValue );
|
||||
}
|
||||
|
||||
public java.util.Date getData_email_superior_hierarquico()
|
||||
{
|
||||
return (java.util.Date) get(DATA_EMAIL_SUPERIOR_HIERARQUICO);
|
||||
}
|
||||
|
||||
public void setData_email_superior_hierarquico(java.util.Date data_email_superior_hierarquicoValue )
|
||||
{
|
||||
this.set(DATA_EMAIL_SUPERIOR_HIERARQUICO, data_email_superior_hierarquicoValue );
|
||||
}
|
||||
|
||||
protected Object innerGet( String fieldName )
|
||||
throws Exception
|
||||
{
|
||||
Object value = null;
|
||||
value = dataHash.get( fieldName );
|
||||
return value;
|
||||
}
|
||||
|
||||
protected void innerSet( String fieldName, Object value )
|
||||
throws Exception
|
||||
{
|
||||
dataHash.put( fieldName, value );
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
protected String []getAllFieldNames()
|
||||
{
|
||||
return ALL_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public Class<Acidentados> getInnerClass()
|
||||
{
|
||||
return Acidentados.class;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Actualizacao.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
|
||||
public final class Actualizacao implements JDOInnerObject
|
||||
{
|
||||
|
||||
public Actualizacao()
|
||||
{
|
||||
}
|
||||
|
||||
public Object getField( String fieldName )
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setField( String fieldName, Object value )
|
||||
{
|
||||
}
|
||||
|
||||
public Class<ActualizacaoDataAuto> getOuterClass()
|
||||
{
|
||||
return ActualizacaoDataAuto.class;
|
||||
}
|
||||
|
||||
public ActualizacaoDataAuto getOuterClassInstance()
|
||||
{
|
||||
ActualizacaoDataAuto outerObj = new ActualizacaoDataAuto();
|
||||
outerObj.setInnerObject(this);
|
||||
return outerObj;
|
||||
}
|
||||
|
||||
public Object getJDOPrimaryKey()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* ActualizacaoDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
|
||||
public final class ActualizacaoData extends com.evolute.siprp.server.db.data.siprp.ActualizacaoDataAuto
|
||||
{
|
||||
|
||||
public ActualizacaoData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,67 @@
|
||||
/*
|
||||
* ActualizacaoDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
class ActualizacaoDataAuto extends JDOObject
|
||||
{
|
||||
|
||||
public static final String TABLENAME = "actualizacao";
|
||||
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
};
|
||||
|
||||
|
||||
protected static final String ALL_FIELD_NAMES[] = new String[]{
|
||||
};
|
||||
|
||||
private Map<String, Object> dataHash;
|
||||
|
||||
public ActualizacaoDataAuto()
|
||||
{
|
||||
dataHash = new HashMap<String, Object>();
|
||||
}
|
||||
|
||||
protected Object innerGet( String fieldName )
|
||||
throws Exception
|
||||
{
|
||||
Object value = null;
|
||||
value = dataHash.get( fieldName );
|
||||
return value;
|
||||
}
|
||||
|
||||
protected void innerSet( String fieldName, Object value )
|
||||
throws Exception
|
||||
{
|
||||
dataHash.put( fieldName, value );
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
protected String []getAllFieldNames()
|
||||
{
|
||||
return ALL_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public Class<Actualizacao> getInnerClass()
|
||||
{
|
||||
return Actualizacao.class;
|
||||
}
|
||||
|
||||
public Object getJDOPrimaryKey()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* AnalisesAcidentesDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
|
||||
public final class AnalisesAcidentesData extends com.evolute.siprp.server.db.data.siprp.AnalisesAcidentesDataAuto
|
||||
{
|
||||
|
||||
public AnalisesAcidentesData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,129 @@
|
||||
/*
|
||||
* Causas.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
|
||||
public final class Causas implements JDOInnerObject
|
||||
{
|
||||
private Integer id;
|
||||
private String causa;
|
||||
private String activa;
|
||||
|
||||
public Causas()
|
||||
{
|
||||
}
|
||||
|
||||
public Object getField( String fieldName )
|
||||
{
|
||||
if( fieldName == CausasDataAuto.ID )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName == CausasDataAuto.CAUSA )
|
||||
{
|
||||
return causa;
|
||||
}
|
||||
else if( fieldName == CausasDataAuto.ACTIVA )
|
||||
{
|
||||
return activa;
|
||||
}
|
||||
else if( fieldName.equals( CausasDataAuto.ID ) )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName.equals( CausasDataAuto.CAUSA ) )
|
||||
{
|
||||
return causa;
|
||||
}
|
||||
else if( fieldName.equals( CausasDataAuto.ACTIVA ) )
|
||||
{
|
||||
return activa;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setField( String fieldName, Object value )
|
||||
{
|
||||
if( fieldName == CausasDataAuto.ID )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == CausasDataAuto.CAUSA )
|
||||
{
|
||||
causa = ( String ) value;
|
||||
}
|
||||
else if( fieldName == CausasDataAuto.ACTIVA )
|
||||
{
|
||||
activa = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( CausasDataAuto.ID ) )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( CausasDataAuto.CAUSA ) )
|
||||
{
|
||||
causa = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( CausasDataAuto.ACTIVA ) )
|
||||
{
|
||||
activa = ( String ) value;
|
||||
}
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.id = idValue;
|
||||
}
|
||||
|
||||
public String getCausa()
|
||||
{
|
||||
return causa;
|
||||
}
|
||||
|
||||
public void setCausa(String causaValue )
|
||||
{
|
||||
this.causa = causaValue;
|
||||
}
|
||||
|
||||
public String getActiva()
|
||||
{
|
||||
return activa;
|
||||
}
|
||||
|
||||
public void setActiva(String activaValue )
|
||||
{
|
||||
this.activa = activaValue;
|
||||
}
|
||||
|
||||
public Class<CausasDataAuto> getOuterClass()
|
||||
{
|
||||
return CausasDataAuto.class;
|
||||
}
|
||||
|
||||
public CausasDataAuto getOuterClassInstance()
|
||||
{
|
||||
CausasDataAuto outerObj = new CausasDataAuto();
|
||||
outerObj.setInnerObject(this);
|
||||
return outerObj;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* CausasDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
|
||||
public final class CausasData extends com.evolute.siprp.server.db.data.siprp.CausasDataAuto
|
||||
{
|
||||
|
||||
public CausasData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,107 @@
|
||||
/*
|
||||
* CausasDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
class CausasDataAuto extends JDOObject
|
||||
{
|
||||
|
||||
public static final String TABLENAME = "causas";
|
||||
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "causas.id";
|
||||
public static final String CAUSA = "causa";
|
||||
public static final String CAUSA_FULL = "causas.causa";
|
||||
public static final String ACTIVA = "activa";
|
||||
public static final String ACTIVA_FULL = "causas.activa";
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
CAUSA, ACTIVA, };
|
||||
|
||||
|
||||
protected static final String ALL_FIELD_NAMES[] = new String[]{
|
||||
ID, CAUSA, ACTIVA, };
|
||||
|
||||
private Map<String, Object> dataHash;
|
||||
|
||||
public CausasDataAuto()
|
||||
{
|
||||
dataHash = new HashMap<String, Object>();
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return (Integer) get(ID);
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.set(ID, idValue );
|
||||
}
|
||||
|
||||
public String getCausa()
|
||||
{
|
||||
return (String) get(CAUSA);
|
||||
}
|
||||
|
||||
public void setCausa(String causaValue )
|
||||
{
|
||||
this.set(CAUSA, causaValue );
|
||||
}
|
||||
|
||||
public String getActiva()
|
||||
{
|
||||
return (String) get(ACTIVA);
|
||||
}
|
||||
|
||||
public void setActiva(String activaValue )
|
||||
{
|
||||
this.set(ACTIVA, activaValue );
|
||||
}
|
||||
|
||||
protected Object innerGet( String fieldName )
|
||||
throws Exception
|
||||
{
|
||||
Object value = null;
|
||||
value = dataHash.get( fieldName );
|
||||
return value;
|
||||
}
|
||||
|
||||
protected void innerSet( String fieldName, Object value )
|
||||
throws Exception
|
||||
{
|
||||
dataHash.put( fieldName, value );
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
protected String []getAllFieldNames()
|
||||
{
|
||||
return ALL_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public Class<Causas> getInnerClass()
|
||||
{
|
||||
return Causas.class;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,129 @@
|
||||
/*
|
||||
* Controle.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
|
||||
public final class Controle implements JDOInnerObject
|
||||
{
|
||||
private Integer id;
|
||||
private Integer analise_year;
|
||||
private Integer last_analise_nr;
|
||||
|
||||
public Controle()
|
||||
{
|
||||
}
|
||||
|
||||
public Object getField( String fieldName )
|
||||
{
|
||||
if( fieldName == ControleDataAuto.ID )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName == ControleDataAuto.ANALISE_YEAR )
|
||||
{
|
||||
return analise_year;
|
||||
}
|
||||
else if( fieldName == ControleDataAuto.LAST_ANALISE_NR )
|
||||
{
|
||||
return last_analise_nr;
|
||||
}
|
||||
else if( fieldName.equals( ControleDataAuto.ID ) )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName.equals( ControleDataAuto.ANALISE_YEAR ) )
|
||||
{
|
||||
return analise_year;
|
||||
}
|
||||
else if( fieldName.equals( ControleDataAuto.LAST_ANALISE_NR ) )
|
||||
{
|
||||
return last_analise_nr;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setField( String fieldName, Object value )
|
||||
{
|
||||
if( fieldName == ControleDataAuto.ID )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == ControleDataAuto.ANALISE_YEAR )
|
||||
{
|
||||
analise_year = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == ControleDataAuto.LAST_ANALISE_NR )
|
||||
{
|
||||
last_analise_nr = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( ControleDataAuto.ID ) )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( ControleDataAuto.ANALISE_YEAR ) )
|
||||
{
|
||||
analise_year = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( ControleDataAuto.LAST_ANALISE_NR ) )
|
||||
{
|
||||
last_analise_nr = ( Integer ) value;
|
||||
}
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.id = idValue;
|
||||
}
|
||||
|
||||
public Integer getAnalise_year()
|
||||
{
|
||||
return analise_year;
|
||||
}
|
||||
|
||||
public void setAnalise_year(Integer analise_yearValue )
|
||||
{
|
||||
this.analise_year = analise_yearValue;
|
||||
}
|
||||
|
||||
public Integer getLast_analise_nr()
|
||||
{
|
||||
return last_analise_nr;
|
||||
}
|
||||
|
||||
public void setLast_analise_nr(Integer last_analise_nrValue )
|
||||
{
|
||||
this.last_analise_nr = last_analise_nrValue;
|
||||
}
|
||||
|
||||
public Class<ControleDataAuto> getOuterClass()
|
||||
{
|
||||
return ControleDataAuto.class;
|
||||
}
|
||||
|
||||
public ControleDataAuto getOuterClassInstance()
|
||||
{
|
||||
ControleDataAuto outerObj = new ControleDataAuto();
|
||||
outerObj.setInnerObject(this);
|
||||
return outerObj;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* ControleDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
|
||||
public final class ControleData extends com.evolute.siprp.server.db.data.siprp.ControleDataAuto
|
||||
{
|
||||
|
||||
public ControleData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,107 @@
|
||||
/*
|
||||
* ControleDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
class ControleDataAuto extends JDOObject
|
||||
{
|
||||
|
||||
public static final String TABLENAME = "controle";
|
||||
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "controle.id";
|
||||
public static final String ANALISE_YEAR = "analise_year";
|
||||
public static final String ANALISE_YEAR_FULL = "controle.analise_year";
|
||||
public static final String LAST_ANALISE_NR = "last_analise_nr";
|
||||
public static final String LAST_ANALISE_NR_FULL = "controle.last_analise_nr";
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
ANALISE_YEAR, LAST_ANALISE_NR, };
|
||||
|
||||
|
||||
protected static final String ALL_FIELD_NAMES[] = new String[]{
|
||||
ID, ANALISE_YEAR, LAST_ANALISE_NR, };
|
||||
|
||||
private Map<String, Object> dataHash;
|
||||
|
||||
public ControleDataAuto()
|
||||
{
|
||||
dataHash = new HashMap<String, Object>();
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return (Integer) get(ID);
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.set(ID, idValue );
|
||||
}
|
||||
|
||||
public Integer getAnalise_year()
|
||||
{
|
||||
return (Integer) get(ANALISE_YEAR);
|
||||
}
|
||||
|
||||
public void setAnalise_year(Integer analise_yearValue )
|
||||
{
|
||||
this.set(ANALISE_YEAR, analise_yearValue );
|
||||
}
|
||||
|
||||
public Integer getLast_analise_nr()
|
||||
{
|
||||
return (Integer) get(LAST_ANALISE_NR);
|
||||
}
|
||||
|
||||
public void setLast_analise_nr(Integer last_analise_nrValue )
|
||||
{
|
||||
this.set(LAST_ANALISE_NR, last_analise_nrValue );
|
||||
}
|
||||
|
||||
protected Object innerGet( String fieldName )
|
||||
throws Exception
|
||||
{
|
||||
Object value = null;
|
||||
value = dataHash.get( fieldName );
|
||||
return value;
|
||||
}
|
||||
|
||||
protected void innerSet( String fieldName, Object value )
|
||||
throws Exception
|
||||
{
|
||||
dataHash.put( fieldName, value );
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
protected String []getAllFieldNames()
|
||||
{
|
||||
return ALL_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public Class<Controle> getInnerClass()
|
||||
{
|
||||
return Controle.class;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,129 @@
|
||||
/*
|
||||
* Departamentos.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
|
||||
public final class Departamentos implements JDOInnerObject
|
||||
{
|
||||
private Integer id;
|
||||
private String descricao;
|
||||
private String activo;
|
||||
|
||||
public Departamentos()
|
||||
{
|
||||
}
|
||||
|
||||
public Object getField( String fieldName )
|
||||
{
|
||||
if( fieldName == DepartamentosDataAuto.ID )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName == DepartamentosDataAuto.DESCRICAO )
|
||||
{
|
||||
return descricao;
|
||||
}
|
||||
else if( fieldName == DepartamentosDataAuto.ACTIVO )
|
||||
{
|
||||
return activo;
|
||||
}
|
||||
else if( fieldName.equals( DepartamentosDataAuto.ID ) )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName.equals( DepartamentosDataAuto.DESCRICAO ) )
|
||||
{
|
||||
return descricao;
|
||||
}
|
||||
else if( fieldName.equals( DepartamentosDataAuto.ACTIVO ) )
|
||||
{
|
||||
return activo;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setField( String fieldName, Object value )
|
||||
{
|
||||
if( fieldName == DepartamentosDataAuto.ID )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == DepartamentosDataAuto.DESCRICAO )
|
||||
{
|
||||
descricao = ( String ) value;
|
||||
}
|
||||
else if( fieldName == DepartamentosDataAuto.ACTIVO )
|
||||
{
|
||||
activo = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( DepartamentosDataAuto.ID ) )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( DepartamentosDataAuto.DESCRICAO ) )
|
||||
{
|
||||
descricao = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( DepartamentosDataAuto.ACTIVO ) )
|
||||
{
|
||||
activo = ( String ) value;
|
||||
}
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.id = idValue;
|
||||
}
|
||||
|
||||
public String getDescricao()
|
||||
{
|
||||
return descricao;
|
||||
}
|
||||
|
||||
public void setDescricao(String descricaoValue )
|
||||
{
|
||||
this.descricao = descricaoValue;
|
||||
}
|
||||
|
||||
public String getActivo()
|
||||
{
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(String activoValue )
|
||||
{
|
||||
this.activo = activoValue;
|
||||
}
|
||||
|
||||
public Class<DepartamentosDataAuto> getOuterClass()
|
||||
{
|
||||
return DepartamentosDataAuto.class;
|
||||
}
|
||||
|
||||
public DepartamentosDataAuto getOuterClassInstance()
|
||||
{
|
||||
DepartamentosDataAuto outerObj = new DepartamentosDataAuto();
|
||||
outerObj.setInnerObject(this);
|
||||
return outerObj;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* DepartamentosDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
|
||||
public final class DepartamentosData extends com.evolute.siprp.server.db.data.siprp.DepartamentosDataAuto
|
||||
{
|
||||
|
||||
public DepartamentosData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,107 @@
|
||||
/*
|
||||
* DepartamentosDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
class DepartamentosDataAuto extends JDOObject
|
||||
{
|
||||
|
||||
public static final String TABLENAME = "departamentos";
|
||||
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "departamentos.id";
|
||||
public static final String DESCRICAO = "descricao";
|
||||
public static final String DESCRICAO_FULL = "departamentos.descricao";
|
||||
public static final String ACTIVO = "activo";
|
||||
public static final String ACTIVO_FULL = "departamentos.activo";
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
DESCRICAO, ACTIVO, };
|
||||
|
||||
|
||||
protected static final String ALL_FIELD_NAMES[] = new String[]{
|
||||
ID, DESCRICAO, ACTIVO, };
|
||||
|
||||
private Map<String, Object> dataHash;
|
||||
|
||||
public DepartamentosDataAuto()
|
||||
{
|
||||
dataHash = new HashMap<String, Object>();
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return (Integer) get(ID);
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.set(ID, idValue );
|
||||
}
|
||||
|
||||
public String getDescricao()
|
||||
{
|
||||
return (String) get(DESCRICAO);
|
||||
}
|
||||
|
||||
public void setDescricao(String descricaoValue )
|
||||
{
|
||||
this.set(DESCRICAO, descricaoValue );
|
||||
}
|
||||
|
||||
public String getActivo()
|
||||
{
|
||||
return (String) get(ACTIVO);
|
||||
}
|
||||
|
||||
public void setActivo(String activoValue )
|
||||
{
|
||||
this.set(ACTIVO, activoValue );
|
||||
}
|
||||
|
||||
protected Object innerGet( String fieldName )
|
||||
throws Exception
|
||||
{
|
||||
Object value = null;
|
||||
value = dataHash.get( fieldName );
|
||||
return value;
|
||||
}
|
||||
|
||||
protected void innerSet( String fieldName, Object value )
|
||||
throws Exception
|
||||
{
|
||||
dataHash.put( fieldName, value );
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
protected String []getAllFieldNames()
|
||||
{
|
||||
return ALL_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public Class<Departamentos> getInnerClass()
|
||||
{
|
||||
return Departamentos.class;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,183 @@
|
||||
/*
|
||||
* Errors.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
|
||||
public final class Errors implements JDOInnerObject
|
||||
{
|
||||
private Integer id;
|
||||
private java.sql.Timestamp date;
|
||||
private String type;
|
||||
private String environment;
|
||||
private String description;
|
||||
|
||||
public Errors()
|
||||
{
|
||||
}
|
||||
|
||||
public Object getField( String fieldName )
|
||||
{
|
||||
if( fieldName == ErrorsDataAuto.ID )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName == ErrorsDataAuto.DATE )
|
||||
{
|
||||
return date;
|
||||
}
|
||||
else if( fieldName == ErrorsDataAuto.TYPE )
|
||||
{
|
||||
return type;
|
||||
}
|
||||
else if( fieldName == ErrorsDataAuto.ENVIRONMENT )
|
||||
{
|
||||
return environment;
|
||||
}
|
||||
else if( fieldName == ErrorsDataAuto.DESCRIPTION )
|
||||
{
|
||||
return description;
|
||||
}
|
||||
else if( fieldName.equals( ErrorsDataAuto.ID ) )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName.equals( ErrorsDataAuto.DATE ) )
|
||||
{
|
||||
return date;
|
||||
}
|
||||
else if( fieldName.equals( ErrorsDataAuto.TYPE ) )
|
||||
{
|
||||
return type;
|
||||
}
|
||||
else if( fieldName.equals( ErrorsDataAuto.ENVIRONMENT ) )
|
||||
{
|
||||
return environment;
|
||||
}
|
||||
else if( fieldName.equals( ErrorsDataAuto.DESCRIPTION ) )
|
||||
{
|
||||
return description;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setField( String fieldName, Object value )
|
||||
{
|
||||
if( fieldName == ErrorsDataAuto.ID )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == ErrorsDataAuto.DATE )
|
||||
{
|
||||
date = ( java.sql.Timestamp ) value;
|
||||
}
|
||||
else if( fieldName == ErrorsDataAuto.TYPE )
|
||||
{
|
||||
type = ( String ) value;
|
||||
}
|
||||
else if( fieldName == ErrorsDataAuto.ENVIRONMENT )
|
||||
{
|
||||
environment = ( String ) value;
|
||||
}
|
||||
else if( fieldName == ErrorsDataAuto.DESCRIPTION )
|
||||
{
|
||||
description = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( ErrorsDataAuto.ID ) )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( ErrorsDataAuto.DATE ) )
|
||||
{
|
||||
date = ( java.sql.Timestamp ) value;
|
||||
}
|
||||
else if( fieldName.equals( ErrorsDataAuto.TYPE ) )
|
||||
{
|
||||
type = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( ErrorsDataAuto.ENVIRONMENT ) )
|
||||
{
|
||||
environment = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( ErrorsDataAuto.DESCRIPTION ) )
|
||||
{
|
||||
description = ( String ) value;
|
||||
}
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.id = idValue;
|
||||
}
|
||||
|
||||
public java.sql.Timestamp getDate()
|
||||
{
|
||||
return date;
|
||||
}
|
||||
|
||||
public void setDate(java.sql.Timestamp dateValue )
|
||||
{
|
||||
this.date = dateValue;
|
||||
}
|
||||
|
||||
public String getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String typeValue )
|
||||
{
|
||||
this.type = typeValue;
|
||||
}
|
||||
|
||||
public String getEnvironment()
|
||||
{
|
||||
return environment;
|
||||
}
|
||||
|
||||
public void setEnvironment(String environmentValue )
|
||||
{
|
||||
this.environment = environmentValue;
|
||||
}
|
||||
|
||||
public String getDescription()
|
||||
{
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String descriptionValue )
|
||||
{
|
||||
this.description = descriptionValue;
|
||||
}
|
||||
|
||||
public Class<ErrorsDataAuto> getOuterClass()
|
||||
{
|
||||
return ErrorsDataAuto.class;
|
||||
}
|
||||
|
||||
public ErrorsDataAuto getOuterClassInstance()
|
||||
{
|
||||
ErrorsDataAuto outerObj = new ErrorsDataAuto();
|
||||
outerObj.setInnerObject(this);
|
||||
return outerObj;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* ErrorsDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
|
||||
public final class ErrorsData extends com.evolute.siprp.server.db.data.siprp.ErrorsDataAuto
|
||||
{
|
||||
|
||||
public ErrorsData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,131 @@
|
||||
/*
|
||||
* ErrorsDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
class ErrorsDataAuto extends JDOObject
|
||||
{
|
||||
|
||||
public static final String TABLENAME = "errors";
|
||||
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "errors.id";
|
||||
public static final String DATE = "date";
|
||||
public static final String DATE_FULL = "errors.date";
|
||||
public static final String TYPE = "type";
|
||||
public static final String TYPE_FULL = "errors.type";
|
||||
public static final String ENVIRONMENT = "environment";
|
||||
public static final String ENVIRONMENT_FULL = "errors.environment";
|
||||
public static final String DESCRIPTION = "description";
|
||||
public static final String DESCRIPTION_FULL = "errors.description";
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
DATE, TYPE, ENVIRONMENT, DESCRIPTION, };
|
||||
|
||||
|
||||
protected static final String ALL_FIELD_NAMES[] = new String[]{
|
||||
ID, DATE, TYPE, ENVIRONMENT, DESCRIPTION, };
|
||||
|
||||
private Map<String, Object> dataHash;
|
||||
|
||||
public ErrorsDataAuto()
|
||||
{
|
||||
dataHash = new HashMap<String, Object>();
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return (Integer) get(ID);
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.set(ID, idValue );
|
||||
}
|
||||
|
||||
public java.sql.Timestamp getDate()
|
||||
{
|
||||
return (java.sql.Timestamp) get(DATE);
|
||||
}
|
||||
|
||||
public void setDate(java.sql.Timestamp dateValue )
|
||||
{
|
||||
this.set(DATE, dateValue );
|
||||
}
|
||||
|
||||
public String getType()
|
||||
{
|
||||
return (String) get(TYPE);
|
||||
}
|
||||
|
||||
public void setType(String typeValue )
|
||||
{
|
||||
this.set(TYPE, typeValue );
|
||||
}
|
||||
|
||||
public String getEnvironment()
|
||||
{
|
||||
return (String) get(ENVIRONMENT);
|
||||
}
|
||||
|
||||
public void setEnvironment(String environmentValue )
|
||||
{
|
||||
this.set(ENVIRONMENT, environmentValue );
|
||||
}
|
||||
|
||||
public String getDescription()
|
||||
{
|
||||
return (String) get(DESCRIPTION);
|
||||
}
|
||||
|
||||
public void setDescription(String descriptionValue )
|
||||
{
|
||||
this.set(DESCRIPTION, descriptionValue );
|
||||
}
|
||||
|
||||
protected Object innerGet( String fieldName )
|
||||
throws Exception
|
||||
{
|
||||
Object value = null;
|
||||
value = dataHash.get( fieldName );
|
||||
return value;
|
||||
}
|
||||
|
||||
protected void innerSet( String fieldName, Object value )
|
||||
throws Exception
|
||||
{
|
||||
dataHash.put( fieldName, value );
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
protected String []getAllFieldNames()
|
||||
{
|
||||
return ALL_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public Class<Errors> getInnerClass()
|
||||
{
|
||||
return Errors.class;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,129 @@
|
||||
/*
|
||||
* Medidas.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
|
||||
public final class Medidas implements JDOInnerObject
|
||||
{
|
||||
private Integer id;
|
||||
private Integer analise_id;
|
||||
private String medida;
|
||||
|
||||
public Medidas()
|
||||
{
|
||||
}
|
||||
|
||||
public Object getField( String fieldName )
|
||||
{
|
||||
if( fieldName == MedidasDataAuto.ID )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName == MedidasDataAuto.ANALISE_ID )
|
||||
{
|
||||
return analise_id;
|
||||
}
|
||||
else if( fieldName == MedidasDataAuto.MEDIDA )
|
||||
{
|
||||
return medida;
|
||||
}
|
||||
else if( fieldName.equals( MedidasDataAuto.ID ) )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName.equals( MedidasDataAuto.ANALISE_ID ) )
|
||||
{
|
||||
return analise_id;
|
||||
}
|
||||
else if( fieldName.equals( MedidasDataAuto.MEDIDA ) )
|
||||
{
|
||||
return medida;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setField( String fieldName, Object value )
|
||||
{
|
||||
if( fieldName == MedidasDataAuto.ID )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == MedidasDataAuto.ANALISE_ID )
|
||||
{
|
||||
analise_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == MedidasDataAuto.MEDIDA )
|
||||
{
|
||||
medida = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( MedidasDataAuto.ID ) )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( MedidasDataAuto.ANALISE_ID ) )
|
||||
{
|
||||
analise_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( MedidasDataAuto.MEDIDA ) )
|
||||
{
|
||||
medida = ( String ) value;
|
||||
}
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.id = idValue;
|
||||
}
|
||||
|
||||
public Integer getAnalise_id()
|
||||
{
|
||||
return analise_id;
|
||||
}
|
||||
|
||||
public void setAnalise_id(Integer analise_idValue )
|
||||
{
|
||||
this.analise_id = analise_idValue;
|
||||
}
|
||||
|
||||
public String getMedida()
|
||||
{
|
||||
return medida;
|
||||
}
|
||||
|
||||
public void setMedida(String medidaValue )
|
||||
{
|
||||
this.medida = medidaValue;
|
||||
}
|
||||
|
||||
public Class<MedidasDataAuto> getOuterClass()
|
||||
{
|
||||
return MedidasDataAuto.class;
|
||||
}
|
||||
|
||||
public MedidasDataAuto getOuterClassInstance()
|
||||
{
|
||||
MedidasDataAuto outerObj = new MedidasDataAuto();
|
||||
outerObj.setInnerObject(this);
|
||||
return outerObj;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* MedidasDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
|
||||
public final class MedidasData extends com.evolute.siprp.server.db.data.siprp.MedidasDataAuto
|
||||
{
|
||||
|
||||
public MedidasData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,166 @@
|
||||
/*
|
||||
* MedidasDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
class MedidasDataAuto extends JDOObject
|
||||
{
|
||||
|
||||
public static final String TABLENAME = "medidas";
|
||||
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "medidas.id";
|
||||
public static final String ANALISE_ID = "analise_id";
|
||||
public static final String ANALISE_ID_FULL = "medidas.analise_id";
|
||||
public static final String TO_ANALISE_ID = "to analise_id";
|
||||
public static final String MEDIDA = "medida";
|
||||
public static final String MEDIDA_FULL = "medidas.medida";
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
ANALISE_ID, TO_ANALISE_ID, MEDIDA, };
|
||||
|
||||
|
||||
protected static final String ALL_FIELD_NAMES[] = new String[]{
|
||||
ID, ANALISE_ID, MEDIDA, };
|
||||
|
||||
private Map<String, Object> dataHash;
|
||||
|
||||
public MedidasDataAuto()
|
||||
{
|
||||
dataHash = new HashMap<String, Object>();
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return (Integer) get(ID);
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.set(ID, idValue );
|
||||
}
|
||||
|
||||
public Integer getAnalise_id()
|
||||
{
|
||||
return (Integer) dataHash.get(ANALISE_ID);
|
||||
}
|
||||
|
||||
public void setAnalise_id(Integer analise_idValue )
|
||||
{
|
||||
dataHash.put(TO_ANALISE_ID, null);
|
||||
dataHash.put(ANALISE_ID, analise_idValue );
|
||||
}
|
||||
|
||||
public com.evolute.siprp.server.db.data.siprp.AnalisesAcidentesData toAnalise_id()
|
||||
throws Exception
|
||||
{
|
||||
if( dataHash.get(TO_ANALISE_ID) == null && getAnalise_id() != null )
|
||||
{
|
||||
dataHash.put(TO_ANALISE_ID, getJDOProvider().load(com.evolute.siprp.server.db.data.siprp.AnalisesAcidentesData.class, new Object[]{ getAnalise_id() }, new String[]{ com.evolute.siprp.server.db.data.siprp.AnalisesAcidentesData.ID }));
|
||||
}
|
||||
return (com.evolute.siprp.server.db.data.siprp.AnalisesAcidentesData) dataHash.get(TO_ANALISE_ID);
|
||||
}
|
||||
|
||||
public void setToAnalise_id(com.evolute.siprp.server.db.data.siprp.AnalisesAcidentesData analise_idObject )
|
||||
{
|
||||
if( analise_idObject == null )
|
||||
{
|
||||
dataHash.put(ANALISE_ID, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
dataHash.put(ANALISE_ID, analise_idObject.get( com.evolute.siprp.server.db.data.siprp.AnalisesAcidentesData.ID ));
|
||||
}
|
||||
dataHash.put(TO_ANALISE_ID, analise_idObject);
|
||||
}
|
||||
|
||||
public String getMedida()
|
||||
{
|
||||
return (String) get(MEDIDA);
|
||||
}
|
||||
|
||||
public void setMedida(String medidaValue )
|
||||
{
|
||||
this.set(MEDIDA, medidaValue );
|
||||
}
|
||||
|
||||
protected Object innerGet( String fieldName )
|
||||
throws Exception
|
||||
{
|
||||
Object value = null;
|
||||
if( TO_ANALISE_ID.equals( fieldName ) )
|
||||
{
|
||||
value = toAnalise_id();
|
||||
}
|
||||
else if( ANALISE_ID.equals( fieldName ) )
|
||||
{
|
||||
value = getAnalise_id();
|
||||
}
|
||||
else
|
||||
{
|
||||
value = dataHash.get( fieldName );
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
protected void innerSet( String fieldName, Object value )
|
||||
throws Exception
|
||||
{
|
||||
if( TO_ANALISE_ID.equals( fieldName ) )
|
||||
{
|
||||
setToAnalise_id( (com.evolute.siprp.server.db.data.siprp.AnalisesAcidentesData) value );
|
||||
}
|
||||
else if( ANALISE_ID.equals( fieldName ) )
|
||||
{
|
||||
setAnalise_id( (Integer) value );
|
||||
}
|
||||
else
|
||||
{
|
||||
dataHash.put( fieldName, value );
|
||||
}
|
||||
}
|
||||
|
||||
public void save()
|
||||
throws Exception
|
||||
{
|
||||
if( dataHash.get(TO_ANALISE_ID) != null )
|
||||
{
|
||||
toAnalise_id().save();
|
||||
dataHash.put(ANALISE_ID, toAnalise_id().get( com.evolute.siprp.server.db.data.siprp.AnalisesAcidentesData.ID ));
|
||||
}
|
||||
|
||||
super.save();
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
protected String []getAllFieldNames()
|
||||
{
|
||||
return ALL_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public Class<Medidas> getInnerClass()
|
||||
{
|
||||
return Medidas.class;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,183 @@
|
||||
/*
|
||||
* NotNoticias.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
|
||||
public final class NotNoticias implements JDOInnerObject
|
||||
{
|
||||
private Integer id;
|
||||
private java.util.Date data;
|
||||
private java.sql.Timestamp stamp;
|
||||
private String utilizador;
|
||||
private String noticia;
|
||||
|
||||
public NotNoticias()
|
||||
{
|
||||
}
|
||||
|
||||
public Object getField( String fieldName )
|
||||
{
|
||||
if( fieldName == NotNoticiasDataAuto.ID )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName == NotNoticiasDataAuto.DATA )
|
||||
{
|
||||
return data;
|
||||
}
|
||||
else if( fieldName == NotNoticiasDataAuto.STAMP )
|
||||
{
|
||||
return stamp;
|
||||
}
|
||||
else if( fieldName == NotNoticiasDataAuto.UTILIZADOR )
|
||||
{
|
||||
return utilizador;
|
||||
}
|
||||
else if( fieldName == NotNoticiasDataAuto.NOTICIA )
|
||||
{
|
||||
return noticia;
|
||||
}
|
||||
else if( fieldName.equals( NotNoticiasDataAuto.ID ) )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName.equals( NotNoticiasDataAuto.DATA ) )
|
||||
{
|
||||
return data;
|
||||
}
|
||||
else if( fieldName.equals( NotNoticiasDataAuto.STAMP ) )
|
||||
{
|
||||
return stamp;
|
||||
}
|
||||
else if( fieldName.equals( NotNoticiasDataAuto.UTILIZADOR ) )
|
||||
{
|
||||
return utilizador;
|
||||
}
|
||||
else if( fieldName.equals( NotNoticiasDataAuto.NOTICIA ) )
|
||||
{
|
||||
return noticia;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setField( String fieldName, Object value )
|
||||
{
|
||||
if( fieldName == NotNoticiasDataAuto.ID )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == NotNoticiasDataAuto.DATA )
|
||||
{
|
||||
data = ( java.util.Date ) value;
|
||||
}
|
||||
else if( fieldName == NotNoticiasDataAuto.STAMP )
|
||||
{
|
||||
stamp = ( java.sql.Timestamp ) value;
|
||||
}
|
||||
else if( fieldName == NotNoticiasDataAuto.UTILIZADOR )
|
||||
{
|
||||
utilizador = ( String ) value;
|
||||
}
|
||||
else if( fieldName == NotNoticiasDataAuto.NOTICIA )
|
||||
{
|
||||
noticia = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( NotNoticiasDataAuto.ID ) )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( NotNoticiasDataAuto.DATA ) )
|
||||
{
|
||||
data = ( java.util.Date ) value;
|
||||
}
|
||||
else if( fieldName.equals( NotNoticiasDataAuto.STAMP ) )
|
||||
{
|
||||
stamp = ( java.sql.Timestamp ) value;
|
||||
}
|
||||
else if( fieldName.equals( NotNoticiasDataAuto.UTILIZADOR ) )
|
||||
{
|
||||
utilizador = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( NotNoticiasDataAuto.NOTICIA ) )
|
||||
{
|
||||
noticia = ( String ) value;
|
||||
}
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.id = idValue;
|
||||
}
|
||||
|
||||
public java.util.Date getData()
|
||||
{
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(java.util.Date dataValue )
|
||||
{
|
||||
this.data = dataValue;
|
||||
}
|
||||
|
||||
public java.sql.Timestamp getStamp()
|
||||
{
|
||||
return stamp;
|
||||
}
|
||||
|
||||
public void setStamp(java.sql.Timestamp stampValue )
|
||||
{
|
||||
this.stamp = stampValue;
|
||||
}
|
||||
|
||||
public String getUtilizador()
|
||||
{
|
||||
return utilizador;
|
||||
}
|
||||
|
||||
public void setUtilizador(String utilizadorValue )
|
||||
{
|
||||
this.utilizador = utilizadorValue;
|
||||
}
|
||||
|
||||
public String getNoticia()
|
||||
{
|
||||
return noticia;
|
||||
}
|
||||
|
||||
public void setNoticia(String noticiaValue )
|
||||
{
|
||||
this.noticia = noticiaValue;
|
||||
}
|
||||
|
||||
public Class<NotNoticiasDataAuto> getOuterClass()
|
||||
{
|
||||
return NotNoticiasDataAuto.class;
|
||||
}
|
||||
|
||||
public NotNoticiasDataAuto getOuterClassInstance()
|
||||
{
|
||||
NotNoticiasDataAuto outerObj = new NotNoticiasDataAuto();
|
||||
outerObj.setInnerObject(this);
|
||||
return outerObj;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* NotNoticiasDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
|
||||
public final class NotNoticiasData extends com.evolute.siprp.server.db.data.siprp.NotNoticiasDataAuto
|
||||
{
|
||||
|
||||
public NotNoticiasData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,131 @@
|
||||
/*
|
||||
* NotNoticiasDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
class NotNoticiasDataAuto extends JDOObject
|
||||
{
|
||||
|
||||
public static final String TABLENAME = "not_noticias";
|
||||
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "not_noticias.id";
|
||||
public static final String DATA = "data";
|
||||
public static final String DATA_FULL = "not_noticias.data";
|
||||
public static final String STAMP = "stamp";
|
||||
public static final String STAMP_FULL = "not_noticias.stamp";
|
||||
public static final String UTILIZADOR = "utilizador";
|
||||
public static final String UTILIZADOR_FULL = "not_noticias.utilizador";
|
||||
public static final String NOTICIA = "noticia";
|
||||
public static final String NOTICIA_FULL = "not_noticias.noticia";
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
DATA, STAMP, UTILIZADOR, NOTICIA, };
|
||||
|
||||
|
||||
protected static final String ALL_FIELD_NAMES[] = new String[]{
|
||||
ID, DATA, STAMP, UTILIZADOR, NOTICIA, };
|
||||
|
||||
private Map<String, Object> dataHash;
|
||||
|
||||
public NotNoticiasDataAuto()
|
||||
{
|
||||
dataHash = new HashMap<String, Object>();
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return (Integer) get(ID);
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.set(ID, idValue );
|
||||
}
|
||||
|
||||
public java.util.Date getData()
|
||||
{
|
||||
return (java.util.Date) get(DATA);
|
||||
}
|
||||
|
||||
public void setData(java.util.Date dataValue )
|
||||
{
|
||||
this.set(DATA, dataValue );
|
||||
}
|
||||
|
||||
public java.sql.Timestamp getStamp()
|
||||
{
|
||||
return (java.sql.Timestamp) get(STAMP);
|
||||
}
|
||||
|
||||
public void setStamp(java.sql.Timestamp stampValue )
|
||||
{
|
||||
this.set(STAMP, stampValue );
|
||||
}
|
||||
|
||||
public String getUtilizador()
|
||||
{
|
||||
return (String) get(UTILIZADOR);
|
||||
}
|
||||
|
||||
public void setUtilizador(String utilizadorValue )
|
||||
{
|
||||
this.set(UTILIZADOR, utilizadorValue );
|
||||
}
|
||||
|
||||
public String getNoticia()
|
||||
{
|
||||
return (String) get(NOTICIA);
|
||||
}
|
||||
|
||||
public void setNoticia(String noticiaValue )
|
||||
{
|
||||
this.set(NOTICIA, noticiaValue );
|
||||
}
|
||||
|
||||
protected Object innerGet( String fieldName )
|
||||
throws Exception
|
||||
{
|
||||
Object value = null;
|
||||
value = dataHash.get( fieldName );
|
||||
return value;
|
||||
}
|
||||
|
||||
protected void innerSet( String fieldName, Object value )
|
||||
throws Exception
|
||||
{
|
||||
dataHash.put( fieldName, value );
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
protected String []getAllFieldNames()
|
||||
{
|
||||
return ALL_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public Class<NotNoticias> getInnerClass()
|
||||
{
|
||||
return NotNoticias.class;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,129 @@
|
||||
/*
|
||||
* Permissoes.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
|
||||
public final class Permissoes implements JDOInnerObject
|
||||
{
|
||||
private Integer id;
|
||||
private Integer user_id;
|
||||
private Integer codigo_permissao;
|
||||
|
||||
public Permissoes()
|
||||
{
|
||||
}
|
||||
|
||||
public Object getField( String fieldName )
|
||||
{
|
||||
if( fieldName == PermissoesDataAuto.ID )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName == PermissoesDataAuto.USER_ID )
|
||||
{
|
||||
return user_id;
|
||||
}
|
||||
else if( fieldName == PermissoesDataAuto.CODIGO_PERMISSAO )
|
||||
{
|
||||
return codigo_permissao;
|
||||
}
|
||||
else if( fieldName.equals( PermissoesDataAuto.ID ) )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName.equals( PermissoesDataAuto.USER_ID ) )
|
||||
{
|
||||
return user_id;
|
||||
}
|
||||
else if( fieldName.equals( PermissoesDataAuto.CODIGO_PERMISSAO ) )
|
||||
{
|
||||
return codigo_permissao;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setField( String fieldName, Object value )
|
||||
{
|
||||
if( fieldName == PermissoesDataAuto.ID )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == PermissoesDataAuto.USER_ID )
|
||||
{
|
||||
user_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == PermissoesDataAuto.CODIGO_PERMISSAO )
|
||||
{
|
||||
codigo_permissao = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( PermissoesDataAuto.ID ) )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( PermissoesDataAuto.USER_ID ) )
|
||||
{
|
||||
user_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( PermissoesDataAuto.CODIGO_PERMISSAO ) )
|
||||
{
|
||||
codigo_permissao = ( Integer ) value;
|
||||
}
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.id = idValue;
|
||||
}
|
||||
|
||||
public Integer getUser_id()
|
||||
{
|
||||
return user_id;
|
||||
}
|
||||
|
||||
public void setUser_id(Integer user_idValue )
|
||||
{
|
||||
this.user_id = user_idValue;
|
||||
}
|
||||
|
||||
public Integer getCodigo_permissao()
|
||||
{
|
||||
return codigo_permissao;
|
||||
}
|
||||
|
||||
public void setCodigo_permissao(Integer codigo_permissaoValue )
|
||||
{
|
||||
this.codigo_permissao = codigo_permissaoValue;
|
||||
}
|
||||
|
||||
public Class<PermissoesDataAuto> getOuterClass()
|
||||
{
|
||||
return PermissoesDataAuto.class;
|
||||
}
|
||||
|
||||
public PermissoesDataAuto getOuterClassInstance()
|
||||
{
|
||||
PermissoesDataAuto outerObj = new PermissoesDataAuto();
|
||||
outerObj.setInnerObject(this);
|
||||
return outerObj;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* PermissoesDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
|
||||
public final class PermissoesData extends com.evolute.siprp.server.db.data.siprp.PermissoesDataAuto
|
||||
{
|
||||
|
||||
public PermissoesData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,166 @@
|
||||
/*
|
||||
* PermissoesDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
class PermissoesDataAuto extends JDOObject
|
||||
{
|
||||
|
||||
public static final String TABLENAME = "permissoes";
|
||||
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "permissoes.id";
|
||||
public static final String USER_ID = "user_id";
|
||||
public static final String USER_ID_FULL = "permissoes.user_id";
|
||||
public static final String TO_USER_ID = "to user_id";
|
||||
public static final String CODIGO_PERMISSAO = "codigo_permissao";
|
||||
public static final String CODIGO_PERMISSAO_FULL = "permissoes.codigo_permissao";
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
USER_ID, TO_USER_ID, CODIGO_PERMISSAO, };
|
||||
|
||||
|
||||
protected static final String ALL_FIELD_NAMES[] = new String[]{
|
||||
ID, USER_ID, CODIGO_PERMISSAO, };
|
||||
|
||||
private Map<String, Object> dataHash;
|
||||
|
||||
public PermissoesDataAuto()
|
||||
{
|
||||
dataHash = new HashMap<String, Object>();
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return (Integer) get(ID);
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.set(ID, idValue );
|
||||
}
|
||||
|
||||
public Integer getUser_id()
|
||||
{
|
||||
return (Integer) dataHash.get(USER_ID);
|
||||
}
|
||||
|
||||
public void setUser_id(Integer user_idValue )
|
||||
{
|
||||
dataHash.put(TO_USER_ID, null);
|
||||
dataHash.put(USER_ID, user_idValue );
|
||||
}
|
||||
|
||||
public com.evolute.siprp.server.db.data.siprp.UtilizadoresData toUser_id()
|
||||
throws Exception
|
||||
{
|
||||
if( dataHash.get(TO_USER_ID) == null && getUser_id() != null )
|
||||
{
|
||||
dataHash.put(TO_USER_ID, getJDOProvider().load(com.evolute.siprp.server.db.data.siprp.UtilizadoresData.class, new Object[]{ getUser_id() }, new String[]{ com.evolute.siprp.server.db.data.siprp.UtilizadoresData.ID }));
|
||||
}
|
||||
return (com.evolute.siprp.server.db.data.siprp.UtilizadoresData) dataHash.get(TO_USER_ID);
|
||||
}
|
||||
|
||||
public void setToUser_id(com.evolute.siprp.server.db.data.siprp.UtilizadoresData user_idObject )
|
||||
{
|
||||
if( user_idObject == null )
|
||||
{
|
||||
dataHash.put(USER_ID, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
dataHash.put(USER_ID, user_idObject.get( com.evolute.siprp.server.db.data.siprp.UtilizadoresData.ID ));
|
||||
}
|
||||
dataHash.put(TO_USER_ID, user_idObject);
|
||||
}
|
||||
|
||||
public Integer getCodigo_permissao()
|
||||
{
|
||||
return (Integer) get(CODIGO_PERMISSAO);
|
||||
}
|
||||
|
||||
public void setCodigo_permissao(Integer codigo_permissaoValue )
|
||||
{
|
||||
this.set(CODIGO_PERMISSAO, codigo_permissaoValue );
|
||||
}
|
||||
|
||||
protected Object innerGet( String fieldName )
|
||||
throws Exception
|
||||
{
|
||||
Object value = null;
|
||||
if( USER_ID.equals( fieldName ) )
|
||||
{
|
||||
value = getUser_id();
|
||||
}
|
||||
else if( TO_USER_ID.equals( fieldName ) )
|
||||
{
|
||||
value = toUser_id();
|
||||
}
|
||||
else
|
||||
{
|
||||
value = dataHash.get( fieldName );
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
protected void innerSet( String fieldName, Object value )
|
||||
throws Exception
|
||||
{
|
||||
if( USER_ID.equals( fieldName ) )
|
||||
{
|
||||
setUser_id( (Integer) value );
|
||||
}
|
||||
else if( TO_USER_ID.equals( fieldName ) )
|
||||
{
|
||||
setToUser_id( (com.evolute.siprp.server.db.data.siprp.UtilizadoresData) value );
|
||||
}
|
||||
else
|
||||
{
|
||||
dataHash.put( fieldName, value );
|
||||
}
|
||||
}
|
||||
|
||||
public void save()
|
||||
throws Exception
|
||||
{
|
||||
if( dataHash.get(TO_USER_ID) != null )
|
||||
{
|
||||
toUser_id().save();
|
||||
dataHash.put(USER_ID, toUser_id().get( com.evolute.siprp.server.db.data.siprp.UtilizadoresData.ID ));
|
||||
}
|
||||
|
||||
super.save();
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
protected String []getAllFieldNames()
|
||||
{
|
||||
return ALL_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public Class<Permissoes> getInnerClass()
|
||||
{
|
||||
return Permissoes.class;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,156 @@
|
||||
/*
|
||||
* PlanoAreas.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
|
||||
public final class PlanoAreas implements JDOInnerObject
|
||||
{
|
||||
private String descricao;
|
||||
private Integer plano_id;
|
||||
private Integer id;
|
||||
private Integer area_id;
|
||||
|
||||
public PlanoAreas()
|
||||
{
|
||||
}
|
||||
|
||||
public Object getField( String fieldName )
|
||||
{
|
||||
if( fieldName == PlanoAreasDataAuto.DESCRICAO )
|
||||
{
|
||||
return descricao;
|
||||
}
|
||||
else if( fieldName == PlanoAreasDataAuto.PLANO_ID )
|
||||
{
|
||||
return plano_id;
|
||||
}
|
||||
else if( fieldName == PlanoAreasDataAuto.ID )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName == PlanoAreasDataAuto.AREA_ID )
|
||||
{
|
||||
return area_id;
|
||||
}
|
||||
else if( fieldName.equals( PlanoAreasDataAuto.DESCRICAO ) )
|
||||
{
|
||||
return descricao;
|
||||
}
|
||||
else if( fieldName.equals( PlanoAreasDataAuto.PLANO_ID ) )
|
||||
{
|
||||
return plano_id;
|
||||
}
|
||||
else if( fieldName.equals( PlanoAreasDataAuto.ID ) )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName.equals( PlanoAreasDataAuto.AREA_ID ) )
|
||||
{
|
||||
return area_id;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setField( String fieldName, Object value )
|
||||
{
|
||||
if( fieldName == PlanoAreasDataAuto.DESCRICAO )
|
||||
{
|
||||
descricao = ( String ) value;
|
||||
}
|
||||
else if( fieldName == PlanoAreasDataAuto.PLANO_ID )
|
||||
{
|
||||
plano_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == PlanoAreasDataAuto.ID )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == PlanoAreasDataAuto.AREA_ID )
|
||||
{
|
||||
area_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanoAreasDataAuto.DESCRICAO ) )
|
||||
{
|
||||
descricao = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanoAreasDataAuto.PLANO_ID ) )
|
||||
{
|
||||
plano_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanoAreasDataAuto.ID ) )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanoAreasDataAuto.AREA_ID ) )
|
||||
{
|
||||
area_id = ( Integer ) value;
|
||||
}
|
||||
}
|
||||
|
||||
public String getDescricao()
|
||||
{
|
||||
return descricao;
|
||||
}
|
||||
|
||||
public void setDescricao(String descricaoValue )
|
||||
{
|
||||
this.descricao = descricaoValue;
|
||||
}
|
||||
|
||||
public Integer getPlano_id()
|
||||
{
|
||||
return plano_id;
|
||||
}
|
||||
|
||||
public void setPlano_id(Integer plano_idValue )
|
||||
{
|
||||
this.plano_id = plano_idValue;
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.id = idValue;
|
||||
}
|
||||
|
||||
public Integer getArea_id()
|
||||
{
|
||||
return area_id;
|
||||
}
|
||||
|
||||
public void setArea_id(Integer area_idValue )
|
||||
{
|
||||
this.area_id = area_idValue;
|
||||
}
|
||||
|
||||
public Class<PlanoAreasDataAuto> getOuterClass()
|
||||
{
|
||||
return PlanoAreasDataAuto.class;
|
||||
}
|
||||
|
||||
public PlanoAreasDataAuto getOuterClassInstance()
|
||||
{
|
||||
PlanoAreasDataAuto outerObj = new PlanoAreasDataAuto();
|
||||
outerObj.setInnerObject(this);
|
||||
return outerObj;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* PlanoAreasDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
|
||||
public final class PlanoAreasData extends com.evolute.siprp.server.db.data.siprp.PlanoAreasDataAuto
|
||||
{
|
||||
|
||||
public PlanoAreasData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,178 @@
|
||||
/*
|
||||
* PlanoAreasDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
class PlanoAreasDataAuto extends JDOObject
|
||||
{
|
||||
|
||||
public static final String TABLENAME = "plano_areas";
|
||||
|
||||
public static final String DESCRICAO = "descricao";
|
||||
public static final String DESCRICAO_FULL = "plano_areas.descricao";
|
||||
public static final String PLANO_ID = "plano_id";
|
||||
public static final String PLANO_ID_FULL = "plano_areas.plano_id";
|
||||
public static final String TO_PLANO_ID = "to plano_id";
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "plano_areas.id";
|
||||
public static final String AREA_ID = "area_id";
|
||||
public static final String AREA_ID_FULL = "plano_areas.area_id";
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
DESCRICAO, PLANO_ID, TO_PLANO_ID, AREA_ID, };
|
||||
|
||||
|
||||
protected static final String ALL_FIELD_NAMES[] = new String[]{
|
||||
DESCRICAO, PLANO_ID, ID, AREA_ID, };
|
||||
|
||||
private Map<String, Object> dataHash;
|
||||
|
||||
public PlanoAreasDataAuto()
|
||||
{
|
||||
dataHash = new HashMap<String, Object>();
|
||||
}
|
||||
|
||||
public String getDescricao()
|
||||
{
|
||||
return (String) get(DESCRICAO);
|
||||
}
|
||||
|
||||
public void setDescricao(String descricaoValue )
|
||||
{
|
||||
this.set(DESCRICAO, descricaoValue );
|
||||
}
|
||||
|
||||
public Integer getPlano_id()
|
||||
{
|
||||
return (Integer) dataHash.get(PLANO_ID);
|
||||
}
|
||||
|
||||
public void setPlano_id(Integer plano_idValue )
|
||||
{
|
||||
dataHash.put(TO_PLANO_ID, null);
|
||||
dataHash.put(PLANO_ID, plano_idValue );
|
||||
}
|
||||
|
||||
public com.evolute.siprp.server.db.data.siprp.PlanosActuacaoData toPlano_id()
|
||||
throws Exception
|
||||
{
|
||||
if( dataHash.get(TO_PLANO_ID) == null && getPlano_id() != null )
|
||||
{
|
||||
dataHash.put(TO_PLANO_ID, getJDOProvider().load(com.evolute.siprp.server.db.data.siprp.PlanosActuacaoData.class, new Object[]{ getPlano_id() }, new String[]{ com.evolute.siprp.server.db.data.siprp.PlanosActuacaoData.ID }));
|
||||
}
|
||||
return (com.evolute.siprp.server.db.data.siprp.PlanosActuacaoData) dataHash.get(TO_PLANO_ID);
|
||||
}
|
||||
|
||||
public void setToPlano_id(com.evolute.siprp.server.db.data.siprp.PlanosActuacaoData plano_idObject )
|
||||
{
|
||||
if( plano_idObject == null )
|
||||
{
|
||||
dataHash.put(PLANO_ID, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
dataHash.put(PLANO_ID, plano_idObject.get( com.evolute.siprp.server.db.data.siprp.PlanosActuacaoData.ID ));
|
||||
}
|
||||
dataHash.put(TO_PLANO_ID, plano_idObject);
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return (Integer) get(ID);
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.set(ID, idValue );
|
||||
}
|
||||
|
||||
public Integer getArea_id()
|
||||
{
|
||||
return (Integer) get(AREA_ID);
|
||||
}
|
||||
|
||||
public void setArea_id(Integer area_idValue )
|
||||
{
|
||||
this.set(AREA_ID, area_idValue );
|
||||
}
|
||||
|
||||
protected Object innerGet( String fieldName )
|
||||
throws Exception
|
||||
{
|
||||
Object value = null;
|
||||
if( TO_PLANO_ID.equals( fieldName ) )
|
||||
{
|
||||
value = toPlano_id();
|
||||
}
|
||||
else if( PLANO_ID.equals( fieldName ) )
|
||||
{
|
||||
value = getPlano_id();
|
||||
}
|
||||
else
|
||||
{
|
||||
value = dataHash.get( fieldName );
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
protected void innerSet( String fieldName, Object value )
|
||||
throws Exception
|
||||
{
|
||||
if( TO_PLANO_ID.equals( fieldName ) )
|
||||
{
|
||||
setToPlano_id( (com.evolute.siprp.server.db.data.siprp.PlanosActuacaoData) value );
|
||||
}
|
||||
else if( PLANO_ID.equals( fieldName ) )
|
||||
{
|
||||
setPlano_id( (Integer) value );
|
||||
}
|
||||
else
|
||||
{
|
||||
dataHash.put( fieldName, value );
|
||||
}
|
||||
}
|
||||
|
||||
public void save()
|
||||
throws Exception
|
||||
{
|
||||
if( dataHash.get(TO_PLANO_ID) != null )
|
||||
{
|
||||
toPlano_id().save();
|
||||
dataHash.put(PLANO_ID, toPlano_id().get( com.evolute.siprp.server.db.data.siprp.PlanosActuacaoData.ID ));
|
||||
}
|
||||
|
||||
super.save();
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
protected String []getAllFieldNames()
|
||||
{
|
||||
return ALL_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public Class<PlanoAreas> getInnerClass()
|
||||
{
|
||||
return PlanoAreas.class;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,156 @@
|
||||
/*
|
||||
* PlanoMedidas.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
|
||||
public final class PlanoMedidas implements JDOInnerObject
|
||||
{
|
||||
private String descricao;
|
||||
private Integer risco_id;
|
||||
private Integer id;
|
||||
private Integer medida_id;
|
||||
|
||||
public PlanoMedidas()
|
||||
{
|
||||
}
|
||||
|
||||
public Object getField( String fieldName )
|
||||
{
|
||||
if( fieldName == PlanoMedidasDataAuto.DESCRICAO )
|
||||
{
|
||||
return descricao;
|
||||
}
|
||||
else if( fieldName == PlanoMedidasDataAuto.RISCO_ID )
|
||||
{
|
||||
return risco_id;
|
||||
}
|
||||
else if( fieldName == PlanoMedidasDataAuto.ID )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName == PlanoMedidasDataAuto.MEDIDA_ID )
|
||||
{
|
||||
return medida_id;
|
||||
}
|
||||
else if( fieldName.equals( PlanoMedidasDataAuto.DESCRICAO ) )
|
||||
{
|
||||
return descricao;
|
||||
}
|
||||
else if( fieldName.equals( PlanoMedidasDataAuto.RISCO_ID ) )
|
||||
{
|
||||
return risco_id;
|
||||
}
|
||||
else if( fieldName.equals( PlanoMedidasDataAuto.ID ) )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName.equals( PlanoMedidasDataAuto.MEDIDA_ID ) )
|
||||
{
|
||||
return medida_id;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setField( String fieldName, Object value )
|
||||
{
|
||||
if( fieldName == PlanoMedidasDataAuto.DESCRICAO )
|
||||
{
|
||||
descricao = ( String ) value;
|
||||
}
|
||||
else if( fieldName == PlanoMedidasDataAuto.RISCO_ID )
|
||||
{
|
||||
risco_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == PlanoMedidasDataAuto.ID )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == PlanoMedidasDataAuto.MEDIDA_ID )
|
||||
{
|
||||
medida_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanoMedidasDataAuto.DESCRICAO ) )
|
||||
{
|
||||
descricao = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanoMedidasDataAuto.RISCO_ID ) )
|
||||
{
|
||||
risco_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanoMedidasDataAuto.ID ) )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanoMedidasDataAuto.MEDIDA_ID ) )
|
||||
{
|
||||
medida_id = ( Integer ) value;
|
||||
}
|
||||
}
|
||||
|
||||
public String getDescricao()
|
||||
{
|
||||
return descricao;
|
||||
}
|
||||
|
||||
public void setDescricao(String descricaoValue )
|
||||
{
|
||||
this.descricao = descricaoValue;
|
||||
}
|
||||
|
||||
public Integer getRisco_id()
|
||||
{
|
||||
return risco_id;
|
||||
}
|
||||
|
||||
public void setRisco_id(Integer risco_idValue )
|
||||
{
|
||||
this.risco_id = risco_idValue;
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.id = idValue;
|
||||
}
|
||||
|
||||
public Integer getMedida_id()
|
||||
{
|
||||
return medida_id;
|
||||
}
|
||||
|
||||
public void setMedida_id(Integer medida_idValue )
|
||||
{
|
||||
this.medida_id = medida_idValue;
|
||||
}
|
||||
|
||||
public Class<PlanoMedidasDataAuto> getOuterClass()
|
||||
{
|
||||
return PlanoMedidasDataAuto.class;
|
||||
}
|
||||
|
||||
public PlanoMedidasDataAuto getOuterClassInstance()
|
||||
{
|
||||
PlanoMedidasDataAuto outerObj = new PlanoMedidasDataAuto();
|
||||
outerObj.setInnerObject(this);
|
||||
return outerObj;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* PlanoMedidasDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
|
||||
public final class PlanoMedidasData extends com.evolute.siprp.server.db.data.siprp.PlanoMedidasDataAuto
|
||||
{
|
||||
|
||||
public PlanoMedidasData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,178 @@
|
||||
/*
|
||||
* PlanoMedidasDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
class PlanoMedidasDataAuto extends JDOObject
|
||||
{
|
||||
|
||||
public static final String TABLENAME = "plano_medidas";
|
||||
|
||||
public static final String DESCRICAO = "descricao";
|
||||
public static final String DESCRICAO_FULL = "plano_medidas.descricao";
|
||||
public static final String RISCO_ID = "risco_id";
|
||||
public static final String RISCO_ID_FULL = "plano_medidas.risco_id";
|
||||
public static final String TO_RISCO_ID = "to risco_id";
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "plano_medidas.id";
|
||||
public static final String MEDIDA_ID = "medida_id";
|
||||
public static final String MEDIDA_ID_FULL = "plano_medidas.medida_id";
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
DESCRICAO, RISCO_ID, TO_RISCO_ID, MEDIDA_ID, };
|
||||
|
||||
|
||||
protected static final String ALL_FIELD_NAMES[] = new String[]{
|
||||
DESCRICAO, RISCO_ID, ID, MEDIDA_ID, };
|
||||
|
||||
private Map<String, Object> dataHash;
|
||||
|
||||
public PlanoMedidasDataAuto()
|
||||
{
|
||||
dataHash = new HashMap<String, Object>();
|
||||
}
|
||||
|
||||
public String getDescricao()
|
||||
{
|
||||
return (String) get(DESCRICAO);
|
||||
}
|
||||
|
||||
public void setDescricao(String descricaoValue )
|
||||
{
|
||||
this.set(DESCRICAO, descricaoValue );
|
||||
}
|
||||
|
||||
public Integer getRisco_id()
|
||||
{
|
||||
return (Integer) dataHash.get(RISCO_ID);
|
||||
}
|
||||
|
||||
public void setRisco_id(Integer risco_idValue )
|
||||
{
|
||||
dataHash.put(TO_RISCO_ID, null);
|
||||
dataHash.put(RISCO_ID, risco_idValue );
|
||||
}
|
||||
|
||||
public com.evolute.siprp.server.db.data.siprp.PlanoRiscosData toRisco_id()
|
||||
throws Exception
|
||||
{
|
||||
if( dataHash.get(TO_RISCO_ID) == null && getRisco_id() != null )
|
||||
{
|
||||
dataHash.put(TO_RISCO_ID, getJDOProvider().load(com.evolute.siprp.server.db.data.siprp.PlanoRiscosData.class, new Object[]{ getRisco_id() }, new String[]{ com.evolute.siprp.server.db.data.siprp.PlanoRiscosData.ID }));
|
||||
}
|
||||
return (com.evolute.siprp.server.db.data.siprp.PlanoRiscosData) dataHash.get(TO_RISCO_ID);
|
||||
}
|
||||
|
||||
public void setToRisco_id(com.evolute.siprp.server.db.data.siprp.PlanoRiscosData risco_idObject )
|
||||
{
|
||||
if( risco_idObject == null )
|
||||
{
|
||||
dataHash.put(RISCO_ID, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
dataHash.put(RISCO_ID, risco_idObject.get( com.evolute.siprp.server.db.data.siprp.PlanoRiscosData.ID ));
|
||||
}
|
||||
dataHash.put(TO_RISCO_ID, risco_idObject);
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return (Integer) get(ID);
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.set(ID, idValue );
|
||||
}
|
||||
|
||||
public Integer getMedida_id()
|
||||
{
|
||||
return (Integer) get(MEDIDA_ID);
|
||||
}
|
||||
|
||||
public void setMedida_id(Integer medida_idValue )
|
||||
{
|
||||
this.set(MEDIDA_ID, medida_idValue );
|
||||
}
|
||||
|
||||
protected Object innerGet( String fieldName )
|
||||
throws Exception
|
||||
{
|
||||
Object value = null;
|
||||
if( TO_RISCO_ID.equals( fieldName ) )
|
||||
{
|
||||
value = toRisco_id();
|
||||
}
|
||||
else if( RISCO_ID.equals( fieldName ) )
|
||||
{
|
||||
value = getRisco_id();
|
||||
}
|
||||
else
|
||||
{
|
||||
value = dataHash.get( fieldName );
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
protected void innerSet( String fieldName, Object value )
|
||||
throws Exception
|
||||
{
|
||||
if( TO_RISCO_ID.equals( fieldName ) )
|
||||
{
|
||||
setToRisco_id( (com.evolute.siprp.server.db.data.siprp.PlanoRiscosData) value );
|
||||
}
|
||||
else if( RISCO_ID.equals( fieldName ) )
|
||||
{
|
||||
setRisco_id( (Integer) value );
|
||||
}
|
||||
else
|
||||
{
|
||||
dataHash.put( fieldName, value );
|
||||
}
|
||||
}
|
||||
|
||||
public void save()
|
||||
throws Exception
|
||||
{
|
||||
if( dataHash.get(TO_RISCO_ID) != null )
|
||||
{
|
||||
toRisco_id().save();
|
||||
dataHash.put(RISCO_ID, toRisco_id().get( com.evolute.siprp.server.db.data.siprp.PlanoRiscosData.ID ));
|
||||
}
|
||||
|
||||
super.save();
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
protected String []getAllFieldNames()
|
||||
{
|
||||
return ALL_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public Class<PlanoMedidas> getInnerClass()
|
||||
{
|
||||
return PlanoMedidas.class;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,156 @@
|
||||
/*
|
||||
* PlanoPostosTrabalho.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
|
||||
public final class PlanoPostosTrabalho implements JDOInnerObject
|
||||
{
|
||||
private String descricao;
|
||||
private Integer medida_id;
|
||||
private Integer id;
|
||||
private Integer posto_id;
|
||||
|
||||
public PlanoPostosTrabalho()
|
||||
{
|
||||
}
|
||||
|
||||
public Object getField( String fieldName )
|
||||
{
|
||||
if( fieldName == PlanoPostosTrabalhoDataAuto.DESCRICAO )
|
||||
{
|
||||
return descricao;
|
||||
}
|
||||
else if( fieldName == PlanoPostosTrabalhoDataAuto.MEDIDA_ID )
|
||||
{
|
||||
return medida_id;
|
||||
}
|
||||
else if( fieldName == PlanoPostosTrabalhoDataAuto.ID )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName == PlanoPostosTrabalhoDataAuto.POSTO_ID )
|
||||
{
|
||||
return posto_id;
|
||||
}
|
||||
else if( fieldName.equals( PlanoPostosTrabalhoDataAuto.DESCRICAO ) )
|
||||
{
|
||||
return descricao;
|
||||
}
|
||||
else if( fieldName.equals( PlanoPostosTrabalhoDataAuto.MEDIDA_ID ) )
|
||||
{
|
||||
return medida_id;
|
||||
}
|
||||
else if( fieldName.equals( PlanoPostosTrabalhoDataAuto.ID ) )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName.equals( PlanoPostosTrabalhoDataAuto.POSTO_ID ) )
|
||||
{
|
||||
return posto_id;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setField( String fieldName, Object value )
|
||||
{
|
||||
if( fieldName == PlanoPostosTrabalhoDataAuto.DESCRICAO )
|
||||
{
|
||||
descricao = ( String ) value;
|
||||
}
|
||||
else if( fieldName == PlanoPostosTrabalhoDataAuto.MEDIDA_ID )
|
||||
{
|
||||
medida_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == PlanoPostosTrabalhoDataAuto.ID )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == PlanoPostosTrabalhoDataAuto.POSTO_ID )
|
||||
{
|
||||
posto_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanoPostosTrabalhoDataAuto.DESCRICAO ) )
|
||||
{
|
||||
descricao = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanoPostosTrabalhoDataAuto.MEDIDA_ID ) )
|
||||
{
|
||||
medida_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanoPostosTrabalhoDataAuto.ID ) )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanoPostosTrabalhoDataAuto.POSTO_ID ) )
|
||||
{
|
||||
posto_id = ( Integer ) value;
|
||||
}
|
||||
}
|
||||
|
||||
public String getDescricao()
|
||||
{
|
||||
return descricao;
|
||||
}
|
||||
|
||||
public void setDescricao(String descricaoValue )
|
||||
{
|
||||
this.descricao = descricaoValue;
|
||||
}
|
||||
|
||||
public Integer getMedida_id()
|
||||
{
|
||||
return medida_id;
|
||||
}
|
||||
|
||||
public void setMedida_id(Integer medida_idValue )
|
||||
{
|
||||
this.medida_id = medida_idValue;
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.id = idValue;
|
||||
}
|
||||
|
||||
public Integer getPosto_id()
|
||||
{
|
||||
return posto_id;
|
||||
}
|
||||
|
||||
public void setPosto_id(Integer posto_idValue )
|
||||
{
|
||||
this.posto_id = posto_idValue;
|
||||
}
|
||||
|
||||
public Class<PlanoPostosTrabalhoDataAuto> getOuterClass()
|
||||
{
|
||||
return PlanoPostosTrabalhoDataAuto.class;
|
||||
}
|
||||
|
||||
public PlanoPostosTrabalhoDataAuto getOuterClassInstance()
|
||||
{
|
||||
PlanoPostosTrabalhoDataAuto outerObj = new PlanoPostosTrabalhoDataAuto();
|
||||
outerObj.setInnerObject(this);
|
||||
return outerObj;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* PlanoPostosTrabalhoDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
|
||||
public final class PlanoPostosTrabalhoData extends com.evolute.siprp.server.db.data.siprp.PlanoPostosTrabalhoDataAuto
|
||||
{
|
||||
|
||||
public PlanoPostosTrabalhoData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,178 @@
|
||||
/*
|
||||
* PlanoPostosTrabalhoDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
class PlanoPostosTrabalhoDataAuto extends JDOObject
|
||||
{
|
||||
|
||||
public static final String TABLENAME = "plano_postos_trabalho";
|
||||
|
||||
public static final String DESCRICAO = "descricao";
|
||||
public static final String DESCRICAO_FULL = "plano_postos_trabalho.descricao";
|
||||
public static final String MEDIDA_ID = "medida_id";
|
||||
public static final String MEDIDA_ID_FULL = "plano_postos_trabalho.medida_id";
|
||||
public static final String TO_MEDIDA_ID = "to medida_id";
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "plano_postos_trabalho.id";
|
||||
public static final String POSTO_ID = "posto_id";
|
||||
public static final String POSTO_ID_FULL = "plano_postos_trabalho.posto_id";
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
DESCRICAO, MEDIDA_ID, TO_MEDIDA_ID, POSTO_ID, };
|
||||
|
||||
|
||||
protected static final String ALL_FIELD_NAMES[] = new String[]{
|
||||
DESCRICAO, MEDIDA_ID, ID, POSTO_ID, };
|
||||
|
||||
private Map<String, Object> dataHash;
|
||||
|
||||
public PlanoPostosTrabalhoDataAuto()
|
||||
{
|
||||
dataHash = new HashMap<String, Object>();
|
||||
}
|
||||
|
||||
public String getDescricao()
|
||||
{
|
||||
return (String) get(DESCRICAO);
|
||||
}
|
||||
|
||||
public void setDescricao(String descricaoValue )
|
||||
{
|
||||
this.set(DESCRICAO, descricaoValue );
|
||||
}
|
||||
|
||||
public Integer getMedida_id()
|
||||
{
|
||||
return (Integer) dataHash.get(MEDIDA_ID);
|
||||
}
|
||||
|
||||
public void setMedida_id(Integer medida_idValue )
|
||||
{
|
||||
dataHash.put(TO_MEDIDA_ID, null);
|
||||
dataHash.put(MEDIDA_ID, medida_idValue );
|
||||
}
|
||||
|
||||
public com.evolute.siprp.server.db.data.siprp.PlanoMedidasData toMedida_id()
|
||||
throws Exception
|
||||
{
|
||||
if( dataHash.get(TO_MEDIDA_ID) == null && getMedida_id() != null )
|
||||
{
|
||||
dataHash.put(TO_MEDIDA_ID, getJDOProvider().load(com.evolute.siprp.server.db.data.siprp.PlanoMedidasData.class, new Object[]{ getMedida_id() }, new String[]{ com.evolute.siprp.server.db.data.siprp.PlanoMedidasData.ID }));
|
||||
}
|
||||
return (com.evolute.siprp.server.db.data.siprp.PlanoMedidasData) dataHash.get(TO_MEDIDA_ID);
|
||||
}
|
||||
|
||||
public void setToMedida_id(com.evolute.siprp.server.db.data.siprp.PlanoMedidasData medida_idObject )
|
||||
{
|
||||
if( medida_idObject == null )
|
||||
{
|
||||
dataHash.put(MEDIDA_ID, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
dataHash.put(MEDIDA_ID, medida_idObject.get( com.evolute.siprp.server.db.data.siprp.PlanoMedidasData.ID ));
|
||||
}
|
||||
dataHash.put(TO_MEDIDA_ID, medida_idObject);
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return (Integer) get(ID);
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.set(ID, idValue );
|
||||
}
|
||||
|
||||
public Integer getPosto_id()
|
||||
{
|
||||
return (Integer) get(POSTO_ID);
|
||||
}
|
||||
|
||||
public void setPosto_id(Integer posto_idValue )
|
||||
{
|
||||
this.set(POSTO_ID, posto_idValue );
|
||||
}
|
||||
|
||||
protected Object innerGet( String fieldName )
|
||||
throws Exception
|
||||
{
|
||||
Object value = null;
|
||||
if( MEDIDA_ID.equals( fieldName ) )
|
||||
{
|
||||
value = getMedida_id();
|
||||
}
|
||||
else if( TO_MEDIDA_ID.equals( fieldName ) )
|
||||
{
|
||||
value = toMedida_id();
|
||||
}
|
||||
else
|
||||
{
|
||||
value = dataHash.get( fieldName );
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
protected void innerSet( String fieldName, Object value )
|
||||
throws Exception
|
||||
{
|
||||
if( MEDIDA_ID.equals( fieldName ) )
|
||||
{
|
||||
setMedida_id( (Integer) value );
|
||||
}
|
||||
else if( TO_MEDIDA_ID.equals( fieldName ) )
|
||||
{
|
||||
setToMedida_id( (com.evolute.siprp.server.db.data.siprp.PlanoMedidasData) value );
|
||||
}
|
||||
else
|
||||
{
|
||||
dataHash.put( fieldName, value );
|
||||
}
|
||||
}
|
||||
|
||||
public void save()
|
||||
throws Exception
|
||||
{
|
||||
if( dataHash.get(TO_MEDIDA_ID) != null )
|
||||
{
|
||||
toMedida_id().save();
|
||||
dataHash.put(MEDIDA_ID, toMedida_id().get( com.evolute.siprp.server.db.data.siprp.PlanoMedidasData.ID ));
|
||||
}
|
||||
|
||||
super.save();
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
protected String []getAllFieldNames()
|
||||
{
|
||||
return ALL_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public Class<PlanoPostosTrabalho> getInnerClass()
|
||||
{
|
||||
return PlanoPostosTrabalho.class;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,426 @@
|
||||
/*
|
||||
* PlanoRiscos.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
|
||||
public final class PlanoRiscos implements JDOInnerObject
|
||||
{
|
||||
private String descricao;
|
||||
private String activo;
|
||||
private Integer area_id;
|
||||
private Integer id;
|
||||
private Integer valor;
|
||||
private String responsavel_execucao;
|
||||
private String recursos_necessarios;
|
||||
private java.util.Date data_inicio;
|
||||
private java.util.Date data_fim;
|
||||
private String parecer_dl;
|
||||
private String parecer_dns;
|
||||
private String verificacao_siprp;
|
||||
private Integer risco_id;
|
||||
private String por;
|
||||
|
||||
public PlanoRiscos()
|
||||
{
|
||||
}
|
||||
|
||||
public Object getField( String fieldName )
|
||||
{
|
||||
if( fieldName == PlanoRiscosDataAuto.DESCRICAO )
|
||||
{
|
||||
return descricao;
|
||||
}
|
||||
else if( fieldName == PlanoRiscosDataAuto.ACTIVO )
|
||||
{
|
||||
return activo;
|
||||
}
|
||||
else if( fieldName == PlanoRiscosDataAuto.AREA_ID )
|
||||
{
|
||||
return area_id;
|
||||
}
|
||||
else if( fieldName == PlanoRiscosDataAuto.ID )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName == PlanoRiscosDataAuto.VALOR )
|
||||
{
|
||||
return valor;
|
||||
}
|
||||
else if( fieldName == PlanoRiscosDataAuto.RESPONSAVEL_EXECUCAO )
|
||||
{
|
||||
return responsavel_execucao;
|
||||
}
|
||||
else if( fieldName == PlanoRiscosDataAuto.RECURSOS_NECESSARIOS )
|
||||
{
|
||||
return recursos_necessarios;
|
||||
}
|
||||
else if( fieldName == PlanoRiscosDataAuto.DATA_INICIO )
|
||||
{
|
||||
return data_inicio;
|
||||
}
|
||||
else if( fieldName == PlanoRiscosDataAuto.DATA_FIM )
|
||||
{
|
||||
return data_fim;
|
||||
}
|
||||
else if( fieldName == PlanoRiscosDataAuto.PARECER_DL )
|
||||
{
|
||||
return parecer_dl;
|
||||
}
|
||||
else if( fieldName == PlanoRiscosDataAuto.PARECER_DNS )
|
||||
{
|
||||
return parecer_dns;
|
||||
}
|
||||
else if( fieldName == PlanoRiscosDataAuto.VERIFICACAO_SIPRP )
|
||||
{
|
||||
return verificacao_siprp;
|
||||
}
|
||||
else if( fieldName == PlanoRiscosDataAuto.RISCO_ID )
|
||||
{
|
||||
return risco_id;
|
||||
}
|
||||
else if( fieldName == PlanoRiscosDataAuto.POR )
|
||||
{
|
||||
return por;
|
||||
}
|
||||
else if( fieldName.equals( PlanoRiscosDataAuto.DESCRICAO ) )
|
||||
{
|
||||
return descricao;
|
||||
}
|
||||
else if( fieldName.equals( PlanoRiscosDataAuto.ACTIVO ) )
|
||||
{
|
||||
return activo;
|
||||
}
|
||||
else if( fieldName.equals( PlanoRiscosDataAuto.AREA_ID ) )
|
||||
{
|
||||
return area_id;
|
||||
}
|
||||
else if( fieldName.equals( PlanoRiscosDataAuto.ID ) )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName.equals( PlanoRiscosDataAuto.VALOR ) )
|
||||
{
|
||||
return valor;
|
||||
}
|
||||
else if( fieldName.equals( PlanoRiscosDataAuto.RESPONSAVEL_EXECUCAO ) )
|
||||
{
|
||||
return responsavel_execucao;
|
||||
}
|
||||
else if( fieldName.equals( PlanoRiscosDataAuto.RECURSOS_NECESSARIOS ) )
|
||||
{
|
||||
return recursos_necessarios;
|
||||
}
|
||||
else if( fieldName.equals( PlanoRiscosDataAuto.DATA_INICIO ) )
|
||||
{
|
||||
return data_inicio;
|
||||
}
|
||||
else if( fieldName.equals( PlanoRiscosDataAuto.DATA_FIM ) )
|
||||
{
|
||||
return data_fim;
|
||||
}
|
||||
else if( fieldName.equals( PlanoRiscosDataAuto.PARECER_DL ) )
|
||||
{
|
||||
return parecer_dl;
|
||||
}
|
||||
else if( fieldName.equals( PlanoRiscosDataAuto.PARECER_DNS ) )
|
||||
{
|
||||
return parecer_dns;
|
||||
}
|
||||
else if( fieldName.equals( PlanoRiscosDataAuto.VERIFICACAO_SIPRP ) )
|
||||
{
|
||||
return verificacao_siprp;
|
||||
}
|
||||
else if( fieldName.equals( PlanoRiscosDataAuto.RISCO_ID ) )
|
||||
{
|
||||
return risco_id;
|
||||
}
|
||||
else if( fieldName.equals( PlanoRiscosDataAuto.POR ) )
|
||||
{
|
||||
return por;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setField( String fieldName, Object value )
|
||||
{
|
||||
if( fieldName == PlanoRiscosDataAuto.DESCRICAO )
|
||||
{
|
||||
descricao = ( String ) value;
|
||||
}
|
||||
else if( fieldName == PlanoRiscosDataAuto.ACTIVO )
|
||||
{
|
||||
activo = ( String ) value;
|
||||
}
|
||||
else if( fieldName == PlanoRiscosDataAuto.AREA_ID )
|
||||
{
|
||||
area_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == PlanoRiscosDataAuto.ID )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == PlanoRiscosDataAuto.VALOR )
|
||||
{
|
||||
valor = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == PlanoRiscosDataAuto.RESPONSAVEL_EXECUCAO )
|
||||
{
|
||||
responsavel_execucao = ( String ) value;
|
||||
}
|
||||
else if( fieldName == PlanoRiscosDataAuto.RECURSOS_NECESSARIOS )
|
||||
{
|
||||
recursos_necessarios = ( String ) value;
|
||||
}
|
||||
else if( fieldName == PlanoRiscosDataAuto.DATA_INICIO )
|
||||
{
|
||||
data_inicio = ( java.util.Date ) value;
|
||||
}
|
||||
else if( fieldName == PlanoRiscosDataAuto.DATA_FIM )
|
||||
{
|
||||
data_fim = ( java.util.Date ) value;
|
||||
}
|
||||
else if( fieldName == PlanoRiscosDataAuto.PARECER_DL )
|
||||
{
|
||||
parecer_dl = ( String ) value;
|
||||
}
|
||||
else if( fieldName == PlanoRiscosDataAuto.PARECER_DNS )
|
||||
{
|
||||
parecer_dns = ( String ) value;
|
||||
}
|
||||
else if( fieldName == PlanoRiscosDataAuto.VERIFICACAO_SIPRP )
|
||||
{
|
||||
verificacao_siprp = ( String ) value;
|
||||
}
|
||||
else if( fieldName == PlanoRiscosDataAuto.RISCO_ID )
|
||||
{
|
||||
risco_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == PlanoRiscosDataAuto.POR )
|
||||
{
|
||||
por = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanoRiscosDataAuto.DESCRICAO ) )
|
||||
{
|
||||
descricao = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanoRiscosDataAuto.ACTIVO ) )
|
||||
{
|
||||
activo = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanoRiscosDataAuto.AREA_ID ) )
|
||||
{
|
||||
area_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanoRiscosDataAuto.ID ) )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanoRiscosDataAuto.VALOR ) )
|
||||
{
|
||||
valor = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanoRiscosDataAuto.RESPONSAVEL_EXECUCAO ) )
|
||||
{
|
||||
responsavel_execucao = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanoRiscosDataAuto.RECURSOS_NECESSARIOS ) )
|
||||
{
|
||||
recursos_necessarios = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanoRiscosDataAuto.DATA_INICIO ) )
|
||||
{
|
||||
data_inicio = ( java.util.Date ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanoRiscosDataAuto.DATA_FIM ) )
|
||||
{
|
||||
data_fim = ( java.util.Date ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanoRiscosDataAuto.PARECER_DL ) )
|
||||
{
|
||||
parecer_dl = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanoRiscosDataAuto.PARECER_DNS ) )
|
||||
{
|
||||
parecer_dns = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanoRiscosDataAuto.VERIFICACAO_SIPRP ) )
|
||||
{
|
||||
verificacao_siprp = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanoRiscosDataAuto.RISCO_ID ) )
|
||||
{
|
||||
risco_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanoRiscosDataAuto.POR ) )
|
||||
{
|
||||
por = ( String ) value;
|
||||
}
|
||||
}
|
||||
|
||||
public String getDescricao()
|
||||
{
|
||||
return descricao;
|
||||
}
|
||||
|
||||
public void setDescricao(String descricaoValue )
|
||||
{
|
||||
this.descricao = descricaoValue;
|
||||
}
|
||||
|
||||
public String getActivo()
|
||||
{
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(String activoValue )
|
||||
{
|
||||
this.activo = activoValue;
|
||||
}
|
||||
|
||||
public Integer getArea_id()
|
||||
{
|
||||
return area_id;
|
||||
}
|
||||
|
||||
public void setArea_id(Integer area_idValue )
|
||||
{
|
||||
this.area_id = area_idValue;
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.id = idValue;
|
||||
}
|
||||
|
||||
public Integer getValor()
|
||||
{
|
||||
return valor;
|
||||
}
|
||||
|
||||
public void setValor(Integer valorValue )
|
||||
{
|
||||
this.valor = valorValue;
|
||||
}
|
||||
|
||||
public String getResponsavel_execucao()
|
||||
{
|
||||
return responsavel_execucao;
|
||||
}
|
||||
|
||||
public void setResponsavel_execucao(String responsavel_execucaoValue )
|
||||
{
|
||||
this.responsavel_execucao = responsavel_execucaoValue;
|
||||
}
|
||||
|
||||
public String getRecursos_necessarios()
|
||||
{
|
||||
return recursos_necessarios;
|
||||
}
|
||||
|
||||
public void setRecursos_necessarios(String recursos_necessariosValue )
|
||||
{
|
||||
this.recursos_necessarios = recursos_necessariosValue;
|
||||
}
|
||||
|
||||
public java.util.Date getData_inicio()
|
||||
{
|
||||
return data_inicio;
|
||||
}
|
||||
|
||||
public void setData_inicio(java.util.Date data_inicioValue )
|
||||
{
|
||||
this.data_inicio = data_inicioValue;
|
||||
}
|
||||
|
||||
public java.util.Date getData_fim()
|
||||
{
|
||||
return data_fim;
|
||||
}
|
||||
|
||||
public void setData_fim(java.util.Date data_fimValue )
|
||||
{
|
||||
this.data_fim = data_fimValue;
|
||||
}
|
||||
|
||||
public String getParecer_dl()
|
||||
{
|
||||
return parecer_dl;
|
||||
}
|
||||
|
||||
public void setParecer_dl(String parecer_dlValue )
|
||||
{
|
||||
this.parecer_dl = parecer_dlValue;
|
||||
}
|
||||
|
||||
public String getParecer_dns()
|
||||
{
|
||||
return parecer_dns;
|
||||
}
|
||||
|
||||
public void setParecer_dns(String parecer_dnsValue )
|
||||
{
|
||||
this.parecer_dns = parecer_dnsValue;
|
||||
}
|
||||
|
||||
public String getVerificacao_siprp()
|
||||
{
|
||||
return verificacao_siprp;
|
||||
}
|
||||
|
||||
public void setVerificacao_siprp(String verificacao_siprpValue )
|
||||
{
|
||||
this.verificacao_siprp = verificacao_siprpValue;
|
||||
}
|
||||
|
||||
public Integer getRisco_id()
|
||||
{
|
||||
return risco_id;
|
||||
}
|
||||
|
||||
public void setRisco_id(Integer risco_idValue )
|
||||
{
|
||||
this.risco_id = risco_idValue;
|
||||
}
|
||||
|
||||
public String getPor()
|
||||
{
|
||||
return por;
|
||||
}
|
||||
|
||||
public void setPor(String porValue )
|
||||
{
|
||||
this.por = porValue;
|
||||
}
|
||||
|
||||
public Class<PlanoRiscosDataAuto> getOuterClass()
|
||||
{
|
||||
return PlanoRiscosDataAuto.class;
|
||||
}
|
||||
|
||||
public PlanoRiscosDataAuto getOuterClassInstance()
|
||||
{
|
||||
PlanoRiscosDataAuto outerObj = new PlanoRiscosDataAuto();
|
||||
outerObj.setInnerObject(this);
|
||||
return outerObj;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* PlanoRiscosDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
|
||||
public final class PlanoRiscosData extends com.evolute.siprp.server.db.data.siprp.PlanoRiscosDataAuto
|
||||
{
|
||||
|
||||
public PlanoRiscosData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,301 @@
|
||||
/*
|
||||
* PlanoRiscosDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
class PlanoRiscosDataAuto extends JDOObject
|
||||
{
|
||||
|
||||
public static final String TABLENAME = "plano_riscos";
|
||||
|
||||
public static final String DESCRICAO = "descricao";
|
||||
public static final String DESCRICAO_FULL = "plano_riscos.descricao";
|
||||
public static final String ACTIVO = "activo";
|
||||
public static final String ACTIVO_FULL = "plano_riscos.activo";
|
||||
public static final String AREA_ID = "area_id";
|
||||
public static final String AREA_ID_FULL = "plano_riscos.area_id";
|
||||
public static final String TO_AREA_ID = "to area_id";
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "plano_riscos.id";
|
||||
public static final String VALOR = "valor";
|
||||
public static final String VALOR_FULL = "plano_riscos.valor";
|
||||
public static final String RESPONSAVEL_EXECUCAO = "responsavel_execucao";
|
||||
public static final String RESPONSAVEL_EXECUCAO_FULL = "plano_riscos.responsavel_execucao";
|
||||
public static final String RECURSOS_NECESSARIOS = "recursos_necessarios";
|
||||
public static final String RECURSOS_NECESSARIOS_FULL = "plano_riscos.recursos_necessarios";
|
||||
public static final String DATA_INICIO = "data_inicio";
|
||||
public static final String DATA_INICIO_FULL = "plano_riscos.data_inicio";
|
||||
public static final String DATA_FIM = "data_fim";
|
||||
public static final String DATA_FIM_FULL = "plano_riscos.data_fim";
|
||||
public static final String PARECER_DL = "parecer_dl";
|
||||
public static final String PARECER_DL_FULL = "plano_riscos.parecer_dl";
|
||||
public static final String PARECER_DNS = "parecer_dns";
|
||||
public static final String PARECER_DNS_FULL = "plano_riscos.parecer_dns";
|
||||
public static final String VERIFICACAO_SIPRP = "verificacao_siprp";
|
||||
public static final String VERIFICACAO_SIPRP_FULL = "plano_riscos.verificacao_siprp";
|
||||
public static final String RISCO_ID = "risco_id";
|
||||
public static final String RISCO_ID_FULL = "plano_riscos.risco_id";
|
||||
public static final String POR = "por";
|
||||
public static final String POR_FULL = "plano_riscos.por";
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
DESCRICAO, ACTIVO, AREA_ID, TO_AREA_ID, VALOR, RESPONSAVEL_EXECUCAO,
|
||||
RECURSOS_NECESSARIOS, DATA_INICIO, DATA_FIM, PARECER_DL, PARECER_DNS,
|
||||
VERIFICACAO_SIPRP, RISCO_ID, POR, };
|
||||
|
||||
|
||||
protected static final String ALL_FIELD_NAMES[] = new String[]{
|
||||
DESCRICAO, ACTIVO, AREA_ID, ID, VALOR, RESPONSAVEL_EXECUCAO, RECURSOS_NECESSARIOS,
|
||||
DATA_INICIO, DATA_FIM, PARECER_DL, PARECER_DNS, VERIFICACAO_SIPRP, RISCO_ID, POR, };
|
||||
|
||||
private Map<String, Object> dataHash;
|
||||
|
||||
public PlanoRiscosDataAuto()
|
||||
{
|
||||
dataHash = new HashMap<String, Object>();
|
||||
}
|
||||
|
||||
public String getDescricao()
|
||||
{
|
||||
return (String) get(DESCRICAO);
|
||||
}
|
||||
|
||||
public void setDescricao(String descricaoValue )
|
||||
{
|
||||
this.set(DESCRICAO, descricaoValue );
|
||||
}
|
||||
|
||||
public String getActivo()
|
||||
{
|
||||
return (String) get(ACTIVO);
|
||||
}
|
||||
|
||||
public void setActivo(String activoValue )
|
||||
{
|
||||
this.set(ACTIVO, activoValue );
|
||||
}
|
||||
|
||||
public Integer getArea_id()
|
||||
{
|
||||
return (Integer) dataHash.get(AREA_ID);
|
||||
}
|
||||
|
||||
public void setArea_id(Integer area_idValue )
|
||||
{
|
||||
dataHash.put(TO_AREA_ID, null);
|
||||
dataHash.put(AREA_ID, area_idValue );
|
||||
}
|
||||
|
||||
public com.evolute.siprp.server.db.data.siprp.PlanoAreasData toArea_id()
|
||||
throws Exception
|
||||
{
|
||||
if( dataHash.get(TO_AREA_ID) == null && getArea_id() != null )
|
||||
{
|
||||
dataHash.put(TO_AREA_ID, getJDOProvider().load(com.evolute.siprp.server.db.data.siprp.PlanoAreasData.class, new Object[]{ getArea_id() }, new String[]{ com.evolute.siprp.server.db.data.siprp.PlanoAreasData.ID }));
|
||||
}
|
||||
return (com.evolute.siprp.server.db.data.siprp.PlanoAreasData) dataHash.get(TO_AREA_ID);
|
||||
}
|
||||
|
||||
public void setToArea_id(com.evolute.siprp.server.db.data.siprp.PlanoAreasData area_idObject )
|
||||
{
|
||||
if( area_idObject == null )
|
||||
{
|
||||
dataHash.put(AREA_ID, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
dataHash.put(AREA_ID, area_idObject.get( com.evolute.siprp.server.db.data.siprp.PlanoAreasData.ID ));
|
||||
}
|
||||
dataHash.put(TO_AREA_ID, area_idObject);
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return (Integer) get(ID);
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.set(ID, idValue );
|
||||
}
|
||||
|
||||
public Integer getValor()
|
||||
{
|
||||
return (Integer) get(VALOR);
|
||||
}
|
||||
|
||||
public void setValor(Integer valorValue )
|
||||
{
|
||||
this.set(VALOR, valorValue );
|
||||
}
|
||||
|
||||
public String getResponsavel_execucao()
|
||||
{
|
||||
return (String) get(RESPONSAVEL_EXECUCAO);
|
||||
}
|
||||
|
||||
public void setResponsavel_execucao(String responsavel_execucaoValue )
|
||||
{
|
||||
this.set(RESPONSAVEL_EXECUCAO, responsavel_execucaoValue );
|
||||
}
|
||||
|
||||
public String getRecursos_necessarios()
|
||||
{
|
||||
return (String) get(RECURSOS_NECESSARIOS);
|
||||
}
|
||||
|
||||
public void setRecursos_necessarios(String recursos_necessariosValue )
|
||||
{
|
||||
this.set(RECURSOS_NECESSARIOS, recursos_necessariosValue );
|
||||
}
|
||||
|
||||
public java.util.Date getData_inicio()
|
||||
{
|
||||
return (java.util.Date) get(DATA_INICIO);
|
||||
}
|
||||
|
||||
public void setData_inicio(java.util.Date data_inicioValue )
|
||||
{
|
||||
this.set(DATA_INICIO, data_inicioValue );
|
||||
}
|
||||
|
||||
public java.util.Date getData_fim()
|
||||
{
|
||||
return (java.util.Date) get(DATA_FIM);
|
||||
}
|
||||
|
||||
public void setData_fim(java.util.Date data_fimValue )
|
||||
{
|
||||
this.set(DATA_FIM, data_fimValue );
|
||||
}
|
||||
|
||||
public String getParecer_dl()
|
||||
{
|
||||
return (String) get(PARECER_DL);
|
||||
}
|
||||
|
||||
public void setParecer_dl(String parecer_dlValue )
|
||||
{
|
||||
this.set(PARECER_DL, parecer_dlValue );
|
||||
}
|
||||
|
||||
public String getParecer_dns()
|
||||
{
|
||||
return (String) get(PARECER_DNS);
|
||||
}
|
||||
|
||||
public void setParecer_dns(String parecer_dnsValue )
|
||||
{
|
||||
this.set(PARECER_DNS, parecer_dnsValue );
|
||||
}
|
||||
|
||||
public String getVerificacao_siprp()
|
||||
{
|
||||
return (String) get(VERIFICACAO_SIPRP);
|
||||
}
|
||||
|
||||
public void setVerificacao_siprp(String verificacao_siprpValue )
|
||||
{
|
||||
this.set(VERIFICACAO_SIPRP, verificacao_siprpValue );
|
||||
}
|
||||
|
||||
public Integer getRisco_id()
|
||||
{
|
||||
return (Integer) get(RISCO_ID);
|
||||
}
|
||||
|
||||
public void setRisco_id(Integer risco_idValue )
|
||||
{
|
||||
this.set(RISCO_ID, risco_idValue );
|
||||
}
|
||||
|
||||
public String getPor()
|
||||
{
|
||||
return (String) get(POR);
|
||||
}
|
||||
|
||||
public void setPor(String porValue )
|
||||
{
|
||||
this.set(POR, porValue );
|
||||
}
|
||||
|
||||
protected Object innerGet( String fieldName )
|
||||
throws Exception
|
||||
{
|
||||
Object value = null;
|
||||
if( TO_AREA_ID.equals( fieldName ) )
|
||||
{
|
||||
value = toArea_id();
|
||||
}
|
||||
else if( AREA_ID.equals( fieldName ) )
|
||||
{
|
||||
value = getArea_id();
|
||||
}
|
||||
else
|
||||
{
|
||||
value = dataHash.get( fieldName );
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
protected void innerSet( String fieldName, Object value )
|
||||
throws Exception
|
||||
{
|
||||
if( TO_AREA_ID.equals( fieldName ) )
|
||||
{
|
||||
setToArea_id( (com.evolute.siprp.server.db.data.siprp.PlanoAreasData) value );
|
||||
}
|
||||
else if( AREA_ID.equals( fieldName ) )
|
||||
{
|
||||
setArea_id( (Integer) value );
|
||||
}
|
||||
else
|
||||
{
|
||||
dataHash.put( fieldName, value );
|
||||
}
|
||||
}
|
||||
|
||||
public void save()
|
||||
throws Exception
|
||||
{
|
||||
if( dataHash.get(TO_AREA_ID) != null )
|
||||
{
|
||||
toArea_id().save();
|
||||
dataHash.put(AREA_ID, toArea_id().get( com.evolute.siprp.server.db.data.siprp.PlanoAreasData.ID ));
|
||||
}
|
||||
|
||||
super.save();
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
protected String []getAllFieldNames()
|
||||
{
|
||||
return ALL_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public Class<PlanoRiscos> getInnerClass()
|
||||
{
|
||||
return PlanoRiscos.class;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,804 @@
|
||||
/*
|
||||
* PlanosActuacao.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
|
||||
public final class PlanosActuacao implements JDOInnerObject
|
||||
{
|
||||
private Integer estabelecimento_id;
|
||||
private Integer fase;
|
||||
private java.util.Date data_visita;
|
||||
private String nome_estabelecimento;
|
||||
private Boolean validacao_director_loja;
|
||||
private Boolean validacao_dns;
|
||||
private Boolean validacao_hs;
|
||||
private String parecer_dns;
|
||||
private String obs_correcao;
|
||||
private java.util.Date data_validacao_dir_loja;
|
||||
private Integer user_dir_loja;
|
||||
private java.util.Date data_validacao_dns;
|
||||
private Integer user_dns;
|
||||
private java.util.Date data_validacao_hs;
|
||||
private Integer user_hs;
|
||||
private Integer fase_antes_correcao;
|
||||
private String correcao;
|
||||
private String observacoes_dl;
|
||||
private String observacoes_dns;
|
||||
private String verificacao_siprp;
|
||||
private java.util.Date data_controlo;
|
||||
private java.util.Date data_email_controlo;
|
||||
private Integer empresa_id;
|
||||
private String nome_empresa;
|
||||
private Integer tecnico_hs_id;
|
||||
private String tecnico_hs_nome;
|
||||
private Integer id;
|
||||
private java.util.Date data_relatorio;
|
||||
|
||||
public PlanosActuacao()
|
||||
{
|
||||
}
|
||||
|
||||
public Object getField( String fieldName )
|
||||
{
|
||||
if( fieldName == PlanosActuacaoDataAuto.ESTABELECIMENTO_ID )
|
||||
{
|
||||
return estabelecimento_id;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.FASE )
|
||||
{
|
||||
return fase;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.DATA_VISITA )
|
||||
{
|
||||
return data_visita;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.NOME_ESTABELECIMENTO )
|
||||
{
|
||||
return nome_estabelecimento;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.VALIDACAO_DIRECTOR_LOJA )
|
||||
{
|
||||
return validacao_director_loja;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.VALIDACAO_DNS )
|
||||
{
|
||||
return validacao_dns;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.VALIDACAO_HS )
|
||||
{
|
||||
return validacao_hs;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.PARECER_DNS )
|
||||
{
|
||||
return parecer_dns;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.OBS_CORRECAO )
|
||||
{
|
||||
return obs_correcao;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.DATA_VALIDACAO_DIR_LOJA )
|
||||
{
|
||||
return data_validacao_dir_loja;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.USER_DIR_LOJA )
|
||||
{
|
||||
return user_dir_loja;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.DATA_VALIDACAO_DNS )
|
||||
{
|
||||
return data_validacao_dns;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.USER_DNS )
|
||||
{
|
||||
return user_dns;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.DATA_VALIDACAO_HS )
|
||||
{
|
||||
return data_validacao_hs;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.USER_HS )
|
||||
{
|
||||
return user_hs;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.FASE_ANTES_CORRECAO )
|
||||
{
|
||||
return fase_antes_correcao;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.CORRECAO )
|
||||
{
|
||||
return correcao;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.OBSERVACOES_DL )
|
||||
{
|
||||
return observacoes_dl;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.OBSERVACOES_DNS )
|
||||
{
|
||||
return observacoes_dns;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.VERIFICACAO_SIPRP )
|
||||
{
|
||||
return verificacao_siprp;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.DATA_CONTROLO )
|
||||
{
|
||||
return data_controlo;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.DATA_EMAIL_CONTROLO )
|
||||
{
|
||||
return data_email_controlo;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.EMPRESA_ID )
|
||||
{
|
||||
return empresa_id;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.NOME_EMPRESA )
|
||||
{
|
||||
return nome_empresa;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.TECNICO_HS_ID )
|
||||
{
|
||||
return tecnico_hs_id;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.TECNICO_HS_NOME )
|
||||
{
|
||||
return tecnico_hs_nome;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.ID )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.DATA_RELATORIO )
|
||||
{
|
||||
return data_relatorio;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.ESTABELECIMENTO_ID ) )
|
||||
{
|
||||
return estabelecimento_id;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.FASE ) )
|
||||
{
|
||||
return fase;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.DATA_VISITA ) )
|
||||
{
|
||||
return data_visita;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.NOME_ESTABELECIMENTO ) )
|
||||
{
|
||||
return nome_estabelecimento;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.VALIDACAO_DIRECTOR_LOJA ) )
|
||||
{
|
||||
return validacao_director_loja;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.VALIDACAO_DNS ) )
|
||||
{
|
||||
return validacao_dns;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.VALIDACAO_HS ) )
|
||||
{
|
||||
return validacao_hs;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.PARECER_DNS ) )
|
||||
{
|
||||
return parecer_dns;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.OBS_CORRECAO ) )
|
||||
{
|
||||
return obs_correcao;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.DATA_VALIDACAO_DIR_LOJA ) )
|
||||
{
|
||||
return data_validacao_dir_loja;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.USER_DIR_LOJA ) )
|
||||
{
|
||||
return user_dir_loja;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.DATA_VALIDACAO_DNS ) )
|
||||
{
|
||||
return data_validacao_dns;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.USER_DNS ) )
|
||||
{
|
||||
return user_dns;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.DATA_VALIDACAO_HS ) )
|
||||
{
|
||||
return data_validacao_hs;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.USER_HS ) )
|
||||
{
|
||||
return user_hs;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.FASE_ANTES_CORRECAO ) )
|
||||
{
|
||||
return fase_antes_correcao;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.CORRECAO ) )
|
||||
{
|
||||
return correcao;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.OBSERVACOES_DL ) )
|
||||
{
|
||||
return observacoes_dl;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.OBSERVACOES_DNS ) )
|
||||
{
|
||||
return observacoes_dns;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.VERIFICACAO_SIPRP ) )
|
||||
{
|
||||
return verificacao_siprp;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.DATA_CONTROLO ) )
|
||||
{
|
||||
return data_controlo;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.DATA_EMAIL_CONTROLO ) )
|
||||
{
|
||||
return data_email_controlo;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.EMPRESA_ID ) )
|
||||
{
|
||||
return empresa_id;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.NOME_EMPRESA ) )
|
||||
{
|
||||
return nome_empresa;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.TECNICO_HS_ID ) )
|
||||
{
|
||||
return tecnico_hs_id;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.TECNICO_HS_NOME ) )
|
||||
{
|
||||
return tecnico_hs_nome;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.ID ) )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.DATA_RELATORIO ) )
|
||||
{
|
||||
return data_relatorio;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setField( String fieldName, Object value )
|
||||
{
|
||||
if( fieldName == PlanosActuacaoDataAuto.ESTABELECIMENTO_ID )
|
||||
{
|
||||
estabelecimento_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.FASE )
|
||||
{
|
||||
fase = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.DATA_VISITA )
|
||||
{
|
||||
data_visita = ( java.util.Date ) value;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.NOME_ESTABELECIMENTO )
|
||||
{
|
||||
nome_estabelecimento = ( String ) value;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.VALIDACAO_DIRECTOR_LOJA )
|
||||
{
|
||||
validacao_director_loja = ( Boolean ) value;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.VALIDACAO_DNS )
|
||||
{
|
||||
validacao_dns = ( Boolean ) value;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.VALIDACAO_HS )
|
||||
{
|
||||
validacao_hs = ( Boolean ) value;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.PARECER_DNS )
|
||||
{
|
||||
parecer_dns = ( String ) value;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.OBS_CORRECAO )
|
||||
{
|
||||
obs_correcao = ( String ) value;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.DATA_VALIDACAO_DIR_LOJA )
|
||||
{
|
||||
data_validacao_dir_loja = ( java.util.Date ) value;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.USER_DIR_LOJA )
|
||||
{
|
||||
user_dir_loja = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.DATA_VALIDACAO_DNS )
|
||||
{
|
||||
data_validacao_dns = ( java.util.Date ) value;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.USER_DNS )
|
||||
{
|
||||
user_dns = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.DATA_VALIDACAO_HS )
|
||||
{
|
||||
data_validacao_hs = ( java.util.Date ) value;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.USER_HS )
|
||||
{
|
||||
user_hs = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.FASE_ANTES_CORRECAO )
|
||||
{
|
||||
fase_antes_correcao = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.CORRECAO )
|
||||
{
|
||||
correcao = ( String ) value;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.OBSERVACOES_DL )
|
||||
{
|
||||
observacoes_dl = ( String ) value;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.OBSERVACOES_DNS )
|
||||
{
|
||||
observacoes_dns = ( String ) value;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.VERIFICACAO_SIPRP )
|
||||
{
|
||||
verificacao_siprp = ( String ) value;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.DATA_CONTROLO )
|
||||
{
|
||||
data_controlo = ( java.util.Date ) value;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.DATA_EMAIL_CONTROLO )
|
||||
{
|
||||
data_email_controlo = ( java.util.Date ) value;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.EMPRESA_ID )
|
||||
{
|
||||
empresa_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.NOME_EMPRESA )
|
||||
{
|
||||
nome_empresa = ( String ) value;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.TECNICO_HS_ID )
|
||||
{
|
||||
tecnico_hs_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.TECNICO_HS_NOME )
|
||||
{
|
||||
tecnico_hs_nome = ( String ) value;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.ID )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == PlanosActuacaoDataAuto.DATA_RELATORIO )
|
||||
{
|
||||
data_relatorio = ( java.util.Date ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.ESTABELECIMENTO_ID ) )
|
||||
{
|
||||
estabelecimento_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.FASE ) )
|
||||
{
|
||||
fase = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.DATA_VISITA ) )
|
||||
{
|
||||
data_visita = ( java.util.Date ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.NOME_ESTABELECIMENTO ) )
|
||||
{
|
||||
nome_estabelecimento = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.VALIDACAO_DIRECTOR_LOJA ) )
|
||||
{
|
||||
validacao_director_loja = ( Boolean ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.VALIDACAO_DNS ) )
|
||||
{
|
||||
validacao_dns = ( Boolean ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.VALIDACAO_HS ) )
|
||||
{
|
||||
validacao_hs = ( Boolean ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.PARECER_DNS ) )
|
||||
{
|
||||
parecer_dns = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.OBS_CORRECAO ) )
|
||||
{
|
||||
obs_correcao = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.DATA_VALIDACAO_DIR_LOJA ) )
|
||||
{
|
||||
data_validacao_dir_loja = ( java.util.Date ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.USER_DIR_LOJA ) )
|
||||
{
|
||||
user_dir_loja = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.DATA_VALIDACAO_DNS ) )
|
||||
{
|
||||
data_validacao_dns = ( java.util.Date ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.USER_DNS ) )
|
||||
{
|
||||
user_dns = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.DATA_VALIDACAO_HS ) )
|
||||
{
|
||||
data_validacao_hs = ( java.util.Date ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.USER_HS ) )
|
||||
{
|
||||
user_hs = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.FASE_ANTES_CORRECAO ) )
|
||||
{
|
||||
fase_antes_correcao = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.CORRECAO ) )
|
||||
{
|
||||
correcao = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.OBSERVACOES_DL ) )
|
||||
{
|
||||
observacoes_dl = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.OBSERVACOES_DNS ) )
|
||||
{
|
||||
observacoes_dns = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.VERIFICACAO_SIPRP ) )
|
||||
{
|
||||
verificacao_siprp = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.DATA_CONTROLO ) )
|
||||
{
|
||||
data_controlo = ( java.util.Date ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.DATA_EMAIL_CONTROLO ) )
|
||||
{
|
||||
data_email_controlo = ( java.util.Date ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.EMPRESA_ID ) )
|
||||
{
|
||||
empresa_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.NOME_EMPRESA ) )
|
||||
{
|
||||
nome_empresa = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.TECNICO_HS_ID ) )
|
||||
{
|
||||
tecnico_hs_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.TECNICO_HS_NOME ) )
|
||||
{
|
||||
tecnico_hs_nome = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.ID ) )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( PlanosActuacaoDataAuto.DATA_RELATORIO ) )
|
||||
{
|
||||
data_relatorio = ( java.util.Date ) value;
|
||||
}
|
||||
}
|
||||
|
||||
public Integer getEstabelecimento_id()
|
||||
{
|
||||
return estabelecimento_id;
|
||||
}
|
||||
|
||||
public void setEstabelecimento_id(Integer estabelecimento_idValue )
|
||||
{
|
||||
this.estabelecimento_id = estabelecimento_idValue;
|
||||
}
|
||||
|
||||
public Integer getFase()
|
||||
{
|
||||
return fase;
|
||||
}
|
||||
|
||||
public void setFase(Integer faseValue )
|
||||
{
|
||||
this.fase = faseValue;
|
||||
}
|
||||
|
||||
public java.util.Date getData_visita()
|
||||
{
|
||||
return data_visita;
|
||||
}
|
||||
|
||||
public void setData_visita(java.util.Date data_visitaValue )
|
||||
{
|
||||
this.data_visita = data_visitaValue;
|
||||
}
|
||||
|
||||
public String getNome_estabelecimento()
|
||||
{
|
||||
return nome_estabelecimento;
|
||||
}
|
||||
|
||||
public void setNome_estabelecimento(String nome_estabelecimentoValue )
|
||||
{
|
||||
this.nome_estabelecimento = nome_estabelecimentoValue;
|
||||
}
|
||||
|
||||
public Boolean getValidacao_director_loja()
|
||||
{
|
||||
return validacao_director_loja;
|
||||
}
|
||||
|
||||
public void setValidacao_director_loja(Boolean validacao_director_lojaValue )
|
||||
{
|
||||
this.validacao_director_loja = validacao_director_lojaValue;
|
||||
}
|
||||
|
||||
public Boolean getValidacao_dns()
|
||||
{
|
||||
return validacao_dns;
|
||||
}
|
||||
|
||||
public void setValidacao_dns(Boolean validacao_dnsValue )
|
||||
{
|
||||
this.validacao_dns = validacao_dnsValue;
|
||||
}
|
||||
|
||||
public Boolean getValidacao_hs()
|
||||
{
|
||||
return validacao_hs;
|
||||
}
|
||||
|
||||
public void setValidacao_hs(Boolean validacao_hsValue )
|
||||
{
|
||||
this.validacao_hs = validacao_hsValue;
|
||||
}
|
||||
|
||||
public String getParecer_dns()
|
||||
{
|
||||
return parecer_dns;
|
||||
}
|
||||
|
||||
public void setParecer_dns(String parecer_dnsValue )
|
||||
{
|
||||
this.parecer_dns = parecer_dnsValue;
|
||||
}
|
||||
|
||||
public String getObs_correcao()
|
||||
{
|
||||
return obs_correcao;
|
||||
}
|
||||
|
||||
public void setObs_correcao(String obs_correcaoValue )
|
||||
{
|
||||
this.obs_correcao = obs_correcaoValue;
|
||||
}
|
||||
|
||||
public java.util.Date getData_validacao_dir_loja()
|
||||
{
|
||||
return data_validacao_dir_loja;
|
||||
}
|
||||
|
||||
public void setData_validacao_dir_loja(java.util.Date data_validacao_dir_lojaValue )
|
||||
{
|
||||
this.data_validacao_dir_loja = data_validacao_dir_lojaValue;
|
||||
}
|
||||
|
||||
public Integer getUser_dir_loja()
|
||||
{
|
||||
return user_dir_loja;
|
||||
}
|
||||
|
||||
public void setUser_dir_loja(Integer user_dir_lojaValue )
|
||||
{
|
||||
this.user_dir_loja = user_dir_lojaValue;
|
||||
}
|
||||
|
||||
public java.util.Date getData_validacao_dns()
|
||||
{
|
||||
return data_validacao_dns;
|
||||
}
|
||||
|
||||
public void setData_validacao_dns(java.util.Date data_validacao_dnsValue )
|
||||
{
|
||||
this.data_validacao_dns = data_validacao_dnsValue;
|
||||
}
|
||||
|
||||
public Integer getUser_dns()
|
||||
{
|
||||
return user_dns;
|
||||
}
|
||||
|
||||
public void setUser_dns(Integer user_dnsValue )
|
||||
{
|
||||
this.user_dns = user_dnsValue;
|
||||
}
|
||||
|
||||
public java.util.Date getData_validacao_hs()
|
||||
{
|
||||
return data_validacao_hs;
|
||||
}
|
||||
|
||||
public void setData_validacao_hs(java.util.Date data_validacao_hsValue )
|
||||
{
|
||||
this.data_validacao_hs = data_validacao_hsValue;
|
||||
}
|
||||
|
||||
public Integer getUser_hs()
|
||||
{
|
||||
return user_hs;
|
||||
}
|
||||
|
||||
public void setUser_hs(Integer user_hsValue )
|
||||
{
|
||||
this.user_hs = user_hsValue;
|
||||
}
|
||||
|
||||
public Integer getFase_antes_correcao()
|
||||
{
|
||||
return fase_antes_correcao;
|
||||
}
|
||||
|
||||
public void setFase_antes_correcao(Integer fase_antes_correcaoValue )
|
||||
{
|
||||
this.fase_antes_correcao = fase_antes_correcaoValue;
|
||||
}
|
||||
|
||||
public String getCorrecao()
|
||||
{
|
||||
return correcao;
|
||||
}
|
||||
|
||||
public void setCorrecao(String correcaoValue )
|
||||
{
|
||||
this.correcao = correcaoValue;
|
||||
}
|
||||
|
||||
public String getObservacoes_dl()
|
||||
{
|
||||
return observacoes_dl;
|
||||
}
|
||||
|
||||
public void setObservacoes_dl(String observacoes_dlValue )
|
||||
{
|
||||
this.observacoes_dl = observacoes_dlValue;
|
||||
}
|
||||
|
||||
public String getObservacoes_dns()
|
||||
{
|
||||
return observacoes_dns;
|
||||
}
|
||||
|
||||
public void setObservacoes_dns(String observacoes_dnsValue )
|
||||
{
|
||||
this.observacoes_dns = observacoes_dnsValue;
|
||||
}
|
||||
|
||||
public String getVerificacao_siprp()
|
||||
{
|
||||
return verificacao_siprp;
|
||||
}
|
||||
|
||||
public void setVerificacao_siprp(String verificacao_siprpValue )
|
||||
{
|
||||
this.verificacao_siprp = verificacao_siprpValue;
|
||||
}
|
||||
|
||||
public java.util.Date getData_controlo()
|
||||
{
|
||||
return data_controlo;
|
||||
}
|
||||
|
||||
public void setData_controlo(java.util.Date data_controloValue )
|
||||
{
|
||||
this.data_controlo = data_controloValue;
|
||||
}
|
||||
|
||||
public java.util.Date getData_email_controlo()
|
||||
{
|
||||
return data_email_controlo;
|
||||
}
|
||||
|
||||
public void setData_email_controlo(java.util.Date data_email_controloValue )
|
||||
{
|
||||
this.data_email_controlo = data_email_controloValue;
|
||||
}
|
||||
|
||||
public Integer getEmpresa_id()
|
||||
{
|
||||
return empresa_id;
|
||||
}
|
||||
|
||||
public void setEmpresa_id(Integer empresa_idValue )
|
||||
{
|
||||
this.empresa_id = empresa_idValue;
|
||||
}
|
||||
|
||||
public String getNome_empresa()
|
||||
{
|
||||
return nome_empresa;
|
||||
}
|
||||
|
||||
public void setNome_empresa(String nome_empresaValue )
|
||||
{
|
||||
this.nome_empresa = nome_empresaValue;
|
||||
}
|
||||
|
||||
public Integer getTecnico_hs_id()
|
||||
{
|
||||
return tecnico_hs_id;
|
||||
}
|
||||
|
||||
public void setTecnico_hs_id(Integer tecnico_hs_idValue )
|
||||
{
|
||||
this.tecnico_hs_id = tecnico_hs_idValue;
|
||||
}
|
||||
|
||||
public String getTecnico_hs_nome()
|
||||
{
|
||||
return tecnico_hs_nome;
|
||||
}
|
||||
|
||||
public void setTecnico_hs_nome(String tecnico_hs_nomeValue )
|
||||
{
|
||||
this.tecnico_hs_nome = tecnico_hs_nomeValue;
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.id = idValue;
|
||||
}
|
||||
|
||||
public java.util.Date getData_relatorio()
|
||||
{
|
||||
return data_relatorio;
|
||||
}
|
||||
|
||||
public void setData_relatorio(java.util.Date data_relatorioValue )
|
||||
{
|
||||
this.data_relatorio = data_relatorioValue;
|
||||
}
|
||||
|
||||
public Class<PlanosActuacaoDataAuto> getOuterClass()
|
||||
{
|
||||
return PlanosActuacaoDataAuto.class;
|
||||
}
|
||||
|
||||
public PlanosActuacaoDataAuto getOuterClassInstance()
|
||||
{
|
||||
PlanosActuacaoDataAuto outerObj = new PlanosActuacaoDataAuto();
|
||||
outerObj.setInnerObject(this);
|
||||
return outerObj;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* PlanosActuacaoDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
|
||||
public final class PlanosActuacaoData extends com.evolute.siprp.server.db.data.siprp.PlanosActuacaoDataAuto
|
||||
{
|
||||
|
||||
public PlanosActuacaoData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,572 @@
|
||||
/*
|
||||
* PlanosActuacaoDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
class PlanosActuacaoDataAuto extends JDOObject
|
||||
{
|
||||
|
||||
public static final String TABLENAME = "planos_actuacao";
|
||||
|
||||
public static final String ESTABELECIMENTO_ID = "estabelecimento_id";
|
||||
public static final String ESTABELECIMENTO_ID_FULL = "planos_actuacao.estabelecimento_id";
|
||||
public static final String FASE = "fase";
|
||||
public static final String FASE_FULL = "planos_actuacao.fase";
|
||||
public static final String DATA_VISITA = "data_visita";
|
||||
public static final String DATA_VISITA_FULL = "planos_actuacao.data_visita";
|
||||
public static final String NOME_ESTABELECIMENTO = "nome_estabelecimento";
|
||||
public static final String NOME_ESTABELECIMENTO_FULL = "planos_actuacao.nome_estabelecimento";
|
||||
public static final String VALIDACAO_DIRECTOR_LOJA = "validacao_director_loja";
|
||||
public static final String VALIDACAO_DIRECTOR_LOJA_FULL = "planos_actuacao.validacao_director_loja";
|
||||
public static final String VALIDACAO_DNS = "validacao_dns";
|
||||
public static final String VALIDACAO_DNS_FULL = "planos_actuacao.validacao_dns";
|
||||
public static final String VALIDACAO_HS = "validacao_hs";
|
||||
public static final String VALIDACAO_HS_FULL = "planos_actuacao.validacao_hs";
|
||||
public static final String PARECER_DNS = "parecer_dns";
|
||||
public static final String PARECER_DNS_FULL = "planos_actuacao.parecer_dns";
|
||||
public static final String OBS_CORRECAO = "obs_correcao";
|
||||
public static final String OBS_CORRECAO_FULL = "planos_actuacao.obs_correcao";
|
||||
public static final String DATA_VALIDACAO_DIR_LOJA = "data_validacao_dir_loja";
|
||||
public static final String DATA_VALIDACAO_DIR_LOJA_FULL = "planos_actuacao.data_validacao_dir_loja";
|
||||
public static final String USER_DIR_LOJA = "user_dir_loja";
|
||||
public static final String USER_DIR_LOJA_FULL = "planos_actuacao.user_dir_loja";
|
||||
public static final String TO_USER_DIR_LOJA = "to user_dir_loja";
|
||||
public static final String DATA_VALIDACAO_DNS = "data_validacao_dns";
|
||||
public static final String DATA_VALIDACAO_DNS_FULL = "planos_actuacao.data_validacao_dns";
|
||||
public static final String USER_DNS = "user_dns";
|
||||
public static final String USER_DNS_FULL = "planos_actuacao.user_dns";
|
||||
public static final String TO_USER_DNS = "to user_dns";
|
||||
public static final String DATA_VALIDACAO_HS = "data_validacao_hs";
|
||||
public static final String DATA_VALIDACAO_HS_FULL = "planos_actuacao.data_validacao_hs";
|
||||
public static final String USER_HS = "user_hs";
|
||||
public static final String USER_HS_FULL = "planos_actuacao.user_hs";
|
||||
public static final String TO_USER_HS = "to user_hs";
|
||||
public static final String FASE_ANTES_CORRECAO = "fase_antes_correcao";
|
||||
public static final String FASE_ANTES_CORRECAO_FULL = "planos_actuacao.fase_antes_correcao";
|
||||
public static final String CORRECAO = "correcao";
|
||||
public static final String CORRECAO_FULL = "planos_actuacao.correcao";
|
||||
public static final String OBSERVACOES_DL = "observacoes_dl";
|
||||
public static final String OBSERVACOES_DL_FULL = "planos_actuacao.observacoes_dl";
|
||||
public static final String OBSERVACOES_DNS = "observacoes_dns";
|
||||
public static final String OBSERVACOES_DNS_FULL = "planos_actuacao.observacoes_dns";
|
||||
public static final String VERIFICACAO_SIPRP = "verificacao_siprp";
|
||||
public static final String VERIFICACAO_SIPRP_FULL = "planos_actuacao.verificacao_siprp";
|
||||
public static final String DATA_CONTROLO = "data_controlo";
|
||||
public static final String DATA_CONTROLO_FULL = "planos_actuacao.data_controlo";
|
||||
public static final String DATA_EMAIL_CONTROLO = "data_email_controlo";
|
||||
public static final String DATA_EMAIL_CONTROLO_FULL = "planos_actuacao.data_email_controlo";
|
||||
public static final String EMPRESA_ID = "empresa_id";
|
||||
public static final String EMPRESA_ID_FULL = "planos_actuacao.empresa_id";
|
||||
public static final String NOME_EMPRESA = "nome_empresa";
|
||||
public static final String NOME_EMPRESA_FULL = "planos_actuacao.nome_empresa";
|
||||
public static final String TECNICO_HS_ID = "tecnico_hs_id";
|
||||
public static final String TECNICO_HS_ID_FULL = "planos_actuacao.tecnico_hs_id";
|
||||
public static final String TECNICO_HS_NOME = "tecnico_hs_nome";
|
||||
public static final String TECNICO_HS_NOME_FULL = "planos_actuacao.tecnico_hs_nome";
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "planos_actuacao.id";
|
||||
public static final String DATA_RELATORIO = "data_relatorio";
|
||||
public static final String DATA_RELATORIO_FULL = "planos_actuacao.data_relatorio";
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
ESTABELECIMENTO_ID, FASE, DATA_VISITA, NOME_ESTABELECIMENTO,
|
||||
VALIDACAO_DIRECTOR_LOJA, VALIDACAO_DNS, VALIDACAO_HS, PARECER_DNS,
|
||||
OBS_CORRECAO, DATA_VALIDACAO_DIR_LOJA, USER_DIR_LOJA, TO_USER_DIR_LOJA,
|
||||
DATA_VALIDACAO_DNS, USER_DNS, TO_USER_DNS, DATA_VALIDACAO_HS, USER_HS,
|
||||
TO_USER_HS, FASE_ANTES_CORRECAO, CORRECAO, OBSERVACOES_DL, OBSERVACOES_DNS,
|
||||
VERIFICACAO_SIPRP, DATA_CONTROLO, DATA_EMAIL_CONTROLO, EMPRESA_ID,
|
||||
NOME_EMPRESA, TECNICO_HS_ID, TECNICO_HS_NOME, DATA_RELATORIO, };
|
||||
|
||||
|
||||
protected static final String ALL_FIELD_NAMES[] = new String[]{
|
||||
ESTABELECIMENTO_ID, FASE, DATA_VISITA, NOME_ESTABELECIMENTO,
|
||||
VALIDACAO_DIRECTOR_LOJA, VALIDACAO_DNS, VALIDACAO_HS, PARECER_DNS,
|
||||
OBS_CORRECAO, DATA_VALIDACAO_DIR_LOJA, USER_DIR_LOJA, DATA_VALIDACAO_DNS,
|
||||
USER_DNS, DATA_VALIDACAO_HS, USER_HS, FASE_ANTES_CORRECAO, CORRECAO,
|
||||
OBSERVACOES_DL, OBSERVACOES_DNS, VERIFICACAO_SIPRP, DATA_CONTROLO,
|
||||
DATA_EMAIL_CONTROLO, EMPRESA_ID, NOME_EMPRESA, TECNICO_HS_ID, TECNICO_HS_NOME,
|
||||
ID, DATA_RELATORIO, };
|
||||
|
||||
private Map<String, Object> dataHash;
|
||||
|
||||
public PlanosActuacaoDataAuto()
|
||||
{
|
||||
dataHash = new HashMap<String, Object>();
|
||||
}
|
||||
|
||||
public Integer getEstabelecimento_id()
|
||||
{
|
||||
return (Integer) get(ESTABELECIMENTO_ID);
|
||||
}
|
||||
|
||||
public void setEstabelecimento_id(Integer estabelecimento_idValue )
|
||||
{
|
||||
this.set(ESTABELECIMENTO_ID, estabelecimento_idValue );
|
||||
}
|
||||
|
||||
public Integer getFase()
|
||||
{
|
||||
return (Integer) get(FASE);
|
||||
}
|
||||
|
||||
public void setFase(Integer faseValue )
|
||||
{
|
||||
this.set(FASE, faseValue );
|
||||
}
|
||||
|
||||
public java.util.Date getData_visita()
|
||||
{
|
||||
return (java.util.Date) get(DATA_VISITA);
|
||||
}
|
||||
|
||||
public void setData_visita(java.util.Date data_visitaValue )
|
||||
{
|
||||
this.set(DATA_VISITA, data_visitaValue );
|
||||
}
|
||||
|
||||
public String getNome_estabelecimento()
|
||||
{
|
||||
return (String) get(NOME_ESTABELECIMENTO);
|
||||
}
|
||||
|
||||
public void setNome_estabelecimento(String nome_estabelecimentoValue )
|
||||
{
|
||||
this.set(NOME_ESTABELECIMENTO, nome_estabelecimentoValue );
|
||||
}
|
||||
|
||||
public Boolean getValidacao_director_loja()
|
||||
{
|
||||
return (Boolean) get(VALIDACAO_DIRECTOR_LOJA);
|
||||
}
|
||||
|
||||
public void setValidacao_director_loja(Boolean validacao_director_lojaValue )
|
||||
{
|
||||
this.set(VALIDACAO_DIRECTOR_LOJA, validacao_director_lojaValue );
|
||||
}
|
||||
|
||||
public Boolean getValidacao_dns()
|
||||
{
|
||||
return (Boolean) get(VALIDACAO_DNS);
|
||||
}
|
||||
|
||||
public void setValidacao_dns(Boolean validacao_dnsValue )
|
||||
{
|
||||
this.set(VALIDACAO_DNS, validacao_dnsValue );
|
||||
}
|
||||
|
||||
public Boolean getValidacao_hs()
|
||||
{
|
||||
return (Boolean) get(VALIDACAO_HS);
|
||||
}
|
||||
|
||||
public void setValidacao_hs(Boolean validacao_hsValue )
|
||||
{
|
||||
this.set(VALIDACAO_HS, validacao_hsValue );
|
||||
}
|
||||
|
||||
public String getParecer_dns()
|
||||
{
|
||||
return (String) get(PARECER_DNS);
|
||||
}
|
||||
|
||||
public void setParecer_dns(String parecer_dnsValue )
|
||||
{
|
||||
this.set(PARECER_DNS, parecer_dnsValue );
|
||||
}
|
||||
|
||||
public String getObs_correcao()
|
||||
{
|
||||
return (String) get(OBS_CORRECAO);
|
||||
}
|
||||
|
||||
public void setObs_correcao(String obs_correcaoValue )
|
||||
{
|
||||
this.set(OBS_CORRECAO, obs_correcaoValue );
|
||||
}
|
||||
|
||||
public java.util.Date getData_validacao_dir_loja()
|
||||
{
|
||||
return (java.util.Date) get(DATA_VALIDACAO_DIR_LOJA);
|
||||
}
|
||||
|
||||
public void setData_validacao_dir_loja(java.util.Date data_validacao_dir_lojaValue )
|
||||
{
|
||||
this.set(DATA_VALIDACAO_DIR_LOJA, data_validacao_dir_lojaValue );
|
||||
}
|
||||
|
||||
public Integer getUser_dir_loja()
|
||||
{
|
||||
return (Integer) dataHash.get(USER_DIR_LOJA);
|
||||
}
|
||||
|
||||
public void setUser_dir_loja(Integer user_dir_lojaValue )
|
||||
{
|
||||
dataHash.put(TO_USER_DIR_LOJA, null);
|
||||
dataHash.put(USER_DIR_LOJA, user_dir_lojaValue );
|
||||
}
|
||||
|
||||
public com.evolute.siprp.server.db.data.siprp.UtilizadoresData toUser_dir_loja()
|
||||
throws Exception
|
||||
{
|
||||
if( dataHash.get(TO_USER_DIR_LOJA) == null && getUser_dir_loja() != null )
|
||||
{
|
||||
dataHash.put(TO_USER_DIR_LOJA, getJDOProvider().load(com.evolute.siprp.server.db.data.siprp.UtilizadoresData.class, new Object[]{ getUser_dir_loja() }, new String[]{ com.evolute.siprp.server.db.data.siprp.UtilizadoresData.ID }));
|
||||
}
|
||||
return (com.evolute.siprp.server.db.data.siprp.UtilizadoresData) dataHash.get(TO_USER_DIR_LOJA);
|
||||
}
|
||||
|
||||
public void setToUser_dir_loja(com.evolute.siprp.server.db.data.siprp.UtilizadoresData user_dir_lojaObject )
|
||||
{
|
||||
if( user_dir_lojaObject == null )
|
||||
{
|
||||
dataHash.put(USER_DIR_LOJA, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
dataHash.put(USER_DIR_LOJA, user_dir_lojaObject.get( com.evolute.siprp.server.db.data.siprp.UtilizadoresData.ID ));
|
||||
}
|
||||
dataHash.put(TO_USER_DIR_LOJA, user_dir_lojaObject);
|
||||
}
|
||||
|
||||
public java.util.Date getData_validacao_dns()
|
||||
{
|
||||
return (java.util.Date) get(DATA_VALIDACAO_DNS);
|
||||
}
|
||||
|
||||
public void setData_validacao_dns(java.util.Date data_validacao_dnsValue )
|
||||
{
|
||||
this.set(DATA_VALIDACAO_DNS, data_validacao_dnsValue );
|
||||
}
|
||||
|
||||
public Integer getUser_dns()
|
||||
{
|
||||
return (Integer) dataHash.get(USER_DNS);
|
||||
}
|
||||
|
||||
public void setUser_dns(Integer user_dnsValue )
|
||||
{
|
||||
dataHash.put(TO_USER_DNS, null);
|
||||
dataHash.put(USER_DNS, user_dnsValue );
|
||||
}
|
||||
|
||||
public com.evolute.siprp.server.db.data.siprp.UtilizadoresData toUser_dns()
|
||||
throws Exception
|
||||
{
|
||||
if( dataHash.get(TO_USER_DNS) == null && getUser_dns() != null )
|
||||
{
|
||||
dataHash.put(TO_USER_DNS, getJDOProvider().load(com.evolute.siprp.server.db.data.siprp.UtilizadoresData.class, new Object[]{ getUser_dns() }, new String[]{ com.evolute.siprp.server.db.data.siprp.UtilizadoresData.ID }));
|
||||
}
|
||||
return (com.evolute.siprp.server.db.data.siprp.UtilizadoresData) dataHash.get(TO_USER_DNS);
|
||||
}
|
||||
|
||||
public void setToUser_dns(com.evolute.siprp.server.db.data.siprp.UtilizadoresData user_dnsObject )
|
||||
{
|
||||
if( user_dnsObject == null )
|
||||
{
|
||||
dataHash.put(USER_DNS, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
dataHash.put(USER_DNS, user_dnsObject.get( com.evolute.siprp.server.db.data.siprp.UtilizadoresData.ID ));
|
||||
}
|
||||
dataHash.put(TO_USER_DNS, user_dnsObject);
|
||||
}
|
||||
|
||||
public java.util.Date getData_validacao_hs()
|
||||
{
|
||||
return (java.util.Date) get(DATA_VALIDACAO_HS);
|
||||
}
|
||||
|
||||
public void setData_validacao_hs(java.util.Date data_validacao_hsValue )
|
||||
{
|
||||
this.set(DATA_VALIDACAO_HS, data_validacao_hsValue );
|
||||
}
|
||||
|
||||
public Integer getUser_hs()
|
||||
{
|
||||
return (Integer) dataHash.get(USER_HS);
|
||||
}
|
||||
|
||||
public void setUser_hs(Integer user_hsValue )
|
||||
{
|
||||
dataHash.put(TO_USER_HS, null);
|
||||
dataHash.put(USER_HS, user_hsValue );
|
||||
}
|
||||
|
||||
public com.evolute.siprp.server.db.data.siprp.UtilizadoresData toUser_hs()
|
||||
throws Exception
|
||||
{
|
||||
if( dataHash.get(TO_USER_HS) == null && getUser_hs() != null )
|
||||
{
|
||||
dataHash.put(TO_USER_HS, getJDOProvider().load(com.evolute.siprp.server.db.data.siprp.UtilizadoresData.class, new Object[]{ getUser_hs() }, new String[]{ com.evolute.siprp.server.db.data.siprp.UtilizadoresData.ID }));
|
||||
}
|
||||
return (com.evolute.siprp.server.db.data.siprp.UtilizadoresData) dataHash.get(TO_USER_HS);
|
||||
}
|
||||
|
||||
public void setToUser_hs(com.evolute.siprp.server.db.data.siprp.UtilizadoresData user_hsObject )
|
||||
{
|
||||
if( user_hsObject == null )
|
||||
{
|
||||
dataHash.put(USER_HS, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
dataHash.put(USER_HS, user_hsObject.get( com.evolute.siprp.server.db.data.siprp.UtilizadoresData.ID ));
|
||||
}
|
||||
dataHash.put(TO_USER_HS, user_hsObject);
|
||||
}
|
||||
|
||||
public Integer getFase_antes_correcao()
|
||||
{
|
||||
return (Integer) get(FASE_ANTES_CORRECAO);
|
||||
}
|
||||
|
||||
public void setFase_antes_correcao(Integer fase_antes_correcaoValue )
|
||||
{
|
||||
this.set(FASE_ANTES_CORRECAO, fase_antes_correcaoValue );
|
||||
}
|
||||
|
||||
public String getCorrecao()
|
||||
{
|
||||
return (String) get(CORRECAO);
|
||||
}
|
||||
|
||||
public void setCorrecao(String correcaoValue )
|
||||
{
|
||||
this.set(CORRECAO, correcaoValue );
|
||||
}
|
||||
|
||||
public String getObservacoes_dl()
|
||||
{
|
||||
return (String) get(OBSERVACOES_DL);
|
||||
}
|
||||
|
||||
public void setObservacoes_dl(String observacoes_dlValue )
|
||||
{
|
||||
this.set(OBSERVACOES_DL, observacoes_dlValue );
|
||||
}
|
||||
|
||||
public String getObservacoes_dns()
|
||||
{
|
||||
return (String) get(OBSERVACOES_DNS);
|
||||
}
|
||||
|
||||
public void setObservacoes_dns(String observacoes_dnsValue )
|
||||
{
|
||||
this.set(OBSERVACOES_DNS, observacoes_dnsValue );
|
||||
}
|
||||
|
||||
public String getVerificacao_siprp()
|
||||
{
|
||||
return (String) get(VERIFICACAO_SIPRP);
|
||||
}
|
||||
|
||||
public void setVerificacao_siprp(String verificacao_siprpValue )
|
||||
{
|
||||
this.set(VERIFICACAO_SIPRP, verificacao_siprpValue );
|
||||
}
|
||||
|
||||
public java.util.Date getData_controlo()
|
||||
{
|
||||
return (java.util.Date) get(DATA_CONTROLO);
|
||||
}
|
||||
|
||||
public void setData_controlo(java.util.Date data_controloValue )
|
||||
{
|
||||
this.set(DATA_CONTROLO, data_controloValue );
|
||||
}
|
||||
|
||||
public java.util.Date getData_email_controlo()
|
||||
{
|
||||
return (java.util.Date) get(DATA_EMAIL_CONTROLO);
|
||||
}
|
||||
|
||||
public void setData_email_controlo(java.util.Date data_email_controloValue )
|
||||
{
|
||||
this.set(DATA_EMAIL_CONTROLO, data_email_controloValue );
|
||||
}
|
||||
|
||||
public Integer getEmpresa_id()
|
||||
{
|
||||
return (Integer) get(EMPRESA_ID);
|
||||
}
|
||||
|
||||
public void setEmpresa_id(Integer empresa_idValue )
|
||||
{
|
||||
this.set(EMPRESA_ID, empresa_idValue );
|
||||
}
|
||||
|
||||
public String getNome_empresa()
|
||||
{
|
||||
return (String) get(NOME_EMPRESA);
|
||||
}
|
||||
|
||||
public void setNome_empresa(String nome_empresaValue )
|
||||
{
|
||||
this.set(NOME_EMPRESA, nome_empresaValue );
|
||||
}
|
||||
|
||||
public Integer getTecnico_hs_id()
|
||||
{
|
||||
return (Integer) get(TECNICO_HS_ID);
|
||||
}
|
||||
|
||||
public void setTecnico_hs_id(Integer tecnico_hs_idValue )
|
||||
{
|
||||
this.set(TECNICO_HS_ID, tecnico_hs_idValue );
|
||||
}
|
||||
|
||||
public String getTecnico_hs_nome()
|
||||
{
|
||||
return (String) get(TECNICO_HS_NOME);
|
||||
}
|
||||
|
||||
public void setTecnico_hs_nome(String tecnico_hs_nomeValue )
|
||||
{
|
||||
this.set(TECNICO_HS_NOME, tecnico_hs_nomeValue );
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return (Integer) get(ID);
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.set(ID, idValue );
|
||||
}
|
||||
|
||||
public java.util.Date getData_relatorio()
|
||||
{
|
||||
return (java.util.Date) get(DATA_RELATORIO);
|
||||
}
|
||||
|
||||
public void setData_relatorio(java.util.Date data_relatorioValue )
|
||||
{
|
||||
this.set(DATA_RELATORIO, data_relatorioValue );
|
||||
}
|
||||
|
||||
protected Object innerGet( String fieldName )
|
||||
throws Exception
|
||||
{
|
||||
Object value = null;
|
||||
if( TO_USER_DIR_LOJA.equals( fieldName ) )
|
||||
{
|
||||
value = toUser_dir_loja();
|
||||
}
|
||||
else if( TO_USER_DNS.equals( fieldName ) )
|
||||
{
|
||||
value = toUser_dns();
|
||||
}
|
||||
else if( USER_DIR_LOJA.equals( fieldName ) )
|
||||
{
|
||||
value = getUser_dir_loja();
|
||||
}
|
||||
else if( TO_USER_HS.equals( fieldName ) )
|
||||
{
|
||||
value = toUser_hs();
|
||||
}
|
||||
else if( USER_HS.equals( fieldName ) )
|
||||
{
|
||||
value = getUser_hs();
|
||||
}
|
||||
else if( USER_DNS.equals( fieldName ) )
|
||||
{
|
||||
value = getUser_dns();
|
||||
}
|
||||
else
|
||||
{
|
||||
value = dataHash.get( fieldName );
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
protected void innerSet( String fieldName, Object value )
|
||||
throws Exception
|
||||
{
|
||||
if( TO_USER_DIR_LOJA.equals( fieldName ) )
|
||||
{
|
||||
setToUser_dir_loja( (com.evolute.siprp.server.db.data.siprp.UtilizadoresData) value );
|
||||
}
|
||||
else if( TO_USER_DNS.equals( fieldName ) )
|
||||
{
|
||||
setToUser_dns( (com.evolute.siprp.server.db.data.siprp.UtilizadoresData) value );
|
||||
}
|
||||
else if( USER_DIR_LOJA.equals( fieldName ) )
|
||||
{
|
||||
setUser_dir_loja( (Integer) value );
|
||||
}
|
||||
else if( TO_USER_HS.equals( fieldName ) )
|
||||
{
|
||||
setToUser_hs( (com.evolute.siprp.server.db.data.siprp.UtilizadoresData) value );
|
||||
}
|
||||
else if( USER_HS.equals( fieldName ) )
|
||||
{
|
||||
setUser_hs( (Integer) value );
|
||||
}
|
||||
else if( USER_DNS.equals( fieldName ) )
|
||||
{
|
||||
setUser_dns( (Integer) value );
|
||||
}
|
||||
else
|
||||
{
|
||||
dataHash.put( fieldName, value );
|
||||
}
|
||||
}
|
||||
|
||||
public void save()
|
||||
throws Exception
|
||||
{
|
||||
if( dataHash.get(TO_USER_DIR_LOJA) != null )
|
||||
{
|
||||
toUser_dir_loja().save();
|
||||
dataHash.put(USER_DIR_LOJA, toUser_dir_loja().get( com.evolute.siprp.server.db.data.siprp.UtilizadoresData.ID ));
|
||||
}
|
||||
|
||||
if( dataHash.get(TO_USER_DNS) != null )
|
||||
{
|
||||
toUser_dns().save();
|
||||
dataHash.put(USER_DNS, toUser_dns().get( com.evolute.siprp.server.db.data.siprp.UtilizadoresData.ID ));
|
||||
}
|
||||
|
||||
if( dataHash.get(TO_USER_HS) != null )
|
||||
{
|
||||
toUser_hs().save();
|
||||
dataHash.put(USER_HS, toUser_hs().get( com.evolute.siprp.server.db.data.siprp.UtilizadoresData.ID ));
|
||||
}
|
||||
|
||||
super.save();
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
protected String []getAllFieldNames()
|
||||
{
|
||||
return ALL_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public Class<PlanosActuacao> getInnerClass()
|
||||
{
|
||||
return PlanosActuacao.class;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Properties.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
|
||||
public final class Properties implements JDOInnerObject
|
||||
{
|
||||
|
||||
public Properties()
|
||||
{
|
||||
}
|
||||
|
||||
public Object getField( String fieldName )
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setField( String fieldName, Object value )
|
||||
{
|
||||
}
|
||||
|
||||
public Class<PropertiesDataAuto> getOuterClass()
|
||||
{
|
||||
return PropertiesDataAuto.class;
|
||||
}
|
||||
|
||||
public PropertiesDataAuto getOuterClassInstance()
|
||||
{
|
||||
PropertiesDataAuto outerObj = new PropertiesDataAuto();
|
||||
outerObj.setInnerObject(this);
|
||||
return outerObj;
|
||||
}
|
||||
|
||||
public Object getJDOPrimaryKey()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* PropertiesDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
|
||||
public final class PropertiesData extends com.evolute.siprp.server.db.data.siprp.PropertiesDataAuto
|
||||
{
|
||||
|
||||
public PropertiesData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,67 @@
|
||||
/*
|
||||
* PropertiesDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
class PropertiesDataAuto extends JDOObject
|
||||
{
|
||||
|
||||
public static final String TABLENAME = "properties";
|
||||
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
};
|
||||
|
||||
|
||||
protected static final String ALL_FIELD_NAMES[] = new String[]{
|
||||
};
|
||||
|
||||
private Map<String, Object> dataHash;
|
||||
|
||||
public PropertiesDataAuto()
|
||||
{
|
||||
dataHash = new HashMap<String, Object>();
|
||||
}
|
||||
|
||||
protected Object innerGet( String fieldName )
|
||||
throws Exception
|
||||
{
|
||||
Object value = null;
|
||||
value = dataHash.get( fieldName );
|
||||
return value;
|
||||
}
|
||||
|
||||
protected void innerSet( String fieldName, Object value )
|
||||
throws Exception
|
||||
{
|
||||
dataHash.put( fieldName, value );
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
protected String []getAllFieldNames()
|
||||
{
|
||||
return ALL_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public Class<Properties> getInnerClass()
|
||||
{
|
||||
return Properties.class;
|
||||
}
|
||||
|
||||
public Object getJDOPrimaryKey()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,129 @@
|
||||
/*
|
||||
* Recomendacoes.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
|
||||
public final class Recomendacoes implements JDOInnerObject
|
||||
{
|
||||
private Integer id;
|
||||
private Integer analise_id;
|
||||
private String recomendacao;
|
||||
|
||||
public Recomendacoes()
|
||||
{
|
||||
}
|
||||
|
||||
public Object getField( String fieldName )
|
||||
{
|
||||
if( fieldName == RecomendacoesDataAuto.ID )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName == RecomendacoesDataAuto.ANALISE_ID )
|
||||
{
|
||||
return analise_id;
|
||||
}
|
||||
else if( fieldName == RecomendacoesDataAuto.RECOMENDACAO )
|
||||
{
|
||||
return recomendacao;
|
||||
}
|
||||
else if( fieldName.equals( RecomendacoesDataAuto.ID ) )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName.equals( RecomendacoesDataAuto.ANALISE_ID ) )
|
||||
{
|
||||
return analise_id;
|
||||
}
|
||||
else if( fieldName.equals( RecomendacoesDataAuto.RECOMENDACAO ) )
|
||||
{
|
||||
return recomendacao;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setField( String fieldName, Object value )
|
||||
{
|
||||
if( fieldName == RecomendacoesDataAuto.ID )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == RecomendacoesDataAuto.ANALISE_ID )
|
||||
{
|
||||
analise_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == RecomendacoesDataAuto.RECOMENDACAO )
|
||||
{
|
||||
recomendacao = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( RecomendacoesDataAuto.ID ) )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( RecomendacoesDataAuto.ANALISE_ID ) )
|
||||
{
|
||||
analise_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( RecomendacoesDataAuto.RECOMENDACAO ) )
|
||||
{
|
||||
recomendacao = ( String ) value;
|
||||
}
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.id = idValue;
|
||||
}
|
||||
|
||||
public Integer getAnalise_id()
|
||||
{
|
||||
return analise_id;
|
||||
}
|
||||
|
||||
public void setAnalise_id(Integer analise_idValue )
|
||||
{
|
||||
this.analise_id = analise_idValue;
|
||||
}
|
||||
|
||||
public String getRecomendacao()
|
||||
{
|
||||
return recomendacao;
|
||||
}
|
||||
|
||||
public void setRecomendacao(String recomendacaoValue )
|
||||
{
|
||||
this.recomendacao = recomendacaoValue;
|
||||
}
|
||||
|
||||
public Class<RecomendacoesDataAuto> getOuterClass()
|
||||
{
|
||||
return RecomendacoesDataAuto.class;
|
||||
}
|
||||
|
||||
public RecomendacoesDataAuto getOuterClassInstance()
|
||||
{
|
||||
RecomendacoesDataAuto outerObj = new RecomendacoesDataAuto();
|
||||
outerObj.setInnerObject(this);
|
||||
return outerObj;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* RecomendacoesDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
|
||||
public final class RecomendacoesData extends com.evolute.siprp.server.db.data.siprp.RecomendacoesDataAuto
|
||||
{
|
||||
|
||||
public RecomendacoesData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,166 @@
|
||||
/*
|
||||
* RecomendacoesDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
class RecomendacoesDataAuto extends JDOObject
|
||||
{
|
||||
|
||||
public static final String TABLENAME = "recomendacoes";
|
||||
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "recomendacoes.id";
|
||||
public static final String ANALISE_ID = "analise_id";
|
||||
public static final String ANALISE_ID_FULL = "recomendacoes.analise_id";
|
||||
public static final String TO_ANALISE_ID = "to analise_id";
|
||||
public static final String RECOMENDACAO = "recomendacao";
|
||||
public static final String RECOMENDACAO_FULL = "recomendacoes.recomendacao";
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
ANALISE_ID, TO_ANALISE_ID, RECOMENDACAO, };
|
||||
|
||||
|
||||
protected static final String ALL_FIELD_NAMES[] = new String[]{
|
||||
ID, ANALISE_ID, RECOMENDACAO, };
|
||||
|
||||
private Map<String, Object> dataHash;
|
||||
|
||||
public RecomendacoesDataAuto()
|
||||
{
|
||||
dataHash = new HashMap<String, Object>();
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return (Integer) get(ID);
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.set(ID, idValue );
|
||||
}
|
||||
|
||||
public Integer getAnalise_id()
|
||||
{
|
||||
return (Integer) dataHash.get(ANALISE_ID);
|
||||
}
|
||||
|
||||
public void setAnalise_id(Integer analise_idValue )
|
||||
{
|
||||
dataHash.put(TO_ANALISE_ID, null);
|
||||
dataHash.put(ANALISE_ID, analise_idValue );
|
||||
}
|
||||
|
||||
public com.evolute.siprp.server.db.data.siprp.AnalisesAcidentesData toAnalise_id()
|
||||
throws Exception
|
||||
{
|
||||
if( dataHash.get(TO_ANALISE_ID) == null && getAnalise_id() != null )
|
||||
{
|
||||
dataHash.put(TO_ANALISE_ID, getJDOProvider().load(com.evolute.siprp.server.db.data.siprp.AnalisesAcidentesData.class, new Object[]{ getAnalise_id() }, new String[]{ com.evolute.siprp.server.db.data.siprp.AnalisesAcidentesData.ID }));
|
||||
}
|
||||
return (com.evolute.siprp.server.db.data.siprp.AnalisesAcidentesData) dataHash.get(TO_ANALISE_ID);
|
||||
}
|
||||
|
||||
public void setToAnalise_id(com.evolute.siprp.server.db.data.siprp.AnalisesAcidentesData analise_idObject )
|
||||
{
|
||||
if( analise_idObject == null )
|
||||
{
|
||||
dataHash.put(ANALISE_ID, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
dataHash.put(ANALISE_ID, analise_idObject.get( com.evolute.siprp.server.db.data.siprp.AnalisesAcidentesData.ID ));
|
||||
}
|
||||
dataHash.put(TO_ANALISE_ID, analise_idObject);
|
||||
}
|
||||
|
||||
public String getRecomendacao()
|
||||
{
|
||||
return (String) get(RECOMENDACAO);
|
||||
}
|
||||
|
||||
public void setRecomendacao(String recomendacaoValue )
|
||||
{
|
||||
this.set(RECOMENDACAO, recomendacaoValue );
|
||||
}
|
||||
|
||||
protected Object innerGet( String fieldName )
|
||||
throws Exception
|
||||
{
|
||||
Object value = null;
|
||||
if( TO_ANALISE_ID.equals( fieldName ) )
|
||||
{
|
||||
value = toAnalise_id();
|
||||
}
|
||||
else if( ANALISE_ID.equals( fieldName ) )
|
||||
{
|
||||
value = getAnalise_id();
|
||||
}
|
||||
else
|
||||
{
|
||||
value = dataHash.get( fieldName );
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
protected void innerSet( String fieldName, Object value )
|
||||
throws Exception
|
||||
{
|
||||
if( TO_ANALISE_ID.equals( fieldName ) )
|
||||
{
|
||||
setToAnalise_id( (com.evolute.siprp.server.db.data.siprp.AnalisesAcidentesData) value );
|
||||
}
|
||||
else if( ANALISE_ID.equals( fieldName ) )
|
||||
{
|
||||
setAnalise_id( (Integer) value );
|
||||
}
|
||||
else
|
||||
{
|
||||
dataHash.put( fieldName, value );
|
||||
}
|
||||
}
|
||||
|
||||
public void save()
|
||||
throws Exception
|
||||
{
|
||||
if( dataHash.get(TO_ANALISE_ID) != null )
|
||||
{
|
||||
toAnalise_id().save();
|
||||
dataHash.put(ANALISE_ID, toAnalise_id().get( com.evolute.siprp.server.db.data.siprp.AnalisesAcidentesData.ID ));
|
||||
}
|
||||
|
||||
super.save();
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
protected String []getAllFieldNames()
|
||||
{
|
||||
return ALL_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public Class<Recomendacoes> getInnerClass()
|
||||
{
|
||||
return Recomendacoes.class;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Roles.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
|
||||
public final class Roles implements JDOInnerObject
|
||||
{
|
||||
|
||||
public Roles()
|
||||
{
|
||||
}
|
||||
|
||||
public Object getField( String fieldName )
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setField( String fieldName, Object value )
|
||||
{
|
||||
}
|
||||
|
||||
public Class<RolesDataAuto> getOuterClass()
|
||||
{
|
||||
return RolesDataAuto.class;
|
||||
}
|
||||
|
||||
public RolesDataAuto getOuterClassInstance()
|
||||
{
|
||||
RolesDataAuto outerObj = new RolesDataAuto();
|
||||
outerObj.setInnerObject(this);
|
||||
return outerObj;
|
||||
}
|
||||
|
||||
public Object getJDOPrimaryKey()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* RolesDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
|
||||
public final class RolesData extends com.evolute.siprp.server.db.data.siprp.RolesDataAuto
|
||||
{
|
||||
|
||||
public RolesData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,67 @@
|
||||
/*
|
||||
* RolesDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
class RolesDataAuto extends JDOObject
|
||||
{
|
||||
|
||||
public static final String TABLENAME = "roles";
|
||||
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
};
|
||||
|
||||
|
||||
protected static final String ALL_FIELD_NAMES[] = new String[]{
|
||||
};
|
||||
|
||||
private Map<String, Object> dataHash;
|
||||
|
||||
public RolesDataAuto()
|
||||
{
|
||||
dataHash = new HashMap<String, Object>();
|
||||
}
|
||||
|
||||
protected Object innerGet( String fieldName )
|
||||
throws Exception
|
||||
{
|
||||
Object value = null;
|
||||
value = dataHash.get( fieldName );
|
||||
return value;
|
||||
}
|
||||
|
||||
protected void innerSet( String fieldName, Object value )
|
||||
throws Exception
|
||||
{
|
||||
dataHash.put( fieldName, value );
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
protected String []getAllFieldNames()
|
||||
{
|
||||
return ALL_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public Class<Roles> getInnerClass()
|
||||
{
|
||||
return Roles.class;
|
||||
}
|
||||
|
||||
public Object getJDOPrimaryKey()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,156 @@
|
||||
/*
|
||||
* Seccoes.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
|
||||
public final class Seccoes implements JDOInnerObject
|
||||
{
|
||||
private Integer id;
|
||||
private String descricao;
|
||||
private Integer departamento_id;
|
||||
private String activo;
|
||||
|
||||
public Seccoes()
|
||||
{
|
||||
}
|
||||
|
||||
public Object getField( String fieldName )
|
||||
{
|
||||
if( fieldName == SeccoesDataAuto.ID )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName == SeccoesDataAuto.DESCRICAO )
|
||||
{
|
||||
return descricao;
|
||||
}
|
||||
else if( fieldName == SeccoesDataAuto.DEPARTAMENTO_ID )
|
||||
{
|
||||
return departamento_id;
|
||||
}
|
||||
else if( fieldName == SeccoesDataAuto.ACTIVO )
|
||||
{
|
||||
return activo;
|
||||
}
|
||||
else if( fieldName.equals( SeccoesDataAuto.ID ) )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName.equals( SeccoesDataAuto.DESCRICAO ) )
|
||||
{
|
||||
return descricao;
|
||||
}
|
||||
else if( fieldName.equals( SeccoesDataAuto.DEPARTAMENTO_ID ) )
|
||||
{
|
||||
return departamento_id;
|
||||
}
|
||||
else if( fieldName.equals( SeccoesDataAuto.ACTIVO ) )
|
||||
{
|
||||
return activo;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setField( String fieldName, Object value )
|
||||
{
|
||||
if( fieldName == SeccoesDataAuto.ID )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == SeccoesDataAuto.DESCRICAO )
|
||||
{
|
||||
descricao = ( String ) value;
|
||||
}
|
||||
else if( fieldName == SeccoesDataAuto.DEPARTAMENTO_ID )
|
||||
{
|
||||
departamento_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == SeccoesDataAuto.ACTIVO )
|
||||
{
|
||||
activo = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( SeccoesDataAuto.ID ) )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( SeccoesDataAuto.DESCRICAO ) )
|
||||
{
|
||||
descricao = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( SeccoesDataAuto.DEPARTAMENTO_ID ) )
|
||||
{
|
||||
departamento_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( SeccoesDataAuto.ACTIVO ) )
|
||||
{
|
||||
activo = ( String ) value;
|
||||
}
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.id = idValue;
|
||||
}
|
||||
|
||||
public String getDescricao()
|
||||
{
|
||||
return descricao;
|
||||
}
|
||||
|
||||
public void setDescricao(String descricaoValue )
|
||||
{
|
||||
this.descricao = descricaoValue;
|
||||
}
|
||||
|
||||
public Integer getDepartamento_id()
|
||||
{
|
||||
return departamento_id;
|
||||
}
|
||||
|
||||
public void setDepartamento_id(Integer departamento_idValue )
|
||||
{
|
||||
this.departamento_id = departamento_idValue;
|
||||
}
|
||||
|
||||
public String getActivo()
|
||||
{
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(String activoValue )
|
||||
{
|
||||
this.activo = activoValue;
|
||||
}
|
||||
|
||||
public Class<SeccoesDataAuto> getOuterClass()
|
||||
{
|
||||
return SeccoesDataAuto.class;
|
||||
}
|
||||
|
||||
public SeccoesDataAuto getOuterClassInstance()
|
||||
{
|
||||
SeccoesDataAuto outerObj = new SeccoesDataAuto();
|
||||
outerObj.setInnerObject(this);
|
||||
return outerObj;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* SeccoesDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
|
||||
public final class SeccoesData extends com.evolute.siprp.server.db.data.siprp.SeccoesDataAuto
|
||||
{
|
||||
|
||||
public SeccoesData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,178 @@
|
||||
/*
|
||||
* SeccoesDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
class SeccoesDataAuto extends JDOObject
|
||||
{
|
||||
|
||||
public static final String TABLENAME = "seccoes";
|
||||
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "seccoes.id";
|
||||
public static final String DESCRICAO = "descricao";
|
||||
public static final String DESCRICAO_FULL = "seccoes.descricao";
|
||||
public static final String DEPARTAMENTO_ID = "departamento_id";
|
||||
public static final String DEPARTAMENTO_ID_FULL = "seccoes.departamento_id";
|
||||
public static final String TO_DEPARTAMENTO_ID = "to departamento_id";
|
||||
public static final String ACTIVO = "activo";
|
||||
public static final String ACTIVO_FULL = "seccoes.activo";
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
DESCRICAO, DEPARTAMENTO_ID, TO_DEPARTAMENTO_ID, ACTIVO, };
|
||||
|
||||
|
||||
protected static final String ALL_FIELD_NAMES[] = new String[]{
|
||||
ID, DESCRICAO, DEPARTAMENTO_ID, ACTIVO, };
|
||||
|
||||
private Map<String, Object> dataHash;
|
||||
|
||||
public SeccoesDataAuto()
|
||||
{
|
||||
dataHash = new HashMap<String, Object>();
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return (Integer) get(ID);
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.set(ID, idValue );
|
||||
}
|
||||
|
||||
public String getDescricao()
|
||||
{
|
||||
return (String) get(DESCRICAO);
|
||||
}
|
||||
|
||||
public void setDescricao(String descricaoValue )
|
||||
{
|
||||
this.set(DESCRICAO, descricaoValue );
|
||||
}
|
||||
|
||||
public Integer getDepartamento_id()
|
||||
{
|
||||
return (Integer) dataHash.get(DEPARTAMENTO_ID);
|
||||
}
|
||||
|
||||
public void setDepartamento_id(Integer departamento_idValue )
|
||||
{
|
||||
dataHash.put(TO_DEPARTAMENTO_ID, null);
|
||||
dataHash.put(DEPARTAMENTO_ID, departamento_idValue );
|
||||
}
|
||||
|
||||
public com.evolute.siprp.server.db.data.siprp.DepartamentosData toDepartamento_id()
|
||||
throws Exception
|
||||
{
|
||||
if( dataHash.get(TO_DEPARTAMENTO_ID) == null && getDepartamento_id() != null )
|
||||
{
|
||||
dataHash.put(TO_DEPARTAMENTO_ID, getJDOProvider().load(com.evolute.siprp.server.db.data.siprp.DepartamentosData.class, new Object[]{ getDepartamento_id() }, new String[]{ com.evolute.siprp.server.db.data.siprp.DepartamentosData.ID }));
|
||||
}
|
||||
return (com.evolute.siprp.server.db.data.siprp.DepartamentosData) dataHash.get(TO_DEPARTAMENTO_ID);
|
||||
}
|
||||
|
||||
public void setToDepartamento_id(com.evolute.siprp.server.db.data.siprp.DepartamentosData departamento_idObject )
|
||||
{
|
||||
if( departamento_idObject == null )
|
||||
{
|
||||
dataHash.put(DEPARTAMENTO_ID, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
dataHash.put(DEPARTAMENTO_ID, departamento_idObject.get( com.evolute.siprp.server.db.data.siprp.DepartamentosData.ID ));
|
||||
}
|
||||
dataHash.put(TO_DEPARTAMENTO_ID, departamento_idObject);
|
||||
}
|
||||
|
||||
public String getActivo()
|
||||
{
|
||||
return (String) get(ACTIVO);
|
||||
}
|
||||
|
||||
public void setActivo(String activoValue )
|
||||
{
|
||||
this.set(ACTIVO, activoValue );
|
||||
}
|
||||
|
||||
protected Object innerGet( String fieldName )
|
||||
throws Exception
|
||||
{
|
||||
Object value = null;
|
||||
if( DEPARTAMENTO_ID.equals( fieldName ) )
|
||||
{
|
||||
value = getDepartamento_id();
|
||||
}
|
||||
else if( TO_DEPARTAMENTO_ID.equals( fieldName ) )
|
||||
{
|
||||
value = toDepartamento_id();
|
||||
}
|
||||
else
|
||||
{
|
||||
value = dataHash.get( fieldName );
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
protected void innerSet( String fieldName, Object value )
|
||||
throws Exception
|
||||
{
|
||||
if( DEPARTAMENTO_ID.equals( fieldName ) )
|
||||
{
|
||||
setDepartamento_id( (Integer) value );
|
||||
}
|
||||
else if( TO_DEPARTAMENTO_ID.equals( fieldName ) )
|
||||
{
|
||||
setToDepartamento_id( (com.evolute.siprp.server.db.data.siprp.DepartamentosData) value );
|
||||
}
|
||||
else
|
||||
{
|
||||
dataHash.put( fieldName, value );
|
||||
}
|
||||
}
|
||||
|
||||
public void save()
|
||||
throws Exception
|
||||
{
|
||||
if( dataHash.get(TO_DEPARTAMENTO_ID) != null )
|
||||
{
|
||||
toDepartamento_id().save();
|
||||
dataHash.put(DEPARTAMENTO_ID, toDepartamento_id().get( com.evolute.siprp.server.db.data.siprp.DepartamentosData.ID ));
|
||||
}
|
||||
|
||||
super.save();
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
protected String []getAllFieldNames()
|
||||
{
|
||||
return ALL_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public Class<Seccoes> getInnerClass()
|
||||
{
|
||||
return Seccoes.class;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,183 @@
|
||||
/*
|
||||
* TiposUtilizadores.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
|
||||
public final class TiposUtilizadores implements JDOInnerObject
|
||||
{
|
||||
private Integer id;
|
||||
private Integer tipo;
|
||||
private String descricao;
|
||||
private String activo;
|
||||
private Integer ordem;
|
||||
|
||||
public TiposUtilizadores()
|
||||
{
|
||||
}
|
||||
|
||||
public Object getField( String fieldName )
|
||||
{
|
||||
if( fieldName == TiposUtilizadoresDataAuto.ID )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName == TiposUtilizadoresDataAuto.TIPO )
|
||||
{
|
||||
return tipo;
|
||||
}
|
||||
else if( fieldName == TiposUtilizadoresDataAuto.DESCRICAO )
|
||||
{
|
||||
return descricao;
|
||||
}
|
||||
else if( fieldName == TiposUtilizadoresDataAuto.ACTIVO )
|
||||
{
|
||||
return activo;
|
||||
}
|
||||
else if( fieldName == TiposUtilizadoresDataAuto.ORDEM )
|
||||
{
|
||||
return ordem;
|
||||
}
|
||||
else if( fieldName.equals( TiposUtilizadoresDataAuto.ID ) )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName.equals( TiposUtilizadoresDataAuto.TIPO ) )
|
||||
{
|
||||
return tipo;
|
||||
}
|
||||
else if( fieldName.equals( TiposUtilizadoresDataAuto.DESCRICAO ) )
|
||||
{
|
||||
return descricao;
|
||||
}
|
||||
else if( fieldName.equals( TiposUtilizadoresDataAuto.ACTIVO ) )
|
||||
{
|
||||
return activo;
|
||||
}
|
||||
else if( fieldName.equals( TiposUtilizadoresDataAuto.ORDEM ) )
|
||||
{
|
||||
return ordem;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setField( String fieldName, Object value )
|
||||
{
|
||||
if( fieldName == TiposUtilizadoresDataAuto.ID )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == TiposUtilizadoresDataAuto.TIPO )
|
||||
{
|
||||
tipo = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == TiposUtilizadoresDataAuto.DESCRICAO )
|
||||
{
|
||||
descricao = ( String ) value;
|
||||
}
|
||||
else if( fieldName == TiposUtilizadoresDataAuto.ACTIVO )
|
||||
{
|
||||
activo = ( String ) value;
|
||||
}
|
||||
else if( fieldName == TiposUtilizadoresDataAuto.ORDEM )
|
||||
{
|
||||
ordem = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( TiposUtilizadoresDataAuto.ID ) )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( TiposUtilizadoresDataAuto.TIPO ) )
|
||||
{
|
||||
tipo = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( TiposUtilizadoresDataAuto.DESCRICAO ) )
|
||||
{
|
||||
descricao = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( TiposUtilizadoresDataAuto.ACTIVO ) )
|
||||
{
|
||||
activo = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( TiposUtilizadoresDataAuto.ORDEM ) )
|
||||
{
|
||||
ordem = ( Integer ) value;
|
||||
}
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.id = idValue;
|
||||
}
|
||||
|
||||
public Integer getTipo()
|
||||
{
|
||||
return tipo;
|
||||
}
|
||||
|
||||
public void setTipo(Integer tipoValue )
|
||||
{
|
||||
this.tipo = tipoValue;
|
||||
}
|
||||
|
||||
public String getDescricao()
|
||||
{
|
||||
return descricao;
|
||||
}
|
||||
|
||||
public void setDescricao(String descricaoValue )
|
||||
{
|
||||
this.descricao = descricaoValue;
|
||||
}
|
||||
|
||||
public String getActivo()
|
||||
{
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(String activoValue )
|
||||
{
|
||||
this.activo = activoValue;
|
||||
}
|
||||
|
||||
public Integer getOrdem()
|
||||
{
|
||||
return ordem;
|
||||
}
|
||||
|
||||
public void setOrdem(Integer ordemValue )
|
||||
{
|
||||
this.ordem = ordemValue;
|
||||
}
|
||||
|
||||
public Class<TiposUtilizadoresDataAuto> getOuterClass()
|
||||
{
|
||||
return TiposUtilizadoresDataAuto.class;
|
||||
}
|
||||
|
||||
public TiposUtilizadoresDataAuto getOuterClassInstance()
|
||||
{
|
||||
TiposUtilizadoresDataAuto outerObj = new TiposUtilizadoresDataAuto();
|
||||
outerObj.setInnerObject(this);
|
||||
return outerObj;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* TiposUtilizadoresDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
|
||||
public final class TiposUtilizadoresData extends com.evolute.siprp.server.db.data.siprp.TiposUtilizadoresDataAuto
|
||||
{
|
||||
|
||||
public TiposUtilizadoresData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,131 @@
|
||||
/*
|
||||
* TiposUtilizadoresDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
class TiposUtilizadoresDataAuto extends JDOObject
|
||||
{
|
||||
|
||||
public static final String TABLENAME = "tipos_utilizadores";
|
||||
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "tipos_utilizadores.id";
|
||||
public static final String TIPO = "tipo";
|
||||
public static final String TIPO_FULL = "tipos_utilizadores.tipo";
|
||||
public static final String DESCRICAO = "descricao";
|
||||
public static final String DESCRICAO_FULL = "tipos_utilizadores.descricao";
|
||||
public static final String ACTIVO = "activo";
|
||||
public static final String ACTIVO_FULL = "tipos_utilizadores.activo";
|
||||
public static final String ORDEM = "ordem";
|
||||
public static final String ORDEM_FULL = "tipos_utilizadores.ordem";
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
TIPO, DESCRICAO, ACTIVO, ORDEM, };
|
||||
|
||||
|
||||
protected static final String ALL_FIELD_NAMES[] = new String[]{
|
||||
ID, TIPO, DESCRICAO, ACTIVO, ORDEM, };
|
||||
|
||||
private Map<String, Object> dataHash;
|
||||
|
||||
public TiposUtilizadoresDataAuto()
|
||||
{
|
||||
dataHash = new HashMap<String, Object>();
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return (Integer) get(ID);
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.set(ID, idValue );
|
||||
}
|
||||
|
||||
public Integer getTipo()
|
||||
{
|
||||
return (Integer) get(TIPO);
|
||||
}
|
||||
|
||||
public void setTipo(Integer tipoValue )
|
||||
{
|
||||
this.set(TIPO, tipoValue );
|
||||
}
|
||||
|
||||
public String getDescricao()
|
||||
{
|
||||
return (String) get(DESCRICAO);
|
||||
}
|
||||
|
||||
public void setDescricao(String descricaoValue )
|
||||
{
|
||||
this.set(DESCRICAO, descricaoValue );
|
||||
}
|
||||
|
||||
public String getActivo()
|
||||
{
|
||||
return (String) get(ACTIVO);
|
||||
}
|
||||
|
||||
public void setActivo(String activoValue )
|
||||
{
|
||||
this.set(ACTIVO, activoValue );
|
||||
}
|
||||
|
||||
public Integer getOrdem()
|
||||
{
|
||||
return (Integer) get(ORDEM);
|
||||
}
|
||||
|
||||
public void setOrdem(Integer ordemValue )
|
||||
{
|
||||
this.set(ORDEM, ordemValue );
|
||||
}
|
||||
|
||||
protected Object innerGet( String fieldName )
|
||||
throws Exception
|
||||
{
|
||||
Object value = null;
|
||||
value = dataHash.get( fieldName );
|
||||
return value;
|
||||
}
|
||||
|
||||
protected void innerSet( String fieldName, Object value )
|
||||
throws Exception
|
||||
{
|
||||
dataHash.put( fieldName, value );
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
protected String []getAllFieldNames()
|
||||
{
|
||||
return ALL_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public Class<TiposUtilizadores> getInnerClass()
|
||||
{
|
||||
return TiposUtilizadores.class;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Users.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
|
||||
public final class Users implements JDOInnerObject
|
||||
{
|
||||
|
||||
public Users()
|
||||
{
|
||||
}
|
||||
|
||||
public Object getField( String fieldName )
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setField( String fieldName, Object value )
|
||||
{
|
||||
}
|
||||
|
||||
public Class<UsersDataAuto> getOuterClass()
|
||||
{
|
||||
return UsersDataAuto.class;
|
||||
}
|
||||
|
||||
public UsersDataAuto getOuterClassInstance()
|
||||
{
|
||||
UsersDataAuto outerObj = new UsersDataAuto();
|
||||
outerObj.setInnerObject(this);
|
||||
return outerObj;
|
||||
}
|
||||
|
||||
public Object getJDOPrimaryKey()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* UsersDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
|
||||
public final class UsersData extends com.evolute.siprp.server.db.data.siprp.UsersDataAuto
|
||||
{
|
||||
|
||||
public UsersData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,67 @@
|
||||
/*
|
||||
* UsersDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
class UsersDataAuto extends JDOObject
|
||||
{
|
||||
|
||||
public static final String TABLENAME = "users";
|
||||
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
};
|
||||
|
||||
|
||||
protected static final String ALL_FIELD_NAMES[] = new String[]{
|
||||
};
|
||||
|
||||
private Map<String, Object> dataHash;
|
||||
|
||||
public UsersDataAuto()
|
||||
{
|
||||
dataHash = new HashMap<String, Object>();
|
||||
}
|
||||
|
||||
protected Object innerGet( String fieldName )
|
||||
throws Exception
|
||||
{
|
||||
Object value = null;
|
||||
value = dataHash.get( fieldName );
|
||||
return value;
|
||||
}
|
||||
|
||||
protected void innerSet( String fieldName, Object value )
|
||||
throws Exception
|
||||
{
|
||||
dataHash.put( fieldName, value );
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
protected String []getAllFieldNames()
|
||||
{
|
||||
return ALL_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public Class<Users> getInnerClass()
|
||||
{
|
||||
return Users.class;
|
||||
}
|
||||
|
||||
public Object getJDOPrimaryKey()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,588 @@
|
||||
/*
|
||||
* Utilizadores.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
|
||||
public final class Utilizadores implements JDOInnerObject
|
||||
{
|
||||
private Integer id;
|
||||
private String login;
|
||||
private String password;
|
||||
private String email;
|
||||
private Integer empresa_id;
|
||||
private Integer estabelecimento_id;
|
||||
private String administrador;
|
||||
private Integer medico_id;
|
||||
private Integer tipo;
|
||||
private String numero_cedula;
|
||||
private String cap;
|
||||
private String nome;
|
||||
private Integer funcionario_hst_id;
|
||||
private String activo;
|
||||
private String responsavel_loja;
|
||||
private String numero_mecanografico;
|
||||
private String gestor_geral;
|
||||
private String primeiro_login;
|
||||
private String apagado;
|
||||
private java.util.Date data_password;
|
||||
|
||||
public Utilizadores()
|
||||
{
|
||||
}
|
||||
|
||||
public Object getField( String fieldName )
|
||||
{
|
||||
if( fieldName == UtilizadoresDataAuto.ID )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.LOGIN )
|
||||
{
|
||||
return login;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.PASSWORD )
|
||||
{
|
||||
return password;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.EMAIL )
|
||||
{
|
||||
return email;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.EMPRESA_ID )
|
||||
{
|
||||
return empresa_id;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.ESTABELECIMENTO_ID )
|
||||
{
|
||||
return estabelecimento_id;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.ADMINISTRADOR )
|
||||
{
|
||||
return administrador;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.MEDICO_ID )
|
||||
{
|
||||
return medico_id;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.TIPO )
|
||||
{
|
||||
return tipo;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.NUMERO_CEDULA )
|
||||
{
|
||||
return numero_cedula;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.CAP )
|
||||
{
|
||||
return cap;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.NOME )
|
||||
{
|
||||
return nome;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.FUNCIONARIO_HST_ID )
|
||||
{
|
||||
return funcionario_hst_id;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.ACTIVO )
|
||||
{
|
||||
return activo;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.RESPONSAVEL_LOJA )
|
||||
{
|
||||
return responsavel_loja;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.NUMERO_MECANOGRAFICO )
|
||||
{
|
||||
return numero_mecanografico;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.GESTOR_GERAL )
|
||||
{
|
||||
return gestor_geral;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.PRIMEIRO_LOGIN )
|
||||
{
|
||||
return primeiro_login;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.APAGADO )
|
||||
{
|
||||
return apagado;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.DATA_PASSWORD )
|
||||
{
|
||||
return data_password;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.ID ) )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.LOGIN ) )
|
||||
{
|
||||
return login;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.PASSWORD ) )
|
||||
{
|
||||
return password;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.EMAIL ) )
|
||||
{
|
||||
return email;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.EMPRESA_ID ) )
|
||||
{
|
||||
return empresa_id;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.ESTABELECIMENTO_ID ) )
|
||||
{
|
||||
return estabelecimento_id;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.ADMINISTRADOR ) )
|
||||
{
|
||||
return administrador;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.MEDICO_ID ) )
|
||||
{
|
||||
return medico_id;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.TIPO ) )
|
||||
{
|
||||
return tipo;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.NUMERO_CEDULA ) )
|
||||
{
|
||||
return numero_cedula;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.CAP ) )
|
||||
{
|
||||
return cap;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.NOME ) )
|
||||
{
|
||||
return nome;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.FUNCIONARIO_HST_ID ) )
|
||||
{
|
||||
return funcionario_hst_id;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.ACTIVO ) )
|
||||
{
|
||||
return activo;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.RESPONSAVEL_LOJA ) )
|
||||
{
|
||||
return responsavel_loja;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.NUMERO_MECANOGRAFICO ) )
|
||||
{
|
||||
return numero_mecanografico;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.GESTOR_GERAL ) )
|
||||
{
|
||||
return gestor_geral;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.PRIMEIRO_LOGIN ) )
|
||||
{
|
||||
return primeiro_login;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.APAGADO ) )
|
||||
{
|
||||
return apagado;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.DATA_PASSWORD ) )
|
||||
{
|
||||
return data_password;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setField( String fieldName, Object value )
|
||||
{
|
||||
if( fieldName == UtilizadoresDataAuto.ID )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.LOGIN )
|
||||
{
|
||||
login = ( String ) value;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.PASSWORD )
|
||||
{
|
||||
password = ( String ) value;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.EMAIL )
|
||||
{
|
||||
email = ( String ) value;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.EMPRESA_ID )
|
||||
{
|
||||
empresa_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.ESTABELECIMENTO_ID )
|
||||
{
|
||||
estabelecimento_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.ADMINISTRADOR )
|
||||
{
|
||||
administrador = ( String ) value;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.MEDICO_ID )
|
||||
{
|
||||
medico_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.TIPO )
|
||||
{
|
||||
tipo = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.NUMERO_CEDULA )
|
||||
{
|
||||
numero_cedula = ( String ) value;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.CAP )
|
||||
{
|
||||
cap = ( String ) value;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.NOME )
|
||||
{
|
||||
nome = ( String ) value;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.FUNCIONARIO_HST_ID )
|
||||
{
|
||||
funcionario_hst_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.ACTIVO )
|
||||
{
|
||||
activo = ( String ) value;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.RESPONSAVEL_LOJA )
|
||||
{
|
||||
responsavel_loja = ( String ) value;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.NUMERO_MECANOGRAFICO )
|
||||
{
|
||||
numero_mecanografico = ( String ) value;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.GESTOR_GERAL )
|
||||
{
|
||||
gestor_geral = ( String ) value;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.PRIMEIRO_LOGIN )
|
||||
{
|
||||
primeiro_login = ( String ) value;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.APAGADO )
|
||||
{
|
||||
apagado = ( String ) value;
|
||||
}
|
||||
else if( fieldName == UtilizadoresDataAuto.DATA_PASSWORD )
|
||||
{
|
||||
data_password = ( java.util.Date ) value;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.ID ) )
|
||||
{
|
||||
id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.LOGIN ) )
|
||||
{
|
||||
login = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.PASSWORD ) )
|
||||
{
|
||||
password = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.EMAIL ) )
|
||||
{
|
||||
email = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.EMPRESA_ID ) )
|
||||
{
|
||||
empresa_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.ESTABELECIMENTO_ID ) )
|
||||
{
|
||||
estabelecimento_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.ADMINISTRADOR ) )
|
||||
{
|
||||
administrador = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.MEDICO_ID ) )
|
||||
{
|
||||
medico_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.TIPO ) )
|
||||
{
|
||||
tipo = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.NUMERO_CEDULA ) )
|
||||
{
|
||||
numero_cedula = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.CAP ) )
|
||||
{
|
||||
cap = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.NOME ) )
|
||||
{
|
||||
nome = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.FUNCIONARIO_HST_ID ) )
|
||||
{
|
||||
funcionario_hst_id = ( Integer ) value;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.ACTIVO ) )
|
||||
{
|
||||
activo = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.RESPONSAVEL_LOJA ) )
|
||||
{
|
||||
responsavel_loja = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.NUMERO_MECANOGRAFICO ) )
|
||||
{
|
||||
numero_mecanografico = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.GESTOR_GERAL ) )
|
||||
{
|
||||
gestor_geral = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.PRIMEIRO_LOGIN ) )
|
||||
{
|
||||
primeiro_login = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.APAGADO ) )
|
||||
{
|
||||
apagado = ( String ) value;
|
||||
}
|
||||
else if( fieldName.equals( UtilizadoresDataAuto.DATA_PASSWORD ) )
|
||||
{
|
||||
data_password = ( java.util.Date ) value;
|
||||
}
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.id = idValue;
|
||||
}
|
||||
|
||||
public String getLogin()
|
||||
{
|
||||
return login;
|
||||
}
|
||||
|
||||
public void setLogin(String loginValue )
|
||||
{
|
||||
this.login = loginValue;
|
||||
}
|
||||
|
||||
public String getPassword()
|
||||
{
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String passwordValue )
|
||||
{
|
||||
this.password = passwordValue;
|
||||
}
|
||||
|
||||
public String getEmail()
|
||||
{
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String emailValue )
|
||||
{
|
||||
this.email = emailValue;
|
||||
}
|
||||
|
||||
public Integer getEmpresa_id()
|
||||
{
|
||||
return empresa_id;
|
||||
}
|
||||
|
||||
public void setEmpresa_id(Integer empresa_idValue )
|
||||
{
|
||||
this.empresa_id = empresa_idValue;
|
||||
}
|
||||
|
||||
public Integer getEstabelecimento_id()
|
||||
{
|
||||
return estabelecimento_id;
|
||||
}
|
||||
|
||||
public void setEstabelecimento_id(Integer estabelecimento_idValue )
|
||||
{
|
||||
this.estabelecimento_id = estabelecimento_idValue;
|
||||
}
|
||||
|
||||
public String getAdministrador()
|
||||
{
|
||||
return administrador;
|
||||
}
|
||||
|
||||
public void setAdministrador(String administradorValue )
|
||||
{
|
||||
this.administrador = administradorValue;
|
||||
}
|
||||
|
||||
public Integer getMedico_id()
|
||||
{
|
||||
return medico_id;
|
||||
}
|
||||
|
||||
public void setMedico_id(Integer medico_idValue )
|
||||
{
|
||||
this.medico_id = medico_idValue;
|
||||
}
|
||||
|
||||
public Integer getTipo()
|
||||
{
|
||||
return tipo;
|
||||
}
|
||||
|
||||
public void setTipo(Integer tipoValue )
|
||||
{
|
||||
this.tipo = tipoValue;
|
||||
}
|
||||
|
||||
public String getNumero_cedula()
|
||||
{
|
||||
return numero_cedula;
|
||||
}
|
||||
|
||||
public void setNumero_cedula(String numero_cedulaValue )
|
||||
{
|
||||
this.numero_cedula = numero_cedulaValue;
|
||||
}
|
||||
|
||||
public String getCap()
|
||||
{
|
||||
return cap;
|
||||
}
|
||||
|
||||
public void setCap(String capValue )
|
||||
{
|
||||
this.cap = capValue;
|
||||
}
|
||||
|
||||
public String getNome()
|
||||
{
|
||||
return nome;
|
||||
}
|
||||
|
||||
public void setNome(String nomeValue )
|
||||
{
|
||||
this.nome = nomeValue;
|
||||
}
|
||||
|
||||
public Integer getFuncionario_hst_id()
|
||||
{
|
||||
return funcionario_hst_id;
|
||||
}
|
||||
|
||||
public void setFuncionario_hst_id(Integer funcionario_hst_idValue )
|
||||
{
|
||||
this.funcionario_hst_id = funcionario_hst_idValue;
|
||||
}
|
||||
|
||||
public String getActivo()
|
||||
{
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(String activoValue )
|
||||
{
|
||||
this.activo = activoValue;
|
||||
}
|
||||
|
||||
public String getResponsavel_loja()
|
||||
{
|
||||
return responsavel_loja;
|
||||
}
|
||||
|
||||
public void setResponsavel_loja(String responsavel_lojaValue )
|
||||
{
|
||||
this.responsavel_loja = responsavel_lojaValue;
|
||||
}
|
||||
|
||||
public String getNumero_mecanografico()
|
||||
{
|
||||
return numero_mecanografico;
|
||||
}
|
||||
|
||||
public void setNumero_mecanografico(String numero_mecanograficoValue )
|
||||
{
|
||||
this.numero_mecanografico = numero_mecanograficoValue;
|
||||
}
|
||||
|
||||
public String getGestor_geral()
|
||||
{
|
||||
return gestor_geral;
|
||||
}
|
||||
|
||||
public void setGestor_geral(String gestor_geralValue )
|
||||
{
|
||||
this.gestor_geral = gestor_geralValue;
|
||||
}
|
||||
|
||||
public String getPrimeiro_login()
|
||||
{
|
||||
return primeiro_login;
|
||||
}
|
||||
|
||||
public void setPrimeiro_login(String primeiro_loginValue )
|
||||
{
|
||||
this.primeiro_login = primeiro_loginValue;
|
||||
}
|
||||
|
||||
public String getApagado()
|
||||
{
|
||||
return apagado;
|
||||
}
|
||||
|
||||
public void setApagado(String apagadoValue )
|
||||
{
|
||||
this.apagado = apagadoValue;
|
||||
}
|
||||
|
||||
public java.util.Date getData_password()
|
||||
{
|
||||
return data_password;
|
||||
}
|
||||
|
||||
public void setData_password(java.util.Date data_passwordValue )
|
||||
{
|
||||
this.data_password = data_passwordValue;
|
||||
}
|
||||
|
||||
public Class<UtilizadoresDataAuto> getOuterClass()
|
||||
{
|
||||
return UtilizadoresDataAuto.class;
|
||||
}
|
||||
|
||||
public UtilizadoresDataAuto getOuterClassInstance()
|
||||
{
|
||||
UtilizadoresDataAuto outerObj = new UtilizadoresDataAuto();
|
||||
outerObj.setInnerObject(this);
|
||||
return outerObj;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* UtilizadoresDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Edit at will
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
|
||||
public final class UtilizadoresData extends com.evolute.siprp.server.db.data.siprp.UtilizadoresDataAuto
|
||||
{
|
||||
|
||||
public UtilizadoresData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,315 @@
|
||||
/*
|
||||
* UtilizadoresDataAuto.java
|
||||
*
|
||||
* Generated by com.evutils.codegen.JDOObjectGenerator
|
||||
*
|
||||
* Use but DON'T TOUCH
|
||||
*/
|
||||
package com.evolute.siprp.server.db.data.siprp;
|
||||
|
||||
import com.evolute.utils.jdo.*;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
class UtilizadoresDataAuto extends JDOObject
|
||||
{
|
||||
|
||||
public static final String TABLENAME = "utilizadores";
|
||||
|
||||
public static final String ID = "id";
|
||||
public static final String ID_FULL = "utilizadores.id";
|
||||
public static final String LOGIN = "login";
|
||||
public static final String LOGIN_FULL = "utilizadores.login";
|
||||
public static final String PASSWORD = "password";
|
||||
public static final String PASSWORD_FULL = "utilizadores.password";
|
||||
public static final String EMAIL = "email";
|
||||
public static final String EMAIL_FULL = "utilizadores.email";
|
||||
public static final String EMPRESA_ID = "empresa_id";
|
||||
public static final String EMPRESA_ID_FULL = "utilizadores.empresa_id";
|
||||
public static final String ESTABELECIMENTO_ID = "estabelecimento_id";
|
||||
public static final String ESTABELECIMENTO_ID_FULL = "utilizadores.estabelecimento_id";
|
||||
public static final String ADMINISTRADOR = "administrador";
|
||||
public static final String ADMINISTRADOR_FULL = "utilizadores.administrador";
|
||||
public static final String MEDICO_ID = "medico_id";
|
||||
public static final String MEDICO_ID_FULL = "utilizadores.medico_id";
|
||||
public static final String TIPO = "tipo";
|
||||
public static final String TIPO_FULL = "utilizadores.tipo";
|
||||
public static final String NUMERO_CEDULA = "numero_cedula";
|
||||
public static final String NUMERO_CEDULA_FULL = "utilizadores.numero_cedula";
|
||||
public static final String CAP = "cap";
|
||||
public static final String CAP_FULL = "utilizadores.cap";
|
||||
public static final String NOME = "nome";
|
||||
public static final String NOME_FULL = "utilizadores.nome";
|
||||
public static final String FUNCIONARIO_HST_ID = "funcionario_hst_id";
|
||||
public static final String FUNCIONARIO_HST_ID_FULL = "utilizadores.funcionario_hst_id";
|
||||
public static final String ACTIVO = "activo";
|
||||
public static final String ACTIVO_FULL = "utilizadores.activo";
|
||||
public static final String RESPONSAVEL_LOJA = "responsavel_loja";
|
||||
public static final String RESPONSAVEL_LOJA_FULL = "utilizadores.responsavel_loja";
|
||||
public static final String NUMERO_MECANOGRAFICO = "numero_mecanografico";
|
||||
public static final String NUMERO_MECANOGRAFICO_FULL = "utilizadores.numero_mecanografico";
|
||||
public static final String GESTOR_GERAL = "gestor_geral";
|
||||
public static final String GESTOR_GERAL_FULL = "utilizadores.gestor_geral";
|
||||
public static final String PRIMEIRO_LOGIN = "primeiro_login";
|
||||
public static final String PRIMEIRO_LOGIN_FULL = "utilizadores.primeiro_login";
|
||||
public static final String APAGADO = "apagado";
|
||||
public static final String APAGADO_FULL = "utilizadores.apagado";
|
||||
public static final String DATA_PASSWORD = "data_password";
|
||||
public static final String DATA_PASSWORD_FULL = "utilizadores.data_password";
|
||||
|
||||
public static final String FIELD_NAMES[] = new String[]{
|
||||
LOGIN, PASSWORD, EMAIL, EMPRESA_ID, ESTABELECIMENTO_ID, ADMINISTRADOR, MEDICO_ID,
|
||||
TIPO, NUMERO_CEDULA, CAP, NOME, FUNCIONARIO_HST_ID, ACTIVO, RESPONSAVEL_LOJA,
|
||||
NUMERO_MECANOGRAFICO, GESTOR_GERAL, PRIMEIRO_LOGIN, APAGADO, DATA_PASSWORD, };
|
||||
|
||||
|
||||
protected static final String ALL_FIELD_NAMES[] = new String[]{
|
||||
ID, LOGIN, PASSWORD, EMAIL, EMPRESA_ID, ESTABELECIMENTO_ID, ADMINISTRADOR, MEDICO_ID,
|
||||
TIPO, NUMERO_CEDULA, CAP, NOME, FUNCIONARIO_HST_ID, ACTIVO, RESPONSAVEL_LOJA,
|
||||
NUMERO_MECANOGRAFICO, GESTOR_GERAL, PRIMEIRO_LOGIN, APAGADO, DATA_PASSWORD, };
|
||||
|
||||
private Map<String, Object> dataHash;
|
||||
|
||||
public UtilizadoresDataAuto()
|
||||
{
|
||||
dataHash = new HashMap<String, Object>();
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return (Integer) get(ID);
|
||||
}
|
||||
|
||||
public void setId(Integer idValue )
|
||||
{
|
||||
this.set(ID, idValue );
|
||||
}
|
||||
|
||||
public String getLogin()
|
||||
{
|
||||
return (String) get(LOGIN);
|
||||
}
|
||||
|
||||
public void setLogin(String loginValue )
|
||||
{
|
||||
this.set(LOGIN, loginValue );
|
||||
}
|
||||
|
||||
public String getPassword()
|
||||
{
|
||||
return (String) get(PASSWORD);
|
||||
}
|
||||
|
||||
public void setPassword(String passwordValue )
|
||||
{
|
||||
this.set(PASSWORD, passwordValue );
|
||||
}
|
||||
|
||||
public String getEmail()
|
||||
{
|
||||
return (String) get(EMAIL);
|
||||
}
|
||||
|
||||
public void setEmail(String emailValue )
|
||||
{
|
||||
this.set(EMAIL, emailValue );
|
||||
}
|
||||
|
||||
public Integer getEmpresa_id()
|
||||
{
|
||||
return (Integer) get(EMPRESA_ID);
|
||||
}
|
||||
|
||||
public void setEmpresa_id(Integer empresa_idValue )
|
||||
{
|
||||
this.set(EMPRESA_ID, empresa_idValue );
|
||||
}
|
||||
|
||||
public Integer getEstabelecimento_id()
|
||||
{
|
||||
return (Integer) get(ESTABELECIMENTO_ID);
|
||||
}
|
||||
|
||||
public void setEstabelecimento_id(Integer estabelecimento_idValue )
|
||||
{
|
||||
this.set(ESTABELECIMENTO_ID, estabelecimento_idValue );
|
||||
}
|
||||
|
||||
public String getAdministrador()
|
||||
{
|
||||
return (String) get(ADMINISTRADOR);
|
||||
}
|
||||
|
||||
public void setAdministrador(String administradorValue )
|
||||
{
|
||||
this.set(ADMINISTRADOR, administradorValue );
|
||||
}
|
||||
|
||||
public Integer getMedico_id()
|
||||
{
|
||||
return (Integer) get(MEDICO_ID);
|
||||
}
|
||||
|
||||
public void setMedico_id(Integer medico_idValue )
|
||||
{
|
||||
this.set(MEDICO_ID, medico_idValue );
|
||||
}
|
||||
|
||||
public Integer getTipo()
|
||||
{
|
||||
return (Integer) get(TIPO);
|
||||
}
|
||||
|
||||
public void setTipo(Integer tipoValue )
|
||||
{
|
||||
this.set(TIPO, tipoValue );
|
||||
}
|
||||
|
||||
public String getNumero_cedula()
|
||||
{
|
||||
return (String) get(NUMERO_CEDULA);
|
||||
}
|
||||
|
||||
public void setNumero_cedula(String numero_cedulaValue )
|
||||
{
|
||||
this.set(NUMERO_CEDULA, numero_cedulaValue );
|
||||
}
|
||||
|
||||
public String getCap()
|
||||
{
|
||||
return (String) get(CAP);
|
||||
}
|
||||
|
||||
public void setCap(String capValue )
|
||||
{
|
||||
this.set(CAP, capValue );
|
||||
}
|
||||
|
||||
public String getNome()
|
||||
{
|
||||
return (String) get(NOME);
|
||||
}
|
||||
|
||||
public void setNome(String nomeValue )
|
||||
{
|
||||
this.set(NOME, nomeValue );
|
||||
}
|
||||
|
||||
public Integer getFuncionario_hst_id()
|
||||
{
|
||||
return (Integer) get(FUNCIONARIO_HST_ID);
|
||||
}
|
||||
|
||||
public void setFuncionario_hst_id(Integer funcionario_hst_idValue )
|
||||
{
|
||||
this.set(FUNCIONARIO_HST_ID, funcionario_hst_idValue );
|
||||
}
|
||||
|
||||
public String getActivo()
|
||||
{
|
||||
return (String) get(ACTIVO);
|
||||
}
|
||||
|
||||
public void setActivo(String activoValue )
|
||||
{
|
||||
this.set(ACTIVO, activoValue );
|
||||
}
|
||||
|
||||
public String getResponsavel_loja()
|
||||
{
|
||||
return (String) get(RESPONSAVEL_LOJA);
|
||||
}
|
||||
|
||||
public void setResponsavel_loja(String responsavel_lojaValue )
|
||||
{
|
||||
this.set(RESPONSAVEL_LOJA, responsavel_lojaValue );
|
||||
}
|
||||
|
||||
public String getNumero_mecanografico()
|
||||
{
|
||||
return (String) get(NUMERO_MECANOGRAFICO);
|
||||
}
|
||||
|
||||
public void setNumero_mecanografico(String numero_mecanograficoValue )
|
||||
{
|
||||
this.set(NUMERO_MECANOGRAFICO, numero_mecanograficoValue );
|
||||
}
|
||||
|
||||
public String getGestor_geral()
|
||||
{
|
||||
return (String) get(GESTOR_GERAL);
|
||||
}
|
||||
|
||||
public void setGestor_geral(String gestor_geralValue )
|
||||
{
|
||||
this.set(GESTOR_GERAL, gestor_geralValue );
|
||||
}
|
||||
|
||||
public String getPrimeiro_login()
|
||||
{
|
||||
return (String) get(PRIMEIRO_LOGIN);
|
||||
}
|
||||
|
||||
public void setPrimeiro_login(String primeiro_loginValue )
|
||||
{
|
||||
this.set(PRIMEIRO_LOGIN, primeiro_loginValue );
|
||||
}
|
||||
|
||||
public String getApagado()
|
||||
{
|
||||
return (String) get(APAGADO);
|
||||
}
|
||||
|
||||
public void setApagado(String apagadoValue )
|
||||
{
|
||||
this.set(APAGADO, apagadoValue );
|
||||
}
|
||||
|
||||
public java.util.Date getData_password()
|
||||
{
|
||||
return (java.util.Date) get(DATA_PASSWORD);
|
||||
}
|
||||
|
||||
public void setData_password(java.util.Date data_passwordValue )
|
||||
{
|
||||
this.set(DATA_PASSWORD, data_passwordValue );
|
||||
}
|
||||
|
||||
protected Object innerGet( String fieldName )
|
||||
throws Exception
|
||||
{
|
||||
Object value = null;
|
||||
value = dataHash.get( fieldName );
|
||||
return value;
|
||||
}
|
||||
|
||||
protected void innerSet( String fieldName, Object value )
|
||||
throws Exception
|
||||
{
|
||||
dataHash.put( fieldName, value );
|
||||
}
|
||||
|
||||
public String []getFieldNames()
|
||||
{
|
||||
return FIELD_NAMES;
|
||||
}
|
||||
|
||||
protected String []getAllFieldNames()
|
||||
{
|
||||
return ALL_FIELD_NAMES;
|
||||
}
|
||||
|
||||
public Class<Utilizadores> getInnerClass()
|
||||
{
|
||||
return Utilizadores.class;
|
||||
}
|
||||
|
||||
public Integer getJDOPrimaryKey()
|
||||
{
|
||||
Object obj = this.getId();
|
||||
if(obj instanceof JDOObject){
|
||||
obj = ((JDOObject) obj).getInnerObject();
|
||||
}
|
||||
return (Integer) obj;
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue