com.instantbank.component.job.model
Class JobModel

java.lang.Object
  |
  +--com.instantbank.component.job.model.JobModel
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
JobWebImpl

public class JobModel
extends java.lang.Object
implements java.io.Serializable

state Model of Job EJB

Author:
Instant-bank (Consuelo Franky)
See Also:
Serialized Form

Field Summary
private  java.sql.Date activationDate
          activation date
private  java.lang.String companyId
          current company
private  java.lang.String description
          job description
private  java.lang.String frequency
          job frequency
private  long ftpAlternateId
          ftp Alternate Id
private  long ftpPrimaryId
          ftp Primary Id
private  java.lang.Long jobId
          job Id: primary key
private  java.util.Collection jobORDER
          job ORDER collection: elements of type jobORDERelement it is assumed that the set of jobORDER elements is the same set of jobSELECT elements
private  java.util.Collection jobSELECT
          job SELECT collection: elements of type jobSELECTelement
private  java.util.Collection jobWHERE
          job WHERE collection: elements of type jobWHEREelement
private  java.sql.Date lastExecutionDate
          last Execution date
private  java.lang.String name
          job name
private  long queueTypeId
          queue type id (for future integration with Collections
private  java.lang.String sqlText
          sql text associated to the job
private  java.lang.String status
          job status
private  long templateCode
          template code associated to the job
private  java.lang.Long userId
          current user
private  java.sql.Date version
          version (i.e.
 
Constructor Summary
JobModel()
          empty Constructor.
JobModel(java.lang.Long jobId, java.lang.String companyId, java.lang.String name, java.lang.String frequency, java.lang.String status, java.sql.Date activationDate, long ftpPrimaryId, long ftpAlternateId, java.lang.Long userId, java.sql.Date version, long templateCode, long queueTypeId, java.lang.String description, java.lang.String sqlText, java.sql.Date lastExecutionDate, java.util.Collection jobSELECT, java.util.Collection jobWHERE, java.util.Collection jobORDER)
          full Constructor.
 
Method Summary
 void copy(JobModel other)
          Copies a JobModel value to attributes of this instance
 java.sql.Date getActivationDate()
          Getter method for activationDate
 java.lang.String getCompanyId()
          Getter method for companyId
 java.lang.String getDescription()
          Getter method for description
 java.lang.String getFrequency()
          Getter method for frequency
 long getFtpAlternateId()
          Getter method for ftpAlternateId
 long getFtpPrimaryId()
          Getter method for ftpPrimaryId
 java.lang.Long getJobId()
          Getter method for jobId
 java.util.Collection getJobORDER()
          Getter method for jobORDER returning a Collection
 java.util.Hashtable getJobORDERtable()
          Getter method for jobORDER returning a Hashtable
 java.util.Collection getJobSELECT()
          Getter method for jobSELECT
 java.util.Collection getJobWHERE()
          Getter method for jobWHERE
 java.sql.Date getLastExecutionDate()
          Getter method for lastExecutionDate
 java.lang.String getName()
          Getter method for name
 long getQueueTypeId()
          Getter method for queueTypeId
 java.lang.String getSqlText()
          Getter method for sqlText
 java.lang.String getStatus()
          Getter method for status
 long getTemplateCode()
          Getter method for templateCode
 java.lang.Long getUserId()
          Getter method for userId
 java.sql.Date getVersion()
          Getter method for version
 void setDescription(java.lang.String description)
          Setter method on description
 void setFtpAlternateId(long ftpAlternateId)
          Setter method on ftpAlternateId
 void setFtpPrimaryId(long ftpPrimaryId)
          Setter method on ftpPrimaryId
 void setJobId(java.lang.Long jobId)
          Setter method on jobId
 void setJobORDER(java.util.Collection jobORDER)
          Setter method on jobORDER
 void setJobSELECT(java.util.Collection jobSELECT)
          Setter method on jobSELECT
 void setJobWHERE(java.util.Collection jobWHERE)
          Setter method on jobWHERE
 void setMaster(java.lang.Long jobId, java.lang.String companyId, java.lang.String name, java.lang.String frequency, java.lang.String status, java.sql.Date activationDate, long ftpPrimaryId, long ftpAlternateId, java.lang.Long userId, java.sql.Date version, long templateCode, long queueTypeId, java.lang.String description, java.lang.String sqlText, java.sql.Date lastExecutionDate)
          Setter method on master set of attributes.
 void setSqlText(java.lang.String sqlText)
          Setter method on sqlText
 void setTemplateCode(long templateCode)
          Setter method on templateCode
 void setVersion(java.sql.Date version)
          Setter method on version
 java.lang.String toString()
          Textual representation of JobModel
 org.w3c.dom.Element toXml(org.w3c.dom.Document doc)
          XML representation of JobModel
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

jobId

private java.lang.Long jobId
job Id: primary key

companyId

private java.lang.String companyId
current company

name

private java.lang.String name
job name

frequency

private java.lang.String frequency
job frequency

status

private java.lang.String status
job status

activationDate

private java.sql.Date activationDate
activation date

userId

private java.lang.Long userId
current user

version

private java.sql.Date version
version (i.e. last changed date)

templateCode

private long templateCode
template code associated to the job

queueTypeId

private long queueTypeId
queue type id (for future integration with Collections

description

private java.lang.String description
job description

sqlText

private java.lang.String sqlText
sql text associated to the job

lastExecutionDate

private java.sql.Date lastExecutionDate
last Execution date

ftpPrimaryId

private long ftpPrimaryId
ftp Primary Id

ftpAlternateId

private long ftpAlternateId
ftp Alternate Id

jobSELECT

private java.util.Collection jobSELECT
job SELECT collection: elements of type jobSELECTelement

jobWHERE

private java.util.Collection jobWHERE
job WHERE collection: elements of type jobWHEREelement

jobORDER

private java.util.Collection jobORDER
job ORDER collection: elements of type jobORDERelement it is assumed that the set of jobORDER elements is the same set of jobSELECT elements
Constructor Detail

JobModel

public JobModel()
empty Constructor.

JobModel

public JobModel(java.lang.Long jobId,
                java.lang.String companyId,
                java.lang.String name,
                java.lang.String frequency,
                java.lang.String status,
                java.sql.Date activationDate,
                long ftpPrimaryId,
                long ftpAlternateId,
                java.lang.Long userId,
                java.sql.Date version,
                long templateCode,
                long queueTypeId,
                java.lang.String description,
                java.lang.String sqlText,
                java.sql.Date lastExecutionDate,
                java.util.Collection jobSELECT,
                java.util.Collection jobWHERE,
                java.util.Collection jobORDER)
full Constructor.
Parameters:
jobId - identifier of job (primary key)
companyId - current company
name - job name
frequency - job frequency
status - job status
activationDate - job activation date
ftpPrimaryId - a ftp location id of the company
ftpAlternateId - an alternate ftp location id of the company
userId - current user
version - job version (last update date)
templateCode - code of template associated to job
queueTypeId - queue type id associated to job (not used; reserved for future integration with Collections subsystem)
description - job description
sqlText - sql text for selecting database tuples corresponding to the job
lastExecutionDate - job last execution date
jobSELECT - job SELECT elements
jobWHERE - job WHERE elements
jobORDER - job ORDER elements
Method Detail

getJobId

public java.lang.Long getJobId()
Getter method for jobId
Returns:
jobId value

getCompanyId

public java.lang.String getCompanyId()
Getter method for companyId
Returns:
companyId value

getName

public java.lang.String getName()
Getter method for name
Returns:
name value

getFrequency

public java.lang.String getFrequency()
Getter method for frequency
Returns:
frequency value

getStatus

public java.lang.String getStatus()
Getter method for status
Returns:
status value

getActivationDate

public java.sql.Date getActivationDate()
Getter method for activationDate
Returns:
activationDate value

getFtpPrimaryId

public long getFtpPrimaryId()
Getter method for ftpPrimaryId
Returns:
ftpPrimaryId value

getFtpAlternateId

public long getFtpAlternateId()
Getter method for ftpAlternateId
Returns:
ftpAlternateId value

getVersion

public java.sql.Date getVersion()
Getter method for version
Returns:
version value

getUserId

public java.lang.Long getUserId()
Getter method for userId
Returns:
userId value

getTemplateCode

public long getTemplateCode()
Getter method for templateCode
Returns:
templateCode value

getQueueTypeId

public long getQueueTypeId()
Getter method for queueTypeId
Returns:
queueTypeId value

getDescription

public java.lang.String getDescription()
Getter method for description
Returns:
description value

getLastExecutionDate

public java.sql.Date getLastExecutionDate()
Getter method for lastExecutionDate
Returns:
lastExecutionDate value

getSqlText

public java.lang.String getSqlText()
Getter method for sqlText
Returns:
sqlText value

getJobSELECT

public java.util.Collection getJobSELECT()
Getter method for jobSELECT
Returns:
jobSELECT value

getJobWHERE

public java.util.Collection getJobWHERE()
Getter method for jobWHERE
Returns:
jobWHERE value

getJobORDER

public java.util.Collection getJobORDER()
Getter method for jobORDER returning a Collection
Returns:
jobORDER value

getJobORDERtable

public java.util.Hashtable getJobORDERtable()
Getter method for jobORDER returning a Hashtable
Returns:
value of jobORDER in Hashtable form

setJobId

public void setJobId(java.lang.Long jobId)
Setter method on jobId
Parameters:
jobId - The new jobId value

setVersion

public void setVersion(java.sql.Date version)
Setter method on version
Parameters:
version - The new version value

setDescription

public void setDescription(java.lang.String description)
Setter method on description
Parameters:
description - The new description value

setFtpPrimaryId

public void setFtpPrimaryId(long ftpPrimaryId)
Setter method on ftpPrimaryId
Parameters:
ftpPrimaryId - The new version value

setFtpAlternateId

public void setFtpAlternateId(long ftpAlternateId)
Setter method on ftpAlternateId
Parameters:
ftpAlternateId - The new version value

setJobSELECT

public void setJobSELECT(java.util.Collection jobSELECT)
Setter method on jobSELECT
Parameters:
jobSELECT - The new jobSELECT value

setJobWHERE

public void setJobWHERE(java.util.Collection jobWHERE)
Setter method on jobWHERE
Parameters:
jobWHERE - The new jobWHERE value

setJobORDER

public void setJobORDER(java.util.Collection jobORDER)
Setter method on jobORDER
Parameters:
jobORDER - The new jobORDER value

setSqlText

public void setSqlText(java.lang.String sqlText)
Setter method on sqlText
Parameters:
sqlText - The new sqlText value

setTemplateCode

public void setTemplateCode(long templateCode)
Setter method on templateCode
Parameters:
templateCode - The new templateCode value

setMaster

public void setMaster(java.lang.Long jobId,
                      java.lang.String companyId,
                      java.lang.String name,
                      java.lang.String frequency,
                      java.lang.String status,
                      java.sql.Date activationDate,
                      long ftpPrimaryId,
                      long ftpAlternateId,
                      java.lang.Long userId,
                      java.sql.Date version,
                      long templateCode,
                      long queueTypeId,
                      java.lang.String description,
                      java.lang.String sqlText,
                      java.sql.Date lastExecutionDate)
Setter method on master set of attributes.
Parameters:
jobId - identifier of job (primary key)
companyId - current company
name - job name
frequency - job frequency
status - job status
activationDate - job activation date
ftpPrimaryId - a ftp location id of the company
ftpAlternateId - an alternate ftp location id of the company
userId - current user
version - job version (last update date)
templateCode - code of template associated to job
queueTypeId - queue type id associated to job (not used; reserved for future integration with Collections subsystem)
description - job description
sqlText - sql text for selecting database tuples corresponding to the job
lastExecutionDate - job last execution date (letters generation)

toString

public java.lang.String toString()
Textual representation of JobModel
Overrides:
toString in class java.lang.Object
Returns:
associated text

toXml

public org.w3c.dom.Element toXml(org.w3c.dom.Document doc)
XML representation of JobModel
Parameters:
doc - Description of the Parameter
Returns:
associated XML text

copy

public void copy(JobModel other)
Copies a JobModel value to attributes of this instance
Parameters:
other - input JobModel value