gov.grants.apply.valueObject
Class GetOpportunityList

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

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

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

Author:
Enoch Moses
See Also:
Serialized Form

Constructor Summary
GetOpportunityList()
          Constructors.
GetOpportunityList(java.lang.String OPPORTUNITY_IDIn)
           
 
Method Summary
 java.lang.Object clone()
          Clone will return identical deep copy of this valueObject.
 java.lang.String getCFDA_NUMBER()
           
 long getCLOSING_DATE()
           
 java.lang.String getCOMPETITION_ID()
           
 java.lang.String getDaogenVersion()
           
 java.lang.String getINSTRUCTION_URL()
           
 int getOID()
           
 long getOPENING_DATE()
           
 java.lang.String getOPPORTUNITY_ID()
           
 java.lang.String getOPPORTUNITY_TITLE()
           
 java.lang.String getSCHEMA_URL()
           
 boolean hasEqualMapping(GetOpportunityList valueObject)
           
 void setAll(int OIDIn, java.lang.String OPPORTUNITY_IDIn, java.lang.String OPPORTUNITY_TITLEIn, long OPENING_DATEIn, long CLOSING_DATEIn, java.lang.String CFDA_NUMBERIn, java.lang.String SCHEMA_URLIn, java.lang.String INSTRUCTION_URLIn)
          setAll allows to set all persistent variables in one method call.
 void setCFDA_NUMBER(java.lang.String CFDA_NUMBERIn)
           
 void setCLOSING_DATE(long CLOSING_DATEIn)
           
 void setCOMPETITION_ID(java.lang.String COMPETITION_IDIn)
           
 void setINSTRUCTION_URL(java.lang.String INSTRUCTION_URLIn)
           
 void setOID(int OIDIn)
           
 void setOPENING_DATE(long OPENING_DATEIn)
           
 void setOPPORTUNITY_ID(java.lang.String OPPORTUNITY_IDIn)
           
 void setOPPORTUNITY_TITLE(java.lang.String OPPORTUNITY_TITLEIn)
           
 void setSCHEMA_URL(java.lang.String SCHEMA_URLIn)
           
 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

GetOpportunityList

public GetOpportunityList()
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.


GetOpportunityList

public GetOpportunityList(java.lang.String OPPORTUNITY_IDIn)
Parameters:
OPPORTUNITY_IDIn - the string of Opportunity ID.
Method Detail

getOID

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

setOID

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

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.

getOPPORTUNITY_TITLE

public java.lang.String getOPPORTUNITY_TITLE()
Returns:
the string of the opportunity title.

setOPPORTUNITY_TITLE

public void setOPPORTUNITY_TITLE(java.lang.String OPPORTUNITY_TITLEIn)
Parameters:
OPPORTUNITY_TITLEIn - the string of the opportunity title.

getOPENING_DATE

public long getOPENING_DATE()
Returns:
the long of the opening date.

setOPENING_DATE

public void setOPENING_DATE(long OPENING_DATEIn)
Parameters:
OPENING_DATEIn - the long of the opening date.

getCLOSING_DATE

public long getCLOSING_DATE()
Returns:
the long of the closing date.

setCLOSING_DATE

public void setCLOSING_DATE(long CLOSING_DATEIn)
Parameters:
CLOSING_DATEIn - the long of the closing date.

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.

getSCHEMA_URL

public java.lang.String getSCHEMA_URL()
Returns:
the string of the schema URL.

setSCHEMA_URL

public void setSCHEMA_URL(java.lang.String SCHEMA_URLIn)
Parameters:
SCHEMA_URLIn - the string of the schema URL.

getINSTRUCTION_URL

public java.lang.String getINSTRUCTION_URL()
Returns:
the string of the instruction URL.

setINSTRUCTION_URL

public void setINSTRUCTION_URL(java.lang.String INSTRUCTION_URLIn)
Parameters:
INSTRUCTION_URLIn - the string of the instruction URL.

setAll

public void setAll(int OIDIn,
                   java.lang.String OPPORTUNITY_IDIn,
                   java.lang.String OPPORTUNITY_TITLEIn,
                   long OPENING_DATEIn,
                   long CLOSING_DATEIn,
                   java.lang.String CFDA_NUMBERIn,
                   java.lang.String SCHEMA_URLIn,
                   java.lang.String INSTRUCTION_URLIn)
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 String.
OPPORTUNITY_IDIn - the String.
OPPORTUNITY_TITLEIn - the String.
OPENING_DATEIn - the long.
CLOSING_DATEIn - the long.
CFDA_NUMBERIn - the String.
SCHEMA_URLIn - the String.
INSTRUCTION_URLIn - the String.

hasEqualMapping

public boolean hasEqualMapping(GetOpportunityList valueObject)
Parameters:
valueObject - the GetOpportunityList.
Returns:
a true if they 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. A false if otherwise.

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()
Returns:
the string of the DaoGen Version.