er.extensions
Class ERXAdaptorChannelDelegate
java.lang.Object
er.extensions.ERXAdaptorChannelDelegate
- public class ERXAdaptorChannelDelegate
- extends Object
Tracks and logs the SQL that gets sent to the database. If the logger
log4j.category.er.extensions.ERXAdaptorChannelDelegate.sqlLogging=DEBUG
and the milliseconds used exceed the time specified in the system property
er.extensions.ERXSQLExpressionTracker.maxMilliSeconds
, then the SQL expression is logged together with the
time used and the parameters.
NOTE: to get patched into EOF, this class registers itself for the
EODatabaseContext.DatabaseChannelNeededNotification
notification and creates a new channel. If you
would like to handle creation of the channel yourself *and* you need the logging feature, you need to:
- set the er.extensions.ERXAdaptorChannelDelegate.enabled=false in your properties, which will prevent creation of the channel here
- create the channel yourself and set the delegate to
ERXAdaptorChannelDelegate.defaultDelegate();
otherwise you just need to set er.extensions.ERXAdaptorChannelDelegate.enabled=true
- Author:
- ak
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ERXAdaptorChannelDelegate
public ERXAdaptorChannelDelegate()
setupDelegate
public static void setupDelegate()
delegate
public static ERXAdaptorChannelDelegate delegate()
adaptorChannelDidEvaluateExpression
public void adaptorChannelDidEvaluateExpression(EOAdaptorChannel channel,
EOSQLExpression expression)
adaptorChannelShouldEvaluateExpression
public boolean adaptorChannelShouldEvaluateExpression(EOAdaptorChannel channel,
EOSQLExpression expression)
setMaxMilliSeconds
public void setMaxMilliSeconds(long value)
dataBaseChannelNeeded
public void dataBaseChannelNeeded(NSNotification n)
Copyright © 2002 – 2004 Project Wonder.