com.siebel.rf.offline.data.negotiableinstrumentbox
Class NegotiableInstrumentBox

java.lang.Object
  |
  +--com.siebel.rf.offline.data.negotiableinstrumentbox.NegotiableInstrumentBox
All Implemented Interfaces:
Persisted

public class NegotiableInstrumentBox
extends java.lang.Object
implements Persisted

The NegotiableInstrumentBox persisted class


Field Summary
 java.lang.String branchCode
           
 java.lang.String cashBoxId
           
 java.lang.String companyCode
           
 java.lang.String currency
           
static java.util.HashMap MAPPING
           
 java.lang.String negotiableInstrumentBoxId
           
 java.lang.String negotiableInstrumentType
           
static java.util.ArrayList PK_ATTRBUTES
           
 java.lang.Long totalNumberOfNegotiableInstruments
           
 java.lang.String virtual
           
 
Constructor Summary
NegotiableInstrumentBox()
           
 
Method Summary
 boolean equals(java.lang.Object object)
          Compares the object.
 java.util.Vector getAllNegotiableInstrumentsForNegotiableInstrumentBox()
          Returns all NegotiableInstruments for a NegotiableInstrumentBox.
 java.lang.String getBranchCode()
          Returns branchCode
 java.lang.String getCashBoxId()
          Returns cashBoxId
 java.lang.String getCompanyCode()
          Returns companyCode
 java.lang.String getCurrency()
          Returns currency
 java.util.HashMap getMapping()
          Returns attributes vs.
 java.lang.String getNegotiableInstrumentBoxId()
          Returns negotiableInstrumentBoxId
 java.lang.String getNegotiableInstrumentType()
          Returns negotiableInstrumentType
 java.util.ArrayList getPKAttributes()
          Returns collection of primary key attributes
 java.lang.String getTableName()
          Returns tableName of NegotiableInstrumentBox
 java.lang.Long getTotalNumberOfNegotiableInstruments()
          Returns totalNumberOfNegotiableInstruments
 java.lang.String getVirtual()
          Returns virtual
 void setBranchCode(java.lang.String branchCode)
          Sets branchCode
 void setCashBoxId(java.lang.String cashBoxId)
          Sets cashBoxId
 void setCompanyCode(java.lang.String companyCode)
          Sets companyCode
 void setCurrency(java.lang.String currency)
          Sets currency
 void setNegotiableInstrumentBoxId(java.lang.String negotiableInstrumentBoxId)
          Sets negotiableInstrumentBoxId
 void setNegotiableInstrumentType(java.lang.String negotiableInstrumentType)
          Sets negotiableInstrumentType
 void setTotalNumberOfNegotiableInstruments(java.lang.Long totalNumberOfNegotiableInstruments)
          Sets totalNumberOfNegotiableInstruments
 void setVirtual(java.lang.String virtual)
          Sets virtual
 com.bankframe.bo.DataPacket toDataPacket()
          Creates dataPacket for NegotiableInstrumentBox
 java.lang.String toString()
          Converts DataPacket to String.
 void updateForIncoming()
          Increments totalNumberOfNegotiableInstruments by 1.
 void updateForOutgoing()
          Decrements totalNumberOfNegotiableInstruments by 1.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

companyCode

public java.lang.String companyCode

branchCode

public java.lang.String branchCode

negotiableInstrumentBoxId

public java.lang.String negotiableInstrumentBoxId

cashBoxId

public java.lang.String cashBoxId

currency

public java.lang.String currency

negotiableInstrumentType

public java.lang.String negotiableInstrumentType

totalNumberOfNegotiableInstruments

public java.lang.Long totalNumberOfNegotiableInstruments

virtual

public java.lang.String virtual

MAPPING

public static java.util.HashMap MAPPING

PK_ATTRBUTES

public static java.util.ArrayList PK_ATTRBUTES
Constructor Detail

NegotiableInstrumentBox

public NegotiableInstrumentBox()
Method Detail

getCompanyCode

public java.lang.String getCompanyCode()
Returns companyCode
Returns:
the value of companyCode

getBranchCode

public java.lang.String getBranchCode()
Returns branchCode
Returns:
the value of branchCode

getNegotiableInstrumentBoxId

