/** * Process against the UOW and attempt to load a local copy before going to the shared cache * If null is returned then the calling UOW will instantiate as normal. */ @Override public Object getValue(UnitOfWorkImpl uow) { if (this.query.isReadObjectQuery()){ return this.query.getQueryMechanism().checkCacheForObject(this.query.getTranslationRow(), uow); } //not able to shortcircuit cache lookup to UOW return null; return null; }
/** * INTERNAL: * Execute the cursored select and build the stream. */ public Object execute() { DatabaseCall call = getQuery().getQueryMechanism().cursorSelectAllRows(); // Create cursored stream ScrollableCursor cursor = new ScrollableCursor(call, this); return cursor; }
/** * INTERNAL: * Execute the cursored select and build the stream. */ public Object execute() { DatabaseCall call = getQuery().getQueryMechanism().cursorSelectAllRows(); // Create cursored stream ScrollableCursor cursor = new ScrollableCursor(call, this); return cursor; }
/** * INTERNAL: * Execute the cursored select and build the stream. */ public Object execute() { DatabaseCall call = getQuery().getQueryMechanism().cursorSelectAllRows(); // Create cursored stream CursoredStream stream = new CursoredStream(call, this); return stream; }
/** * Process against the UOW and attempt to load a local copy before going to the shared cache * If null is returned then the calling UOW will instantiate as normal. */ @Override public Object getValue(UnitOfWorkImpl uow) { if (this.query.isReadObjectQuery()){ return this.query.getQueryMechanism().checkCacheForObject(this.query.getTranslationRow(), uow); } //not able to shortcircuit cache lookup to UOW return null; return null; }
/** * INTERNAL: * Execute the cursored select and build the stream. */ public Object execute() { DatabaseCall call = getQuery().getQueryMechanism().cursorSelectAllRows(); // Create cursored stream CursoredStream stream = new CursoredStream(call, this); return stream; }
/** * INTERNAL: * Execute the cursored select and build the stream. */ public Object execute() { DatabaseCall call = getQuery().getQueryMechanism().cursorSelectAllRows(); // Create cursored stream CursoredStream stream = new CursoredStream(call, this); return stream; }
/** * INTERNAL: * Execute the cursored select and build the stream. */ public Object execute() { DatabaseCall call = getQuery().getQueryMechanism().cursorSelectAllRows(); // Create cursored stream ScrollableCursor cursor = new ScrollableCursor(call, this); return cursor; }
selectStatement.setWhereClause(((ExpressionQueryMechanism)this.query.getQueryMechanism()).buildBaseSelectionCriteria(false, clonedExpressions));
selectStatement.setWhereClause(((ExpressionQueryMechanism)this.query.getQueryMechanism()).buildBaseSelectionCriteria(false, clonedExpressions));
selectStatement.setWhereClause(((ExpressionQueryMechanism)getQuery().getQueryMechanism()).buildBaseSelectionCriteria(false, clonedExpressions));