Package org.hibernate.collection

Examples of org.hibernate.collection.PersistentMapElementHolder


    return ( (java.util.Map) collection ).values().iterator();
  }

  public PersistentCollection wrap(SessionImplementor session, Object collection) {
    if ( session.getEntityMode()==EntityMode.DOM4J ) {
      return new PersistentMapElementHolder( session, (Element) collection );
    }
    else {
      return new PersistentMap( session, (java.util.Map) collection );
    }
  }
View Full Code Here


    this.comparator = comparator;
  }

  public PersistentCollection instantiate(SessionImplementor session, CollectionPersister persister, Serializable key) {
    if ( session.getEntityMode()==EntityMode.DOM4J ) {
      return new PersistentMapElementHolder(session, persister, key);
    }
    else {
      PersistentSortedMap map = new PersistentSortedMap(session);
      map.setComparator(comparator);
      return map;
View Full Code Here

TOP

Related Classes of org.hibernate.collection.PersistentMapElementHolder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.