
Public Member Functions | |
| void | adaptorChannelDidEvaluateExpression (EOAdaptorChannel channel, EOSQLExpression expression) |
| void | adaptorChannelDidFetchRow (EOAdaptorChannel eoadaptorchannel, NSMutableDictionary nsmutabledictionary) |
| boolean | adaptorChannelShouldEvaluateExpression (EOAdaptorChannel channel, EOSQLExpression expression) |
| synchronized void | dumpLastStatements () |
| LinkedList< String > | lastStatements () |
Static Public Member Functions | |
| static void | dataBaseChannelNeeded (NSNotification n) |
| static void | setupDelegate () |
Private Member Functions | |
| boolean | collectLastStatements () |
| int | numberOfStatementsToCollect () |
Private Attributes | |
| Boolean | _collectLastStatements |
| long | _lastMilliseconds |
| LinkedList | _lastStatements |
| Integer | _numberOfStatementsToCollect |
Static Private Attributes | |
| static Logger | log = Logger.getLogger(ERXAdaptorChannelDelegate.class) |
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. 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:
| void adaptorChannelDidEvaluateExpression | ( | EOAdaptorChannel | channel, | |
| EOSQLExpression | expression | |||
| ) |
| void adaptorChannelDidFetchRow | ( | EOAdaptorChannel | eoadaptorchannel, | |
| NSMutableDictionary | nsmutabledictionary | |||
| ) |
Implemented so the the thread checks if it should get interrupted.
| eoadaptorchannel | ||
| nsmutabledictionary |
| boolean adaptorChannelShouldEvaluateExpression | ( | EOAdaptorChannel | channel, | |
| EOSQLExpression | expression | |||
| ) |
| boolean collectLastStatements | ( | ) | [private] |
| static void dataBaseChannelNeeded | ( | NSNotification | n | ) | [static] |
Answers to the EODataBaseChannelNeeded notification. Creates a new EODatabaseChannel and sets its adaptorChannel delegate to a new instance of ERXAdaptorChannelDelegate.
| n |
| synchronized void dumpLastStatements | ( | ) |
Dump the last collected statements to the log. Use the property er.extensions.ERXSQLExpressionTracker.collectLastStatements set to true to collect executed statements.
| LinkedList<String> lastStatements | ( | ) |
Return the last collected SQL statements
| int numberOfStatementsToCollect | ( | ) | [private] |
| static void setupDelegate | ( | ) | [static] |
Boolean _collectLastStatements [private] |
long _lastMilliseconds [private] |
LinkedList _lastStatements [private] |
Integer _numberOfStatementsToCollect [private] |
Logger log = Logger.getLogger(ERXAdaptorChannelDelegate.class) [static, private] |
1.5.8