public class

PersistentArrayHolder

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

Class Overview

A persistent wrapper for an array. Lazy initialization is NOT supported. Use of Hibernate arrays is not really recommended.

Summary

Fields
protected Object array
[Expand]
Inherited Fields
From class org.hibernate.collection.AbstractPersistentCollection
Public Constructors
PersistentArrayHolder(SessionImplementor session, Object array)
PersistentArrayHolder(SessionImplementor session, CollectionPersister persister)
Public Methods
void beforeInitialize(CollectionPersister persister, int anticipatedSize)
void beginRead()
Called just before reading any rows from the JDBC result set
Serializable disassemble(CollectionPersister persister)
Iterator elements()
boolean empty()
Is the initialized collection empty?
boolean endRead()
Called after reading all rows from the JDBC result set
Iterator entries(CollectionPersister persister)
boolean entryExists(Object entry, int i)
boolean equalsSnapshot(CollectionPersister persister)
Object getArray()
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 elemType)
boolean needsUpdating(Object entry, int i, Type elemType)
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 Object array

Public Constructors

public PersistentArrayHolder (SessionImplementor session, Object array)

public PersistentArrayHolder (SessionImplementor session, CollectionPersister persister)

Public Methods

public void beforeInitialize (CollectionPersister persister, int anticipatedSize)

public void beginRead ()

Called just before reading any rows from the JDBC result set

public Serializable disassemble (CollectionPersister persister)

public Iterator elements ()

public boolean empty ()

Is the initialized collection empty?

public boolean endRead ()

Called after reading all rows from the JDBC result set

public Iterator entries (CollectionPersister persister)

public boolean entryExists (Object entry, int i)

public boolean equalsSnapshot (CollectionPersister persister)

public Object getArray ()

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

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

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