|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jtds.jdbc.ConnectionJDBC2 net.sourceforge.jtds.jdbc.ConnectionJDBC3
Implements JDBC 3.0 specific functionality. Separated from ConnectionJDBC2
in order to allow the same classes to run under both J2SE 1.3
(ConnectionJDBC2
)and 1.4 (ConnectionJDBC3
).
Field Summary | |
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. |
Fields inherited from class net.sourceforge.jtds.jdbc.ConnectionJDBC2 |
TRANSACTION_SNAPSHOT |
Fields inherited from interface java.sql.Connection |
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE |
Constructor Summary | |
(package private) |
ConnectionJDBC3(java.lang.String url,
java.util.Properties props)
Create a new database connection. |
Method Summary | |
(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)
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.ArrayList savepoints
private java.util.Map savepointProcInTran
private int savepointId
Constructor Detail |
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
Method Detail |
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.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |