|
Project Wonder 5.0.0.8787 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecter.extensions.eof.ERXAdaptorChannelDelegate
public class ERXAdaptorChannelDelegate
Tracks and logs the SQL that gets sent to the database. If the milliseconds
used exceed the time specified in the system property
er.extensions.ERXSQLExpressionTracker.trace.milliSeconds.[debug|info|warn|error],
and the entity name matches the regular expression
er.extensions.ERXSQLExpressionTracker.trace.entityMatchPattern
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:
ERXAdaptorChannelDelegate.defaultDelegate()
| Constructor Summary | |
|---|---|
ERXAdaptorChannelDelegate()
|
|
| Method Summary | |
|---|---|
void |
adaptorChannelDidEvaluateExpression(EOAdaptorChannel channel,
EOSQLExpression expression)
|
void |
adaptorChannelDidFetchRow(EOAdaptorChannel eoadaptorchannel,
NSMutableDictionary nsmutabledictionary)
Implemented so the the thread checks if it should get interrupted. |
boolean |
adaptorChannelShouldEvaluateExpression(EOAdaptorChannel channel,
EOSQLExpression expression)
|
void |
dataBaseChannelNeeded(NSNotification n)
Answers to the EODataBaseChannelNeeded notification. |
static ERXAdaptorChannelDelegate |
delegate()
|
void |
dumpLastStatements()
Dump the last collected statements to the log. |
LinkedList |
lastStatements()
Return the last collected SQL statements |
static void |
setupDelegate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ERXAdaptorChannelDelegate()
| Method Detail |
|---|
public static void setupDelegate()
public static ERXAdaptorChannelDelegate delegate()
public void adaptorChannelDidFetchRow(EOAdaptorChannel eoadaptorchannel,
NSMutableDictionary nsmutabledictionary)
eoadaptorchannel - nsmutabledictionary -
public void adaptorChannelDidEvaluateExpression(EOAdaptorChannel channel,
EOSQLExpression expression)
public boolean adaptorChannelShouldEvaluateExpression(EOAdaptorChannel channel,
EOSQLExpression expression)
public void dataBaseChannelNeeded(NSNotification n)
n - public void dumpLastStatements()
er.extensions.ERXSQLExpressionTracker.collectLastStatements
set to true to collect executed statements.
public LinkedList lastStatements()
|
Last updated: Wed, Jan 7, 2009 04:35 AM EST | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||