|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.jdbc.ConnectionChild
Any class in the local JDBC driver (ie this package) that needs to refer back to the EmbedConnection object extends this class.
Field Summary | |
private java.util.Calendar |
cal
Calendar for data operations. |
protected static boolean |
CLOSE
|
protected InternalDriver |
factory
Factory for JDBC objects to be created. |
protected EmbedConnection |
localConn
|
protected static boolean |
NOCLOSE
|
Constructor Summary | |
protected |
ConnectionChild(EmbedConnection conn)
|
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 |
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. |
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 |
protected static final boolean CLOSE
protected static final boolean NOCLOSE
protected EmbedConnection localConn
protected final InternalDriver factory
private java.util.Calendar cal
Constructor Detail |
protected ConnectionChild(EmbedConnection conn)
Method Detail |
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 |