FileDocCategorySizeDatePackage
CollectionCacheEntry.javaAPI DocHibernate 3.2.51107Fri May 20 14:50:08 BST 2005org.hibernate.cache.entry

CollectionCacheEntry

public class CollectionCacheEntry extends Object implements Serializable
author
Gavin King

Fields Summary
private final Serializable
state
Constructors Summary
public CollectionCacheEntry(org.hibernate.collection.PersistentCollection collection, org.hibernate.persister.collection.CollectionPersister persister)

		this.state = collection.disassemble(persister);
	
CollectionCacheEntry(Serializable state)

		this.state = state;
	
Methods Summary
public voidassemble(org.hibernate.collection.PersistentCollection collection, org.hibernate.persister.collection.CollectionPersister persister, java.lang.Object owner)

		collection.initializeFromCache(persister, state, owner);
		collection.afterInitialize();
	
public java.io.Serializable[]getState()

		//TODO: assumes all collections disassemble to an array!
		return (Serializable[]) state;
	
public java.lang.StringtoString()

		return "CollectionCacheEntry" + ArrayHelper.toString( getState() );