gov.grants.apply.valueObject
Class Application

java.lang.Object
  extended bygov.grants.apply.valueObject.Application
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class Application
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

Application Value Object. This class is value object representing database table application This class is intented to be used together with associated Dao object.

Author:
Feng Qian
See Also:
Serialized Form

Constructor Summary
Application()
          Constructors.
Application(int OIDIn)
           
 
Method Summary
 java.lang.Object clone()
          Clone will return identical deep copy of this valueObject.
 java.lang.String getAGENCY_TRACKING_ID()
           
 java.lang.String getCFDA_NUMBER()
           
 java.lang.String getCOMPETITION_ID()
           
 java.lang.String getDaogenVersion()
          getDaogenVersion will return information about generator which created these sources.
 java.lang.String getERROR_LOG()
           
 long getLAST_MODIFY_DATE()
           
 int getOID()
           
 java.lang.String getOPPORTUNITY_ID()
           
 long getRECEIVED_DATE()
           
 java.lang.String getSTATUS()
           
 java.lang.String getSUBMISSION_TITLE()
           
 java.lang.String getTRACKING_ID()
           
 boolean hasEqualMapping(Application valueObject)
           
 void setAGENCY_TRACKING_ID(java.lang.String agency_tracking_id)
           
 void setAll(int OIDIn, java.lang.String TRACKING_IDIn, java.lang.String OPPORTUNITY_IDIn, java.lang.String CFDA_NUMBERIn, java.lang.String COMPETITION_IDIn, long RECEIVED_DATEIn, java.lang.String STATUSIn, java.lang.String AGENCY_TRACKING_ID, long LAST_MODIFY_DATE, java.lang.String ERROR_LOGIn, java.lang.String SUBMISSION_TITLEIn)
          setAll allows to set all persistent variables in one method call.
 void setCFDA_NUMBER(java.lang.String CFDA_NUMBERIn)
           
 void setCOMPETITION_ID(java.lang.String COMPETITION_IDIn)
           
 void setERROR_LOG(java.lang.String ERROR_LOGIn)
           
 void setLAST_MODIFY_DATE(long last_modify_date)
           
 void setOID(int OIDIn)
           
 void setOPPORTUNITY_ID(java.lang.String OPPORTUNITY_IDIn)
           
 void setRECEIVED_DATE(long RECEIVED_DATEIn)
           
 void setSTATUS(java.lang.String STATUSIn)
           
 void setSUBMISSION_TITLE(java.lang.String SUBMISSION_TITLEIn)
           
 void setTRACKING_ID(java.lang.String TRACKING_IDIn)
           
 java.lang.String toString()
          toString will return String object representing the state of this valueObject.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Application

public Application()
Constructors. DaoGen generates two constructors by default. The first one takes no arguments and provides the most simple way to create object instance. The another one takes one argument, which is the primary key of the corresponding table.


Application

public Application(int OIDIn)
Method Detail

getOID

public int getOID()
Returns:
the int of OID.

setOID

public void setOID(int OIDIn)
Parameters:
OIDIn - the int of OIDIn.

getTRACKING_ID

public java.lang.String getTRACKING_ID()
Returns:
the string of the tracking ID.

setTRACKING_ID

public void setTRACKING_ID(java.lang.String TRACKING_IDIn)
Parameters:
TRACKING_IDIn - the string of the tracking ID.

getOPPORTUNITY_ID

public java.lang.String getOPPORTUNITY_ID()
Returns:
the string of the opportunity ID.

setOPPORTUNITY_ID

public void setOPPORTUNITY_ID(java.lang.String OPPORTUNITY_IDIn)
Parameters:
OPPORTUNITY_IDIn - the string of the opportunity ID.

getCFDA_NUMBER

public java.lang.String getCFDA_NUMBER()
Returns:
the string of the CFDA number.

setCFDA_NUMBER

public void setCFDA_NUMBER(java.lang.String CFDA_NUMBERIn)
Parameters:
CFDA_NUMBERIn - the string of the CFDA number.

getCOMPETITION_ID

