类 SortedSetType
- java.lang.Object
-
- org.hibernate.type.AbstractType
-
- org.hibernate.type.CollectionType
-
- org.hibernate.type.SetType
-
- org.hibernate.type.SortedSetType
-
- 所有已实现的接口:
Serializable,AssociationType,Type
public class SortedSetType extends SetType
- 另请参阅:
- 序列化表格
-
-
字段概要
-
从类继承的字段 org.hibernate.type.CollectionType
UNFETCHED_COLLECTION
-
从类继承的字段 org.hibernate.type.AbstractType
LEGACY_DEFAULT_SIZE, LEGACY_DICTATED_SIZE
-
-
构造器概要
构造器 构造器 说明 SortedSetType(String role, String propertyRef, Comparator comparator)SortedSetType(TypeFactory.TypeScope typeScope, String role, String propertyRef, Comparator comparator)已过时。Use the other constructor
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ClassgetReturnedClass()Objectinstantiate(int anticipatedSize)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).PersistentCollectioninstantiate(SharedSessionContractImplementor session, CollectionPersister persister, Serializable key)Instantiate an uninitialized collection wrapper or holder.PersistentCollectionwrap(SharedSessionContractImplementor session, Object collection)Wrap the naked collection instance in a wrapper, or instantiate a holder.-
从类继承的方法 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
-
从类继承的方法 org.hibernate.type.AbstractType
beforeAssemble, getHashCode, getSemiResolvedType, isAnyType, isComponentType, isEntityType, isEqual, isSame, replace
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
从接口继承的方法 org.hibernate.type.Type
beforeAssemble, getHashCode, getSemiResolvedType, isAnyType, isComponentType, isEntityType, isEqual, isSame, replace
-
-
-
-
构造器详细资料
-
SortedSetType
@Deprecated public SortedSetType(TypeFactory.TypeScope typeScope, String role, String propertyRef, Comparator comparator)
已过时。Use the other constructor
-
SortedSetType
public SortedSetType(String role, String propertyRef, Comparator comparator)
-
-
方法详细资料
-
instantiate
public PersistentCollection instantiate(SharedSessionContractImplementor session, CollectionPersister persister, Serializable key)
从类复制的说明:CollectionTypeInstantiate an uninitialized collection wrapper or holder. Callers MUST add the holder to the persistence context!- 覆盖:
instantiate在类中SetType- 参数:
session- The session from which the request is originating.persister- The underlying collection persister (metadata)key- The owner key.- 返回:
- The instantiated collection.
-
getReturnedClass
public Class getReturnedClass()
从接口复制的说明:TypeThe class returned byType.nullSafeGet(java.sql.ResultSet, java.lang.String[], org.hibernate.engine.spi.SharedSessionContractImplementor, java.lang.Object)methods. This is used to establish the class of an array of this type.- 指定者:
getReturnedClass在接口中Type- 覆盖:
getReturnedClass在类中SetType- 返回:
- The java type class handled by this type.
-
instantiate
public Object instantiate(int anticipatedSize)
从类复制的说明:CollectionTypeInstantiate 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).- 覆盖:
instantiate在类中SetType- 参数:
anticipatedSize- The anticipated size of the instantiated collection after we are done populating it.- 返回:
- A newly instantiated collection to be wrapped.
-
wrap
public PersistentCollection wrap(SharedSessionContractImplementor session, Object collection)
从类复制的说明:CollectionTypeWrap the naked collection instance in a wrapper, or instantiate a holder. Callers MUST add the holder to the persistence context!
-
-