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, wait
abort, 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, setSchema
isWrapperFor, unwrap
public ConnectionBase(String url, Properties info)
public String getUrl()
public Properties getConnectProperties()
public void setAutoCommit(boolean autoCommit) throws SQLException
setAutoCommit
in interface Connection
SQLException
public boolean getAutoCommit() throws SQLException
getAutoCommit
in interface Connection
SQLException
public void setCatalog(String catalog) throws SQLException
setCatalog
in interface Connection
SQLException
public String getCatalog() throws SQLException
getCatalog
in interface Connection
SQLException
public void checkState() throws SQLException
SQLException
public void setTransactionIsolation(int level) throws SQLException
setTransactionIsolation
in interface Connection
SQLException
public int getTransactionIsolation() throws SQLException
getTransactionIsolation
in interface Connection
SQLException
public SQLWarning getWarnings() throws SQLException
getWarnings
in interface Connection
SQLException
public void clearWarnings() throws SQLException
clearWarnings
in interface Connection
SQLException
public void setWarnings(SQLWarning warnings)
public Map<String,Class<?>> getTypeMap() throws SQLException
getTypeMap
in interface Connection
SQLException
public void setTypeMap(Map<String,Class<?>> map) throws SQLException
setTypeMap
in interface Connection
SQLException
public void setHoldability(int holdability) throws SQLException
setHoldability
in interface Connection
SQLException
public int getHoldability()
getHoldability
in interface Connection
public void setReadOnly(boolean readOnly) throws SQLException
setReadOnly
in interface Connection
SQLException
public boolean isReadOnly() throws SQLException
isReadOnly
in interface Connection
SQLException
Copyright © 2013–2017 Alibaba Group. All rights reserved.