T - Type of the query result.C - Context for query executionpublic class WriteQueryLoggingDecorator<T,C> extends WriteQueryDecorator<T,C>
| Constructor and Description |
|---|
WriteQueryLoggingDecorator(WriteQuery<T,C> update,
org.slf4j.Logger log)
Decorator for write query operations to avail logging support.
|
public WriteQueryLoggingDecorator(WriteQuery<T,C> update, org.slf4j.Logger log)
update - WriteQuery to be executedlog - Instance of slf4j logger framework.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 © 2014. All Rights Reserved.