com.nexacro.uiadapter17.spring.dao.ibatis
Class SqlMapClientRowHandler

java.lang.Object
  extended by com.nexacro.uiadapter17.spring.dao.ibatis.SqlMapClientRowHandler
All Implemented Interfaces:
com.ibatis.sqlmap.client.event.RowHandler

public class SqlMapClientRowHandler
extends Object
implements com.ibatis.sqlmap.client.event.RowHandler

ibatis를 사용하여 nexacro platform으로 대용량 데이터를 전송하려고 할때 사용되는 RowHandler 이다.

아래와 같은 형식으로 처리하며, 쿼리가 실행한 후 남아 있는 데이터가 존재할 수 있기 때문에 전송되지 않은 데이터를 전송한다.

SqlMapClientRowHandler rowHandler = new SqlMapClientRowHandler(firstRowHandler, sendName, firstRowCount);
getSqlMapClientTemplate().queryWithRowHandler("largeDataDAO.selectLargeData", null, rowHandler);

// send remain data..
rowHandler.sendRemainData();
 
 

Since:
08.17.2015
Version:
1.0
Author:
Park SeongMin
See Also:

Constructor Summary
SqlMapClientRowHandler(com.nexacro.uiadapter17.spring.core.data.NexacroFirstRowHandler firstRowHandler, String resultName, int firstRowCount)
           
 
Method Summary
 com.nexacro17.xapi.data.DataSet getDataSet()
           
 void handleRow(Object valueObject)
           
 void sendRemainData()
          데이터 분할 전송 후 남아 있는 데이터를 전송한다.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlMapClientRowHandler

public SqlMapClientRowHandler(com.nexacro.uiadapter17.spring.core.data.NexacroFirstRowHandler firstRowHandler,
                              String resultName,
                              int firstRowCount)
Method Detail

handleRow

public void handleRow(Object valueObject)
Specified by:
handleRow in interface com.ibatis.sqlmap.client.event.RowHandler

sendRemainData

public void sendRemainData()
데이터 분할 전송 후 남아 있는 데이터를 전송한다.


getDataSet

public com.nexacro17.xapi.data.DataSet getDataSet()


Copyright © 2018. All rights reserved.