Class EmbedSavepoint
java.lang.Object
org.apache.derby.impl.jdbc.ConnectionChild
org.apache.derby.impl.jdbc.EmbedSavepoint
- All Implemented Interfaces:
Savepoint
This class implements the Savepoint interface from JDBC 3.0.
This allows to set, release, or rollback a transaction to
designated Savepoints. Savepoints provide finer-grained
control of transactions by marking intermediate points within
a transaction. Once a savepoint has been set, the transaction
can be rolled back to that savepoint without affecting preceding work.
Supports
- JSR169 - no subsetting for java.sql.Savepoint
- JDBC 3.0 - class introduced in JDBC 3.0
- See Also:
-
Field Summary
FieldsFields inherited from class ConnectionChild
factory, localConn -
Constructor Summary
ConstructorsConstructorDescriptionEmbedSavepoint(EmbedConnection conn, String name) /////////////////////////////////////////////////////////// -
Method Summary
Modifier and TypeMethodDescription(package private) StringintRetrieves the generated ID for the savepoint that this Savepoint object represents.Retrieves the name of the savepoint that this Savepoint object represents.(package private) boolean
-
Field Details
-
savepointName
-
savepointID
private final int savepointID
-
-
Constructor Details
-
EmbedSavepoint
EmbedSavepoint(EmbedConnection conn, String name) throws StandardException ///////////////////////////////////////////////////////////- Throws:
StandardException
-
-
Method Details
-
getSavepointId
Retrieves the generated ID for the savepoint that this Savepoint object represents.- Specified by:
getSavepointIdin interfaceSavepoint- Returns:
- the numeric ID of this savepoint
- Throws:
SQLException- if this is a named savepoint
-
getSavepointName
Retrieves the name of the savepoint that this Savepoint object represents.- Specified by:
getSavepointNamein interfaceSavepoint- Returns:
- the name of this savepoint
- Throws:
SQLException- if this is an un-named savepoint
-
getInternalName
String getInternalName() -
sameConnection
-