1 21 23 24 38 39 package oracle.toplink.essentials.internal.parsing.ejbql; 40 41 import oracle.toplink.essentials.internal.parsing.EJBQLParseTree; 42 import oracle.toplink.essentials.queryframework.ObjectLevelReadQuery; 43 import oracle.toplink.essentials.internal.sessions.AbstractSession; 44 45 public class EJBQLParserFactory 46 { 47 public EJBQLParserFactory(){} 48 49 public EJBQLParser buildParserFor(String ejbqlString){ 50 return EJBQLParserBase.buildParserFor(ejbqlString); 51 } 52 public EJBQLParser parseEJBQLString(String ejbqlString){ 53 return EJBQLParserBase.parseEJBQLString(ejbqlString); 54 } 55 56 59 public void populateQuery(String ejbqlString, ObjectLevelReadQuery theQuery, AbstractSession session){ 60 EJBQLParser parser = EJBQLParserBase.parseEJBQLString(ejbqlString); 61 EJBQLParseTree parseTree = (EJBQLParseTree)parser.getParseTree(); 62 parseTree.populateQuery(theQuery, session); 63 } 64 65 } 66 | Popular Tags |