Top Description Fields Constructors Methods
org.apache.derby.impl.jdbc

pack-priv final Class EmbedSavepoint

extends ConnectionChild
implements Savepoint
Class Inheritance
All Implemented Interfaces
java.sql.Savepoint
Imports
java.sql.SQLException, .Savepoint, org.apache.derby.shared.common.error.StandardException, org.apache.derby.shared.common.reference.SQLState, org.apache.derby.iapi.sql.conn.LanguageConnectionContext

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

See Also
java.sql.Savepoint

Field Summary

Modifier and TypeField and Description
private final int
private final String
Inherited from org.apache.derby.impl.jdbc.ConnectionChild:
factorylocalConn

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv String
public int

Returns:

the numeric ID of this savepoint
getSavepointId
()

Implements java.sql.Savepoint.getSavepointId.

Retrieves the generated ID for the savepoint that this Savepoint object represents.

public String

Returns:

the name of this savepoint
getSavepointName
()

Implements java.sql.Savepoint.getSavepointName.

Retrieves the name of the savepoint that this Savepoint object represents.

pack-priv boolean
Inherited from org.apache.derby.impl.jdbc.ConnectionChild:
commitIfAutoCommitcommitIfNeededgetCalgetConnectionSynchronizationgetEmbedConnectiongetLanguageConnectionContextgetLCChandleExceptionneedCommitnewSQLExceptionrestoreContextStackrestoreIntrFlagIfSeensetupContextStack

Field Detail

savepointIDback to summary
private final int savepointID
savepointNameback to summary
private final String savepointName

Constructor Detail

EmbedSavepointback to summary
pack-priv EmbedSavepoint(EmbedConnection conn, String name) throws StandardException

Method Detail

getInternalNameback to summary
pack-priv String getInternalName()
getSavepointIdback to summary
public int getSavepointId() throws SQLException

Implements java.sql.Savepoint.getSavepointId.

Retrieves the generated ID for the savepoint that this Savepoint object represents.

Returns:int

the numeric ID of this savepoint

Exceptions
SQLException:
if this is a named savepoint
getSavepointNameback to summary
public String getSavepointName() throws SQLException

Implements java.sql.Savepoint.getSavepointName.

Retrieves the name of the savepoint that this Savepoint object represents.

Returns:String

the name of this savepoint

Exceptions
SQLException:
if this is an un-named savepoint
sameConnectionback to summary
pack-priv boolean sameConnection(EmbedConnection con)