public abstract class ConnectionBase extends Object implements Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE| Constructor and Description |
|---|
ConnectionBase(String url,
Properties info) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkState() |
void |
clearWarnings() |
boolean |
getAutoCommit() |
String |
getCatalog() |
Properties |
getConnectProperties() |
int |
getHoldability() |
int |
getTransactionIsolation() |
Map<String,Class<?>> |
getTypeMap() |
String |
getUrl() |
SQLWarning |
getWarnings() |
boolean |
isReadOnly() |
void |
setAutoCommit(boolean autoCommit) |
void |
setCatalog(String catalog) |
void |
setHoldability(int holdability) |
void |
setReadOnly(boolean readOnly) |
void |
setTransactionIsolation(int level) |
void |
setTypeMap(Map<String,Class<?>> map) |
void |
setWarnings(SQLWarning warnings) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabort, close, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, getClientInfo, getClientInfo, getMetaData, getNetworkTimeout, getSchema, isClosed, isValid, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setClientInfo, setClientInfo, setNetworkTimeout, setSavepoint, setSavepoint, setSchemaisWrapperFor, unwrappublic ConnectionBase(String url, Properties info)
public String getUrl()
public Properties getConnectProperties()
public void setAutoCommit(boolean autoCommit)
throws SQLException
setAutoCommit in interface ConnectionSQLExceptionpublic boolean getAutoCommit()
throws SQLException
getAutoCommit in interface ConnectionSQLExceptionpublic void setCatalog(String catalog) throws SQLException
setCatalog in interface ConnectionSQLExceptionpublic String getCatalog() throws SQLException
getCatalog in interface ConnectionSQLExceptionpublic void checkState()
throws SQLException
SQLExceptionpublic void setTransactionIsolation(int level)
throws SQLException
setTransactionIsolation in interface ConnectionSQLExceptionpublic int getTransactionIsolation()
throws SQLException
getTransactionIsolation in interface ConnectionSQLExceptionpublic SQLWarning getWarnings() throws SQLException
getWarnings in interface ConnectionSQLExceptionpublic void clearWarnings()
throws SQLException
clearWarnings in interface ConnectionSQLExceptionpublic void setWarnings(SQLWarning warnings)
public Map<String,Class<?>> getTypeMap() throws SQLException
getTypeMap in interface ConnectionSQLExceptionpublic void setTypeMap(Map<String,Class<?>> map) throws SQLException
setTypeMap in interface ConnectionSQLExceptionpublic void setHoldability(int holdability)
throws SQLException
setHoldability in interface ConnectionSQLExceptionpublic int getHoldability()
getHoldability in interface Connectionpublic void setReadOnly(boolean readOnly)
throws SQLException
setReadOnly in interface ConnectionSQLExceptionpublic boolean isReadOnly()
throws SQLException
isReadOnly in interface ConnectionSQLExceptionCopyright © 2013–2018 Alibaba Group. All rights reserved.