com.siebel.rf.offline.data.journal
Class Journal

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

public class Journal
extends java.lang.Object
implements Persisted

The Journal persisted class


Field Summary
 java.lang.String branchCode
           
 java.lang.String companyCode
           
 java.lang.String endTime
           
 java.lang.String journalDate
           
 java.lang.String journalStartTime
           
static java.util.HashMap MAPPING
           
 java.lang.String nextCustomerSessionId
           
 java.lang.String nextJournalEntryId
           
static java.util.ArrayList PK_ATTRBUTES
           
 java.lang.String userId
           
 
Constructor Summary
Journal()
           
 
Method Summary
 void closeJournal()
          Sets end time on the journal.
 void createJournalEntryAndItems(com.bankframe.vo.retail.solutionset.impl.financialtransactions.FinancialTransactionJournalEntryVO financialTransactionJournalEntryVO, java.util.Vector financialTransactionJournalEntryItem)
          Creates JornalEntry and JournalEntryItems
 boolean equals(java.lang.Object object)
          Compares object
 java.lang.String getAndIncrementNextJournalEntryId()
          Increments nextJournalEntrySequenceNumber
 java.lang.String getBranchCode()
          Returns branchCode
 java.lang.String getCompanyCode()
          Returns companyCode
 java.lang.String getEndTime()
          Returns endTime
 java.lang.String getJournalDate()
          Returns journalDate
 java.lang.String getJournalStartTime()
          Returns journalStartTime
 java.util.HashMap getMapping()
          Returns attributes vs.
 java.lang.String getNextCustomerSessionId()
          Returns nextCustomerSessionId
 java.lang.String getNextJournalEntryId()
          Returns nextJournalEntryId
 java.util.ArrayList getPKAttributes()
          Returns collection of primary key attributes
 java.lang.String getTableName()
          Returns table name of Journal
 java.lang.String getUserId()
          Returns userId
 void setBranchCode(java.lang.String branchCode)
          Sets branchCode
 void setCompanyCode(java.lang.String companyCode)
          Sets companyCode
 void setEndTime(java.lang.String endTime)
          Sets endTime
 void setJournalDate(java.lang.String journalDate)
          Sets journalDate
 void setJournalStartTime(java.lang.String journalStartTime)
          Sets journalStartTime
 void setNextCustomerSessionId(java.lang.String nextCustomerSessionId)
          Sets nextCustomerSessionId
 void setNextJournalEntryId(java.lang.String nextJournalEntryId)
          Sets nextJournalEntryId
 void setUserId(java.lang.String userId)
          Sets userId
 com.bankframe.bo.DataPacket toDataPacket()
          Creates dataPacket for Journal
 java.lang.String toString()
          Converts DataPacket to String
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

journalDate

public java.lang.String journalDate

journalStartTime

public java.lang.String journalStartTime

endTime

public java.lang.String endTime

companyCode

public java.lang.String companyCode

branchCode

public java.lang.String branchCode

userId

public java.lang.String userId

nextJournalEntryId

public java.lang.String nextJournalEntryId

nextCustomerSessionId

public java.lang.String nextCustomerSessionId

MAPPING

public static java.util.HashMap MAPPING

PK_ATTRBUTES

public static java.util.ArrayList PK_ATTRBUTES
Constructor Detail

Journal

public Journal()
Method Detail

getBranchCode

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

getCompanyCode

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

getEndTime

public java.lang.String getEndTime()
Returns endTime
Returns:
the value of endTime

getJournalDate

public java.lang.String getJournalDate()
Returns journalDate
Returns:
the value of journalDate

getJournalStartTime

public java.lang.String getJournalStartTime()
Returns journalStartTime
Returns:
the value of journalStartTime

getUserId

public java.lang.String getUserId()
Returns userId
Returns:
the value of userId

getNextJournalEntryId

public java.lang.String getNextJournalEntryId()
Returns nextJournalEntryId
Returns:
the value of nextJournalEntryId

getNextCustomerSessionId

public java.lang.String getNextCustomerSessionId()
Returns nextCustomerSessionId
Returns:
the value of nextCustomerSessionId

setBranchCode

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

setCompanyCode

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

setEndTime

public void setEndTime(java.lang.String endTime)
Sets endTime
Parameters:
endTime - String

setJournalDate

public void setJournalDate(java.lang.String journalDate)
Sets journalDate
Parameters:
journalDate - String

setJournalStartTime

public void setJournalStartTime(java.lang.String journalStartTime)
Sets journalStartTime
Parameters:
journalStartTime - String

setUserId

public void setUserId(java.lang.String userId)
Sets userId
Parameters:
userId - String

setNextJournalEntryId

public void setNextJournalEntryId(java.lang.String nextJournalEntryId)
Sets nextJournalEntryId
Parameters:
nextJournalEntryId - String

setNextCustomerSessionId

public void setNextCustomerSessionId(java.lang.String nextCustomerSessionId)
Sets nextCustomerSessionId
Parameters:
nextCustomerSessionId - 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 table name of Journal
Specified by:
getTableName in interface Persisted
Returns:
the table name

toDataPacket

public com.bankframe.bo.DataPacket toDataPacket()
Creates dataPacket for Journal
Specified by:
toDataPacket in interface Persisted
Returns:
dataPacket 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 object
Overrides:
equals in class java.lang.Object
Parameters:
object - Object
Returns:
boolean after comparing the object

getAndIncrementNextJournalEntryId

public java.lang.String getAndIncrementNextJournalEntryId()
                                                   throws com.bankframe.ejb.ProcessingErrorException,
                                                          com.bankframe.validation.ValidationException
Increments nextJournalEntrySequenceNumber
Returns:
nextJournalEntrySequenceNumber after incrementing with 1
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails
com.bankframe.validation.ValidationException - This exception is thrown if validation fails

createJournalEntryAndItems

public void createJournalEntryAndItems(com.bankframe.vo.retail.solutionset.impl.financialtransactions.FinancialTransactionJournalEntryVO financialTransactionJournalEntryVO,
                                       java.util.Vector financialTransactionJournalEntryItem)
                                throws com.bankframe.ejb.ProcessingErrorException,
                                       com.bankframe.validation.ValidationException
Creates JornalEntry and JournalEntryItems
Parameters:
financialTransactionJournalEntryVO - FinancialTransactionJournalEntryVO
financialTransactionJournalEntryItem - Vector
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails
com.bankframe.validation.ValidationException - This exception is thrown if validation fails

closeJournal

public void closeJournal()
                  throws com.bankframe.ejb.ProcessingErrorException,
                         com.bankframe.validation.ValidationException
Sets end time on the journal.
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails
com.bankframe.validation.ValidationException - This exception is thrown if validation fails