public interface Connection
Modifier and Type | Field and Description |
---|---|
static int |
TRANSACTION_NONE |
static int |
TRANSACTION_READ_COMMITTED |
static int |
TRANSACTION_READ_UNCOMMITTED |
static int |
TRANSACTION_REPEATABLE_READ |
static int |
TRANSACTION_SERIALIZABLE |
Modifier and Type | Method and Description |
---|---|
void |
clearWarnings() |
void |
close() |
void |
commit() |
Statement |
createStatement() |
Statement |
createStatement(int resultSetType,
int resultSetConcurrency) |
boolean |
getAutoCommit() |
String |
getCatalog() |
DatabaseMetaData |
getMetaData() |
int |
getTransactionIsolation() |
Map |
getTypeMap() |
SQLWarning |
getWarnings() |
boolean |
isClosed() |
boolean |
isReadOnly() |
String |
nativeSQL(String sql) |
CallableStatement |
prepareCall(String sql) |
CallableStatement |
prepareCall(String sql,
int resultSetType,
int resultSetConcurrency) |
PreparedStatement |
prepareStatement(String sql) |
PreparedStatement |
prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency) |
void |
rollback() |
void |
setAutoCommit(boolean autoCommit) |
void |
setCatalog(String catalog) |
void |
setReadOnly(boolean readOnly) |
void |
setTransactionIsolation(int level) |
void |
setTypeMap(Map map) |
static final int TRANSACTION_NONE
static final int TRANSACTION_READ_UNCOMMITTED
static final int TRANSACTION_READ_COMMITTED
static final int TRANSACTION_REPEATABLE_READ
static final int TRANSACTION_SERIALIZABLE
void clearWarnings() throws SQLException
SQLException
void close() throws SQLException
SQLException
void commit() throws SQLException
SQLException
Statement createStatement() throws SQLException
SQLException
Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException
SQLException
boolean getAutoCommit() throws SQLException
SQLException
String getCatalog() throws SQLException
SQLException
DatabaseMetaData getMetaData() throws SQLException
SQLException
int getTransactionIsolation() throws SQLException
SQLException
Map getTypeMap() throws SQLException
SQLException
SQLWarning getWarnings() throws SQLException
SQLException
boolean isClosed() throws SQLException
SQLException
boolean isReadOnly() throws SQLException
SQLException
String nativeSQL(String sql) throws SQLException
SQLException
CallableStatement prepareCall(String sql) throws SQLException
SQLException
CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
SQLException
PreparedStatement prepareStatement(String sql) throws SQLException
SQLException
PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
SQLException
void rollback() throws SQLException
SQLException
void setAutoCommit(boolean autoCommit) throws SQLException
SQLException
void setCatalog(String catalog) throws SQLException
SQLException
void setReadOnly(boolean readOnly) throws SQLException
SQLException
void setTransactionIsolation(int level) throws SQLException
SQLException
void setTypeMap(Map map) throws SQLException
SQLException