Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.impl.jdbc
Class EmbedConnection30  view EmbedConnection30 download EmbedConnection30.java

java.lang.Object
  extended byorg.apache.derby.impl.jdbc.EmbedConnection
      extended byorg.apache.derby.impl.jdbc.EmbedConnection30
All Implemented Interfaces:
java.sql.Connection

public class EmbedConnection30
extends EmbedConnection

This class extends the EmbedConnection20 class in order to support new methods and classes that come with JDBC 3.0.

Supports


Field Summary
 
Fields inherited from class org.apache.derby.impl.jdbc.EmbedConnection
autoCommit, connectionHoldAbility, dbMetadata, factory, needCommit, rootConnection, tr
 
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
 
Constructor Summary
EmbedConnection30(EmbedConnection inputConnection)
           
EmbedConnection30(org.apache.derby.jdbc.InternalDriver driver, java.lang.String url, java.util.Properties info)
           
 
Method Summary
private  java.sql.Savepoint commonSetSavepointCode(java.lang.String name, boolean userSuppliedSavepointName)
          Creates a savepoint with the given name(if it is a named savepoint else we will generate a name becuase Cloudscape only supports named savepoints internally) in the current transaction and returns the new Savepoint object that represents it.
 void releaseSavepoint(java.sql.Savepoint savepoint)
          Removes the given Savepoint object from the current transaction.
 void rollback(java.sql.Savepoint savepoint)
          Undoes all changes made after the given Savepoint object was set.
 java.sql.Savepoint setSavepoint()
          Creates an unnamed savepoint in the current transaction and returns the new Savepoint object that represents it.
 java.sql.Savepoint setSavepoint(java.lang.String name)
          Creates a savepoint with the given name in the current transaction and returns the new Savepoint object that represents it.
private  void verifySavepointArg(java.sql.Savepoint savepoint)
           
private  void verifySavepointCommandIsAllowed()
           
 
Methods inherited from class org.apache.derby.impl.jdbc.EmbedConnection
addWarning, clearWarnings, close, commit, commitIfAutoCommit, commitIfNeeded, createStatement, createStatement, createStatement, finalize, getApplicationConnection, getAutoCommit, getCatalog, getConnectionSynchronization, getContextManager, getDatabase, getDBName, getEngineType, getHoldability, getLanguageConnection, getLocalDriver, getMetaData, getPrepareIsolation, getResultSetOrderId, getTR, getTransactionIsolation, getTypeMap, getWarnings, handleException, handleException, isClosed, isReadOnly, nativeSQL, needCommit, newSQLException, newSQLException, newSQLException, prepareCall, prepareCall, prepareCall, prepareMetaDataStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, resetFromPool, restoreContextStack, rollback, setApplicationConnection, setAutoCommit, setCatalog, setDrdaID, setHoldability, setInactive, setPrepareIsolation, setReadOnly, setTransactionIsolation, setTypeMap, setupContextStack, toString, transactionIsIdle, xa_commit, xa_prepare, xa_rollback
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EmbedConnection30

public EmbedConnection30(org.apache.derby.jdbc.InternalDriver driver,
                         java.lang.String url,
                         java.util.Properties info)
                  throws java.sql.SQLException

EmbedConnection30

public EmbedConnection30(EmbedConnection inputConnection)
Method Detail

setSavepoint

public java.sql.Savepoint setSavepoint()
                                throws java.sql.SQLException
Creates an unnamed savepoint in the current transaction and returns the new Savepoint object that represents it.


setSavepoint

public java.sql.Savepoint setSavepoint(java.lang.String name)
                                throws java.sql.SQLException
Creates a savepoint with the given name in the current transaction and returns the new Savepoint object that represents it.


commonSetSavepointCode

private java.sql.Savepoint commonSetSavepointCode(java.lang.String name,
                                                  boolean userSuppliedSavepointName)
                                           throws java.sql.SQLException
Creates a savepoint with the given name(if it is a named savepoint else we will generate a name becuase Cloudscape only supports named savepoints internally) in the current transaction and returns the new Savepoint object that represents it.


rollback

public void rollback(java.sql.Savepoint savepoint)
              throws java.sql.SQLException
Undoes all changes made after the given Savepoint object was set. This method should be used only when auto-commit has been disabled.


releaseSavepoint

public void releaseSavepoint(java.sql.Savepoint savepoint)
                      throws java.sql.SQLException
Removes the given Savepoint object from the current transaction. Any reference to the savepoint after it has been removed will cause an SQLException to be thrown


verifySavepointCommandIsAllowed

private void verifySavepointCommandIsAllowed()
                                      throws java.sql.SQLException

verifySavepointArg

private void verifySavepointArg(java.sql.Savepoint savepoint)
                         throws java.sql.SQLException