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

SetType

public class SetType extends CollectionType

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

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

		return java.util.Set.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 PersistentSet(session);
		}
	
public java.lang.Objectinstantiate(int anticipatedSize)

		return anticipatedSize <= 0
		       ? new HashSet()
		       : new HashSet( anticipatedSize + (int)( anticipatedSize * .75f ), .75f );
	
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 PersistentSet( session, (java.util.Set) collection );
		}