public interface DelegatedConnection extends Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
Modifier and Type | Method and Description |
---|---|
default void |
abort(Executor executor) |
default void |
clearWarnings() |
default void |
close() |
default void |
commit() |
Connection |
con() |
default Array |
createArrayOf(String typeName,
Object[] elements) |
default Blob |
createBlob() |
default Clob |
createClob() |
default NClob |
createNClob() |
default SQLXML |
createSQLXML() |
default Statement |
createStatement() |
default Statement |
createStatement(int resultSetType,
int resultSetConcurrency) |
default Statement |
createStatement(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) |
default Struct |
createStruct(String typeName,
Object[] attributes) |
default boolean |
getAutoCommit() |
default String |
getCatalog() |
default Properties |
getClientInfo() |
default String |
getClientInfo(String name) |
default int |
getHoldability() |
default DatabaseMetaData |
getMetaData() |
default int |
getNetworkTimeout() |
default String |
getSchema() |
default int |
getTransactionIsolation() |
default Map<String,Class<?>> |
getTypeMap() |
default SQLWarning |
getWarnings() |
default boolean |
isClosed() |
default boolean |
isReadOnly() |
default boolean |
isValid(int timeout) |
default boolean |
isWrapperFor(Class<?> iface) |
default String |
nativeSQL(String sql) |
default CallableStatement |
prepareCall(String sql) |
default CallableStatement |
prepareCall(String sql,
int resultSetType,
int resultSetConcurrency) |
default CallableStatement |
prepareCall(String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) |
default PreparedStatement |
prepareStatement(String sql) |
default PreparedStatement |
prepareStatement(String sql,
int autoGeneratedKeys) |
default PreparedStatement |
prepareStatement(String sql,
int[] columnIndexes) |
default PreparedStatement |
prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency) |
default PreparedStatement |
prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) |
default PreparedStatement |
prepareStatement(String sql,
String[] columnNames) |
default void |
releaseSavepoint(Savepoint savepoint) |
default void |
rollback() |
default void |
rollback(Savepoint savepoint) |
default void |
setAutoCommit(boolean autoCommit) |
default void |
setCatalog(String catalog) |
default void |
setClientInfo(Properties properties) |
default void |
setClientInfo(String name,
String value) |
default void |
setHoldability(int holdability) |
default void |
setNetworkTimeout(Executor executor,
int milliseconds) |
default void |
setReadOnly(boolean readOnly) |
default Savepoint |
setSavepoint() |
default Savepoint |
setSavepoint(String name) |
default void |
setSchema(String schema) |
default void |
setTransactionIsolation(int level) |
default void |
setTypeMap(Map<String,Class<?>> map) |
default <T> T |
unwrap(Class<T> iface) |
Connection con()
default <T> T unwrap(Class<T> iface) throws SQLException
unwrap
in interface Wrapper
SQLException
default boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor
in interface Wrapper
SQLException
default Statement createStatement() throws SQLException
createStatement
in interface Connection
SQLException
default PreparedStatement prepareStatement(String sql) throws SQLException
prepareStatement
in interface Connection
SQLException
default CallableStatement prepareCall(String sql) throws SQLException
prepareCall
in interface Connection
SQLException
default String nativeSQL(String sql) throws SQLException
nativeSQL
in interface Connection
SQLException
default void setAutoCommit(boolean autoCommit) throws SQLException
setAutoCommit
in interface Connection
SQLException
default boolean getAutoCommit() throws SQLException
getAutoCommit
in interface Connection
SQLException
default void commit() throws SQLException
commit
in interface Connection
SQLException
default void rollback() throws SQLException
rollback
in interface Connection
SQLException
default void close() throws SQLException
close
in interface AutoCloseable
close
in interface Connection
SQLException
default boolean isClosed() throws SQLException
isClosed
in interface Connection
SQLException
default DatabaseMetaData getMetaData() throws SQLException
getMetaData
in interface Connection
SQLException
default void setReadOnly(boolean readOnly) throws SQLException
setReadOnly
in interface Connection
SQLException
default boolean isReadOnly() throws SQLException
isReadOnly
in interface Connection
SQLException
default void setCatalog(String catalog) throws SQLException
setCatalog
in interface Connection
SQLException
default String getCatalog() throws SQLException
getCatalog
in interface Connection
SQLException
default void setTransactionIsolation(int level) throws SQLException
setTransactionIsolation
in interface Connection
SQLException
default int getTransactionIsolation() throws SQLException
getTransactionIsolation
in interface Connection
SQLException
default SQLWarning getWarnings() throws SQLException
getWarnings
in interface Connection
SQLException
default void clearWarnings() throws SQLException
clearWarnings
in interface Connection
SQLException
default Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException
createStatement
in interface Connection
SQLException
default PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
prepareStatement
in interface Connection
SQLException
default CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
prepareCall
in interface Connection
SQLException
default Map<String,Class<?>> getTypeMap() throws SQLException
getTypeMap
in interface Connection
SQLException
default void setTypeMap(Map<String,Class<?>> map) throws SQLException
setTypeMap
in interface Connection
SQLException
default void setHoldability(int holdability) throws SQLException
setHoldability
in interface Connection
SQLException
default int getHoldability() throws SQLException
getHoldability
in interface Connection
SQLException
default Savepoint setSavepoint() throws SQLException
setSavepoint
in interface Connection
SQLException
default Savepoint setSavepoint(String name) throws SQLException
setSavepoint
in interface Connection
SQLException
default void rollback(Savepoint savepoint) throws SQLException
rollback
in interface Connection
SQLException
default void releaseSavepoint(Savepoint savepoint) throws SQLException
releaseSavepoint
in interface Connection
SQLException
default Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
createStatement
in interface Connection
SQLException
default PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
prepareStatement
in interface Connection
SQLException
default CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
prepareCall
in interface Connection
SQLException
default PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException
prepareStatement
in interface Connection
SQLException
default PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException
prepareStatement
in interface Connection
SQLException
default PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException
prepareStatement
in interface Connection
SQLException
default Clob createClob() throws SQLException
createClob
in interface Connection
SQLException
default Blob createBlob() throws SQLException
createBlob
in interface Connection
SQLException
default NClob createNClob() throws SQLException
createNClob
in interface Connection
SQLException
default SQLXML createSQLXML() throws SQLException
createSQLXML
in interface Connection
SQLException
default boolean isValid(int timeout) throws SQLException
isValid
in interface Connection
SQLException
default void setClientInfo(String name, String value) throws SQLClientInfoException
setClientInfo
in interface Connection
SQLClientInfoException
default void setClientInfo(Properties properties) throws SQLClientInfoException
setClientInfo
in interface Connection
SQLClientInfoException
default String getClientInfo(String name) throws SQLException
getClientInfo
in interface Connection
SQLException
default Properties getClientInfo() throws SQLException
getClientInfo
in interface Connection
SQLException
default Array createArrayOf(String typeName, Object[] elements) throws SQLException
createArrayOf
in interface Connection
SQLException
default Struct createStruct(String typeName, Object[] attributes) throws SQLException
createStruct
in interface Connection
SQLException
default void setSchema(String schema) throws SQLException
setSchema
in interface Connection
SQLException
default String getSchema() throws SQLException
getSchema
in interface Connection
SQLException
default void abort(Executor executor) throws SQLException
abort
in interface Connection
SQLException
default void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException
setNetworkTimeout
in interface Connection
SQLException
default int getNetworkTimeout() throws SQLException
getNetworkTimeout
in interface Connection
SQLException
Copyright © 2022–2023. All rights reserved.