Package oracle.toplink.essentials.internal.parsing

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


     * @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

Related Classes of oracle.toplink.essentials.internal.parsing.EJBQLParseTree

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.