public class

OrderedMapType

extends MapType
java.lang.Object
   ↳ org.hibernate.type.AbstractType
     ↳ org.hibernate.type.CollectionType
       ↳ org.hibernate.type.MapType
         ↳ org.hibernate.type.OrderedMapType

Class Overview

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

Summary

[Expand]
Inherited Fields
From class org.hibernate.type.CollectionType
Public Constructors
OrderedMapType(TypeFactory.TypeScope typeScope, String role, String propertyRef, boolean isEmbeddedInXML)
Constructs a map type capable of creating ordered maps 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.MapType
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 OrderedMapType (TypeFactory.TypeScope typeScope, String role, String propertyRef, boolean isEmbeddedInXML)

Constructs a map type capable of creating ordered maps of the given role.

Parameters
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.