public class

OrderedSetType

extends SetType
java.lang.Object
   ↳ org.hibernate.type.AbstractType
     ↳ org.hibernate.type.CollectionType
       ↳ org.hibernate.type.SetType
         ↳ org.hibernate.type.OrderedSetType

Class Overview

A specialization of the set type, with (resultset-based) ordering.

Summary

[Expand]
Inherited Fields
From class org.hibernate.type.CollectionType
Public Constructors
OrderedSetType(TypeFactory.TypeScope typeScope, String role, String propertyRef, boolean isEmbeddedInXML)
Constructs a set type capable of creating ordered sets of the given role.
Public Methods
Object instantiate(int anticipatedSize)
Instantiate an empty instance of the "underlying" collection (not a wrapper), but with the given anticipated size (i.e.
[Expand]
Inherited Methods
From class org.hibernate.type.SetType
From class org.hibernate.type.CollectionType
From class org.hibernate.type.AbstractType
From class java.lang.Object
From interface org.hibernate.type.AssociationType
From interface org.hibernate.type.Type

Public Constructors

public OrderedSetType (TypeFactory.TypeScope typeScope, String role, String propertyRef, boolean isEmbeddedInXML)

Constructs a set type capable of creating ordered sets of the given role.

Parameters
typeScope The scope for this type instance.
role The collection role name.
propertyRef The property ref name.
isEmbeddedInXML Is this collection to embed itself in xml

Public Methods

public Object instantiate (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).

Parameters
anticipatedSize The anticipated size of the instaniated collection after we are done populating it.
Returns
  • A newly instantiated collection to be wrapped.