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.SQLExceptionPreparedStatement prepareStatement(java.lang.String sql) throws java.sql.SQLException
java.sql.SQLExceptionjava.lang.String nativeSQL(java.lang.String sql)
void setAutoCommit(boolean autoCommit)
throws java.sql.SQLException
java.sql.SQLExceptionboolean getAutoCommit()
throws java.sql.SQLException
java.sql.SQLExceptionvoid commit()
throws java.sql.SQLException
java.sql.SQLExceptionvoid rollback()
throws java.sql.SQLException
java.sql.SQLExceptionvoid close()
throws java.sql.SQLException
close in interface java.lang.AutoCloseablejava.sql.SQLExceptionboolean isClosed()
throws java.sql.SQLException
java.sql.SQLExceptionvoid setReadOnly(boolean readOnly)
throws java.sql.SQLException
java.sql.SQLExceptionboolean isReadOnly()
throws java.sql.SQLException
java.sql.SQLExceptionvoid setCatalog(java.lang.String catalog)
throws java.sql.SQLException
java.sql.SQLExceptionjava.lang.String getCatalog()
throws java.sql.SQLException
java.sql.SQLExceptionvoid setTransactionIsolation(int level)
throws java.sql.SQLException
java.sql.SQLExceptionint getTransactionIsolation()
throws java.sql.SQLException
java.sql.SQLExceptionjava.sql.SQLWarning getWarnings()
throws java.sql.SQLException
java.sql.SQLExceptionvoid clearWarnings()
throws java.sql.SQLException
java.sql.SQLExceptionStatement createStatement(int resultSetType, int resultSetConcurrency) throws java.sql.SQLException
java.sql.SQLExceptionPreparedStatement prepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency) throws java.sql.SQLException
java.sql.SQLExceptionDatabaseMetaData getMetaData() throws java.sql.SQLException
java.sql.SQLException