public class OrderItemKey extends java.lang.Object implements NumericKey, XMLizable, java.lang.Comparable
OrderItem object.
XML Snippet for OrderItemKey:
<OrderItemKey>
<OrderItemId>1234</OrderItemId>
</OrderItemKey>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
| Constructor and Description |
|---|
OrderItemKey()
Default Constructor for OrderItemKey.
|
OrderItemKey(java.lang.Long anOrderItemId)
Constructor for OrderItemKey.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object obj)
This method compares the current object of order item key with another one.
|
boolean |
equals(java.lang.Object obj)
Returns true if this OrderItem key equals to another OrderItem key.
|
void |
fromXML(org.w3c.dom.Node node)
Transforms the XML node into its corresponding real Object.
|
java.lang.Number |
getNumericKey()
Returns the numericKey.
|
java.lang.Long |
getOrderItemId()
Returns the order item id.
|
int |
hashCode()
Returns the hashcode of the OrderItem key.
|
boolean |
isNumericKeySet()
Checks if numericKey is set or not.
|
void |
setNumericKey(java.lang.Number numericKey)
Sets the numericKey.
|
java.lang.String |
toString()
Give a String presentation of this OrderItem Key.
|
java.lang.String |
toXML()
Converts the object into its corresponding XML format representation.
|
public static final java.lang.String COPYRIGHT
public OrderItemKey()
public OrderItemKey(java.lang.Long anOrderItemId)
anOrderItemId - java.lang.Long is the order item id.public java.lang.Long getOrderItemId()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - java.lang.Object is another OrderItem key.true if keys are equal;
false otherwise.public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.Number getNumericKey()
getNumericKey in interface NumericKeypublic boolean isNumericKeySet()
isNumericKeySet in interface NumericKeytrue if key is set;
false otherwise.public void setNumericKey(java.lang.Number numericKey)
numericKey - The numericKey to setpublic void fromXML(org.w3c.dom.Node node)
throws DeXMLizationException
XMLizablefromXML in interface XMLizablenode - The node that represents an XMLizable objectDeXMLizationException - when this process failsXMLizable.fromXML(Node)public java.lang.String toXML()
throws XMLizationException
XMLizabletoXML in interface XMLizableXMLizationException - when this process failsXMLizable.toXML()public int compareTo(java.lang.Object obj)
compareTo in interface java.lang.Comparableobj - java.lang.Object is an object of order item.0 if equal,
1 if current objects's orderId greater than that of passed object
-1 if current objects's orderId lesser than that of passed object