org.jlf.dataMap
Class DataMappedObjectKey

java.lang.Object
  |
  +--org.jlf.dataMap.DataObject
        |
        +--org.jlf.dataMap.DataMappedObjectKey
All Implemented Interfaces:
java.io.Serializable

public class DataMappedObjectKey
extends DataObject

This class is used to hold the key for a DataMappedObject.

See Also:
DataObject, DataMappedObject, Serialized Form

Field Summary
 
Fields inherited from class org.jlf.dataMap.DataObject
ATTRIBUTE_DESCRIPTOR_VECTOR_VARIABLE_NAME, attributes, INITIAL_ATTRIBUTE_DESCRIPTOR_HASHTABLE_SIZE, INITIAL_ATTRIBUTE_HASHTABLE_SIZE
 
Constructor Summary
DataMappedObjectKey()
          Although the default constructor is allowed, please try to use a parameterized constructor.
DataMappedObjectKey(DataAttribute attribute)
          Convenience constructor for a key of one attribute.
DataMappedObjectKey(java.lang.String attributeName, long id)
          Convenience constructor a key for one field of type long (typically a synthetic key).
 
Method Summary
 void addKeyAttribute(DataAttribute keyAttribute)
          Add a key attribute to the attributes Hashtable.
 java.util.Hashtable getKeyAttributes()
          Return the key attributes in a hash table format.
 
Methods inherited from class org.jlf.dataMap.DataObject
attributeEquals, basicGetAttributeDescriptors, equals, getAllAttributeNames, getAttribute, getAttributeDescriptor, getAttributeDescriptors, getAttributeValue, getDoubleAttribute, getLongAttribute, getStringAttribute, hasAttributeDefined, hashCode, setAttributeValue, setDoubleAttribute, setLongAttribute, setStringAttribute
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataMappedObjectKey

public DataMappedObjectKey()
Although the default constructor is allowed, please try to use a parameterized constructor.


DataMappedObjectKey

public DataMappedObjectKey(DataAttribute attribute)
Convenience constructor for a key of one attribute.


DataMappedObjectKey

public DataMappedObjectKey(java.lang.String attributeName,
                           long id)
Convenience constructor a key for one field of type long (typically a synthetic key).

Method Detail

addKeyAttribute

public void addKeyAttribute(DataAttribute keyAttribute)
Add a key attribute to the attributes Hashtable.


getKeyAttributes

public java.util.Hashtable getKeyAttributes()
Return the key attributes in a hash table format.