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)
public CustomerKey()
public java.lang.Number getNumericKey()
public boolean isNumericKeySet()
public void setNumericKey(java.lang.Number numericKey)
public java.lang.Long getMemberId()
public java.lang.String toString()
public boolean equals(java.lang.Object obj)
public int hashCode()
public void fromXML(org.w3c.dom.Node node) throws DeXMLizationException
public java.lang.String toXML() throws XMLizationException
public java.lang.String getLogonID()
public void setLogonID(java.lang.String aLogonID)
public java.lang.String getGuestToken()
public void setGuestToken(java.lang.String string)
public boolean identifiesAGuestShopper()