com.bankframe.ei.txnhandler.transactionlayout.impl.request
Class RequestTransactionFieldPK

java.lang.Object
  extended by com.bankframe.ei.txnhandler.transactionlayout.impl.request.RequestTransactionFieldPK
All Implemented Interfaces:
EPrimaryKey, Serializable

public class RequestTransactionFieldPK
extends Object
implements EPrimaryKey

This class is the primary key class for the RequestTransactionField

See Also:
Serialized Form

Field Summary
 int sequence
           
 String txnCode
           
 String txnType
           
 
Fields inherited from interface com.bankframe.ejb.EPrimaryKey
serialVersionUID
 
Constructor Summary
RequestTransactionFieldPK()
          Default Constructor
RequestTransactionFieldPK(String argTxnType, int argSequence, String argTxnCode)
          This method initializes a key from the passed values
RequestTransactionFieldPK(String argTxnCode, String argTxnType, int argSequence)
          This method initializes a key from the passed values
 
Method Summary
 boolean equals(Object o)
          This method determines if this Primary key equals another specified Object
 int hashCode()
          This method caculates the hashCode for the primary key
 DataPacket toDataPacket()
          This method converts this primary-key's values to a DataPacket
 String toString()
          This method converts this primary-key's attributes to human readable form
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

txnCode

public String txnCode

txnType

public String txnType

sequence

public int sequence
Constructor Detail

RequestTransactionFieldPK

public RequestTransactionFieldPK()
Default Constructor


RequestTransactionFieldPK

public RequestTransactionFieldPK(String argTxnType,
                                 int argSequence,
                                 String argTxnCode)
This method initializes a key from the passed values

Parameters:
argTxnType - java.lang.String
argSequence - int
argTxnCode - java.lang.String

RequestTransactionFieldPK

public RequestTransactionFieldPK(String argTxnCode,
                                 String argTxnType,
                                 int argSequence)
This method initializes a key from the passed values

Parameters:
argTxnCode - java.lang.String
argTxnType - java.lang.String
argSequence - int
Method Detail

equals

public boolean equals(Object o)
This method determines if this Primary key equals another specified Object

Specified by:
equals in interface EPrimaryKey
Overrides:
equals in class Object
Parameters:
o - java.lang.Object
Returns:
boolean true if equal.

hashCode

public int hashCode()
This method caculates the hashCode for the primary key

Specified by:
hashCode in interface EPrimaryKey
Overrides:
hashCode in class Object
Returns:
int hashcode

toDataPacket

public DataPacket toDataPacket()
This method converts this primary-key's values to a DataPacket

Specified by:
toDataPacket in interface EPrimaryKey
Returns:
the DataPacketRepresenation of the primary key

toString

public String toString()
This method converts this primary-key's attributes to human readable form

Specified by:
toString in interface EPrimaryKey
Overrides:
toString in class Object
Returns:
a string representation of the primary key


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