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.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- java.lang.Object
another Order key.true
if keys are equal;
false
otherwise.public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Number getNumericKey()
getNumericKey
in interface NumericKey
public boolean isNumericKeySet()
isNumericKeySet
in interface NumericKey
true
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
XMLizable
fromXML
in interface XMLizable
node
- The node that represents an XMLizable objectDeXMLizationException
- when this process failsXMLizable.fromXML(Node)
public java.lang.String toXML() throws XMLizationException
XMLizable
toXML
in interface XMLizable
XMLizationException
- when this process failsXMLizable.toXML()