net.sf.hibernate.type
Class SortedMapType

java.lang.Object
  extended bynet.sf.hibernate.type.AbstractType
      extended bynet.sf.hibernate.type.PersistentCollectionType
          extended bynet.sf.hibernate.type.MapType
              extended bynet.sf.hibernate.type.SortedMapType
All Implemented Interfaces:
AssociationType, Serializable, Type

public class SortedMapType
extends MapType

See Also:
Serialized Form

Constructor Summary
SortedMapType(String role, Comparator comparator)
           
 
Method Summary
 Class getReturnedClass()
          The class returned by nullSafeGet() methods.
 PersistentCollection instantiate(SessionImplementor session, CollectionPersister persister)
           
 PersistentCollection wrap(SessionImplementor session, Object collection)
           
 
Methods inherited from class net.sf.hibernate.type.MapType
copy, getElementsIterator
 
Methods inherited from class net.sf.hibernate.type.PersistentCollectionType
assemble, deepCopy, disassemble, equals, equals, fromString, getAssociatedClass, getColumnSpan, getElementType, getForeignKeyDirection, getJoinable, getName, getReferencedColumns, getRole, hashCode, hasNiceEquals, hydrate, isArrayType, isAssociationType, isDirty, isModified, isMutable, isPersistentCollectionType, nullSafeGet, nullSafeGet, nullSafeSet, resolveIdentifier, sqlTypes, toString, toString, usePrimaryKeyAsForeignKey
 
Methods inherited from class net.sf.hibernate.type.AbstractType
isComponentType, isEntityType, isObjectType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sf.hibernate.type.Type
isComponentType, isEntityType, isObjectType
 

Constructor Detail

SortedMapType

public SortedMapType(String role,
                     Comparator comparator)
Method Detail

instantiate

public PersistentCollection instantiate(SessionImplementor session,
                                        CollectionPersister persister)
Overrides:
instantiate in class MapType

getReturnedClass

public Class getReturnedClass()
Description copied from interface: Type
The class returned by nullSafeGet() methods. This is used to establish the class of an array of this type.

Specified by:
getReturnedClass in interface Type
Overrides:
getReturnedClass in class MapType

wrap

public PersistentCollection wrap(SessionImplementor session,
                                 Object collection)
Overrides:
wrap in class MapType