public class SavePointWork<R> extends Object implements JdbcWork<R>
Savepoint
is
created on the Connection
. If the parent work
results throws an SQLException
the connection is
rolled back to the savepoint. Other exceptions and a normal
completion just releases the savepoint.Constructor and Description |
---|
SavePointWork(JdbcWork<R> work)
Create a new work item.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(Connection connection)
From the Work interface
-----------------------
|
R |
getResult()
Get the result of the work.
|
public void execute(Connection connection) throws SQLException
execute
in interface Work
SQLException