Class SortedSetType

All Implemented Interfaces:
Serializable, AssociationType, Type

public class SortedSetType extends SetType
See Also:
  • Constructor Details

  • Method Details

    • getCollectionClassification

      public CollectionClassification getCollectionClassification()
      Overrides:
      getCollectionClassification in class SetType
    • getReturnedClass

      public Class<?> getReturnedClass()
      Description copied from interface: Type
      The class handled by this type.
      Specified by:
      getReturnedClass in interface Type
      Overrides:
      getReturnedClass in class SetType
      Returns:
      The Java class handled by this type.
    • instantiate

      public PersistentCollection<?> instantiate(SharedSessionContractImplementor session, CollectionPersister persister, Object key)
      Description copied from class: CollectionType
      Instantiate an uninitialized collection wrapper or holder. Callers MUST add the holder to the persistence context!
      Overrides:
      instantiate in class SetType
      Parameters:
      session - The session from which the request is originating.
      persister - The underlying collection persister (metadata)
      key - The owner key.
      Returns:
      The instantiated collection.
    • instantiate

      public 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 class SetType
      Parameters:
      anticipatedSize - The anticipated size of the instantiated collection after we are done populating it.
      Returns:
      A newly instantiated collection to be wrapped.
    • wrap

      public PersistentCollection<?> wrap(SharedSessionContractImplementor session, Object collection)
      Description copied from class: CollectionType
      Wrap the naked collection instance in a wrapper, or instantiate a holder. Callers MUST add the holder to the persistence context!
      Overrides:
      wrap in class SetType
      Parameters:
      session - The session from which the request is originating.
      collection - The bare collection to be wrapped.
      Returns:
      The wrapped collection.