com.bankframe.ei.txnhandler.transactionresponse.errorcondition
Class TransactionErrorConditionBean

java.lang.Object
  extended by com.bankframe.ejb.EEntityBean
      extended by com.bankframe.ei.txnhandler.transactionresponse.errorcondition.TransactionErrorConditionBean
All Implemented Interfaces:
Serializable, EnterpriseBean, EntityBean

public class TransactionErrorConditionBean
extends EEntityBean

This class is the Transaction Error-Conditions Entity Bean which maintains error condition tests for transactions. The Transaction Handler uses this entity to check host system transaction responses for errors.

See Also:
Serialized Form

Field Summary
 String combineNext
           
 String condition
           
 String errorTxnCode
           
 String errorTxnType
           
 int sequence
           
 String txnCode
           
 String txnFieldName
           
 String txnType
           
 String value
           
 
Constructor Summary
TransactionErrorConditionBean()
           
 
Method Summary
 TransactionErrorConditionPK ejbCreate(String txnCode, String txnType, int sequence, String txnFieldName, String condition, String value, String combineNext, String errorTxnCode, String errorTxnType)
          This method initialises TransactionErrorConditionBean
 void ejbPostCreate(String txnCode, String txnType, int sequence, String txnFieldName, String condition, String value, String combineNext, String errorTxnCode, String errorTxnType)
          This method is the Post Create
 String getCombineNext()
          This method returns a string indicating to combine with next error
 String getCondition()
          This method returns the condition
 String getErrorTxnCode()
          This method returns the transaction code this error will use to process the host system data
 String getErrorTxnType()
          This method returns the transaction type this error will use to process the host system data
 int getSequence()
          This method returns the sequence number
 String getTxnCode()
          This method returns this transaction's code
 String getTxnFieldName()
          This method returns the transaction field name that has this errors value
 String getTxnType()
          This method returns this transaction's type
 String getValue()
          This method returns the value indicating an error
 boolean isModified()
          checks if this transaction route has been modified
 void setCombineNext(String combineNext)
          This method sets the combineNext
 void setCondition(String condition)
          This method sets the Condition
 void setSequence(int newValue)
          Set sequence number
 void setTxnCode(String newValue)
          Set Transaction Code
 void setTxnFieldName(String txnFieldName)
          This method sets the txnFieldName
 void setTxnType(String newValue)
          Set transaction type
 void setValue(String value)
          This method sets the value
 DataPacket toDataPacket()
          Convert transaction error condition to DataPacket
 
Methods inherited from class com.bankframe.ejb.EEntityBean
ejbActivate, ejbLoad, ejbPassivate, ejbRemove, ejbStore, setEntityContext, toString, unsetEntityContext, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

txnCode

public String txnCode

txnType

public String txnType

sequence

public int sequence

txnFieldName

public String txnFieldName

condition

public String condition

value

public String value

combineNext

public String combineNext

errorTxnCode

public String errorTxnCode

errorTxnType

public String errorTxnType
Constructor Detail

TransactionErrorConditionBean

public TransactionErrorConditionBean()
Method Detail

ejbCreate

public TransactionErrorConditionPK ejbCreate(String txnCode,
                                             String txnType,
                                             int sequence,
                                             String txnFieldName,
                                             String condition,
                                             String value,
                                             String combineNext,
                                             String errorTxnCode,
                                             String errorTxnType)
                                      throws CreateException
This method initialises TransactionErrorConditionBean

Parameters:
txnCode - Transaction Code
txnType - Tranasction Type
sequence - is the sequence number for the error-condition
txnFieldName - Transaction Field Name containing error value
condition - Condition for error
value - for error
combineNext - with next error
errorTxnCode - is the txn code that this error will use to process the host system data
errorTxnType - is the txn type that this error will use to process the host system data
Throws:
CreateException

ejbPostCreate

public void ejbPostCreate(String txnCode,
                          String txnType,
                          int sequence,
                          String txnFieldName,
                          String condition,
                          String value,
                          String combineNext,
                          String errorTxnCode,
                          String errorTxnType)
                   throws CreateException
This method is the Post Create

Parameters:
txnCode - Transaction Code
txnType - Tranasction Type
sequence - is the sequence number for the error-condition
txnFieldName - Transaction Field Name containing error value
condition - Condition for error
value - for error
combineNext - with next error
errorTxnCode - is the txn code that this error will use to process the host system data
errorTxnType - is the txn type that this error will use to process the host system data
Throws:
CreateException

getTxnCode

public String getTxnCode()
This method returns this transaction's code

Returns:
transaction code

getTxnType

public String getTxnType()
This method returns this transaction's type

Returns:
transaction type

getSequence

public int getSequence()
This method returns the sequence number

Returns:
int sequence number

getTxnFieldName

public String getTxnFieldName()
This method returns the transaction field name that has this errors value

Returns:
String Txn FieldName name

getCondition

public String getCondition()
This method returns the condition

Returns:
String Data-Format name

getValue

public String getValue()
This method returns the value indicating an error

Returns:
String value

getCombineNext

public String getCombineNext()
This method returns a string indicating to combine with next error

Returns:
String combine with next

getErrorTxnCode

public String getErrorTxnCode()
This method returns the transaction code this error will use to process the host system data

Returns:
transaction code

getErrorTxnType

public String getErrorTxnType()
This method returns the transaction type this error will use to process the host system data

Returns:
transaction type

isModified

public boolean isModified()
checks if this transaction route has been modified

Returns:
true if it has been modified, false otherwise

setTxnCode

public void setTxnCode(String newValue)
Set Transaction Code

Parameters:
newValue - new transaction code

setTxnType

public void setTxnType(String newValue)
Set transaction type

Parameters:
newValue - New transaction type

setSequence

public void setSequence(int newValue)
Set sequence number

Parameters:
newValue - is new sequence number

setTxnFieldName

public void setTxnFieldName(String txnFieldName)
This method sets the txnFieldName

Parameters:
txnFieldName - new txn field name

setCondition

public void setCondition(String condition)
This method sets the Condition


setValue

public void setValue(String value)
This method sets the value


setCombineNext

public void setCombineNext(String combineNext)
This method sets the combineNext


toDataPacket

public DataPacket toDataPacket()
Convert transaction error condition to DataPacket

Specified by:
toDataPacket in class EEntityBean
Returns:
DataPacket containing transaction error condition data


Copyright © 2005, 2007, Oracle. All rights reserved.