Save This Page
Home » hibernate-entitymanager-3.3.2.GA » org.hibernate » engine » [javadoc | source]
org.hibernate.engine
public final class: CollectionEntry [javadoc | source]
java.lang.Object
   org.hibernate.engine.CollectionEntry

All Implemented Interfaces:
    Serializable

We need an entry to tell us all about the current state of a collection with respect to its persistent state
Constructor:
 public CollectionEntry(CollectionPersister persister,
    PersistentCollection collection) 
    For newly wrapped collections, or dereferenced collection wrappers
 public CollectionEntry(CollectionPersister loadedPersister,
    Serializable loadedKey) 
    For uninitialized detached collections
 CollectionEntry(PersistentCollection collection,
    SessionFactoryImplementor factory) throws MappingException 
    For initialized detached collections
 public CollectionEntry(PersistentCollection collection,
    CollectionPersister loadedPersister,
    Serializable loadedKey,
    boolean ignore) 
    For collections just loaded from the database
Method from org.hibernate.engine.CollectionEntry Summary:
afterAction,   afterDeserialize,   deserialize,   getCurrentKey,   getCurrentPersister,   getKey,   getLoadedKey,   getLoadedPersister,   getOrphans,   getRole,   getSnapshot,   isDorecreate,   isDoremove,   isDoupdate,   isIgnore,   isProcessed,   isReached,   isSnapshotEmpty,   postFlush,   postInitialize,   preFlush,   serialize,   setCurrentKey,   setCurrentPersister,   setDorecreate,   setDoremove,   setDoupdate,   setProcessed,   setReached,   setRole,   toString,   wasDereferenced
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.engine.CollectionEntry Detail:
 public  void afterAction(PersistentCollection collection) 
    Called after execution of an action
  void afterDeserialize(SessionFactoryImplementor factory) 
 static CollectionEntry deserialize(ObjectInputStream ois,
    SessionImplementor session) throws ClassNotFoundException, IOException 
    Custom deserialization routine used during deserialization of a Session/PersistenceContext for increased performance.
 public Serializable getCurrentKey() 
    This is only available late during the flush cycle
 public CollectionPersister getCurrentPersister() 
 public Serializable getKey() 
 public Serializable getLoadedKey() 
 public CollectionPersister getLoadedPersister() 
    This is only available late during the flush cycle
 public Collection getOrphans(String entityName,
    PersistentCollection collection) throws HibernateException 
    Get the collection orphans (entities which were removed from the collection)
 public String getRole() 
 public Serializable getSnapshot() 
 public boolean isDorecreate() 
 public boolean isDoremove() 
 public boolean isDoupdate() 
 public boolean isIgnore() 
 public boolean isProcessed() 
 public boolean isReached() 
 public boolean isSnapshotEmpty(PersistentCollection collection) 
 public  void postFlush(PersistentCollection collection) throws HibernateException 
    Called after a successful flush
 public  void postInitialize(PersistentCollection collection) throws HibernateException 
 public  void preFlush(PersistentCollection collection) throws HibernateException 
  void serialize(ObjectOutputStream oos) throws IOException 
    Custom serialization routine used during serialization of a Session/PersistenceContext for increased performance.
 public  void setCurrentKey(Serializable currentKey) 
 public  void setCurrentPersister(CollectionPersister currentPersister) 
 public  void setDorecreate(boolean dorecreate) 
 public  void setDoremove(boolean doremove) 
 public  void setDoupdate(boolean doupdate) 
 public  void setProcessed(boolean processed) 
 public  void setReached(boolean reached) 
 public  void setRole(String role) 
 public String toString() 
 public boolean wasDereferenced()