public class ColumnEntryConsistencyInterceptor extends Object implements LoadInterceptor<ColumnEntryModel>, ValidateInterceptor<ColumnEntryModel>
| Modifier and Type | Field and Description |
|---|---|
static Logger |
LOG |
| Constructor and Description |
|---|
ColumnEntryConsistencyInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
onLoad(ColumnEntryModel column,
InterceptorContext ctx)
If a model is loaded from the database this method is called by the model service.
|
void |
onValidate(ColumnEntryModel column,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
public void onLoad(ColumnEntryModel column, InterceptorContext ctx) throws InterceptorException
LoadInterceptoronLoad in interface LoadInterceptor<ColumnEntryModel>column - the model to be loadedctx - the InterceptorContextInterceptorException - if the model could not be loadedpublic void onValidate(ColumnEntryModel column, InterceptorContext ctx) throws InterceptorException
ValidateInterceptormodelService.saveAll() method. Validates the values of the given model.onValidate in interface ValidateInterceptor<ColumnEntryModel>column - 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.