|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME) @Target(value=TYPE) public @interface RemoveValidator
The @RemoveValidator is a level model validator, it is executed
just before removing an object, and it has the possibility to deny the deletion.
Applies to entities.
Example:
@RemoveValidator(value=DeliveryTypeRemoveValidator.class,
properties=@PropertyValue(name="number")
)
public class DeliveryType {
...
RemoveValidator has no effect if you remove the entity directly using
JPA or Hibernate. It only works when you use MapFacade
or delete from a standar OX action). If you can write a contraint for removing
that works with JPA and Hibernate use a @PreRemove JPA method.
| Required Element Summary | |
|---|---|
java.lang.Class |
value
Class that implements the validation logic. |
| Optional Element Summary | |
|---|---|
PropertyValue[] |
properties
To set the value of the validator properties before executing it. |
| Element Detail |
|---|
public abstract java.lang.Class value
Must implement IRemoveValidator.
public abstract PropertyValue[] properties
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||