public final class

CollectionEntry

extends Object
implements Serializable
java.lang.Object
   ↳ org.hibernate.engine.CollectionEntry

Class Overview

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

Summary

Public Constructors
CollectionEntry(CollectionPersister persister, PersistentCollection collection)
For newly wrapped collections, or dereferenced collection wrappers
CollectionEntry(PersistentCollection collection, CollectionPersister loadedPersister, Serializable loadedKey, boolean ignore)
For collections just loaded from the database
CollectionEntry(CollectionPersister loadedPersister, Serializable loadedKey)
For uninitialized detached collections
Public Methods
void afterAction(PersistentCollection collection)
Called after execution of an action
Serializable getCurrentKey()
This is only available late during the flush cycle
CollectionPersister getCurrentPersister()
Serializable getKey()
Serializable getLoadedKey()
CollectionPersister getLoadedPersister()
This is only available late during the flush cycle
Collection getOrphans(String entityName, PersistentCollection collection)
Get the collection orphans (entities which were removed from the collection)
String getRole()
Serializable getSnapshot()
boolean isDorecreate()
boolean isDoremove()
boolean isDoupdate()
boolean isIgnore()
boolean isProcessed()
boolean isReached()
boolean isSnapshotEmpty(PersistentCollection collection)
void postFlush(PersistentCollection collection)
Called after a successful flush
void postInitialize(PersistentCollection collection)
void preFlush(PersistentCollection collection)
void setCurrentKey(Serializable currentKey)
void setCurrentPersister(CollectionPersister currentPersister)
void setDorecreate(boolean dorecreate)
void setDoremove(boolean doremove)
void setDoupdate(boolean doupdate)
void setProcessed(boolean processed)
void setReached(boolean reached)
void setRole(String role)
String toString()
boolean wasDereferenced()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CollectionEntry (CollectionPersister persister, PersistentCollection collection)

For newly wrapped collections, or dereferenced collection wrappers

public CollectionEntry (PersistentCollection collection, CollectionPersister loadedPersister, Serializable loadedKey, boolean ignore)

For collections just loaded from the database

public CollectionEntry (CollectionPersister loadedPersister, Serializable loadedKey)

For uninitialized detached collections

Public Methods

public void afterAction (PersistentCollection collection)

Called after execution of an action

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)

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)

Called after a successful flush

public void postInitialize (PersistentCollection collection)

public void preFlush (PersistentCollection collection)

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 ()