public static class ERXJDBCAdaptor.Context
extends com.webobjects.jdbcadaptor.JDBCContext
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
Constructor and Description |
---|
Context(com.webobjects.eoaccess.EOAdaptor eoadaptor) |
Modifier and Type | Method and Description |
---|---|
protected com.webobjects.jdbcadaptor.JDBCChannel |
_cachedAdaptorChannel() |
void |
beginTransaction() |
boolean |
connect() |
com.webobjects.eoaccess.EOAdaptorChannel |
createAdaptorChannel() |
protected com.webobjects.jdbcadaptor.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, transactionNestingLevel
public static final String IGNORE_JNDI_CONFIGURATION_KEY
public void setupJndiConfiguration() throws com.webobjects.jdbcadaptor.JDBCAdaptorException
er.extensions.ERXJDBCAdaptor.ignoreJNDIConfiguration
to true in order to suppress
this messages.setupJndiConfiguration
in class com.webobjects.jdbcadaptor.JDBCContext
com.webobjects.jdbcadaptor.JDBCAdaptorException
public void rollbackTransaction()
rollbackTransaction
in class com.webobjects.jdbcadaptor.JDBCContext
public boolean connect() throws com.webobjects.jdbcadaptor.JDBCAdaptorException
connect
in class com.webobjects.jdbcadaptor.JDBCContext
com.webobjects.jdbcadaptor.JDBCAdaptorException
protected com.webobjects.jdbcadaptor.JDBCChannel createJDBCChannel()
protected com.webobjects.jdbcadaptor.JDBCChannel _cachedAdaptorChannel()
_cachedAdaptorChannel
in class com.webobjects.jdbcadaptor.JDBCContext
public com.webobjects.eoaccess.EOAdaptorChannel createAdaptorChannel()
createAdaptorChannel
in class com.webobjects.jdbcadaptor.JDBCContext
public void disconnect() throws com.webobjects.jdbcadaptor.JDBCAdaptorException
disconnect
in class com.webobjects.jdbcadaptor.JDBCContext
com.webobjects.jdbcadaptor.JDBCAdaptorException
public void beginTransaction()
beginTransaction
in class com.webobjects.jdbcadaptor.JDBCContext
public void transactionDidCommit()
transactionDidCommit
in class com.webobjects.eoaccess.EOAdaptorContext
public void transactionDidRollback()
transactionDidRollback
in class com.webobjects.eoaccess.EOAdaptorContext
Copyright © 2002 – 2020 Project Wonder.