@Deprecated public class RepositoryRecordUpdater<T extends Model<ID>,ID extends Serializable> extends Object implements RecordWriter<T>
RecordWriter, that updates existing database records
using a RepositoryOperations implementation.| Constructor and Description |
|---|
RepositoryRecordUpdater(RepositoryOperations<T,ID> repository)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doAfter(Object... args)
Deprecated.
To be executed after the main component method is called for the last time.
|
void |
doBefore(Object... args)
Deprecated.
To be executed before the main component method is first called.
|
RepositoryOperations<T,ID> |
getRepository()
Deprecated.
|
void |
writeRecord(T entity)
Deprecated.
Writes the input
Model record to the target RepositoryOperations implementation,
using an update operation. |
public RepositoryRecordUpdater(RepositoryOperations<T,ID> repository)
public void writeRecord(T entity)
Model record to the target RepositoryOperations implementation,
using an update operation.writeRecord in interface RecordWriter<T extends Model<ID>>entity - public RepositoryOperations<T,ID> getRepository()
public void doBefore(Object... args) throws DataImportException
doBefore in interface DataImportComponentargs - an array of objects of any type.DataImportExceptionpublic void doAfter(Object... args) throws DataImportException
doAfter in interface DataImportComponentargs - an array of objects of any type.DataImportExceptionCopyright © 2016. All rights reserved.