Package org.springextensions.db4o

Examples of org.springextensions.db4o.Db4oCallback


   * @param <E>
   * @param q
   * @return
   */
  protected <E> List<E> runQuery(final Query q) {
    return (List<E>) getDb4oTemplate().execute(new Db4oCallback() {

      @Override
      public Object doInDb4o(ObjectContainer container) throws RuntimeException {
        return q.execute();
      }
View Full Code Here


          query.descend(sc.getPropertyName()).orderDescending();
        }
      }
    }

    return (List<E>) getDb4oTemplate().execute(new Db4oCallback() {

      @Override
      public Object doInDb4o(ObjectContainer container) throws RuntimeException {
        return query.execute();
      }
View Full Code Here

TOP

Related Classes of org.springextensions.db4o.Db4oCallback

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.