public class ConnectionJDBC3 extends ConnectionJDBC2
ConnectionJDBC2
in order to allow the same classes to run under both J2SE 1.3
(ConnectionJDBC2
)and 1.4 (ConnectionJDBC3
).Modifier and Type | Field and Description |
---|---|
private int |
savepointId
Counter for generating unique savepoint identifiers
|
private java.util.Map |
savepointProcInTran
Maps each savepoint to a list of tmep procedures created since the savepoint
|
private java.util.ArrayList |
savepoints
The list of savepoints.
|
TRANSACTION_SNAPSHOT
Constructor and Description |
---|
ConnectionJDBC3(java.lang.String url,
java.util.Properties props)
Create a new database connection.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
addCachedProcedure(java.lang.String key)
Add a stored procedure to the savepoint cache.
|
(package private) void |
addCachedProcedure(java.lang.String key,
ProcEntry proc)
Add a stored procedure to the cache.
|
(package private) void |
clearSavepoints()
Releases all savepoints.
|
private int |
getNextSavepointId()
Returns the next savepoint identifier.
|
void |
releaseSavepoint(java.sql.Savepoint savepoint) |
void |
rollback(java.sql.Savepoint savepoint) |
java.sql.Savepoint |
setSavepoint() |
private void |
setSavepoint(SavepointImpl savepoint)
Add a savepoint to the list maintained by this connection.
|
java.sql.Savepoint |
setSavepoint(java.lang.String name) |
abort, addStatement, checkLocal, checkOpen, clearWarnings, close, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, enlistConnection, finalize, getAppName, getAutoCommit, getBatchSize, getBindAddress, getBufferDir, getBufferMaxMemory, getBufferMinPackets, getCachedTds, getCatalog, getCharset, getCharsetInfo, getClientInfo, getClientInfo, getCollation, getCursorName, getDatabaseMajorVersion, getDatabaseMinorVersion, getDatabaseName, getDatabaseProductName, getDatabaseProductVersion, getDomainName, getHoldability, getInstanceName, getLastUpdateCount, getLobBuffer, getLoginTimeout, getMacAddress, getMaxPrecision, getMaxStatements, getMetaData, getMutex, getNamedPipe, getNetPacketSize, getNetworkTimeout, getPacketSize, getPassword, getPortNumber, getPrepareSql, getProcessId, getProcName, getProgName, getRmHost, getRowCount, getSchema, getServerName, getServerType, getSocket, getSocketKeepAlive, getSocketTimeout, getSybaseInfo, getTcpNoDelay, getTdsVersion, getTextSize, getTransactionIsolation, getTypeMap, getURL, getUseCursors, getUseJCIFS, getUseLOBs, getUseMetadataCache, getUseNTLMv2, getUser, getUseUnicode, getWarnings, getWsid, getXaState, getXid, isCharsetSpecified, isClosed, isReadOnly, isValid, isWideChar, isWrapperFor, isXaEmulation, nativeSQL, notImplemented, prepareCall, prepareCall, prepareCall, prepareSQL, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseTds, removeCachedProcedure, removeStatement, rollback, sendXaPacket, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setClosed, setCollation, setDatabase, setDBServerInfo, setHoldability, setNetPacketSize, setNetworkTimeout, setReadOnly, setRowCount, setSchema, setServerCharset, setSybaseInfo, setTextSize, setTransactionIsolation, setTypeMap, setXaState, setXid, unpackProperties, unwrap
private java.util.ArrayList savepoints
private java.util.Map savepointProcInTran
private int savepointId
ConnectionJDBC3(java.lang.String url, java.util.Properties props) throws java.sql.SQLException
url
- The connection URL starting jdbc:jtds:.props
- The additional connection properties.java.sql.SQLException
private void setSavepoint(SavepointImpl savepoint) throws java.sql.SQLException
savepoint
- The savepoint object to add.java.sql.SQLException
void clearSavepoints()
clearSavepoints
in class ConnectionJDBC2
public void releaseSavepoint(java.sql.Savepoint savepoint) throws java.sql.SQLException
releaseSavepoint
in interface java.sql.Connection
releaseSavepoint
in class ConnectionJDBC2
java.sql.SQLException
public void rollback(java.sql.Savepoint savepoint) throws java.sql.SQLException
rollback
in interface java.sql.Connection
rollback
in class ConnectionJDBC2
java.sql.SQLException
public java.sql.Savepoint setSavepoint() throws java.sql.SQLException
setSavepoint
in interface java.sql.Connection
setSavepoint
in class ConnectionJDBC2
java.sql.SQLException
public java.sql.Savepoint setSavepoint(java.lang.String name) throws java.sql.SQLException
setSavepoint
in interface java.sql.Connection
setSavepoint
in class ConnectionJDBC2
java.sql.SQLException
private int getNextSavepointId()
void addCachedProcedure(java.lang.String key, ProcEntry proc)
addCachedProcedure
in class ConnectionJDBC2
key
- The signature of the procedure to cache.proc
- The stored procedure descriptor.void addCachedProcedure(java.lang.String key)
key
- The signature of the procedure to cache.Generated on December 23 2017