public class RowEntryConsistencyInterceptor extends Object implements LoadInterceptor<RowEntryModel>, ValidateInterceptor<RowEntryModel>
| Modifier and Type | Field and Description |
|---|---|
static Logger |
LOG |
| Constructor and Description |
|---|
RowEntryConsistencyInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
onLoad(RowEntryModel row,
InterceptorContext ctx)
If a model is loaded from the database this method is called by the model service.
|
void |
onValidate(RowEntryModel row,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
public void onLoad(RowEntryModel row, InterceptorContext ctx) throws InterceptorException
LoadInterceptoronLoad in interface LoadInterceptor<RowEntryModel>row - the model to be loadedctx - the InterceptorContextInterceptorException - if the model could not be loadedpublic void onValidate(RowEntryModel row, InterceptorContext ctx) throws InterceptorException
ValidateInterceptormodelService.saveAll() method. Validates the values of the given model.onValidate in interface ValidateInterceptor<RowEntryModel>row - the model which values has to be validatedctx - the InterceptorContextInterceptorException - if any values of the model are not valid.Copyright © 2017 SAP SE. All Rights Reserved.