public class

PersistentElementHolder

extends AbstractPersistentCollection
java.lang.Object
   ↳ org.hibernate.collection.AbstractPersistentCollection
     ↳ org.hibernate.collection.PersistentElementHolder

Class Overview

A persistent wrapper for an XML element

Summary

Fields
protected Element element
[Expand]
Inherited Fields
From class org.hibernate.collection.AbstractPersistentCollection
Public Constructors
PersistentElementHolder(SessionImplementor session, Element element)
PersistentElementHolder(SessionImplementor session, CollectionPersister persister, Serializable key)
Public Methods
void beforeInitialize(CollectionPersister persister, int anticipatedSize)
Serializable disassemble(CollectionPersister persister)
boolean empty()
Is the initialized collection empty?
Iterator entries(CollectionPersister persister)
boolean entryExists(Object entry, int i)
boolean equalsSnapshot(CollectionPersister persister)
Iterator getDeletes(CollectionPersister persister, boolean indexIsFormula)
Object getElement(Object entry)
Object getIndex(Object entry, int i, CollectionPersister persister)
Collection getOrphans(Serializable snapshot, String entityName)
get all "orphaned" elements
Serializable getSnapshot(CollectionPersister persister)
Object getSnapshotElement(Object entry, int i)
Object getValue()
return the user-visible collection (or array) instance
void initializeFromCache(CollectionPersister persister, Serializable disassembled, Object owner)
boolean isDirectlyAccessible()
Could the application possibly have a direct reference to the underlying collection implementation?
boolean isSnapshotEmpty(Serializable snapshot)
boolean isWrapper(Object collection)
boolean needsInserting(Object entry, int i, Type elementType)
boolean needsUpdating(Object entry, int i, Type elementType)
Object readFrom(ResultSet rs, CollectionPersister persister, CollectionAliases descriptor, Object owner)
[Expand]
Inherited Methods
From class org.hibernate.collection.AbstractPersistentCollection
From class java.lang.Object
From interface org.hibernate.collection.PersistentCollection

Fields

protected Element element

Public Constructors

public PersistentElementHolder (SessionImplementor session, Element element)

public PersistentElementHolder (SessionImplementor session, CollectionPersister persister, Serializable key)

Public Methods

public void beforeInitialize (CollectionPersister persister, int anticipatedSize)

public Serializable disassemble (CollectionPersister persister)

public boolean empty ()

Is the initialized collection empty?

public Iterator entries (CollectionPersister persister)

public boolean entryExists (Object entry, int i)

public boolean equalsSnapshot (CollectionPersister persister)

public Iterator getDeletes (CollectionPersister persister, boolean indexIsFormula)

public Object getElement (Object entry)

public Object getIndex (Object entry, int i, CollectionPersister persister)

public Collection getOrphans (Serializable snapshot, String entityName)

get all "orphaned" elements

public Serializable getSnapshot (CollectionPersister persister)

public Object getSnapshotElement (Object entry, int i)

public Object getValue ()

return the user-visible collection (or array) instance

public void initializeFromCache (CollectionPersister persister, Serializable disassembled, Object owner)

public boolean isDirectlyAccessible ()

Could the application possibly have a direct reference to the underlying collection implementation?

public boolean isSnapshotEmpty (Serializable snapshot)

public boolean isWrapper (Object collection)

public boolean needsInserting (Object entry, int i, Type elementType)

public boolean needsUpdating (Object entry, int i, Type elementType)

public Object readFrom (ResultSet rs, CollectionPersister persister, CollectionAliases descriptor, Object owner)