站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

SessionImpl.CollectionEntry (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.impl
Class SessionImpl.CollectionEntry

java.lang.Object
  extended bynet.sf.hibernate.impl.SessionImpl.CollectionEntry
All Implemented Interfaces:
CollectionSnapshot, Serializable
Enclosing class:
SessionImpl

public static final class SessionImpl.CollectionEntry
extends Object
implements CollectionSnapshot, Serializable

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

See Also:
Serialized Form

Constructor Summary
SessionImpl.CollectionEntry()
           
 
Method Summary
 boolean getDirty()
           
 Serializable getKey()
           
 String getRole()
           
 Serializable getSnapshot()
           
 void initSnapshot(PersistentCollection collection, CollectionPersister persister)
           
 boolean isNew()
           
 void setDirty()
           
 boolean snapshotIsEmpty()
           
 boolean wasDereferenced()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionImpl.CollectionEntry

public SessionImpl.CollectionEntry()
Method Detail

initSnapshot

public void initSnapshot(PersistentCollection collection,
                         CollectionPersister persister)
                  throws HibernateException
Throws:
HibernateException

getDirty

public boolean getDirty()
Specified by:
getDirty in interface CollectionSnapshot

getKey

public Serializable getKey()
Specified by:
getKey in interface CollectionSnapshot

getRole

public String getRole()
Specified by:
getRole in interface CollectionSnapshot

getSnapshot

public Serializable getSnapshot()
Specified by:
getSnapshot in interface CollectionSnapshot

snapshotIsEmpty

public boolean snapshotIsEmpty()

setDirty

public void setDirty()
Specified by:
setDirty in interface CollectionSnapshot

isNew

public boolean isNew()

wasDereferenced

public boolean wasDereferenced()
Specified by:
wasDereferenced in interface CollectionSnapshot