public static interface OfflineDBValidationManager.Validator
Modifier and Type | Method and Description |
---|---|
void |
validateObject(OfflineDBObjectProvider pro,
DBObject original,
DBObject update,
java.lang.String property)
Validates the given object change for the given provider.
|
void validateObject(OfflineDBObjectProvider pro, DBObject original, DBObject update, java.lang.String property) throws ValidationException
pro
- the offline database the validation is fororiginal
- the original object if this is an update, or null if it
is a createupdate
- the object definition to be validated - i.e. the new
version for an update, or the new object that's being created.property
- the specific property to validate, or null if all
properties are the be validated.ValidationException