public abstract class

PersistentIndexedElementHolder

extends AbstractPersistentCollection
java.lang.Object
   ↳ org.hibernate.collection.AbstractPersistentCollection
     ↳ org.hibernate.collection.PersistentIndexedElementHolder
Known Direct Subclasses

Class Overview

A persistent wrapper for an XML element

Summary

Nested Classes
class PersistentIndexedElementHolder.IndexedValue  
Fields
protected Element element
[Expand]
Inherited Fields
From class org.hibernate.collection.AbstractPersistentCollection
Public Constructors
PersistentIndexedElementHolder(SessionImplementor session, Element element)
PersistentIndexedElementHolder(SessionImplementor session, CollectionPersister persister, Serializable key)
Public Methods
void beforeInitialize(CollectionPersister persister, int anticipatedSize)
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
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)
Protected Methods
static String getIndex(Element element, String indexNodeName, int i)
static String getIndexAttributeName(CollectionPersister persister)
static void setIndex(Element element, String indexNodeName, String index)
[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 PersistentIndexedElementHolder (SessionImplementor session, Element element)

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

Public Methods

public void beforeInitialize (CollectionPersister persister, int anticipatedSize)

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

Protected Methods

protected static String getIndex (Element element, String indexNodeName, int i)

protected static String getIndexAttributeName (CollectionPersister persister)

protected static void setIndex (Element element, String indexNodeName, String index)