protected NativeJdbcExtractor jdbcExtractor; Connection conn=jdbcExtractor.getNativeConnection(oracleConnection);
private PreparedStatement getNativeStmt(PreparedStatement ps) { PreparedStatement stmt = ps; try { stmt = nativeJdbcExtractor.getNativePreparedStatement(ps); } catch (SQLException ex) { log.debug("Could not find a native preparedstatement using {}", nativeJdbcExtractor .getClass().getName()); } return stmt; }
@Override public CallableStatement getNativeCallableStatement(CallableStatement cs) throws SQLException { CallableStatement callableStatement = NativeJdbcExtractUtils.getCallableStatement(cs); if (delegate != null) { callableStatement = delegate.getNativeCallableStatement(callableStatement); } return callableStatement; }
Connection conToUse = con; if (this.nativeJdbcExtractor != null && this.nativeJdbcExtractor.isNativeConnectionNecessaryForNativePreparedStatements()) { conToUse = this.nativeJdbcExtractor.getNativeConnection(con); PreparedStatement psToUse = ps; if (this.nativeJdbcExtractor != null) { psToUse = this.nativeJdbcExtractor.getNativePreparedStatement(ps);
Connection conToUse = con; if (this.nativeJdbcExtractor != null && this.nativeJdbcExtractor.isNativeConnectionNecessaryForNativeStatements()) { conToUse = this.nativeJdbcExtractor.getNativeConnection(con); Statement stmtToUse = stmt; if (this.nativeJdbcExtractor != null) { stmtToUse = this.nativeJdbcExtractor.getNativeStatement(stmt);
Connection conToUse = con; if (this.nativeJdbcExtractor != null) { conToUse = this.nativeJdbcExtractor.getNativeConnection(con); CallableStatement csToUse = cs; if (this.nativeJdbcExtractor != null) { csToUse = this.nativeJdbcExtractor.getNativeCallableStatement(cs);
/** * Retrieve the underlying OracleConnection, using a NativeJdbcExtractor if set. */ protected Connection getOracleConnection(PreparedStatement ps) throws SQLException, ClassNotFoundException { return (nativeJdbcExtractor != null ? nativeJdbcExtractor.getNativeConnectionFromStatement(ps) : ps.getConnection()); }
@Override public Statement getNativeStatement(Statement stmt) throws SQLException { Statement statement = NativeJdbcExtractUtils.getStatement(stmt); if (delegate != null) { statement = delegate.getNativeStatement(statement); } return statement; }
public ResultSet getNativeResultSet(ResultSet rs) throws SQLException { return getDelegatedExtractor().getNativeResultSet(rs); } }
public boolean isNativeConnectionNecessaryForNativePreparedStatements() { return getDelegatedExtractor().isNativeConnectionNecessaryForNativePreparedStatements(); }
public boolean isNativeConnectionNecessaryForNativeStatements() { return getDelegatedExtractor().isNativeConnectionNecessaryForNativeStatements(); }
/** * Retrieve the underlying OracleConnection, using a NativeJdbcExtractor if set. */ protected Connection getOracleConnection(PreparedStatement ps) throws SQLException, ClassNotFoundException { return (nativeJdbcExtractor != null ? nativeJdbcExtractor.getNativeConnectionFromStatement(ps) : ps.getConnection()); }
@Override public Statement getNativeStatement(Statement stmt) throws SQLException { Statement statement = NativeJdbcExtractUtils.getStatement(stmt); if (delegate != null) { statement = delegate.getNativeStatement(statement); } return statement; }
public ResultSet getNativeResultSet(ResultSet rs) throws SQLException { return getJdbcExtractor(rs).getNativeResultSet(rs); }
protected NativeJdbcExtractor jdbcExtractor; Connection conn=jdbcExtractor.getNativeConnection(oracleConnection);
@Override public PreparedStatement getNativePreparedStatement(PreparedStatement ps) throws SQLException { PreparedStatement preparedStatement = NativeJdbcExtractUtils.getPreparedStatement(ps); if (delegate != null) { preparedStatement = delegate.getNativePreparedStatement(preparedStatement); } return preparedStatement; }
public CallableStatement getNativeCallableStatement(CallableStatement cs) throws SQLException { return getDelegatedExtractor().getNativeCallableStatement(cs); }
public Connection getNativeConnectionFromStatement(Statement stmt) throws SQLException { return getDelegatedExtractor().getNativeConnectionFromStatement(stmt); }
public Statement getNativeStatement(Statement stmt) throws SQLException { return getJdbcExtractor(stmt).getNativeStatement(stmt); }
public T doInPreparedStatement(PreparedStatement ps) throws SQLException { ResultSet rs = null; try { if (pss != null) { pss.setValues(ps); } rs = ps.executeQuery(); ResultSet rsToUse = rs; if (nativeJdbcExtractor != null) { rsToUse = nativeJdbcExtractor.getNativeResultSet(rs); } return rse.extractData(rsToUse); } finally { JdbcUtils.closeResultSet(rs); if (pss instanceof ParameterDisposer) { ((ParameterDisposer) pss).cleanupParameters(); } } } });