public class ERXAdaptorChannelDelegate extends Object
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:
new ERXAdaptorChannelDelegate()
Constructor and Description |
---|
ERXAdaptorChannelDelegate() |
Modifier and Type | Method and Description |
---|---|
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) |
static void |
dataBaseChannelNeeded(NSNotification n)
Answers to the EODataBaseChannelNeeded notification.
|
void |
dumpLastStatements()
Dump the last collected statements to the log.
|
LinkedList<String> |
lastStatements()
Return the last collected SQL statements
|
static void |
setupDelegate() |
public static void setupDelegate()
public void adaptorChannelDidFetchRow(EOAdaptorChannel eoadaptorchannel, NSMutableDictionary nsmutabledictionary)
eoadaptorchannel
- nsmutabledictionary
- public void adaptorChannelDidEvaluateExpression(EOAdaptorChannel channel, EOSQLExpression expression)
public boolean adaptorChannelShouldEvaluateExpression(EOAdaptorChannel channel, EOSQLExpression expression)
public static void dataBaseChannelNeeded(NSNotification n)
n
- public void dumpLastStatements()
er.extensions.ERXSQLExpressionTracker.collectLastStatements
set to true to collect executed statements.public LinkedList<String> lastStatements()
Copyright © 2002 – 2024 Project Wonder.