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, transactionNestingLevel
public 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 JDBCContext
JDBCAdaptorException
public void rollbackTransaction()
rollbackTransaction
in class JDBCContext
public boolean connect() throws JDBCAdaptorException
connect
in class JDBCContext
JDBCAdaptorException
protected JDBCChannel createJDBCChannel()
protected JDBCChannel _cachedAdaptorChannel()
_cachedAdaptorChannel
in class JDBCContext
public EOAdaptorChannel createAdaptorChannel()
createAdaptorChannel
in class JDBCContext
public void disconnect() throws JDBCAdaptorException
disconnect
in class JDBCContext
JDBCAdaptorException
public void beginTransaction()
beginTransaction
in class JDBCContext
public void transactionDidCommit()
transactionDidCommit
in class EOAdaptorContext
public void transactionDidRollback()
transactionDidRollback
in class EOAdaptorContext
Copyright © 2002 – 2024 Project Wonder.