Package org.objectweb.speedo.query.jdo

Examples of org.objectweb.speedo.query.jdo.JDOQuery


    public JDOPOManager() {
      super();
    }

  public Query createQuery(Object o) {
    JDOQuery sq = new JDOQuery();
    sq.withPrefetch(prefetchOnQuery);
    sq.setPOManager(this);
    //initialize the fetch plan of the speedo query
    sq.setFetchPlan(getFetchPlan());
    sq.setQueryManager(queryManager);
    sq.setIgnoreCache(ignoreCache);
    sq.setLogger(loggerFactory.getLogger(logger.getName() + ".query"));
    if (o!= null && o instanceof JDOQueryDefinitionImpl) {
      sq.defineWith((JDOQueryDefinitionImpl) o);
    }
    return sq;
  }
View Full Code Here


    }

    public Query newQuery(Extent extent) {
        assertIsOpen();
        bindPMThread();
    JDOQuery q = (JDOQuery) createQuery(null);
        Class c = extent.getCandidateClass();
        q.setIncludeSubClasses(extent.hasSubclasses());
        q.setClass(c);
        if (getObjectIdClass(c) == null)
            throw new JDOUnsupportedOptionException(
                    "There is a problem with the specified class");
        return q;
    }
View Full Code Here

TOP

Related Classes of org.objectweb.speedo.query.jdo.JDOQuery

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.