Package org.hibernate.type
Class OrderedSetType
- java.lang.Object
-
- org.hibernate.type.AbstractType
-
- org.hibernate.type.CollectionType
-
- org.hibernate.type.SetType
-
- org.hibernate.type.OrderedSetType
-
- All Implemented Interfaces:
java.io.Serializable
,AssociationType
,Type
public class OrderedSetType extends SetType
A specialization of the set type, with (resultset-based) ordering.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.hibernate.type.CollectionType
UNFETCHED_COLLECTION
-
Fields inherited from class org.hibernate.type.AbstractType
LEGACY_DEFAULT_SIZE, LEGACY_DICTATED_SIZE
-
-
Constructor Summary
Constructors Constructor Description OrderedSetType(TypeFactory.TypeScope typeScope, java.lang.String role, java.lang.String propertyRef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
instantiate(int anticipatedSize)
Instantiate an empty instance of the "underlying" collection (not a wrapper), but with the given anticipated size (i.e.-
Methods inherited from class org.hibernate.type.SetType
getReturnedClass, instantiate, wrap
-
Methods inherited from class org.hibernate.type.CollectionType
assemble, compare, contains, deepCopy, defaultSizes, dictatedSizes, disassemble, getAssociatedEntityName, getAssociatedJoinable, getCollection, getColumnSpan, getElementsIterator, getElementsIterator, getElementType, getForeignKeyDirection, getHashCode, getIdOfOwnerOrNull, getKeyOfOwner, getLHSPropertyName, getName, getOnCondition, getOnCondition, getRHSUniqueKeyPropertyName, getRole, hasHolder, hydrate, indexOf, initializeImmediately, instantiateResult, isAlwaysDirtyChecked, isArrayType, isAssociationType, isCollectionType, isDirty, isDirty, isEqual, isModified, isMutable, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, renderLoggableString, replace, replaceElements, resolve, resolve, semiResolve, sqlTypes, toColumnNullness, toLoggableString, toString, useLHSPrimaryKey
-
Methods inherited from class org.hibernate.type.AbstractType
beforeAssemble, getHashCode, getSemiResolvedType, isAnyType, isComponentType, isEntityType, isEqual, isSame, replace
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.type.Type
beforeAssemble, getHashCode, getSemiResolvedType, isAnyType, isComponentType, isEntityType, isEqual, isSame, replace
-
-
-
-
Constructor Detail
-
OrderedSetType
public OrderedSetType(TypeFactory.TypeScope typeScope, java.lang.String role, java.lang.String propertyRef)
-
-
Method Detail
-
instantiate
public java.lang.Object instantiate(int anticipatedSize)
Description copied from class:CollectionType
Instantiate an empty instance of the "underlying" collection (not a wrapper), but with the given anticipated size (i.e. accounting for initial capacity and perhaps load factor).- Overrides:
instantiate
in classSetType
- Parameters:
anticipatedSize
- The anticipated size of the instaniated collection after we are done populating it.- Returns:
- A newly instantiated collection to be wrapped.
-
-