Project Wonder 5.0.0.8795

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 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
EOAdaptor.Delegate
 
Field Summary
static String CLASS_NAME_KEY
           
static Logger log
           
static 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(String s)
           
 
Method Summary
protected  JDBCContext _cachedAdaptorContext()
           
protected  Connection checkoutConnection()
           
 EOAdaptorContext createAdaptorContext()
           
 ERXJDBCAdaptor.Context createJDBCContext()
           
protected  void freeConnection(Connection connection)
           
protected  NSDictionary jdbcInfo()
           
static void registerJDBCAdaptor()
           
protected  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, plugInName, schemaSynchronizationFactory, 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, hasPlugIns, 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 Logger log

USE_CONNECTION_BROKER_KEY

public static final String USE_CONNECTION_BROKER_KEY
See Also:
Constant Field Values

CLASS_NAME_KEY

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

ERXJDBCAdaptor

public ERXJDBCAdaptor(String s)
Method Detail

useConnectionBroker

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


registerJDBCAdaptor

public static void registerJDBCAdaptor()

_cachedAdaptorContext

protected JDBCContext _cachedAdaptorContext()
Overrides:
_cachedAdaptorContext in class JDBCAdaptor

jdbcInfo

protected NSDictionary jdbcInfo()
Overrides:
jdbcInfo in class JDBCAdaptor

typeInfo

protected NSDictionary typeInfo()
Overrides:
typeInfo in class JDBCAdaptor

createJDBCContext

public ERXJDBCAdaptor.Context createJDBCContext()

createAdaptorContext

public EOAdaptorContext createAdaptorContext()
Overrides:
createAdaptorContext in class JDBCAdaptor

checkoutConnection

protected Connection checkoutConnection()

freeConnection

protected void freeConnection(Connection connection)

Last updated: Fri, Jan 9, 2009 • 04:35 AM EST

Copyright © 2002 – 2007 Project Wonder.