Project Wonder 5.0

er.extensions.jdbc
Class ERXJDBCAdaptor

java.lang.Object
  extended by com.webobjects.eoaccess.EOAdaptor
      extended by com.webobjects.jdbcadaptor.JDBCAdaptor
          extended by er.extensions.jdbc.ERXJDBCAdaptor

public class ERXJDBCAdaptor
extends com.webobjects.jdbcadaptor.JDBCAdaptor

Subclass of the JDBC adaptor and accompanying classes that supports connection pooling and posting of adaptor operation notifications. Will get patched into the runtime via the usual class name magic if the property er.extensions.ERXJDBCAdaptor.className is set to this class's name or another subclass of JDBCAdaptor. The connection pooling will be enabled if the system property er.extensions.ERXJDBCAdaptor.useConnectionBroker is set.

Author:
ak

Nested Class Summary
static class ERXJDBCAdaptor.Channel
          Channel subclass to support notification posting.
static interface ERXJDBCAdaptor.ConnectionBroker
           
static class ERXJDBCAdaptor.Context
          Context subclass that uses connection pooling.
 
Nested classes/interfaces inherited from class com.webobjects.eoaccess.EOAdaptor
com.webobjects.eoaccess.EOAdaptor.Delegate
 
Field Summary
static java.lang.String CLASS_NAME_KEY
           
static org.apache.log4j.Logger log
           
static java.lang.String USE_CONNECTION_BROKER_KEY
           
 
Fields inherited from class com.webobjects.jdbcadaptor.JDBCAdaptor
_cachedContext, _expressionFactory, _jdbcInfo, _plugin, _varcharMaxLength, DataSourceJndiNameKey, DriverKey, JDBCInfoKey, PasswordKey, PlugInKey, TypeInfoKey, URLKey, UsernameKey
 
Fields inherited from class com.webobjects.eoaccess.EOAdaptor
_connectionDictionary, _contexts, _delegate, _delegateRespondsTo_processValue, _delegateRespondsTo_reconDict, _expressionClass, _expressionClassName, _name
 
Constructor Summary
ERXJDBCAdaptor(java.lang.String s)
           
 
Method Summary
protected  com.webobjects.jdbcadaptor.JDBCContext _cachedAdaptorContext()
           
protected  java.sql.Connection checkoutConnection()
           
 com.webobjects.eoaccess.EOAdaptorContext createAdaptorContext()
           
 ERXJDBCAdaptor.Context createJDBCContext()
           
protected  void freeConnection(java.sql.Connection connection)
           
protected  com.webobjects.foundation.NSDictionary jdbcInfo()
           
static void registerJDBCAdaptor()
           
protected  com.webobjects.foundation.NSDictionary typeInfo()
           
static boolean useConnectionBroker()
          Returns whether the connection broker is active.
 
Methods inherited from class com.webobjects.jdbcadaptor.JDBCAdaptor
_valueTypeCharForAttribute, assertConnectionDictionaryIsValid, assignExternalTypeForAttribute, canServiceModel, connectionDictionaryURL, connectionProperties, connectionURL, createAttribute, defaultExpressionClass, driverName, expressionFactory, externalTypeForJDBCType, externalTypesWithModel, fetchedValueForValue, getJDBCInfoWithConnectionDictionary, handleDroppedConnection, isDroppedConnectionException, isValidQualifierType, password, plugIn, setConnectionDictionary, stringRepresentationForJDBCType, synchronizationFactory, typeInfoForModel, username, varcharMaxLength
 
Methods inherited from class com.webobjects.eoaccess.EOAdaptor
_assignExternalNameForAttribute, _createDropDatabase, _recursivelyConvertEntity, _registerAdaptorContext, _unregisterAdaptorContext, adaptorWithModel, adaptorWithName, administrativeConnectionDictionaryForAdaptor, assignExternalInfoForAttribute, assignExternalInfoForEntireModel, assignExternalInfoForEntity, connectionDictionary, contexts, createDatabaseWithAdministrativeConnectionDictionary, defaultDelegate, delegate, dropDatabaseWithAdministrativeConnectionDictionary, expressionClass, expressionClassName, fetchedValueForDataValue, fetchedValueForDateValue, fetchedValueForNumberValue, fetchedValueForStringValue, hasOpenChannels, internalTypeForExternalType, name, prototypeAttributes, setDefaultDelegate, setDelegate, setExpressionClassName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static final org.apache.log4j.Logger log

USE_CONNECTION_BROKER_KEY

public static final java.lang.String USE_CONNECTION_BROKER_KEY
See Also:
Constant Field Values

CLASS_NAME_KEY

public static final java.lang.String CLASS_NAME_KEY
See Also:
Constant Field Values
Constructor Detail

ERXJDBCAdaptor

public ERXJDBCAdaptor(java.lang.String s)
Method Detail

useConnectionBroker

public static boolean useConnectionBroker()
Returns whether the connection broker is active.


registerJDBCAdaptor

public static void registerJDBCAdaptor()

_cachedAdaptorContext

protected com.webobjects.jdbcadaptor.JDBCContext _cachedAdaptorContext()
Overrides:
_cachedAdaptorContext in class com.webobjects.jdbcadaptor.JDBCAdaptor

jdbcInfo

protected com.webobjects.foundation.NSDictionary jdbcInfo()
Overrides:
jdbcInfo in class com.webobjects.jdbcadaptor.JDBCAdaptor

typeInfo

protected com.webobjects.foundation.NSDictionary typeInfo()
Overrides:
typeInfo in class com.webobjects.jdbcadaptor.JDBCAdaptor

createJDBCContext

public ERXJDBCAdaptor.Context createJDBCContext()

createAdaptorContext

public com.webobjects.eoaccess.EOAdaptorContext createAdaptorContext()
Overrides:
createAdaptorContext in class com.webobjects.jdbcadaptor.JDBCAdaptor

checkoutConnection

protected java.sql.Connection checkoutConnection()

freeConnection

protected void freeConnection(java.sql.Connection connection)

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.