PaymentTransactionPk Class
- public class PaymentTransactionPk
extends SmartKey
implements Serializable
This is the primary key class for the PaymentTransaction
Entity EJB.
-
Hierarchy
-
Object
SmartKey
PaymentTransactionPk
-
All Implemented Interfaces
-
Comparable
, Serializable
public int |
-
compareTo (Object o)
- Implements the compareTo method.
|
public int |
-
hashCode ()
- override the hashCode() method
|
public String |
-
toString ()
- Returns the stringified version of the key class.
|
transactionId
public String
transactionId
PaymentTransactionPk
public PaymentTransactionPk()
- Default constructor.
PaymentTransactionPk
public PaymentTransactionPk(String
transactionId)
- Constructor that takes the transaction identifier.
compareTo(Object) Method
public int compareTo(Object
o)
Implements the compareTo method.
The following conditions hold true:
(a > b) ==> (b < a)
(a < b) ==> (b > a)
(a = b) ==> (b = a)
-
Overrides
-
SmartKey.compareTo(Object)
Parameters
-
o
- the Object to be compared.
Returns
- a negative integer, zero, or a positive integer as this object
is less than, equal to, or greater than the specified object.
hashCode() Method
public int hashCode()
override the hashCode() method
-
Overrides
-
Object.hashCode()
toString() Method
public String
toString()
Returns the stringified version of the key class.
-
Overrides
-
SmartKey.toString()
Returns
- A
String
representation of the SmartKey.