Spring Batch - Processor


return null를 할 경우 어떻게 처리 될까 궁금하여 =0=;;

복사 & 붙이기 ^^

return null item이 진행 되지 않는다..
이말은 즉 writer에게 넘어가지 않는다.
ㅡ0- transaction에서 동일한 id가 입력되어 오류가 발생 했는데.
set를 이용하여 id 체크하고 중복이면 null를 뱉어내면 크크크 문제가 해결될듯..

process

O process(I item)
          throws Exception
Process the provided item, returning a potentially modified or new item for continued processing. If the returned result is null, it is assumed that processing of the item should not continue.
Parameters:
item - to be processed
Returns:
potentially modified or new item for continued processing, null if processing of the provided item should not continue.
Throws:
Exception

댓글

이 블로그의 인기 게시물

Spring Batch - JobParameters Default Value 만들기

Hsqldb Server 재기동 시 오류