com.instantbank.lettertemplate.control.web.handlers
Class JobWebImpl

java.lang.Object
  |
  +--com.instantbank.component.job.model.JobModel
        |
        +--com.instantbank.lettertemplate.control.web.handlers.JobWebImpl
All Implemented Interfaces:
ModelUpdateListener, java.io.Serializable

public class JobWebImpl
extends JobModel
implements ModelUpdateListener, java.io.Serializable

This class is the web-tier representation of the Job EJB.

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

Field Summary
private  Debug debug
           
private  Job jobejb
           
private  ModelManager mm
           
 
Fields inherited from class com.instantbank.component.job.model.JobModel
activationDate, companyId, description, frequency, ftpAlternateId, ftpPrimaryId, jobId, jobORDER, jobSELECT, jobWHERE, lastExecutionDate, name, queueTypeId, sqlText, status, templateCode, userId, version
 
Constructor Summary
JobWebImpl()
          constructor without parameters
JobWebImpl(ModelManager mm)
          constructor that receives the ModelManager: this object is registered as listener of changes in the state of Job EJB
 
Method Summary
 void clean()
          clean attributes of jobView: javabean that is model view of Job EJB.
 java.lang.String getActivationDateString()
          Tranforms activationDate to a string "MM-dd-yyyy"
 void performUpdate()
          reaction to changes in the state of Job EJB: it requests a copie of the new state
 void setJobNull()
          Sets null to jobejb attribute:
 
Methods inherited from class com.instantbank.component.job.model.JobModel
copy, getActivationDate, getCompanyId, getDescription, getFrequency, getFtpAlternateId, getFtpPrimaryId, getJobId, getJobORDER, getJobORDERtable, getJobSELECT, getJobWHERE, getLastExecutionDate, getName, getQueueTypeId, getSqlText, getStatus, getTemplateCode, getUserId, getVersion, setDescription, setFtpAlternateId, setFtpPrimaryId, setJobId, setJobORDER, setJobSELECT, setJobWHERE, setMaster, setSqlText, setTemplateCode, setVersion, toString, toXml
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

mm

private ModelManager mm

jobejb

private Job jobejb

debug

private Debug debug
Constructor Detail

JobWebImpl

public JobWebImpl()
constructor without parameters

JobWebImpl

public JobWebImpl(ModelManager mm)
constructor that receives the ModelManager: this object is registered as listener of changes in the state of Job EJB
Parameters:
mm - Description of the Parameter
Method Detail

performUpdate

public void performUpdate()
reaction to changes in the state of Job EJB: it requests a copie of the new state
Specified by:
performUpdate in interface ModelUpdateListener

setJobNull

public void setJobNull()
Sets null to jobejb attribute:

getActivationDateString

public java.lang.String getActivationDateString()
Tranforms activationDate to a string "MM-dd-yyyy"
Returns:
string

clean

public void clean()
clean attributes of jobView: javabean that is model view of Job EJB.