public interface Connection
extends java.lang.AutoCloseable
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() |
java.lang.String |
getCatalog() |
DatabaseMetaData |
getMetaData() |
int |
getTransactionIsolation() |
java.sql.SQLWarning |
getWarnings() |
boolean |
isClosed() |
boolean |
isReadOnly() |
java.lang.String |
nativeSQL(java.lang.String sql) |
PreparedStatement |
prepareStatement(java.lang.String sql) |
PreparedStatement |
prepareStatement(java.lang.String sql,
int resultSetType,
int resultSetConcurrency) |
void |
rollback() |
void |
setAutoCommit(boolean autoCommit) |
void |
setCatalog(java.lang.String catalog) |
void |
setReadOnly(boolean readOnly) |
void |
setTransactionIsolation(int level) |
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
Statement createStatement() throws java.sql.SQLException
java.sql.SQLException
PreparedStatement prepareStatement(java.lang.String sql) throws java.sql.SQLException
java.sql.SQLException
java.lang.String nativeSQL(java.lang.String sql)
void setAutoCommit(boolean autoCommit) throws java.sql.SQLException
java.sql.SQLException
boolean getAutoCommit() throws java.sql.SQLException
java.sql.SQLException
void commit() throws java.sql.SQLException
java.sql.SQLException
void rollback() throws java.sql.SQLException
java.sql.SQLException
void close() throws java.sql.SQLException
close
in interface java.lang.AutoCloseable
java.sql.SQLException
boolean isClosed() throws java.sql.SQLException
java.sql.SQLException
void setReadOnly(boolean readOnly) throws java.sql.SQLException
java.sql.SQLException
boolean isReadOnly() throws java.sql.SQLException
java.sql.SQLException
void setCatalog(java.lang.String catalog) throws java.sql.SQLException
java.sql.SQLException
java.lang.String getCatalog() throws java.sql.SQLException
java.sql.SQLException
void setTransactionIsolation(int level) throws java.sql.SQLException
java.sql.SQLException
int getTransactionIsolation() throws java.sql.SQLException
java.sql.SQLException
java.sql.SQLWarning getWarnings() throws java.sql.SQLException
java.sql.SQLException
void clearWarnings() throws java.sql.SQLException
java.sql.SQLException
Statement createStatement(int resultSetType, int resultSetConcurrency) throws java.sql.SQLException
java.sql.SQLException
PreparedStatement prepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency) throws java.sql.SQLException
java.sql.SQLException
DatabaseMetaData getMetaData() throws java.sql.SQLException
java.sql.SQLException