@Published public abstract class BaseDatabaseItemReader extends javax.batch.api.chunk.AbstractItemReader
ItemReaderの抽象クラス。
本リーダを継承することで、リーダ専用のコネクションを使用してデータを読み込むことができる。
DB製品によっては、トランザクション制御時にカーソルが閉じられてしまうため、リーダ専用のコネクションを使用して読み込みを行っている。| Constructor and Description |
|---|
BaseDatabaseItemReader() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
doClose()
リーダの終了処理(リソースの解放など)を行う。
|
protected abstract void |
doOpen(java.io.Serializable checkpoint)
データベースからのデータ読み込みを行う。
|
void |
open(java.io.Serializable checkpoint) |
public final void open(java.io.Serializable checkpoint)
throws java.lang.Exception
open in interface javax.batch.api.chunk.ItemReaderopen in class javax.batch.api.chunk.AbstractItemReaderjava.lang.Exceptionpublic final void close()
throws java.lang.Exception
close in interface javax.batch.api.chunk.ItemReaderclose in class javax.batch.api.chunk.AbstractItemReaderjava.lang.Exceptionprotected abstract void doOpen(java.io.Serializable checkpoint)
throws java.lang.Exception
checkpoint - チェックポイントjava.lang.Exception - 発生した例外protected void doClose()
throws java.lang.Exception
java.lang.Exception - 発生した例外