|
|||||||||
| 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
public class 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, dbMetadata, memoryState, needCommit, NO_MEM, 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 because Derby 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 |
| Methods inherited from interface java.sql.Connection |
|---|
createArrayOf, createNClob, createSQLXML, createStruct, getClientInfo, getClientInfo, isValid, setClientInfo, setClientInfo |
| Methods inherited from interface java.sql.Wrapper |
|---|
isWrapperFor, unwrap |
| Constructor Detail |
|---|
public EmbedConnection30(InternalDriver driver,
java.lang.String url,
java.util.Properties info)
throws java.sql.SQLException
java.sql.SQLExceptionpublic EmbedConnection30(EmbedConnection inputConnection)
| Method Detail |
|---|
public java.sql.Savepoint setSavepoint()
throws java.sql.SQLException
java.sql.SQLException - if a database access error occurs or
this Connection object is currently in auto-commit mode
public java.sql.Savepoint setSavepoint(java.lang.String name)
throws java.sql.SQLException
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 mode
private 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
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 mode
public void releaseSavepoint(java.sql.Savepoint savepoint)
throws java.sql.SQLException
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 transaction
private 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 Thu 2012-03-29 21:53:33+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||