Package org.hibernate.collection

Examples of org.hibernate.collection.PersistentElementHolder


    this.comparator = comparator;
  }

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


    return new TreeSet(comparator);
  }
 
  public PersistentCollection wrap(SessionImplementor session, Object collection) {
    if ( session.getEntityMode()==EntityMode.DOM4J ) {
      return new PersistentElementHolder( session, (Element) collection );
    }
    else {
      return new PersistentSortedSet( session, (java.util.SortedSet) collection );
    }
  }
View Full Code Here

  }

  public PersistentCollection instantiate(SessionImplementor session, CollectionPersister persister, Serializable key)
  throws HibernateException {
    if ( session.getEntityMode()==EntityMode.DOM4J ) {
      return new PersistentElementHolder(session, persister, key);
    }
    else {
      return new PersistentBag(session);
    }
  }
View Full Code Here

    return java.util.Collection.class;
  }

  public PersistentCollection wrap(SessionImplementor session, Object collection) {
    if ( session.getEntityMode()==EntityMode.DOM4J ) {
      return new PersistentElementHolder( session, (Element) collection );
    }
    else {
      return new PersistentBag( session, (Collection) collection );
    }
  }
View Full Code Here

    return new TreeMap(comparator);
  }
 
  public PersistentCollection wrap(SessionImplementor session, Object collection) {
    if ( session.getEntityMode()==EntityMode.DOM4J ) {
      return new PersistentElementHolder( session, (Element) collection );
    }
    else {
      return new PersistentSortedMap( session, (java.util.SortedMap) collection );
    }
  }
View Full Code Here

    super(role, propertyRef, isEmbeddedInXML);
  }

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

    return java.util.Set.class;
  }

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

    this.comparator = comparator;
  }

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

    return new TreeSet(comparator);
  }
 
  public PersistentCollection wrap(SessionImplementor session, Object collection) {
    if ( session.getEntityMode()==EntityMode.DOM4J ) {
      return new PersistentElementHolder( session, (Element) collection );
    }
    else {
      return new PersistentSortedSet( session, (java.util.SortedSet) collection );
    }
  }
View Full Code Here

  }

  public PersistentCollection instantiate(SessionImplementor session, CollectionPersister persister, Serializable key)
  throws HibernateException {
    if ( session.getEntityMode()==EntityMode.DOM4J ) {
      return new PersistentElementHolder(session, persister, key);
    }
    else {
      return new PersistentBag(session);
    }
  }
View Full Code Here

TOP

Related Classes of org.hibernate.collection.PersistentElementHolder

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.