Package org.apache.openjpa.lib.jdbc
Class ConfiguringConnectionDecorator.ConfiguringConnection
java.lang.Object
org.apache.openjpa.lib.jdbc.DelegatingConnection
org.apache.openjpa.lib.jdbc.ConfiguringConnectionDecorator.ConfiguringConnection
- All Implemented Interfaces:
AutoCloseable,Connection,Wrapper,Closeable
- Enclosing class:
- ConfiguringConnectionDecorator
Decorator to configure connection components correctly.
-
Field Summary
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcommit()protected StatementcreateStatement(boolean wrap) Create a statement, with the option of not wrapping it in aDelegatingStatement, which is the default.protected StatementcreateStatement(int rsType, int rsConcur, boolean wrap) Create a statement, with the option of not wrapping it in aDelegatingStatement, which is the default.protected PreparedStatementprepareStatement(String sql, boolean wrap) Prepare a statement, with the option of not wrapping it in aDelegatingPreparedStatement, which is the default.protected PreparedStatementprepareStatement(String sql, int rsType, int rsConcur, boolean wrap) Prepare a statement, with the option of not wrapping it in aDelegatingPreparedStatement, which is the default.voidrollback()voidsetAutoCommit(boolean auto) Methods inherited from class org.apache.openjpa.lib.jdbc.DelegatingConnection
abort, appendInfo, clearWarnings, close, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStatement, createStruct, equals, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getDelegate, getHoldability, getInnermostDelegate, getMetaData, getMetaData, getNetworkTimeout, getSchema, getTransactionIsolation, getTypeMap, getWarnings, hashCode, isClosed, isReadOnly, isValid, isWrapperFor, nativeSQL, prepareCall, prepareCall, prepareCall, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, setCatalog, setClientInfo, setClientInfo, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTypeMap, toString, unwrapMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.sql.Connection
beginRequest, endRequest, setShardingKey, setShardingKey, setShardingKeyIfValid, setShardingKeyIfValid
-
Constructor Details
-
ConfiguringConnection
- Throws:
SQLException
-
-
Method Details
-
setAutoCommit
- Specified by:
setAutoCommitin interfaceConnection- Overrides:
setAutoCommitin classDelegatingConnection- Throws:
SQLException
-
commit
- Specified by:
commitin interfaceConnection- Overrides:
commitin classDelegatingConnection- Throws:
SQLException
-
rollback
- Specified by:
rollbackin interfaceConnection- Overrides:
rollbackin classDelegatingConnection- Throws:
SQLException
-
prepareStatement
Description copied from class:DelegatingConnectionPrepare a statement, with the option of not wrapping it in aDelegatingPreparedStatement, which is the default.- Overrides:
prepareStatementin classDelegatingConnection- Throws:
SQLException
-
prepareStatement
protected PreparedStatement prepareStatement(String sql, int rsType, int rsConcur, boolean wrap) throws SQLException Description copied from class:DelegatingConnectionPrepare a statement, with the option of not wrapping it in aDelegatingPreparedStatement, which is the default.- Overrides:
prepareStatementin classDelegatingConnection- Throws:
SQLException
-
createStatement
Description copied from class:DelegatingConnectionCreate a statement, with the option of not wrapping it in aDelegatingStatement, which is the default.- Overrides:
createStatementin classDelegatingConnection- Throws:
SQLException
-
createStatement
Description copied from class:DelegatingConnectionCreate a statement, with the option of not wrapping it in aDelegatingStatement, which is the default.- Overrides:
createStatementin classDelegatingConnection- Throws:
SQLException
-