| java.lang.Object net.sf.oval.configuration.annotation.JPAAnnotationsConfigurer
JPAAnnotationsConfigurer | public class JPAAnnotationsConfigurer implements Configurer(Code) | | Constraints configurer that interprets certain EJB3 JPA annotations:
- javax.persistence.Basic(optional=false) => net.sf.oval.constraints.NotNullCheck
- javax.persistence.OneToOne(optional=false) => net.sf.oval.constraints.NotNullCheck
- javax.persistence.ManyToOne(optional=false) => net.sf.oval.constraints.NotNullCheck
- javax.persistence.Column(nullable=false) => net.sf.oval.constraints.NotNullCheck
- javax.persistence.Column(length=5) => net.sf.oval.constraints.LengthCheck
author: Sebastian Thomschke |
Method Summary | |
public Boolean | getApplyFieldConstraintsToConstructors() | public ClassConfiguration | getClassConfiguration(Class> clazz) | public ConstraintSetConfiguration | getConstraintSetConfiguration(String constraintSetId) | protected void | initializeChecks(Basic annotation, Collection<Check> checks, Field field) | protected void | initializeChecks(Column annotation, Collection<Check> checks, Field field) | protected void | initializeChecks(ManyToOne annotation, Collection<Check> checks, Field field) | protected void | initializeChecks(OneToMany annotation, Collection<Check> checks, Field field) | protected void | initializeChecks(OneToOne annotation, Collection<Check> checks, Field field) | public Boolean | isApplyFieldConstraintsToSetter() | public void | setApplyFieldConstraintsToConstructors(Boolean applyFieldConstraintsToConstructors) | public void | setApplyFieldConstraintsToSetters(Boolean applyFieldConstraintsToSetters) |
applyFieldConstraintsToConstructors | protected Boolean applyFieldConstraintsToConstructors(Code) | | |
applyFieldConstraintsToSetters | protected Boolean applyFieldConstraintsToSetters(Code) | | |
getApplyFieldConstraintsToConstructors | public Boolean getApplyFieldConstraintsToConstructors()(Code) | | the applyFieldConstraintsToConstructors |
isApplyFieldConstraintsToSetter | public Boolean isApplyFieldConstraintsToSetter()(Code) | | the applyFieldConstraintsToSetter |
setApplyFieldConstraintsToConstructors | public void setApplyFieldConstraintsToConstructors(Boolean applyFieldConstraintsToConstructors)(Code) | | Parameters: applyFieldConstraintsToConstructors - the applyFieldConstraintsToConstructors to set |
setApplyFieldConstraintsToSetters | public void setApplyFieldConstraintsToSetters(Boolean applyFieldConstraintsToSetters)(Code) | | Parameters: applyFieldConstraintsToSetters - the applyFieldConstraintsToSetter to set |
|
|