|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.impl.jdbc.ConnectionChild
abstract class ConnectionChild
Any class in the embedded 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. |
(package private) InternalDriver |
factory
Factory for JDBC objects to be created. |
(package private) EmbedConnection |
localConn
|
| Constructor Summary | |
|---|---|
ConnectionChild(EmbedConnection conn)
|
|
| Method Summary | |
|---|---|
(package private) void |
commitIfAutoCommit()
Perform a commit if autocommit is enabled. |
(package private) void |
commitIfNeeded()
Perform a commit if one is needed. |
(package private) java.util.Calendar |
getCal()
Get and save a unique calendar object for this JDBC object. |
(package private) java.lang.Object |
getConnectionSynchronization()
Return an object to be used for connection synchronization. |
(package private) EmbedConnection |
getEmbedConnection()
Return a reference to the EmbedConnection |
(package private) java.sql.SQLException |
handleException(java.lang.Throwable t)
Handle any exception. |
(package private) void |
needCommit()
If Autocommit is on, note that a commit is needed. |
(package private) java.sql.SQLException |
newSQLException(java.lang.String messageId)
|
(package private) java.sql.SQLException |
newSQLException(java.lang.String messageId,
java.lang.Object arg1)
|
(package private) java.sql.SQLException |
newSQLException(java.lang.String messageId,
java.lang.Object arg1,
java.lang.Object arg2)
|
(package private) void |
restoreContextStack()
Setup the context stack (a.k.a. context manager) for this connection. |
protected static void |
restoreIntrFlagIfSeen(boolean pushStack,
EmbedConnection ec)
|
(package private) 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 |
|---|
EmbedConnection localConn
final InternalDriver factory
private java.util.Calendar cal
| Constructor Detail |
|---|
ConnectionChild(EmbedConnection conn)
| Method Detail |
|---|
final EmbedConnection getEmbedConnection()
final java.lang.Object getConnectionSynchronization()
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)final void needCommit()
EmbedConnection.needCommit
final void commitIfNeeded()
throws java.sql.SQLException
java.sql.SQLException - thrown on failureEmbedConnection.commitIfNeeded()
final void commitIfAutoCommit()
throws java.sql.SQLException
java.sql.SQLException - thrown on failureEmbedConnection.commitIfNeeded()
final void setupContextStack()
throws java.sql.SQLException
java.sql.SQLException - thrown on failureEmbedConnection.setupContextStack()
final void restoreContextStack()
throws java.sql.SQLException
java.sql.SQLException - thrown on failureEmbedConnection.restoreContextStack()java.util.Calendar getCal()
java.sql.SQLException newSQLException(java.lang.String messageId)
java.sql.SQLException newSQLException(java.lang.String messageId,
java.lang.Object arg1)
java.sql.SQLException newSQLException(java.lang.String messageId,
java.lang.Object arg1,
java.lang.Object arg2)
protected static void restoreIntrFlagIfSeen(boolean pushStack,
EmbedConnection ec)
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||