org.apache.derby.impl.jdbc
Class EmbedSavepoint30

java.lang.Object
  extended by org.apache.derby.impl.jdbc.ConnectionChild
      extended by org.apache.derby.impl.jdbc.EmbedSavepoint30
All Implemented Interfaces:
java.sql.Savepoint

final class EmbedSavepoint30
extends ConnectionChild
implements java.sql.Savepoint

This class implements the Savepoint interface from JDBC3.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:
Savepoint

Field Summary
private  int savepointID
           
private  java.lang.String savepointName
           
 
Fields inherited from class org.apache.derby.impl.jdbc.ConnectionChild
factory, localConn
 
Constructor Summary
EmbedSavepoint30(EmbedConnection conn, java.lang.String name)
           
 
Method Summary
(package private)  java.lang.String getInternalName()
           
 int getSavepointId()
          Retrieves the generated ID for the savepoint that this Savepoint object represents.
 java.lang.String getSavepointName()
          Retrieves the name of the savepoint that this Savepoint object represents.
(package private)  boolean sameConnection(EmbedConnection con)
           
 
Methods inherited from class org.apache.derby.impl.jdbc.ConnectionChild
commitIfAutoCommit, commitIfNeeded, getCal, getConnectionSynchronization, getEmbedConnection, handleException, needCommit, newSQLException, newSQLException, newSQLException, restoreContextStack, setupContextStack
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

savepointName

private final java.lang.String savepointName

savepointID

private final int savepointID
Constructor Detail

EmbedSavepoint30

EmbedSavepoint30(EmbedConnection conn,
                 java.lang.String name)
           throws StandardException
Throws:
StandardException
Method Detail

getSavepointId

public int getSavepointId()
                   throws java.sql.SQLException
Retrieves the generated ID for the savepoint that this Savepoint object represents.

Specified by:
getSavepointId in interface java.sql.Savepoint
Returns:
the numeric ID of this savepoint
Throws:
java.sql.SQLException - if this is a named savepoint

getSavepointName

public java.lang.String getSavepointName()
                                  throws java.sql.SQLException
Retrieves the name of the savepoint that this Savepoint object represents.

Specified by:
getSavepointName in interface java.sql.Savepoint
Returns:
the name of this savepoint
Throws:
java.sql.SQLException - if this is an un-named savepoint

getInternalName

java.lang.String getInternalName()

sameConnection

boolean sameConnection(EmbedConnection con)

Built on Thu 2011-03-10 11:54:14+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.