Examples of EJBQLParseTree


Examples of oracle.toplink.essentials.internal.parsing.EJBQLParseTree

  /**
   * Populate the query using the information retrieved from parsing the EJBQL.
   */
  public void populateQuery(String ejbqlString, ObjectLevelReadQuery theQuery, AbstractSession session){
    EJBQLParser parser = parseEJBQLString(ejbqlString);
    EJBQLParseTree parseTree = parser.getParseTree();
    parseTree.populateQuery(theQuery, session);
  }
View Full Code Here

Examples of oracle.toplink.essentials.internal.parsing.EJBQLParseTree

     * @return a DatabaseQuery representing the given ejbql
     */
    public static DatabaseQuery buildEJBQLDatabaseQuery(String queryName, String ejbql,
            Boolean flushOnExecute, Session session, HashMap hints, ClassLoader classLoader) {
        DatabaseQuery databaseQuery = null;
        EJBQLParseTree parseTree = EJBQLParser.buildParseTree(queryName, ejbql);
        parseTree.setClassLoader(classLoader);
        databaseQuery = parseTree.createDatabaseQuery();
        databaseQuery.setEJBQLString(ejbql);
        parseTree.populateQuery(databaseQuery, (oracle.toplink.essentials.internal.sessions.AbstractSession)session);
        //Bug#4646580  Add arguments to query
        parseTree.addParametersToQuery(databaseQuery);
        ((EJBQLCallQueryMechanism)databaseQuery.getQueryMechanism()).getEJBQLCall().setIsParsed(true);
        databaseQuery.setFlushOnExecute(flushOnExecute);

        //GF#1324 toplink.refresh query hint does not cascade
        //cascade by mapping as default for read query
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.