|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.jdbc.ConnectionChild
org.apache.derby.impl.jdbc.EmbedSavepoint30
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
Savepoint
Field Summary | |
protected static boolean |
CLOSE
|
protected InternalDriver |
factory
Factory for JDBC objects to be created. |
protected EmbedConnection |
localConn
|
protected static boolean |
NOCLOSE
|
private int |
savepointID
|
private java.lang.String |
savepointName
|
Constructor Summary | |
(package private) |
EmbedSavepoint30(EmbedConnection conn,
java.lang.String name)
|
Method Summary | |
protected void |
commitIfAutoCommit()
Perform a commit if autocommit is enabled. |
protected void |
commitIfNeeded()
Perform a commit if one is needed. |
protected java.util.Calendar |
getCal()
Get and save a unique calendar object for this JDBC object. |
protected java.lang.Object |
getConnectionSynchronization()
Return an object to be used for connection synchronization. |
ContextManager |
getContextManager()
|
Database |
getDatabase()
|
protected EmbedConnection |
getEmbedConnection()
Return a reference to the EmbedConnection |
(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. |
protected java.sql.SQLException |
handleException(java.lang.Throwable t)
Handle any exception. |
protected java.sql.SQLException |
handleException(java.lang.Throwable t,
boolean close)
Handle any exception. |
protected void |
needCommit()
If Autocommit is on, note that a commit is needed. |
protected java.sql.SQLException |
newSQLException(java.lang.String messageId)
|
protected java.sql.SQLException |
newSQLException(java.lang.String messageId,
java.lang.Object arg1)
|
protected java.sql.SQLException |
newSQLException(java.lang.String messageId,
java.lang.Object arg1,
java.lang.Object arg2)
|
protected void |
restoreContextStack()
Setup the context stack (a.k.a. context manager) for this connection. |
(package private) boolean |
sameConnection(EmbedConnection con)
|
protected void |
setupContextStack()
Setup the context stack (a.k.a. context manager) for this connection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private final java.lang.String savepointName
private final int savepointID
protected static final boolean CLOSE
protected static final boolean NOCLOSE
protected EmbedConnection localConn
protected final InternalDriver factory
Constructor Detail |
EmbedSavepoint30(EmbedConnection conn, java.lang.String name) throws StandardException
Method Detail |
public int getSavepointId() throws java.sql.SQLException
getSavepointId
in interface java.sql.Savepoint
java.sql.SQLException
- if this is a named savepointpublic java.lang.String getSavepointName() throws java.sql.SQLException
getSavepointName
in interface java.sql.Savepoint
java.sql.SQLException
- if this is an un-named savepointjava.lang.String getInternalName()
boolean sameConnection(EmbedConnection con)
protected final EmbedConnection getEmbedConnection()
protected final java.lang.Object getConnectionSynchronization()
protected final java.sql.SQLException handleException(java.lang.Throwable t) throws java.sql.SQLException
java.sql.SQLException
- thrown if can't handleEmbedConnection.handleException(java.lang.Throwable)
protected final java.sql.SQLException handleException(java.lang.Throwable t, boolean close) throws java.sql.SQLException
java.sql.SQLException
- thrown if can't handleEmbedConnection.handleException(java.lang.Throwable)
protected final void needCommit()
EmbedConnection.needCommit
protected final void commitIfNeeded() throws java.sql.SQLException
java.sql.SQLException
- thrown on failureEmbedConnection.commitIfNeeded()
protected final void commitIfAutoCommit() throws java.sql.SQLException
java.sql.SQLException
- thrown on failureEmbedConnection.commitIfNeeded()
protected final void setupContextStack() throws java.sql.SQLException
java.sql.SQLException
- thrown on failureEmbedConnection.setupContextStack()
protected final void restoreContextStack() throws java.sql.SQLException
java.sql.SQLException
- thrown on failureEmbedConnection.restoreContextStack()
public ContextManager getContextManager()
public Database getDatabase()
protected java.util.Calendar getCal()
protected java.sql.SQLException newSQLException(java.lang.String messageId)
protected java.sql.SQLException newSQLException(java.lang.String messageId, java.lang.Object arg1)
protected java.sql.SQLException newSQLException(java.lang.String messageId, java.lang.Object arg1, java.lang.Object arg2)
|
Built on Mon 2007-06-04 09:58:47+0400, from revision ??? | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |