Interface Savepoint

public interface Savepoint

Savepoints are used to mark intermediate points within a transaction. After a savepoint has been set, the transaction can be rolled back to that savepoint without affecting preceding work.

Methods

getSavepointId

public int getSavepointId() throws SQLException

This gets the ID of the savepoint. A SQLException is thrown if the savepoint is named instead of being numbered.

Returns: The numeric ID of the savepoint

getSavepointName

public String getSavepointName() throws SQLException

This gets the name of the savepoint. A SQLException is thrown if the savepoint isn’t named but uses number IDs instead.

Returns: The name of the savepoint



JDBC 3. 0. JAVA Database Connectivity
JDBC 3: Java Database Connectivity
ISBN: 0764548751
EAN: 2147483647
Year: 2002
Pages: 148

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net