站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

MapType (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.type
Class MapType

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

public class MapType
extends PersistentCollectionType

See Also:
Serialized Form

Constructor Summary
MapType(String role)
           
 
Method Summary
 Object copy(Object original, Object target, SessionImplementor session, Object owner, Map copiedAlready)
           
 Iterator getElementsIterator(Object collection)
           
 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.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

MapType

public MapType(String role)
Method Detail

instantiate

public PersistentCollection instantiate(SessionImplementor session,
                                        CollectionPersister persister)
Specified by:
instantiate in class PersistentCollectionType

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.

Returns:
Class

getElementsIterator

public Iterator getElementsIterator(Object collection)
Overrides:
getElementsIterator in class PersistentCollectionType

wrap

public PersistentCollection wrap(SessionImplementor session,
                                 Object collection)
Specified by:
wrap in class PersistentCollectionType

copy

public Object copy(Object original,
                   Object target,
                   SessionImplementor session,
                   Object owner,
                   Map copiedAlready)
            throws HibernateException
Specified by:
copy in interface Type
Overrides:
copy in class PersistentCollectionType
Throws:
HibernateException