public java.lang.String getCOMPETITION_ID()
Returns:
the string of the competition ID.

setCOMPETITION_ID

public void setCOMPETITION_ID(java.lang.String COMPETITION_IDIn)
Parameters:
COMPETITION_IDIn - the string of the competition ID.

getRECEIVED_DATE

public long getRECEIVED_DATE()
Returns:
the long of the received date.

setRECEIVED_DATE

public void setRECEIVED_DATE(long RECEIVED_DATEIn)
Parameters:
RECEIVED_DATEIn - the long of the received date.

getSTATUS

public java.lang.String getSTATUS()
Returns:
the string of the status.

setSTATUS

public void setSTATUS(java.lang.String STATUSIn)
Parameters:
STATUSIn - the string of the status.

getERROR_LOG

public java.lang.String getERROR_LOG()
Returns:
the string of the status.

setERROR_LOG

public void setERROR_LOG(java.lang.String ERROR_LOGIn)

getSUBMISSION_TITLE

public java.lang.String getSUBMISSION_TITLE()
Returns:
the string of the SUBMISSION_TITLE.

setSUBMISSION_TITLE

public void setSUBMISSION_TITLE(java.lang.String SUBMISSION_TITLEIn)
Parameters:
SUBMISSION_TITLEIn - the string of the SUBMISSION_TITLE.

setAll

public void setAll(int OIDIn,
                   java.lang.String TRACKING_IDIn,
                   java.lang.String OPPORTUNITY_IDIn,
                   java.lang.String CFDA_NUMBERIn,
                   java.lang.String COMPETITION_IDIn,
                   long RECEIVED_DATEIn,
                   java.lang.String STATUSIn,
                   java.lang.String AGENCY_TRACKING_ID,
                   long LAST_MODIFY_DATE,
                   java.lang.String ERROR_LOGIn,
                   java.lang.String SUBMISSION_TITLEIn)
setAll allows to set all persistent variables in one method call. This is useful, when all data is available and it is needed to set the initial state of this object. Note that this method will directly modify instance variales, without going trough the individual set-methods.

Parameters:
OIDIn - the int.
TRACKING_IDIn - the string.
OPPORTUNITY_IDIn - the string.
CFDA_NUMBERIn - the string.
COMPETITION_IDIn - the string
RECEIVED_DATEIn - the long.
STATUSIn - the string.
AGENCY_TRACKING_ID - the string.
LAST_MODIFY_DATE - the long.
ERROR_LOGIn - the string.
SUBMISSION_TITLEIn - the string.

hasEqualMapping

public boolean hasEqualMapping(Application valueObject)
Parameters:
valueObject - the Application object.
Returns:
a true if two Application instances contain same values in all persistent instance variables. If hasEqualMapping returns true, it does not mean the objects are the same instance. However it does mean that in that moment, they are mapped to the same row in database. Otherwise return false.

toString

public java.lang.String toString()
toString will return String object representing the state of this valueObject. This is useful during application development, and possibly when application is writing object states in textlog.


clone

public java.lang.Object clone()
Clone will return identical deep copy of this valueObject. Note, that this method is different than the clone() which is defined in java.lang.Object. Here, the retuned cloned object will also have all its attributes cloned.


getDaogenVersion

public java.lang.String getDaogenVersion()
getDaogenVersion will return information about generator which created these sources.


getAGENCY_TRACKING_ID

public java.lang.String getAGENCY_TRACKING_ID()
Returns:
Returns the aGENCY_TRACKING_ID.

setAGENCY_TRACKING_ID

public void setAGENCY_TRACKING_ID(java.lang.String agency_tracking_id)
Parameters:
agency_tracking_id - The aGENCY_TRACKING_ID.

getLAST_MODIFY_DATE

public long getLAST_MODIFY_DATE()
Returns:
Returns the lAST_MODIFY_DATE.

setLAST_MODIFY_DATE

public void setLAST_MODIFY_DATE(long last_modify_date)
Parameters:
last_modify_date - The lAST_MODIFY_DATE.