java.lang.Object
org.apache.derby.impl.jdbc.EmbedConnection
org.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
- JSR169 - Subsetting only removes getTypeMap and setTypeMap, which references
java.util.Map which exists in Foundation and ee.miniumum. Thus the methods can
safely be left in the implementation for JSR169.
- JDBC 3.0 - Separate from JDBC 2.0 implementation as JDBC 3.0 introduces
a new class java.sql.Savepoint, which is referenced by java.sql.Connection.
| 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 |
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)
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