| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Simple implementation of the NativeJdbcExtractor interface. Assumes a pool that just wraps Connections but not Statements/ResultSets: In this case, the underlying native Connection can be retrieved by simply opening a Statement and invoking Statement.getConnection(). All other JDBC objects will be returned as passed in.
Known to work with Resin 2.1 and C3P0, but should work with any pool that does not wrap Statements and ResultSets, or at least returns the native Connection on Statement.getConnection.
Method Summary | |
CallableStatement | getNativeCallableStatement(CallableStatement cs) |
Connection | getNativeConnection(Connection con) |
Connection | getNativeConnectionFromStatement(Statement stmt) |
PreparedStatement | getNativePreparedStatement(PreparedStatement ps) |
ResultSet | getNativeResultSet(ResultSet rs) |
Statement | getNativeStatement(Statement stmt) |
boolean | isNativeConnectionNecessaryForNativeCallableStatements() |
boolean | isNativeConnectionNecessaryForNativePreparedStatements() |
boolean | isNativeConnectionNecessaryForNativeStatements() |
void | setNativeConnectionNecessaryForNativeCallableStatements(boolean nativeConnectionNecessary) Set whether it is necessary to work on the native Connection to receive native CallableStatements. |
void | setNativeConnectionNecessaryForNativePreparedStatements(boolean nativeConnectionNecessary) Set whether it is necessary to work on the native Connection to receive native PreparedStatements. |
void | setNativeConnectionNecessaryForNativeStatements(boolean nativeConnectionNecessary) Set whether it is necessary to work on the native Connection to receive native Statements. |
Method Detail |
public CallableStatement getNativeCallableStatement(CallableStatement cs)
public Connection getNativeConnection(Connection con)
throws java.sql.SQLException
public Connection getNativeConnectionFromStatement(Statement stmt)
throws java.sql.SQLException
public PreparedStatement getNativePreparedStatement(PreparedStatement ps)
public ResultSet getNativeResultSet(ResultSet rs)
throws java.sql.SQLException
public Statement getNativeStatement(Statement stmt)
public boolean isNativeConnectionNecessaryForNativeCallableStatements()
public boolean isNativeConnectionNecessaryForNativePreparedStatements()
public boolean isNativeConnectionNecessaryForNativeStatements()
public void setNativeConnectionNecessaryForNativeCallableStatements(boolean nativeConnectionNecessary)
This makes sense if you need to work with native Statements/ResultSets from a pool that does not allow to extract the native JDBC objects from its wrappers but returns the native Connection on Statement.getConnection, like C3P0.
public void setNativeConnectionNecessaryForNativePreparedStatements(boolean nativeConnectionNecessary)
This makes sense if you need to work with native Statements/ResultSets from a pool that does not allow to extract the native JDBC objects from its wrappers but returns the native Connection on Statement.getConnection, like C3P0.
public void setNativeConnectionNecessaryForNativeStatements(boolean nativeConnectionNecessary)
This makes sense if you need to work with native Statements/ResultSets from a pool that does not allow to extract the native JDBC objects from its wrappers but returns the native Connection on Statement.getConnection, like C3P0.
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |