com.ibm.dse.base.types
Class DSEKey

java.lang.Object
  |
  +--com.ibm.dse.base.types.DSEKey

public class DSEKey
extends java.lang.Object
implements Key

This class provides an implementation of a business object identifier.


Constructor Summary
DSEKey(java.lang.Object keyValue, Type type)
          This constrcutor creates a DSEKey with the value and Type passed.
 
Method Summary
 boolean equals(Key key)
          Returns a flag indicating whether the Key passed is equal to this key in a business sense.
 java.lang.Object getKeyValue()
          Returns the arbitrary Object which represents this Key´s value.
 Type getType()
          Returns the Type of business object that this Key identifies.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DSEKey

public DSEKey(java.lang.Object keyValue,
              Type type)
This constrcutor creates a DSEKey with the value and Type passed.
Parameters:
keyValue - Object
type - Type
Method Detail

equals

public boolean equals(Key key)
Returns a flag indicating whether the Key passed is equal to this key in a business sense.

Delegates to the KeyBuilder for this Key´s Type.

Specified by:
equals in interface Key
Parameters:
key - Key
Returns:
boolean

getKeyValue

public java.lang.Object getKeyValue()
Returns the arbitrary Object which represents this Key´s value.

This object is understood by the KeyBuilder for the referenced Type.

Specified by:
getKeyValue in interface Key
Returns:
Object

getType

public Type getType()
Returns the Type of business object that this Key identifies.
Specified by:
getType in interface Key
Returns:
Type