public abstract class AbstractDataProvider<T> extends java.lang.Object implements DataProvider
엑셀 데이터 정보 제공자 추상 클래스. 대량의 데이터인 경우, 일정 갯수(혹은 페이지) 단위로 데이터를 얻어서 주기 위한 구조를 가진다.
Thread에 안전하지 않다.
| Constructor and Description | 
|---|
AbstractDataProvider()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected abstract java.lang.Object | 
getCellValue(T data,
            int columnIndex)
주어진 데이타 중 columnIndex에 해당하는 값을 얻는다. 
 | 
protected abstract java.util.List<T> | 
getNextList()
다음 데이터 목록을 얻는다. 
 | 
boolean | 
hasNextRow()
다음 Row의 데이터가 있는지 여부를 돌려주고,
 있다면, 설정할 데이터를 다음 Row로 옮긴다. 
 | 
void | 
setCellValue(org.apache.poi.ss.usermodel.Cell cell,
            int columnIndex)
주어진 Cell에 값을 설정한다. 
 | 
public boolean hasNextRow()
DataProviderhasNextRow in interface DataProvidercom.koreantk.util.excel.DataProvider#hasNextRow()public void setCellValue(org.apache.poi.ss.usermodel.Cell cell,
                         int columnIndex)
DataProvidersetCellValue in interface DataProvidercell - 값을 설정할 Cell 객체.columnIndex - 컬럼 인덱스.com.koreantk.util.excel.DataProvider#setCellValue(org.apache.poi.ss.usermodel.Cell, int)protected abstract java.lang.Object getCellValue(T data, int columnIndex)
data - columnIndex - protected abstract java.util.List<T> getNextList()
다음 데이터 목록을 얻는다.
이 메쏘드 호출 결과 목록이 null이거나 빈 목록을 던져 주었을 때 더 이상 데이터가 없다고 판단한다.