T
- Type of the result of the queryC
- The context to execute the query.public class ReadQueryLoggingDecorator<T,C> extends ReadQueryDecorator<T,C>
DataStoreManager
should decorate the queries to use this decorator if
logging is enabled. delegate, log
Constructor and Description |
---|
ReadQueryLoggingDecorator(ReadQuery<T,C> query,
org.slf4j.Logger log)
Decorator for read query operations to avail logging support.
|
public T execute(C context) throws Exception
context
- Context of the query.NullPointerException
- In case of context is null.Exception
- Throws Exception in case of any error in query execute.Copyright © 2016. All Rights Reserved.