public java.lang.String getNegotiableInstrumentBoxId()
Returns negotiableInstrumentBoxId
Returns:
the value of negotiableInstrumentBoxId

getCashBoxId

public java.lang.String getCashBoxId()
Returns cashBoxId
Returns:
the value of cashBoxId

getCurrency

public java.lang.String getCurrency()
Returns currency
Returns:
the value of currency

getNegotiableInstrumentType

public java.lang.String getNegotiableInstrumentType()
Returns negotiableInstrumentType
Returns:
the value of negotiableInstrumentType

getTotalNumberOfNegotiableInstruments

public java.lang.Long getTotalNumberOfNegotiableInstruments()
Returns totalNumberOfNegotiableInstruments
Returns:
the value of totalNumberOfNegotiableInstruments

getVirtual

public java.lang.String getVirtual()
Returns virtual
Returns:
the value of virtual

setCompanyCode

public void setCompanyCode(java.lang.String companyCode)
Sets companyCode
Parameters:
companyCode - String

setBranchCode

public void setBranchCode(java.lang.String branchCode)
Sets branchCode
Parameters:
branchCode - String

setNegotiableInstrumentBoxId

public void setNegotiableInstrumentBoxId(java.lang.String negotiableInstrumentBoxId)
Sets negotiableInstrumentBoxId
Parameters:
negotiableInstrumentBoxId - String

setCashBoxId

public void setCashBoxId(java.lang.String cashBoxId)
Sets cashBoxId
Parameters:
cashBoxId - String

setCurrency

public void setCurrency(java.lang.String currency)
Sets currency
Parameters:
currency - String

setNegotiableInstrumentType

public void setNegotiableInstrumentType(java.lang.String negotiableInstrumentType)
Sets negotiableInstrumentType
Parameters:
negotiableInstrumentType - String

setTotalNumberOfNegotiableInstruments

public void setTotalNumberOfNegotiableInstruments(java.lang.Long totalNumberOfNegotiableInstruments)
Sets totalNumberOfNegotiableInstruments
Parameters:
totalNumberOfNegotiableInstruments - Integer

setVirtual

public void setVirtual(java.lang.String virtual)
Sets virtual
Parameters:
virtual - String

getMapping

public java.util.HashMap getMapping()
Returns attributes vs. table column name mapping
Specified by:
getMapping in interface Persisted
Returns:
the attributes vs. table column name mapping

getPKAttributes

public java.util.ArrayList getPKAttributes()
Returns collection of primary key attributes
Specified by:
getPKAttributes in interface Persisted
Returns:
the collection of primary key attributes

getTableName

public java.lang.String getTableName()
Returns tableName of NegotiableInstrumentBox
Specified by:
getTableName in interface Persisted
Returns:
the table name

toDataPacket

public com.bankframe.bo.DataPacket toDataPacket()
Creates dataPacket for NegotiableInstrumentBox
Specified by:
toDataPacket in interface Persisted
Returns:
dataPacket

toString

public java.lang.String toString()
Converts DataPacket to String.
Overrides:
toString in class java.lang.Object
Returns:
String after converting the DataPacket to String

equals

public boolean equals(java.lang.Object object)
Compares the object.
Overrides:
equals in class java.lang.Object
Parameters:
object - Object
Returns:
boolean after comparing the object

getAllNegotiableInstrumentsForNegotiableInstrumentBox

public java.util.Vector getAllNegotiableInstrumentsForNegotiableInstrumentBox()
                                                                       throws com.bankframe.ejb.ProcessingErrorException,
                                                                              com.bankframe.validation.ValidationException
Returns all NegotiableInstruments for a NegotiableInstrumentBox.
Returns:
Vector of Negotiable Instrument collection
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails
com.bankframe.validation.ValidationException - This exception is thrown if validation fails

updateForOutgoing

public void updateForOutgoing()
                       throws com.bankframe.ejb.ProcessingErrorException,
                              com.bankframe.validation.ValidationException
Decrements totalNumberOfNegotiableInstruments by 1.
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails.
com.bankframe.validation.ValidationException - This exception is thrown if validation fails.

updateForIncoming

public void updateForIncoming()
                       throws com.bankframe.validation.ValidationException
Increments totalNumberOfNegotiableInstruments by 1.
Throws:
com.bankframe.validation.ValidationException - This exception is thrown if validation fails.