Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » engine » [javadoc | source]
org.hibernate.engine
public final class: EntityEntry [javadoc | source]
java.lang.Object
   org.hibernate.engine.EntityEntry

All Implemented Interfaces:
    Serializable

We need an entry to tell us all about the current state of an object with respect to its persistent state
Constructor:
 EntityEntry(Status status,
    Object[] loadedState,
    Object rowId,
    Serializable id,
    Object version,
    LockMode lockMode,
    boolean existsInDatabase,
    EntityPersister persister,
    EntityMode entityMode,
    boolean disableVersionIncrement,
    boolean lazyPropertiesAreUnfetched) 
Method from org.hibernate.engine.EntityEntry Summary:
afterDeserialize,   deserialize,   forceLocked,   getDeletedState,   getEntityName,   getId,   getLoadedState,   getLoadedValue,   getLockMode,   getPersister,   getRowId,   getStatus,   getVersion,   isBeingReplicated,   isExistsInDatabase,   isLoadedWithLazyPropertiesUnfetched,   isNullifiable,   postDelete,   postInsert,   postUpdate,   requiresDirtyCheck,   serialize,   setDeletedState,   setLockMode,   setReadOnly,   setStatus,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.engine.EntityEntry Detail:
  void afterDeserialize(SessionFactoryImplementor factory) 
 static EntityEntry deserialize(ObjectInputStream ois,
    SessionImplementor session) throws ClassNotFoundException, IOException 
    Custom deserialization routine used during deserialization of a Session/PersistenceContext for increased performance.
 public  void forceLocked(Object entity,
    Object nextVersion) 
 public Object[] getDeletedState() 
 public String getEntityName() 
 public Serializable getId() 
 public Object[] getLoadedState() 
 public Object getLoadedValue(String propertyName) 
 public LockMode getLockMode() 
 public EntityPersister getPersister() 
 public Object getRowId() 
 public Status getStatus() 
 public Object getVersion() 
 public boolean isBeingReplicated() 
 public boolean isExistsInDatabase() 
 public boolean isLoadedWithLazyPropertiesUnfetched() 
 public boolean isNullifiable(boolean earlyInsert,
    SessionImplementor session) 
 public  void postDelete() 
    After actually deleting a row, record the fact that the instance no longer exists in the database
 public  void postInsert() 
    After actually inserting a row, record the fact that the instance exists on the database (needed for identity-column key generation)
 public  void postUpdate(Object entity,
    Object[] updatedState,
    Object nextVersion) 
    After actually updating the database, update the snapshot information, and escalate the lock mode
 public boolean requiresDirtyCheck(Object entity) 
  void serialize(ObjectOutputStream oos) throws IOException 
    Custom serialization routine used during serialization of a Session/PersistenceContext for increased performance.
 public  void setDeletedState(Object[] deletedState) 
 public  void setLockMode(LockMode lockMode) 
 public  void setReadOnly(boolean readOnly,
    Object entity) 
 public  void setStatus(Status status) 
 public String toString()