public class OrderKey extends java.lang.Object implements XMLizable, NumericKey
XML Snippet for OrderKey:
<OrderKey>
<OrderId>1234</OrderId>
</OrderKey>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
| Constructor and Description |
|---|
OrderKey()
Default Constructor for OrderKey.
|
OrderKey(java.lang.Long anOrderId)
Constructor for OrderKey.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Returns true if this Order key equals to another Order 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 |
getOrderId()
Returns the orderId.
|
int |
hashCode()
Returns the hashcode of the Order 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 Order Key.
|
java.lang.String |
toXML()
Converts the object into its corresponding XML format representation.
|
public static final java.lang.String COPYRIGHT
public OrderKey()
public OrderKey(java.lang.Long anOrderId)
anOrderId - java.lang.Long is an order id.public java.lang.Long getOrderId()
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 another Order 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()