org.hibernate.engine
Class EntityEntry

java.lang.Object
  extended by org.hibernate.engine.EntityEntry
All Implemented Interfaces:
Serializable

public final class EntityEntry
extends Object
implements Serializable

We need an entry to tell us all about the current state of an object with respect to its persistent state

Author:
Gavin King
See Also:
Serialized Form

Method Summary
 void forceLocked(Object entity, Object nextVersion)
           
 Object[] getDeletedState()
           
 String getEntityName()
           
 Serializable getId()
           
 Object[] getLoadedState()
           
 Object getLoadedValue(String propertyName)
           
 LockMode getLockMode()
           
 EntityPersister getPersister()
           
 Object getRowId()
           
 Status getStatus()
           
 Object getVersion()
           
 boolean isBeingReplicated()
           
 boolean isExistsInDatabase()
           
 boolean isLoadedWithLazyPropertiesUnfetched()
           
 boolean isNullifiable(boolean earlyInsert, SessionImplementor session)
           
 void postDelete()
          After actually deleting a row, record the fact that the instance no longer exists in the database
 void postInsert()
          After actually inserting a row, record the fact that the instance exists on the database (needed for identity-column key generation)
 void postUpdate(Object entity, Object[] updatedState, Object nextVersion)
          After actually updating the database, update the snapshot information, and escalate the lock mode
 boolean requiresDirtyCheck(Object entity)
           
 void setDeletedState(Object[] deletedState)
           
 void setLockMode(LockMode lockMode)
           
 void setReadOnly(boolean readOnly, Object entity)
           
 void setStatus(Status status)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getLockMode

public LockMode getLockMode()

setLockMode

public void setLockMode(LockMode lockMode)

getStatus

public Status getStatus()

setStatus

public void setStatus(Status status)

getId

public Serializable getId()

getLoadedState

public Object[] getLoadedState()

getDeletedState

public Object[] getDeletedState()

setDeletedState

public void setDeletedState(Object[] deletedState)

isExistsInDatabase

public boolean isExistsInDatabase()

getVersion

public Object getVersion()

getPersister

public EntityPersister getPersister()

getEntityName

public String getEntityName()

isBeingReplicated

public boolean isBeingReplicated()

getRowId

public Object getRowId()

postUpdate

public void postUpdate(Object entity,
                       Object[] updatedState,
                       Object nextVersion)
After actually updating the database, update the snapshot information, and escalate the lock mode


postDelete

public void postDelete()
After actually deleting a row, record the fact that the instance no longer exists in the database


postInsert

public void postInsert()
After actually inserting a row, record the fact that the instance exists on the database (needed for identity-column key generation)


isNullifiable

public boolean isNullifiable(boolean earlyInsert,
                             SessionImplementor session)

getLoadedValue

public Object getLoadedValue(String propertyName)

requiresDirtyCheck

public boolean requiresDirtyCheck(Object entity)

forceLocked

public void forceLocked(Object entity,
                        Object nextVersion)

setReadOnly

public void setReadOnly(boolean readOnly,
                        Object entity)

toString

public String toString()
Overrides:
toString in class Object

isLoadedWithLazyPropertiesUnfetched

public boolean isLoadedWithLazyPropertiesUnfetched()