public class ERJDBCContext
extends com.webobjects.jdbcadaptor.JDBCContext
_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 |
---|
ERJDBCContext(ERJDBCAdaptor adaptor) |
Modifier and Type | Method and Description |
---|---|
void |
checkoutConnection() |
void |
freeConnection() |
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.
|
_cachedAdaptorChannel, _setAutoCommit, beginTransaction, commitTransaction, connect, connection, createAdaptorChannel, disconnect, handleDroppedConnection, rollbackTransaction
_newPrimaryKey, _registerAdaptorChannel, _unregisterAdaptorChannel, adaptor, canNestTransactions, channels, defaultDelegate, delegate, hasBusyChannels, hasOpenChannels, hasOpenTransaction, setDefaultDelegate, setDelegate, transactionDidBegin, transactionDidCommit, transactionDidRollback, transactionNestingLevel
public ERJDBCContext(ERJDBCAdaptor adaptor)
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 checkoutConnection()
public void freeConnection()
Copyright © 2002 – 2020 Project Wonder.