FileDocCategorySizeDatePackage
SortedSetType.javaAPI DocHibernate 3.2.51650Mon Jul 10 11:31:10 BST 2006org.hibernate.type

SortedSetType

public class SortedSetType extends SetType

Fields Summary
private final Comparator
comparator
Constructors Summary
public SortedSetType(String role, String propertyRef, Comparator comparator, boolean isEmbeddedInXML)

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

		return java.util.SortedSet.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 {
			PersistentSortedSet set = new PersistentSortedSet(session);
			set.setComparator(comparator);
			return set;
		}
	
public java.lang.Objectinstantiate(int anticipatedSize)

		return new TreeSet(comparator);
	
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 PersistentSortedSet( session, (java.util.SortedSet) collection );
		}