FileDocCategorySizeDatePackage
BagType.javaAPI DocHibernate 3.2.51569Wed Jul 05 13:17:28 BST 2006org.hibernate.type

BagType

public class BagType extends CollectionType

Fields Summary
Constructors Summary
public BagType(String role, String propertyRef, boolean isEmbeddedInXML)

		super(role, propertyRef, isEmbeddedInXML);
	
Methods Summary
public java.lang.ClassgetReturnedClass()

		return java.util.Collection.class;
	
public org.hibernate.collection.PersistentCollectioninstantiate(org.hibernate.engine.SessionImplementor session, org.hibernate.persister.collection.CollectionPersister persister, java.io.Serializable key)

		if ( session.getEntityMode()==EntityMode.DOM4J ) {
			return new PersistentElementHolder(session, persister, key);
		}
		else {
			return new PersistentBag(session);
		}
	
public java.lang.Objectinstantiate(int anticipatedSize)

		return anticipatedSize <= 0 ? new ArrayList() : new ArrayList( anticipatedSize + 1 );
	
public org.hibernate.collection.PersistentCollectionwrap(org.hibernate.engine.SessionImplementor session, java.lang.Object collection)

		if ( session.getEntityMode()==EntityMode.DOM4J ) {
			return new PersistentElementHolder( session, (Element) collection );
		}
		else {
			return new PersistentBag( session, (Collection) collection );
		}