Top Description Fields Constructors Methods
org.apache.derby.impl.jdbc

pack-priv abstract Class ConnectionChild

extends Object
Class Inheritance
Known Direct Subclasses
org.apache.derby.impl.jdbc.EmbedBlob, org.apache.derby.impl.jdbc.EmbedClob, org.apache.derby.impl.jdbc.EmbedDatabaseMetaData, org.apache.derby.impl.jdbc.EmbedResultSet, org.apache.derby.impl.jdbc.EmbedSavepoint, org.apache.derby.impl.jdbc.EmbedStatement
Imports
org.apache.derby.iapi.jdbc.InternalDriver, org.apache.derby.iapi.sql.conn.LanguageConnectionContext, org.apache.derby.iapi.util.InterruptStatus, java.sql.SQLException

Any class in the embedded JDBC driver (ie this package) that needs to refer back to the EmbedConnection object extends this class.

Field Summary

Modifier and TypeField and Description
private Calendar
cal

Calendar for data operations.

pack-priv final InternalDriver
factory

Factory for JDBC objects to be created.

private LanguageConnectionContext
lcc

Cached LanguageConnectionContext

pack-priv EmbedConnection

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv final void
commitIfAutoCommit()

Perform a commit if autocommit is enabled.

pack-priv final void
commitIfNeeded()

Perform a commit if one is needed.

pack-priv Calendar
getCal()

Get and save a unique calendar object for this JDBC object.

pack-priv final Object
getConnectionSynchronization()

Return an object to be used for connection synchronization.

pack-priv final EmbedConnection
getEmbedConnection()

Return a reference to the EmbedConnection

pack-priv LanguageConnectionContext
getLanguageConnectionContext(final EmbedConnection conn)

Get and cache the LanguageConnectionContext for this connection.

pack-priv static LanguageConnectionContext
getLCC(final EmbedConnection conn)

Gets the LanguageConnectionContext for this connection.

pack-priv final SQLException
handleException(Throwable t)

Handle any exception.

pack-priv final void
needCommit()

If Autocommit is on, note that a commit is needed.

pack-priv static SQLException
newSQLException(String messageId, Object... args)

pack-priv final void
restoreContextStack()

Setup the context stack (a.k.a. context manager) for this connection.

protected static void
restoreIntrFlagIfSeen(boolean pushStack, EmbedConnection ec)

pack-priv final void
setupContextStack()

Setup the context stack (a.k.a. context manager) for this connection.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

calback to summary
private Calendar cal

Calendar for data operations.

factoryback to summary
pack-priv final InternalDriver factory

Factory for JDBC objects to be created.

lccback to summary
private LanguageConnectionContext lcc

Cached LanguageConnectionContext

localConnback to summary
pack-priv EmbedConnection localConn

Constructor Detail

ConnectionChildback to summary
pack-priv ConnectionChild(EmbedConnection conn)

Method Detail

commitIfAutoCommitback to summary
pack-priv final void commitIfAutoCommit() throws SQLException

Perform a commit if autocommit is enabled.

Exceptions
SQLException:
thrown on failure
See Also
EmbedConnection#commitIfNeeded
commitIfNeededback to summary
pack-priv final void commitIfNeeded() throws SQLException

Perform a commit if one is needed.

Exceptions
SQLException:
thrown on failure
See Also
EmbedConnection#commitIfNeeded
getCalback to summary
pack-priv Calendar getCal()

Get and save a unique calendar object for this JDBC object. No need to synchronize because multiple threads should not be using a single JDBC object. Even if they do there is only a small window where each would get its own Calendar for a single call.

getConnectionSynchronizationback to summary
pack-priv final Object getConnectionSynchronization()

Return an object to be used for connection synchronization.

getEmbedConnectionback to summary
pack-priv final EmbedConnection getEmbedConnection()

Return a reference to the EmbedConnection

getLanguageConnectionContextback to summary
pack-priv LanguageConnectionContext getLanguageConnectionContext(final EmbedConnection conn)

Get and cache the LanguageConnectionContext for this connection.

getLCCback to summary
pack-priv static LanguageConnectionContext getLCC(final EmbedConnection conn)

Gets the LanguageConnectionContext for this connection.

handleExceptionback to summary
pack-priv final SQLException handleException(Throwable t) throws SQLException

Handle any exception.

Exceptions
SQLException:
thrown if can't handle
See Also
EmbedConnection#handleException
needCommitback to summary
pack-priv final void needCommit()

If Autocommit is on, note that a commit is needed.

See Also
EmbedConnection#needCommit
newSQLExceptionback to summary
pack-priv static SQLException newSQLException(String messageId, Object... args)
restoreContextStackback to summary
pack-priv final void restoreContextStack() throws SQLException

Setup the context stack (a.k.a. context manager) for this connection.

Exceptions
SQLException:
thrown on failure
See Also
EmbedConnection#restoreContextStack
restoreIntrFlagIfSeenback to summary
protected static void restoreIntrFlagIfSeen(boolean pushStack, EmbedConnection ec)
setupContextStackback to summary
pack-priv final void setupContextStack() throws SQLException

Setup the context stack (a.k.a. context manager) for this connection.

Exceptions
SQLException:
thrown on failure
See Also
EmbedConnection#setupContextStack