Savepoint
A savepoint is a point inside a transaction to where a transaction can be
rolled back. The tasks that where done before the savepoint are not rolled
back in this case.
| Methods |
| static String |
getName(String name, int id)
Get the savepoint name for this name or id.
|
| static String |
getName(String name, int id)
Get the savepoint name for this name or id.
If the name is null, the id is used.
Parameters:
name - the name (may be null)
id - the id
Returns:
the savepoint name
|
| int |
getSavepointId()
Get the generated id of this savepoint.
|
| int |
getSavepointId() throws SQLException
Get the generated id of this savepoint.
Returns:
the id
|
| String |
getSavepointName()
Get the name of this savepoint.
|
| String |
getSavepointName() throws SQLException
Get the name of this savepoint.
Returns:
the name
|
| void |
release()
Release this savepoint.
|
| void |
release()
Release this savepoint. This method only set the connection to null and
does not execute a statement.
|
| void |
rollback()
Roll back to this savepoint.
|
| void |
rollback()
Roll back to this savepoint.
|