/** * ADVANCED: * This method returns a value that represents if the customer has set whether or not EclipseLink should expect * the stored procedure to returning a JDBC ResultSet. The result of the method corresponds * to false, true. */ public boolean getReturnsResultSet() { if (returnsResultSet == null) { return !shouldBuildOutputRow(); } else { return returnsResultSet.booleanValue(); } }
/** * ADVANCED: * This method returns a value that represents if the customer has set whether or not EclipseLink should expect * the stored procedure to returning a JDBC ResultSet. The result of the method corresponds * to false, true. */ public boolean getReturnsResultSet() { if (returnsResultSet == null) { return !shouldBuildOutputRow(); } else { return returnsResultSet.booleanValue(); } }
/** * ADVANCED: * This method returns a value that represents if the customer has set whether or not EclipseLink should expect * the stored procedure to returning a JDBC ResultSet. The result of the method corresponds * to false, true. */ public boolean getReturnsResultSet() { if (returnsResultSet == null) { return !shouldBuildOutputRow(); } else { return returnsResultSet.booleanValue(); } }
/** * Return true for procedures with any output (or in/out) parameters and no cursors */ public boolean isNonCursorOutputProcedure() { return !isCursorOutputProcedure() && shouldBuildOutputRow(); }
/** * Return true for procedures with any output (or in/out) parameters and no cursors */ public boolean isNonCursorOutputProcedure() { return !isCursorOutputProcedure() && shouldBuildOutputRow(); }
/** * Return true for procedures with any output (or in/out) parameters and no cursors */ public boolean isNonCursorOutputProcedure() { return !isCursorOutputProcedure() && shouldBuildOutputRow(); }
/** * Execute the statement. */ protected Integer executeNoSelect(DatabaseCall call, Statement statement, AbstractSession session) throws DatabaseException { Integer rowCount = executeDirectNoSelect(statement, call, session); // Allow for procs with outputs to be raised as events for error handling. if (call.shouldBuildOutputRow()) { AbstractRecord outputRow = buildOutputRow((CallableStatement)statement, call, session); call.getQuery().setProperty("output", outputRow); if (session.hasEventManager()) { session.getEventManager().outputParametersDetected(outputRow, call); } } return rowCount; }
/** * Execute the statement. */ protected Integer executeNoSelect(DatabaseCall call, Statement statement, AbstractSession session) throws DatabaseException { Integer rowCount = executeDirectNoSelect(statement, call, session); // Allow for procs with outputs to be raised as events for error handling. if (call.shouldBuildOutputRow()) { AbstractRecord outputRow = buildOutputRow((CallableStatement)statement, call, session); call.getQuery().setProperty("output", outputRow); if (session.hasEventManager()) { session.getEventManager().outputParametersDetected(outputRow, call); } } return rowCount; }
/** * Execute the statement. */ protected Integer executeNoSelect(DatabaseCall call, Statement statement, AbstractSession session) throws DatabaseException { Integer rowCount = executeDirectNoSelect(statement, call, session); // Allow for procs with outputs to be raised as events for error handling. if (call.shouldBuildOutputRow()) { AbstractRecord outputRow = buildOutputRow((CallableStatement)statement, call, session); call.getQuery().setProperty("output", outputRow); if (session.hasEventManager()) { session.getEventManager().outputParametersDetected(outputRow, call); } } return rowCount; }
/** * Execute the statement. */ public ResultSet executeSelect(DatabaseCall call, Statement statement, AbstractSession session) throws SQLException { ResultSet resultSet; session.startOperationProfile(SessionProfiler.STATEMENT_EXECUTE, call.getQuery(), SessionProfiler.ALL); try { if (call.isDynamicCall(session)) { resultSet = statement.executeQuery(call.getSQLString()); } else { resultSet = ((PreparedStatement)statement).executeQuery(); } } finally { session.endOperationProfile(SessionProfiler.STATEMENT_EXECUTE, call.getQuery(), SessionProfiler.ALL); } // Allow for procs with outputs to be raised as events for error handling. if (call.shouldBuildOutputRow()) { AbstractRecord outputRow = buildOutputRow((CallableStatement)statement, call, session); call.getQuery().setProperty("output", outputRow); if (session.hasEventManager()) { session.getEventManager().outputParametersDetected(outputRow, call); } } return resultSet; }
if (dbCall.shouldBuildOutputRow() || dbCall.hasOutputCursors()) { result = accessor.buildOutputRow((CallableStatement)statement, dbCall, session); if (dbCall.shouldBuildOutputRow() && ! isOutputAllowWithResultSet()) { AbstractRecord outputRow = accessor.buildOutputRow((CallableStatement)statement, dbCall, session); dbCall.getQuery().setProperty("output", outputRow);
/** * Execute the statement. */ public ResultSet executeSelect(DatabaseCall call, Statement statement, AbstractSession session) throws SQLException { ResultSet resultSet; session.startOperationProfile(SessionProfiler.StatementExecute, call.getQuery(), SessionProfiler.ALL); try { if (call.isDynamicCall(session)) { resultSet = statement.executeQuery(call.getSQLString()); } else { resultSet = ((PreparedStatement)statement).executeQuery(); } } finally { session.endOperationProfile(SessionProfiler.StatementExecute, call.getQuery(), SessionProfiler.ALL); } // Allow for procs with outputs to be raised as events for error handling. if (call.shouldBuildOutputRow() && getPlatform().isOutputAllowWithResultSet()) { AbstractRecord outputRow = buildOutputRow((CallableStatement)statement, call, session); call.getQuery().setProperty("output", outputRow); if (session.hasEventManager()) { session.getEventManager().outputParametersDetected(outputRow, call); } } return resultSet; }
/** * Execute the statement. */ public ResultSet executeSelect(DatabaseCall call, Statement statement, AbstractSession session) throws SQLException { ResultSet resultSet; session.startOperationProfile(SessionProfiler.StatementExecute, call.getQuery(), SessionProfiler.ALL); try { if (call.isDynamicCall(session)) { resultSet = statement.executeQuery(call.getSQLString()); } else { resultSet = ((PreparedStatement)statement).executeQuery(); } } finally { session.endOperationProfile(SessionProfiler.StatementExecute, call.getQuery(), SessionProfiler.ALL); } // Allow for procs with outputs to be raised as events for error handling. if (call.shouldBuildOutputRow() && getPlatform().isOutputAllowWithResultSet()) { AbstractRecord outputRow = buildOutputRow((CallableStatement)statement, call, session); call.getQuery().setProperty("output", outputRow); if (session.hasEventManager()) { session.getEventManager().outputParametersDetected(outputRow, call); } } return resultSet; }
if (dbCall.shouldBuildOutputRow() || dbCall.hasOutputCursors()) { result = accessor.buildOutputRow((CallableStatement)statement, dbCall, session); if (dbCall.shouldBuildOutputRow() && ! isOutputAllowWithResultSet()) { AbstractRecord outputRow = accessor.buildOutputRow((CallableStatement)statement, dbCall, session); dbCall.getQuery().setProperty("output", outputRow);
if (dbCall.shouldBuildOutputRow()) { AbstractRecord outputRow = accessor.buildOutputRow((CallableStatement)statement, dbCall, session); dbCall.getQuery().setProperty("output", outputRow);
if (dbCall.shouldBuildOutputRow()) { AbstractRecord outputRow = accessor.buildOutputRow((CallableStatement)statement, dbCall, session); dbCall.getQuery().setProperty("output", outputRow);
&& (!shouldBuildOutputRow()) && (session.getPlatform().usesJDBCBatchWriting() || (!hasParameters())) && (!isLOBLocatorNeeded()))
&& (!shouldBuildOutputRow()) && (session.getPlatform().usesJDBCBatchWriting() || (!hasParameters())) && (!isLOBLocatorNeeded()))
} else if ((!dbCall.getReturnsResultSet() || (dbCall.getReturnsResultSet() && dbCall.shouldBuildOutputRow()))) {
&& (!dbCall.shouldBuildOutputRow()) && (getPlatform().usesJDBCBatchWriting() || (!dbCall.hasParameters())) && (!dbCall.isLOBLocatorNeeded())) { } else if (!dbCall.getReturnsResultSet() || (dbCall.getReturnsResultSet() && dbCall.shouldBuildOutputRow())) { result = session.getPlatform().executeStoredProcedure(dbCall, (PreparedStatement)statement, this, session); if (!isInBatchWritingMode(session)) {