Package org.apache.derby.impl.jdbc
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 org.apache.derby.impl.jdbc.ConnectionChild
factory, localConn
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) String
int
Retrieves 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
Methods inherited from class org.apache.derby.impl.jdbc.ConnectionChild
commitIfAutoCommit, commitIfNeeded, getCal, getConnectionSynchronization, getEmbedConnection, getLanguageConnectionContext, getLCC, handleException, needCommit, newSQLException, restoreContextStack, restoreIntrFlagIfSeen, setupContextStack
-
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:
getSavepointId
in 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:
getSavepointName
in interfaceSavepoint
- Returns:
- the name of this savepoint
- Throws:
SQLException
- if this is an un-named savepoint
-
getInternalName
String getInternalName() -
sameConnection
-