|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.engine.CollectionEntry
We need an entry to tell us all about the current state of a collection with respect to its persistent state
Constructor Summary | |
CollectionEntry()
|
Method Summary | |
Serializable |
getCurrentKey()
This is only available late during the flush cycle |
CollectionPersister |
getCurrentPersister()
|
boolean |
getDirty()
|
Serializable |
getKey()
|
Serializable |
getLoadedKey()
|
CollectionPersister |
getLoadedPersister()
This is only available late during the flush cycle |
Collection |
getOrphans(String entityName,
PersistentCollection coll)
Get the collection orphans (entities which were removed from the collection) |
String |
getRole()
|
Serializable |
getSnapshot()
|
void |
initSnapshot(PersistentCollection collection,
CollectionPersister persister)
|
boolean |
isDirty()
|
boolean |
isDorecreate()
|
boolean |
isDoremove()
|
boolean |
isDoupdate()
|
boolean |
isIgnore()
|
boolean |
isInitialized()
|
boolean |
isInitializedAndDirty()
|
boolean |
isNew()
|
boolean |
isProcessed()
|
boolean |
isReached()
|
boolean |
postFlush(PersistentCollection collection)
Called after a successful flush, returning true if the collection has been dereferenced, and the entry can be removed. |
void |
postInitialize(PersistentCollection collection)
|
void |
preFlush(PersistentCollection collection)
|
void |
setCurrentKey(Serializable currentKey)
|
void |
setCurrentPersister(CollectionPersister currentPersister)
|
void |
setDirty()
|
void |
setDorecreate(boolean dorecreate)
|
void |
setDoremove(boolean doremove)
|
void |
setDoupdate(boolean doupdate)
|
void |
setProcessed(boolean processed)
|
void |
setReached(boolean reached)
|
void |
setRole(String role)
|
boolean |
snapshotIsEmpty()
|
String |
toString()
|
boolean |
wasDereferenced()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CollectionEntry()
Method Detail |
public void preFlush(PersistentCollection collection) throws HibernateException
HibernateException
public void postInitialize(PersistentCollection collection) throws HibernateException
HibernateException
public boolean postFlush(PersistentCollection collection) throws HibernateException
HibernateException
public void initSnapshot(PersistentCollection collection, CollectionPersister persister) throws HibernateException
HibernateException
public boolean getDirty()
getDirty
in interface CollectionSnapshot
public Serializable getKey()
getKey
in interface CollectionSnapshot
public String getRole()
getRole
in interface CollectionSnapshot
public Serializable getSnapshot()
getSnapshot
in interface CollectionSnapshot
public boolean snapshotIsEmpty()
public void setDirty()
setDirty
in interface CollectionSnapshot
public boolean isNew()
public boolean wasDereferenced()
wasDereferenced
in interface CollectionSnapshot
public boolean isDirty()
public boolean isReached()
public void setReached(boolean reached)
public boolean isProcessed()
public void setProcessed(boolean processed)
public boolean isDoupdate()
public void setDoupdate(boolean doupdate)
public boolean isDoremove()
public void setDoremove(boolean doremove)
public boolean isDorecreate()
public void setDorecreate(boolean dorecreate)
public boolean isIgnore()
public boolean isInitialized()
public CollectionPersister getCurrentPersister()
public void setCurrentPersister(CollectionPersister currentPersister)
public Serializable getCurrentKey()
public void setCurrentKey(Serializable currentKey)
public CollectionPersister getLoadedPersister()
public Serializable getLoadedKey()
public void setRole(String role)
public String toString()
public boolean isInitializedAndDirty()
public Collection getOrphans(String entityName, PersistentCollection coll) throws HibernateException
HibernateException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |