Class EmbedSavepoint

java.lang.Object
org.apache.derby.impl.jdbc.ConnectionChild
org.apache.derby.impl.jdbc.EmbedSavepoint
All Implemented Interfaces:
Savepoint

final class EmbedSavepoint extends ConnectionChild implements 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 Details

    • savepointName

      private final String savepointName
    • savepointID

      private final int savepointID
  • Constructor Details

  • Method Details

    • getSavepointId

      public int getSavepointId() throws SQLException
      Retrieves the generated ID for the savepoint that this Savepoint object represents.
      Specified by:
      getSavepointId in interface Savepoint
      Returns:
      the numeric ID of this savepoint
      Throws:
      SQLException - if this is a named savepoint
    • getSavepointName

      public String getSavepointName() throws SQLException
      Retrieves the name of the savepoint that this Savepoint object represents.
      Specified by:
      getSavepointName in interface Savepoint
      Returns:
      the name of this savepoint
      Throws:
      SQLException - if this is an un-named savepoint
    • getInternalName

      String getInternalName()
    • sameConnection

      boolean sameConnection(EmbedConnection con)