/** * INTERNAL: * Check to see if this query needs to be prepare and prepare it. * The prepare is done on the original query to ensure that the work is not repeated. */ public void checkPrepare(AbstractSession session, AbstractRecord translationRow) { this.checkPrepare(session, translationRow, false); }
/** * INTERNAL: Check to see if this query needs to be prepare and prepare it. * The prepare is done on the original query to ensure that the work is not * repeated. */ public void checkPrepare(AbstractSession session, AbstractRecord translationRow) { this.checkPrepare(session, translationRow, false); }
/** * INTERNAL: Check to see if this query needs to be prepare and prepare it. * The prepare is done on the original query to ensure that the work is not * repeated. */ public void checkPrepare(AbstractSession session, AbstractRecord translationRow) { this.checkPrepare(session, translationRow, false); }
/** * ADVANCED: * Pre-generate the call/SQL for the query. * This method takes a Session and an implementor of Record (DatebaseRow or XMLRecord). * This can be used to access the SQL for a query without executing it. * To access the call use, query.getCall(), or query.getSQLString() for the SQL. * Note the SQL will have argument markers in it (i.e. "?"). * To translate these use query.getTranslatedSQLString(session, translationRow). * @see #getCall() * @see #getSQLString() * @see #getTranslatedSQLString(org.eclipse.persistence.sessions.Session, Record) */ public void prepareCall(org.eclipse.persistence.sessions.Session session, Record translationRow) throws QueryException { //CR#2859559 fix to use Session and Record interfaces not impl classes. checkPrepare((AbstractSession)session, (AbstractRecord)translationRow, true); }
/** * ADVANCED: Pre-generate the call/SQL for the query. This method takes a * Session and an implementor of Record (DatebaseRow or XMLRecord). This can * be used to access the SQL for a query without executing it. To access the * call use, query.getCall(), or query.getSQLString() for the SQL. Note the * SQL will have argument markers in it (i.e. "?"). To translate these use * query.getTranslatedSQLString(session, translationRow). * * @see #getCall() * @see #getSQLString() * @see #getTranslatedSQLString(org.eclipse.persistence.sessions.Session, * Record) */ public void prepareCall(org.eclipse.persistence.sessions.Session session, Record translationRow) throws QueryException { // CR#2859559 fix to use Session and Record interfaces not impl classes. checkPrepare((AbstractSession) session, (AbstractRecord) translationRow, true); }
/** * ADVANCED: Pre-generate the call/SQL for the query. This method takes a * Session and an implementor of Record (DatebaseRow or XMLRecord). This can * be used to access the SQL for a query without executing it. To access the * call use, query.getCall(), or query.getSQLString() for the SQL. Note the * SQL will have argument markers in it (i.e. "?"). To translate these use * query.getTranslatedSQLString(session, translationRow). * * @see #getCall() * @see #getSQLString() * @see #getTranslatedSQLString(org.eclipse.persistence.sessions.Session, * Record) */ public void prepareCall(org.eclipse.persistence.sessions.Session session, Record translationRow) throws QueryException { // CR#2859559 fix to use Session and Record interfaces not impl classes. checkPrepare((AbstractSession) session, (AbstractRecord) translationRow, true); }
/** * INTERNAL: * Process the JPA named queries into EclipseLink Session queries. */ public void processJPAQueries() { List queries = getJPAQueries(); for (Iterator iterator = queries.iterator(); iterator.hasNext();) { DatabaseQuery jpaQuery = (DatabaseQuery)iterator.next(); jpaQuery.checkPrepare(this, null); DatabaseQuery databaseQuery = (DatabaseQuery)jpaQuery.getProperty("databasequery"); addQuery(databaseQuery.getName(), databaseQuery); } queries.clear(); }
Vector statementVector = new Vector(); query.checkPrepare(getSession(), rowForPrepare, true); callVector = ((CallQueryMechanism)query.getQueryMechanism()).getCalls(); if (callVector.isEmpty()) {
Vector statementVector = new Vector(); query.checkPrepare(getSession(), rowForPrepare, true); callVector = ((CallQueryMechanism)query.getQueryMechanism()).getCalls(); if (callVector.isEmpty()) {
Vector statementVector = new Vector(); query.checkPrepare(getSession(), rowForPrepare, true); callVector = ((CallQueryMechanism)query.getQueryMechanism()).getCalls(); if (callVector.isEmpty()) {
query.checkPrepare((AbstractSession) context.getServerSession(), new DatabaseRecord()); for (ReportItem item : ((ReportQuery) query).getItems()) { if (item.getMapping() != null) {
query.checkPrepare((AbstractSession) context.getServerSession(), new DatabaseRecord()); for (ReportItem item : ((ReportQuery) query).getItems()) { if (item.getMapping() != null) {
this.databaseQuery.checkPrepare(this.entityManager.getActiveSessionIfExists(), new DatabaseRecord()); } catch(RuntimeException re){ throw new IllegalArgumentException(re);
queryToExecute.checkPrepare(session, translationRow); queryToExecute.checkPrepare(session, translationRow); queryToExecute.checkPrepare(session, translationRow);
queryToExecute.checkPrepare(session, translationRow); queryToExecute.checkPrepare(session, translationRow); queryToExecute.setIsPrepared(false); queryToExecute.setTranslationRow(translationRow); queryToExecute.checkPrepare(session, translationRow, true);
queryToExecute.checkPrepare(session, translationRow); queryToExecute.checkPrepare(session, translationRow); queryToExecute.setIsPrepared(false); queryToExecute.setTranslationRow(translationRow); queryToExecute.checkPrepare(session, translationRow, true);
databaseQuery.checkPrepare(session, new DatabaseRecord()); session.getProject().getJPQLParseCache().put(jpqlQuery, databaseQuery);
query.checkPrepare((AbstractSession) context.getServerSession(), new DatabaseRecord()); for (ReportItem item : ((ReportQuery) query).getItems()) { final Property property;
query.checkPrepare((AbstractSession) context.getServerSession(), new DatabaseRecord()); for (ReportItem item : ((ReportQuery) query).getItems()) { final Property property;