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

java.lang.Object
  extended by org.neodatis.odb.core.layers.layer2.meta.ObjectInfoHeader
All Implemented Interfaces:
java.io.Serializable

public class ObjectInfoHeader
extends java.lang.Object
implements java.io.Serializable

Some basic info about an object info like position, its class info,...

Author:
osmadja
See Also:
Serialized Form

Constructor Summary
ObjectInfoHeader()
           
ObjectInfoHeader(long position, OID previousObjectOID, OID nextObjectOID, OID classInfoId, long[] attributesIdentification, int[] attributeIds)
           
 
Method Summary
 ObjectInfoHeader duplicate()
           
 boolean equals(java.lang.Object obj)
           
 long getAttributeId(int attributeIndex)
           
 long getAttributeIdentificationFromId(int attributeId)
          Return the attribute identification (position or id) from the attribute id FIXME Remove dependency from StorageEngineConstant
 int[] getAttributeIds()
           
 long[] getAttributesIdentification()
           
 OID getClassInfoId()
           
 long getCreationDate()
           
 int getNbAttributes()
           
 OID getNextObjectOID()
           
 int getObjectVersion()
           
 OID getOid()
           
 long getPosition()
           
 OID getPreviousObjectOID()
           
 long getUpdateDate()
           
 int hashCode()
           
 void incrementVersionAndUpdateDate()
           
 void setAttributesIdentification(long[] attributesIdentification)
           
 void setAttributesIds(int[] ids)
           
 void setClassInfoId(OID classInfoId2)
           
 void setCreationDate(long creationDate)
           
 void setNextObjectOID(OID nextObjectOID)
           
 void setObjectVersion(int objectVersion)
           
 void setOid(OID oid)
           
 void setPosition(long position)
           
 void setPreviousObjectOID(OID previousObjectOID)
           
 void setUpdateDate(long updateDate)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectInfoHeader

public ObjectInfoHeader(long position,
                        OID previousObjectOID,
                        OID nextObjectOID,
                        OID classInfoId,
                        long[] attributesIdentification,
                        int[] attributeIds)

ObjectInfoHeader

public ObjectInfoHeader()
Method Detail

getNbAttributes

public int getNbAttributes()

getNextObjectOID

public OID getNextObjectOID()

setNextObjectOID

public void setNextObjectOID(OID nextObjectOID)

getPosition

public long getPosition()

setPosition

public void setPosition(long position)

getPreviousObjectOID

public OID getPreviousObjectOID()

setPreviousObjectOID

public void setPreviousObjectOID(OID previousObjectOID)

getClassInfoId

public OID getClassInfoId()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getAttributesIdentification

public long[] getAttributesIdentification()

setAttributesIdentification

public void setAttributesIdentification(long[] attributesIdentification)

getOid

public OID getOid()

setOid

public void setOid(OID oid)

getCreationDate

public long getCreationDate()

setCreationDate

public void setCreationDate(long creationDate)

getUpdateDate

public long getUpdateDate()

setUpdateDate

public void setUpdateDate(long updateDate)

getAttributeIdentificationFromId

public long getAttributeIdentificationFromId(int attributeId)
Return the attribute identification (position or id) from the attribute id FIXME Remove dependency from StorageEngineConstant

Parameters:
attributeId -
Returns:
-1 if attribute with this id does not exist

getAttributeId

public long getAttributeId(int attributeIndex)

setAttributesIds

public void setAttributesIds(int[] ids)

getAttributeIds

public int[] getAttributeIds()

setClassInfoId

public void setClassInfoId(OID classInfoId2)

getObjectVersion

public int getObjectVersion()

setObjectVersion

public void setObjectVersion(int objectVersion)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

incrementVersionAndUpdateDate

public void incrementVersionAndUpdateDate()

duplicate

public ObjectInfoHeader duplicate()