org.neodatis.odb.core.layers.layer2.meta
Class AttributeValuesMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by org.neodatis.tool.wrappers.map.OdbHashMap<java.lang.String,java.lang.Object>
              extended by org.neodatis.odb.core.layers.layer2.meta.AttributeValuesMap
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>

public class AttributeValuesMap
extends OdbHashMap<java.lang.String,java.lang.Object>

A Map to contain values of attributes of an object. It is used to optimize a criteria query execution where ODB , while reading an instance data, tries to retrieve only values of attributes involved in the query instead of reading the entire object.

Author:
olivier s
See Also:
Serialized Form

Constructor Summary
AttributeValuesMap()
           
 
Method Summary
 java.lang.Object getAttributeValue(java.lang.String attributeName)
           
 java.lang.Comparable getComparable(java.lang.String attributeName)
           
 ObjectInfoHeader getObjectInfoHeader()
           
 OID getOid()
           
 boolean hasOid()
           
 void setObjectInfoHeader(ObjectInfoHeader objectInfoHeader)
           
 void setOid(OID oid)
           
 
Methods inherited from class org.neodatis.tool.wrappers.map.OdbHashMap
putAll, remove2
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

AttributeValuesMap

public AttributeValuesMap()
Method Detail

getObjectInfoHeader

public ObjectInfoHeader getObjectInfoHeader()

setObjectInfoHeader

public void setObjectInfoHeader(ObjectInfoHeader objectInfoHeader)

getAttributeValue

public java.lang.Object getAttributeValue(java.lang.String attributeName)

getComparable

public java.lang.Comparable getComparable(java.lang.String attributeName)

hasOid

public boolean hasOid()

getOid

public OID getOid()

setOid

public void setOid(OID oid)