/** * INTERNAL: * Execute the query. If there are objects in the cache return the results * of the cache lookup. * * @param session - the session in which the receiver will be executed. * @exception DatabaseException - an error has occurred on the database. * @exception OptimisticLockException - an error has occurred using the optimistic lock feature. * @return An object, the result of executing the query. */ @Override public Object execute(AbstractSession session, AbstractRecord translationRow) throws DatabaseException, OptimisticLockException { //Bug#2839852 Refreshing is not possible if the query uses checkCacheOnly. if (shouldRefreshIdentityMapResult() && shouldCheckCacheOnly()) { throw QueryException.refreshNotPossibleWithCheckCacheOnly(this); } return super.execute(session, translationRow); }
/** * INTERNAL: * Execute the query. If there are objects in the cache return the results * of the cache lookup. * * @param session - the session in which the receiver will be executed. * @exception DatabaseException - an error has occurred on the database. * @exception OptimisticLockException - an error has occurred using the optimistic lock feature. * @return An object, the result of executing the query. */ public Object execute(AbstractSession session, AbstractRecord translationRow) throws DatabaseException, OptimisticLockException { //Bug#2839852 Refreshing is not possible if the query uses checkCacheOnly. if (shouldRefreshIdentityMapResult() && shouldCheckCacheOnly()) { throw QueryException.refreshNotPossibleWithCheckCacheOnly(this); } return super.execute(session, translationRow); }
/** * INTERNAL: * Execute the query. If there are objects in the cache return the results * of the cache lookup. * * @param session - the session in which the receiver will be executed. * @exception DatabaseException - an error has occurred on the database. * @exception OptimisticLockException - an error has occurred using the optimistic lock feature. * @return An object, the result of executing the query. */ @Override public Object execute(AbstractSession session, AbstractRecord translationRow) throws DatabaseException, OptimisticLockException { //Bug#2839852 Refreshing is not possible if the query uses checkCacheOnly. if (shouldRefreshIdentityMapResult() && shouldCheckCacheOnly()) { throw QueryException.refreshNotPossibleWithCheckCacheOnly(this); } return super.execute(session, translationRow); }