public class CustomerKey extends java.lang.Object implements NumericKey, XMLizable
XML Snippets for CustomerKey:
<CustomerKey> <MemberID>1234</MemberID> </CustomerKey>OR
<CustomerKey> <GuestToken>token1</GuestToken> </CustomerKey>OR
<CustomerKey> <LogonId>wcsadmin</LogonId> </CustomerKey>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
CustomerKey()
Constructor for CustomerKey.
|
CustomerKey(java.lang.String logonId)
Constructor for CustomerKey.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Returns true if this Customer key equals to another Customer key.
|
void |
fromXML(org.w3c.dom.Node node)
Transforms the XML node into its corresponding real Object.
|
java.lang.String |
getGuestToken()
Gets a guest token if it has been assigned to a guest shopper.
|
java.lang.String |
getLogonID()
Returns the logon id of customer key.
|
java.lang.Long |
getMemberId()
Returns the member id associated with customer key.
|
java.lang.Number |
getNumericKey()
Returns the numeric key of the customer key.
|
int |
hashCode()
Returns the hashcode of the Customer key.
|
boolean |
identifiesAGuestShopper()
Checks to see if this Customer Key points to a guest shopper or not.
|
boolean |
isNumericKeySet()
Checks if numeric key is set or not.
|
void |
setGuestToken(java.lang.String string)
Sets a guest token for a guest shopper
|
void |
setLogonID(java.lang.String aLogonID)
Sets the logon id of customer key.
|
void |
setNumericKey(java.lang.Number numericKey)
Sets the numeric key.
|
java.lang.String |
toString()
Give a String presentation of this Customer Key.
|
java.lang.String |
toXML()
Converts the object into its corresponding XML format representation.
|
public static final java.lang.String COPYRIGHT
public CustomerKey(java.lang.String logonId)
logonId
- java.lang.String is the login id.public CustomerKey()
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 numeric key to setpublic java.lang.Long getMemberId()
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
is another customer key.true
if keys are equal;
false
otherwise.public int hashCode()
hashCode
in class java.lang.Object
public 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()
public java.lang.String getLogonID()
public void setLogonID(java.lang.String aLogonID)
aLogonID
- The logon id of customer key to set.public java.lang.String getGuestToken()
public void setGuestToken(java.lang.String string)
string
- The GuestToken.public boolean identifiesAGuestShopper()