Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » collection » [javadoc | source]
org.hibernate.collection
public class: PersistentMap [javadoc | source]
java.lang.Object
   org.hibernate.collection.AbstractPersistentCollection
      org.hibernate.collection.PersistentMap

All Implemented Interfaces:
    Map, PersistentCollection, Serializable

Direct Known Subclasses:
    PersistentSortedMap

A persistent wrapper for a java.util.Map. Underlying collection is a HashMap.
Nested Class Summary:
class  PersistentMap.EntrySetProxy  a wrapper for Map.Entry sets 
final class  PersistentMap.EntryIteratorProxy   
final class  PersistentMap.MapEntryProxy   
final class  PersistentMap.Clear   
final class  PersistentMap.Put   
final class  PersistentMap.Remove   
Field Summary
protected  Map map     
Fields inherited from org.hibernate.collection.AbstractPersistentCollection:
UNKNOWN
Constructor:
 public PersistentMap() 
 public PersistentMap(SessionImplementor session) 
    Instantiates a lazy map (the underlying map is un-initialized).
    Parameters:
    session - The session to which this map will belong.
 public PersistentMap(SessionImplementor session,
    Map map) 
    Instantiates a non-lazy map (the underlying map is constructed from the incoming map reference).
    Parameters:
    session - The session to which this map will belong.
    map - The underlying map data.
Method from org.hibernate.collection.PersistentMap Summary:
beforeInitialize,   clear,   containsKey,   containsValue,   disassemble,   empty,   entries,   entryExists,   entrySet,   equals,   equalsSnapshot,   get,   getDeletes,   getElement,   getIndex,   getOrphans,   getSnapshot,   getSnapshotElement,   hashCode,   initializeFromCache,   isEmpty,   isSnapshotEmpty,   isWrapper,   keySet,   needsInserting,   needsUpdating,   put,   putAll,   readFrom,   remove,   size,   toString,   values
Methods from org.hibernate.collection.AbstractPersistentCollection:
afterInitialize,   afterRowInsert,   beginRead,   clearDirty,   dirty,   empty,   endRead,   forceInitialization,   getCachedSize,   getIdentifier,   getKey,   getOrphans,   getOrphans,   getOwner,   getQueuedOrphans,   getRole,   getSession,   getSnapshot,   getStoredSnapshot,   getValue,   hasQueuedOperations,   identityRemove,   initialize,   isClearQueueEnabled,   isDirectlyAccessible,   isDirty,   isOperationQueueEnabled,   isPutQueueEnabled,   isRowUpdatePossible,   isUnreferenced,   needsRecreate,   performQueuedOperations,   postAction,   preInsert,   queueOperation,   queuedAdditionIterator,   read,   readElementByIndex,   readElementExistence,   readIndexExistence,   readSize,   setCurrentSession,   setDirectlyAccessible,   setInitialized,   setOwner,   setSnapshot,   unsetSession,   wasInitialized,   write
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.collection.PersistentMap Detail:
 public  void beforeInitialize(CollectionPersister persister,
    int anticipatedSize) 
 public  void clear() 
 public boolean containsKey(Object key) 
 public boolean containsValue(Object value) 
 public Serializable disassemble(CollectionPersister persister) throws HibernateException 
 public boolean empty() 
 public Iterator entries(CollectionPersister persister) 
 public boolean entryExists(Object entry,
    int i) 
 public Set entrySet() 
 public boolean equals(Object other) 
 public boolean equalsSnapshot(CollectionPersister persister) throws HibernateException 
 public Object get(Object key) 
 public Iterator getDeletes(CollectionPersister persister,
    boolean indexIsFormula) throws HibernateException 
 public Object getElement(Object entry) 
 public Object getIndex(Object entry,
    int i,
    CollectionPersister persister) 
 public Collection getOrphans(Serializable snapshot,
    String entityName) throws HibernateException 
 public Serializable getSnapshot(CollectionPersister persister) throws HibernateException 
 public Object getSnapshotElement(Object entry,
    int i) 
 public int hashCode() 
 public  void initializeFromCache(CollectionPersister persister,
    Serializable disassembled,
    Object owner) throws HibernateException 
 public boolean isEmpty() 
 public boolean isSnapshotEmpty(Serializable snapshot) 
 public boolean isWrapper(Object collection) 
 public Set keySet() 
 public boolean needsInserting(Object entry,
    int i,
    Type elemType) throws HibernateException 
 public boolean needsUpdating(Object entry,
    int i,
    Type elemType) throws HibernateException 
 public Object put(Object key,
    Object value) 
 public  void putAll(Map puts) 
 public Object readFrom(ResultSet rs,
    CollectionPersister persister,
    CollectionAliases descriptor,
    Object owner) throws HibernateException, SQLException 
 public Object remove(Object key) 
 public int size() 
 public String toString() 
 public Collection values()