Example usage for org.apache.ibatis.session ResultContext getResultCount

List of usage examples for org.apache.ibatis.session ResultContext getResultCount

Introduction

In this page you can find the example usage for org.apache.ibatis.session ResultContext getResultCount.

Prototype

int getResultCount();

Source Link

Usage

From source file:jp.co.ctc_g.jse.core.csv.mybatis.AbstractCSVResultHandlerImpl.java

License:Apache License

/**
 * {@inheritDoc}//from  ww  w.ja va 2  s .c om
 */
@Override
public void handleResult(ResultContext context) {
    if (L.isDebugEnabled()) {
        int cnt = context.getResultCount();
        L.debug(Strings.substitute(R.getString("D-CSV-MYBATIS#0001"),
                Maps.hash("count", Integer.valueOf(cnt))));
    }
    write(context);
}