Connection.rollback method. When a transaction
is rolled back to a savepoint all changes made after that
savepoint are undone.
Savepoints can be either named or unnamed. Unnamed savepoints are identified by an ID generated by the underlying data source.
HSQLDB-Specific Information:
SQL 2003 standard does not support unnamed savepoints. However, this feature is supported from version 2.0.If the connection is autoCommit, setting savepoints has no effect as any such savepoint is cleared upon the execution of the first transactional statement.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv JDBCConnection | |
| pack-priv int | |
| pack-priv String |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the numeric ID of this savepointImplements java. Retrieves the generated ID for the savepoint that this
|
| public String | Returns: the name of this savepointImplements java. Retrieves the name of the savepoint that this |
| public String |
| connection | back to summary |
|---|---|
| pack-priv JDBCConnection connection | |
| id | back to summary |
|---|---|
| pack-priv int id | |
| name | back to summary |
|---|---|
| pack-priv String name | |
| JDBCSavepoint | back to summary |
|---|---|
| pack-priv JDBCSavepoint(String name, JDBCConnection conn) throws SQLException | |
| JDBCSavepoint | back to summary |
|---|---|
| pack-priv JDBCSavepoint(JDBCConnection conn) throws SQLException | |
| getSavepointId | back to summary |
|---|---|
| public int getSavepointId() throws SQLException Implements java. Retrieves the generated ID for the savepoint that this
| |
| getSavepointName | back to summary |
|---|---|
| public String getSavepointName() throws SQLException Implements java. Retrieves the name of the savepoint that this
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |