|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jarbframework.validation.DatabaseConstraintValidationContext
public final class DatabaseConstraintValidationContext
Context of a specific bean validation. Bean violations can be retrieved and included to this context.
| Nested Class Summary | |
|---|---|
class |
DatabaseConstraintValidationContext.ViolationBuilder
Used to build and include a new constraint violation to our context. |
| Method Summary | |
|---|---|
DatabaseConstraintValidationContext.ViolationBuilder |
buildViolationWithTemplate(PropertyReference propertyReference,
String templateName)
Start building a new database constraint violation. |
boolean |
isValid()
Determine if no violations were detected in this validation context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean isValid()
true if no violations were detected, else false
public DatabaseConstraintValidationContext.ViolationBuilder buildViolationWithTemplate(PropertyReference propertyReference,
String templateName)
DatabaseConstraintViolationBuilder#addToContext().
propertyReference - reference to the property that was violatedtemplateName - name of the message template
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||