public abstract class AbstractScanUpdater extends Object
| Constructor and Description |
|---|
AbstractScanUpdater()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
accept(int index,
Object scannedObject)
Filters object.
|
boolean |
acceptInNewTx(int index,
Object scannedObject)
Filters object in transaction.
|
Map<String,Serializable> |
getParams()
Gets parameters adapted from configuration.
|
abstract Object |
initialize(int index,
Object scannedObject)
Initialize scanned object if necessary.
|
Object |
initializeInNewTx(int index,
Object scannedObject)
Initialize scanned object in transaction if necessary.
|
void |
setCfgParams(Map<String,Serializable> cfgParams) |
abstract Object |
toModel(Object scannedObject)
Adapts directive results to other object if necessary.
|
abstract Object |
update(int index,
Object scannedObject)
Prepare object for next scan.
|
Object |
updateInNewTx(int index,
Object scannedObject)
Prepare object for next scan in transaction.
|
abstract Object |
updateOnError(int index,
Object scannedObject)
Prepare object for next scan if error occurs.
|
Object |
updateOnErrorInTx(int index,
Object scannedObject)
Prepare object for next scan if error occurs in transaction.
|
public void setCfgParams(Map<String,Serializable> cfgParams)
cfgParams - the cfgParams to setpublic Map<String,Serializable> getParams() throws Exception
Exceptionpublic abstract Object toModel(Object scannedObject) throws Exception
scannedObject - Exceptionpublic boolean acceptInNewTx(int index,
Object scannedObject)
throws Exception
index - scannedObject - Exceptionpublic abstract boolean accept(int index,
Object scannedObject)
throws Exception
index - scannedObject - Exceptionpublic Object initializeInNewTx(int index, Object scannedObject) throws Exception
index - scannedObject - Exceptionpublic abstract Object initialize(int index, Object scannedObject) throws Exception
scannedObject - Exceptionpublic Object updateInNewTx(int index, Object scannedObject) throws Exception
index - scannedObject - Exceptionpublic abstract Object update(int index, Object scannedObject) throws Exception
scannedObject - Exceptionpublic Object updateOnErrorInTx(int index, Object scannedObject) throws Exception
index - scannedObject - ExceptionCopyright © 2019. All rights reserved.