public class ConnectionAdaptor
extends java.lang.Object
implements java.sql.Connection
| Constructor and Description |
|---|
ConnectionAdaptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
abort(java.util.concurrent.Executor $12) |
void |
clearWarnings()
Clears all warnings reported for this Connection object.
|
void |
close()
Releases this Connection object's database and JDBC resources immediately instead of waiting for them to be automatically released.
|
void |
commit()
Makes all changes made since the previous commit/rollback permanent and releases any database locks currently held by this Connection object.
|
java.sql.Array |
createArrayOf(java.lang.String $7,
java.lang.Object[] $8) |
java.sql.Blob |
createBlob() |
java.sql.Clob |
createClob() |
java.sql.NClob |
createNClob() |
java.sql.SQLXML |
createSQLXML() |
java.sql.Statement |
createStatement()
Creates a Statement object for sending SQL statements to the database.
|
java.sql.Statement |
createStatement(int _resultSetType,
int _resultSetConcurrency)
Creates a Statement object that will generate ResultSet objects with the given type and concurrency.
|
java.sql.Statement |
createStatement(int _resultSetType,
int _resultSetConcurrency,
int _resultSetHoldability)
Creates a Statement object that will generate ResultSet objects with the given type, concurrency, and holdability.
|
java.sql.Struct |
createStruct(java.lang.String $9,
java.lang.Object[] $10) |
boolean |
getAutoCommit()
Retrieves the current auto-commit mode for this Connection object.
|
java.lang.String |
getCatalog()
Retrieves this Connection object's current catalog name.
|
java.util.Properties |
getClientInfo() |
java.lang.String |
getClientInfo(java.lang.String $3) |
int |
getHoldability()
Retrieves the current holdability of ResultSet objects created using this Connection object.
|
java.sql.DatabaseMetaData |
getMetaData()
Retrieves a DatabaseMetaData object that contains metadata about the database to which this Connection object represents a connection.
|
int |
getNetworkTimeout() |
java.lang.String |
getSchema() |
int |
getTransactionIsolation()
Retrieves this Connection object's current transaction isolation level.
|
java.util.Map |
getTypeMap()
Retrieves the Map object associated with this Connection object.
|
java.sql.SQLWarning |
getWarnings()
Retrieves the first warning reported by calls on this Connection object.
|
boolean |
isClosed()
Retrieves whether this Connection object has been closed.
|
boolean |
isReadOnly()
Retrieves whether this Connection object is in read-only mode.
|
boolean |
isValid(int $15) |
boolean |
isWrapperFor(java.lang.Class $2) |
java.lang.String |
nativeSQL(java.lang.String _sql)
Converts the given SQL statement into the system's native SQL grammar.
|
java.sql.CallableStatement |
prepareCall(java.lang.String _sql)
Creates a CallableStatement object for calling database stored procedures.
|
java.sql.CallableStatement |
prepareCall(java.lang.String _sql,
int _resultSetType,
int _resultSetConcurrency)
Creates a CallableStatement object that will generate ResultSet objects with the given type and concurrency.
|
java.sql.CallableStatement |
prepareCall(java.lang.String _sql,
int _resultSetType,
int _resultSetConcurrency,
int _resultSetHoldability)
Creates a CallableStatement object that will generate ResultSet objects with the given type and concurrency.
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String _sql)
Creates a PreparedStatement object for sending parameterized SQL statements to the database.
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String _sql,
int _autoGeneratedKeys)
Creates a default PreparedStatement object that has the capability to retrieve auto-generated keys.
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String _sql,
int[] _columnIndexes)
Creates a default PreparedStatement object capable of returning the auto-generated keys designated by the given array.
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String _sql,
int _resultSetType,
int _resultSetConcurrency)
Creates a PreparedStatement object that will generate ResultSet objects with the given type and concurrency.
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String _sql,
int _resultSetType,
int _resultSetConcurrency,
int _resultSetHoldability)
Creates a PreparedStatement object that will generate ResultSet objects with the given type, concurrency, and holdability.
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String _sql,
java.lang.String[] _columnNames)
Creates a default PreparedStatement object capable of returning the auto-generated keys designated by the given array.
|
void |
releaseSavepoint(java.sql.Savepoint _savepoint)
Removes the given Savepoint object from the current transaction.
|
void |
rollback()
Undoes all changes made in the current transaction.
|
void |
rollback(java.sql.Savepoint _savepoint)
Undoes all changes made after the given Savepoint object was set.
|
void |
setAutoCommit(boolean _autoCommit)
Sets this connection's auto-commit mode to the given state.
|
void |
setCatalog(java.lang.String _catalog)
Sets the given catalog name in order to select a subspace of this Connection object's database in which to work.
|
void |
setClientInfo(java.util.Properties $6) |
void |
setClientInfo(java.lang.String $4,
java.lang.String $5) |
void |
setHoldability(int _holdability)
Changes the holdability of ResultSet objects created using this Connection object to the given holdability.
|
void |
setNetworkTimeout(java.util.concurrent.Executor $13,
int $14) |
void |
setReadOnly(boolean _readOnly)
Puts this connection in read-only mode as a hint to the driver to enable database optimizations.
|
java.sql.Savepoint |
setSavepoint()
Creates an unnamed savepoint in the current transaction and returns the new Savepoint object that represents it.
|
java.sql.Savepoint |
setSavepoint(java.lang.String _name)
Creates a savepoint with the given name in the current transaction and returns the new Savepoint object that represents it.
|
void |
setSchema(java.lang.String $11) |
void |
setTransactionIsolation(int _level)
Attempts to change the transaction isolation level for this Connection object to the one given.
|
void |
setTypeMap(java.util.Map _map)
Installs the given TypeMap object as the type map for this Connection object.
|
java.lang.Object |
unwrap(java.lang.Class $1) |
public void clearWarnings()
clearWarnings in interface java.sql.Connectionpublic void close()
close in interface java.lang.AutoCloseableclose in interface java.sql.Connectionpublic void commit()
commit in interface java.sql.Connectionpublic java.sql.Statement createStatement()
createStatement in interface java.sql.Connectionpublic java.sql.Statement createStatement(int _resultSetType,
int _resultSetConcurrency)
createStatement in interface java.sql.Connectionpublic java.sql.Statement createStatement(int _resultSetType,
int _resultSetConcurrency,
int _resultSetHoldability)
createStatement in interface java.sql.Connectionpublic boolean getAutoCommit()
getAutoCommit in interface java.sql.Connectionpublic java.lang.String getCatalog()
getCatalog in interface java.sql.Connectionpublic int getHoldability()
getHoldability in interface java.sql.Connectionpublic java.sql.DatabaseMetaData getMetaData()
getMetaData in interface java.sql.Connectionpublic int getTransactionIsolation()
getTransactionIsolation in interface java.sql.Connectionpublic java.util.Map getTypeMap()
getTypeMap in interface java.sql.Connectionpublic java.sql.SQLWarning getWarnings()
getWarnings in interface java.sql.Connectionpublic boolean isClosed()
isClosed in interface java.sql.Connectionpublic boolean isReadOnly()
isReadOnly in interface java.sql.Connectionpublic java.lang.String nativeSQL(java.lang.String _sql)
nativeSQL in interface java.sql.Connectionpublic java.sql.CallableStatement prepareCall(java.lang.String _sql)
prepareCall in interface java.sql.Connectionpublic java.sql.CallableStatement prepareCall(java.lang.String _sql,
int _resultSetType,
int _resultSetConcurrency)
prepareCall in interface java.sql.Connectionpublic java.sql.CallableStatement prepareCall(java.lang.String _sql,
int _resultSetType,
int _resultSetConcurrency,
int _resultSetHoldability)
prepareCall in interface java.sql.Connectionpublic java.sql.PreparedStatement prepareStatement(java.lang.String _sql)
prepareStatement in interface java.sql.Connectionpublic java.sql.PreparedStatement prepareStatement(java.lang.String _sql,
int _autoGeneratedKeys)
prepareStatement in interface java.sql.Connectionpublic java.sql.PreparedStatement prepareStatement(java.lang.String _sql,
int[] _columnIndexes)
prepareStatement in interface java.sql.Connectionpublic java.sql.PreparedStatement prepareStatement(java.lang.String _sql,
int _resultSetType,
int _resultSetConcurrency)
prepareStatement in interface java.sql.Connectionpublic java.sql.PreparedStatement prepareStatement(java.lang.String _sql,
int _resultSetType,
int _resultSetConcurrency,
int _resultSetHoldability)
prepareStatement in interface java.sql.Connectionpublic java.sql.PreparedStatement prepareStatement(java.lang.String _sql,
java.lang.String[] _columnNames)
prepareStatement in interface java.sql.Connectionpublic void releaseSavepoint(java.sql.Savepoint _savepoint)
releaseSavepoint in interface java.sql.Connectionpublic void rollback()
rollback in interface java.sql.Connectionpublic void rollback(java.sql.Savepoint _savepoint)
rollback in interface java.sql.Connectionpublic void setAutoCommit(boolean _autoCommit)
setAutoCommit in interface java.sql.Connectionpublic void setCatalog(java.lang.String _catalog)
setCatalog in interface java.sql.Connectionpublic void setHoldability(int _holdability)
setHoldability in interface java.sql.Connectionpublic void setReadOnly(boolean _readOnly)
setReadOnly in interface java.sql.Connectionpublic java.sql.Savepoint setSavepoint()
setSavepoint in interface java.sql.Connectionpublic java.sql.Savepoint setSavepoint(java.lang.String _name)
setSavepoint in interface java.sql.Connectionpublic void setTransactionIsolation(int _level)
setTransactionIsolation in interface java.sql.Connectionpublic void setTypeMap(java.util.Map _map)
setTypeMap in interface java.sql.Connectionpublic java.lang.Object unwrap(java.lang.Class $1)
throws java.sql.SQLException
unwrap in interface java.sql.Wrapperjava.sql.SQLExceptionpublic boolean isWrapperFor(java.lang.Class $2)
throws java.sql.SQLException
isWrapperFor in interface java.sql.Wrapperjava.sql.SQLExceptionpublic java.lang.String getClientInfo(java.lang.String $3)
throws java.sql.SQLException
getClientInfo in interface java.sql.Connectionjava.sql.SQLExceptionpublic java.util.Properties getClientInfo()
throws java.sql.SQLException
getClientInfo in interface java.sql.Connectionjava.sql.SQLExceptionpublic void setClientInfo(java.lang.String $4,
java.lang.String $5)
throws java.sql.SQLClientInfoException
setClientInfo in interface java.sql.Connectionjava.sql.SQLClientInfoExceptionpublic void setClientInfo(java.util.Properties $6)
throws java.sql.SQLClientInfoException
setClientInfo in interface java.sql.Connectionjava.sql.SQLClientInfoExceptionpublic java.sql.Array createArrayOf(java.lang.String $7,
java.lang.Object[] $8)
throws java.sql.SQLException
createArrayOf in interface java.sql.Connectionjava.sql.SQLExceptionpublic int getNetworkTimeout()
throws java.sql.SQLException
getNetworkTimeout in interface java.sql.Connectionjava.sql.SQLExceptionpublic java.sql.Clob createClob()
throws java.sql.SQLException
createClob in interface java.sql.Connectionjava.sql.SQLExceptionpublic java.sql.NClob createNClob()
throws java.sql.SQLException
createNClob in interface java.sql.Connectionjava.sql.SQLExceptionpublic java.sql.SQLXML createSQLXML()
throws java.sql.SQLException
createSQLXML in interface java.sql.Connectionjava.sql.SQLExceptionpublic java.lang.String getSchema()
throws java.sql.SQLException
getSchema in interface java.sql.Connectionjava.sql.SQLExceptionpublic java.sql.Struct createStruct(java.lang.String $9,
java.lang.Object[] $10)
throws java.sql.SQLException
createStruct in interface java.sql.Connectionjava.sql.SQLExceptionpublic void setSchema(java.lang.String $11)
throws java.sql.SQLException
setSchema in interface java.sql.Connectionjava.sql.SQLExceptionpublic void abort(java.util.concurrent.Executor $12)
throws java.sql.SQLException
abort in interface java.sql.Connectionjava.sql.SQLExceptionpublic void setNetworkTimeout(java.util.concurrent.Executor $13,
int $14)
throws java.sql.SQLException
setNetworkTimeout in interface java.sql.Connectionjava.sql.SQLExceptionpublic java.sql.Blob createBlob()
throws java.sql.SQLException
createBlob in interface java.sql.Connectionjava.sql.SQLExceptionpublic boolean isValid(int $15)
throws java.sql.SQLException
isValid in interface java.sql.Connectionjava.sql.SQLExceptionCopyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.