|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.jdbc.EmbedConnection
org.apache.derby.impl.jdbc.EmbedConnection30
This class extends the EmbedConnection20 class in order to support new methods and classes that come with JDBC 3.0.
Supports
EmbedConnection
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(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 java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public EmbedConnection30(InternalDriver driver, java.lang.String url, java.util.Properties info) throws java.sql.SQLException
public EmbedConnection30(EmbedConnection inputConnection)
Method Detail |
public java.sql.Savepoint setSavepoint() throws java.sql.SQLException
setSavepoint
in interface java.sql.Connection
setSavepoint
in class EmbedConnection
java.sql.SQLException
- if a database access error occurs or
this Connection object is currently in auto-commit modepublic java.sql.Savepoint setSavepoint(java.lang.String name) throws java.sql.SQLException
setSavepoint
in interface java.sql.Connection
setSavepoint
in class EmbedConnection
name
- A String containing the name of the savepoint
java.sql.SQLException
- if a database access error occurs or
this Connection object is currently in auto-commit modeprivate java.sql.Savepoint commonSetSavepointCode(java.lang.String name, boolean userSuppliedSavepointName) throws java.sql.SQLException
name
- A String containing the name of the savepoint. Will be null if this is an unnamed savepointuserSuppliedSavepointName
- If true means it's a named user defined savepoint.
java.sql.SQLException
public void rollback(java.sql.Savepoint savepoint) throws java.sql.SQLException
rollback
in interface java.sql.Connection
rollback
in class EmbedConnection
savepoint
- The Savepoint object to rollback to
java.sql.SQLException
- if a database access error occurs,
the Savepoint object is no longer valid, or this Connection
object is currently in auto-commit modepublic void releaseSavepoint(java.sql.Savepoint savepoint) throws java.sql.SQLException
releaseSavepoint
in interface java.sql.Connection
releaseSavepoint
in class EmbedConnection
savepoint
- The Savepoint object to be removed
java.sql.SQLException
- if a database access error occurs or the
given Savepoint object is not a valid savepoint in the current transactionprivate void verifySavepointCommandIsAllowed() throws java.sql.SQLException
java.sql.SQLException
private void verifySavepointArg(java.sql.Savepoint savepoint) throws java.sql.SQLException
java.sql.SQLException
|
Built on Tue 2006-10-10 19:23:47+0200, from revision exported | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |