public static class ERXJDBCAdaptor.Context extends JDBCContext
EOAdaptorContext.Delegate| Modifier and Type | Field and Description |
|---|---|
static String |
IGNORE_JNDI_CONFIGURATION_KEY |
_cachedChannel, _connectionSupportTransaction, _jdbcConnection, ANSI92ConformanceKey, ANSIEntryConformance, ANSIFullConformance, ANSIIntermediateConformance, CreateParamsKey, DBMSNameKey, DefaultJDBCTypeKey, DriverNameKey, DriverVersionKey, IdentifierQuoteStringKey, InternalTypeKey, MaxScaleKey, MinScaleKey, NonNullableColumnsKey, NullableKey, PrecisionKey, SearchableKey, StringFunctionsKey_adaptor, _channels, _delegate, _delegateRespondsTo_didBegin, _delegateRespondsTo_didCommit, _delegateRespondsTo_didRollback, _delegateRespondsTo_shouldBegin, _delegateRespondsTo_shouldCommit, _delegateRespondsTo_shouldConnect, _delegateRespondsTo_shouldRollback, _hasOpenTransaction, AdaptorContextBeginTransactionNotification, AdaptorContextCommitTransactionNotification, AdaptorContextRollbackTransactionNotification| Modifier and Type | Method and Description |
|---|---|
protected JDBCChannel |
_cachedAdaptorChannel() |
void |
beginTransaction() |
boolean |
connect() |
EOAdaptorChannel |
createAdaptorChannel() |
protected JDBCChannel |
createJDBCChannel() |
void |
disconnect() |
void |
rollbackTransaction()
Re-implemented to fix: http://www.mail-archive.com/dspace-tech@lists.sourceforge.net/msg06063.html.
|
void |
setupJndiConfiguration()
In servlet context, when not using JNDI to obtain the database channel, you will get annoying error messages like
javax.naming.NameNotFoundException: Name "comp/env/jdbc" not found in context.
|
void |
transactionDidCommit() |
void |
transactionDidRollback() |
_setAutoCommit, commitTransaction, connection, handleDroppedConnection_newPrimaryKey, _registerAdaptorChannel, _unregisterAdaptorChannel, adaptor, canNestTransactions, channels, defaultDelegate, delegate, hasBusyChannels, hasOpenChannels, hasOpenTransaction, setDefaultDelegate, setDelegate, transactionDidBegin, transactionNestingLevelpublic static final String IGNORE_JNDI_CONFIGURATION_KEY
public Context(EOAdaptor eoadaptor)
public void setupJndiConfiguration()
throws JDBCAdaptorException
er.extensions.ERXJDBCAdaptor.ignoreJNDIConfiguration to true in order to suppress
this messages.setupJndiConfiguration in class JDBCContextJDBCAdaptorExceptionpublic void rollbackTransaction()
rollbackTransaction in class JDBCContextpublic boolean connect()
throws JDBCAdaptorException
connect in class JDBCContextJDBCAdaptorExceptionprotected JDBCChannel createJDBCChannel()
protected JDBCChannel _cachedAdaptorChannel()
_cachedAdaptorChannel in class JDBCContextpublic EOAdaptorChannel createAdaptorChannel()
createAdaptorChannel in class JDBCContextpublic void disconnect()
throws JDBCAdaptorException
disconnect in class JDBCContextJDBCAdaptorExceptionpublic void beginTransaction()
beginTransaction in class JDBCContextpublic void transactionDidCommit()
transactionDidCommit in class EOAdaptorContextpublic void transactionDidRollback()
transactionDidRollback in class EOAdaptorContextCopyright © 2002 – 2025 Project Wonder.