net.sf.beanform.integration
Class HibernateIntegrator

java.lang.Object
  extended by net.sf.beanform.integration.HibernateIntegrator
All Implemented Interfaces:
Integrator

public class HibernateIntegrator
extends Object
implements Integrator

Provides integration with Hibernate Validator annotations. Hibernate Validator annotations that are ignored:

Author:
Daniel Gredler
See Also:
http://www.hibernate.org/hib_docs/annotations/reference/en/html/validator.html, http://docs.jboss.org/ejb3/app-server/HibernateAnnotations/api/org/hibernate/validator/package-summary.html

Field Summary
static int LENGTH_MAX_DEFAULT
           
static int LENGTH_MIN_DEFAULT
           
 
Fields inherited from interface net.sf.beanform.integration.Integrator
EMAIL, MAX, MAX_DATE, MAX_LENGTH, MIN, MIN_DATE, MIN_LENGTH, PATTERN, REQUIRED
 
Constructor Summary
HibernateIntegrator()
           
 
Method Summary
 Integer getMaxLength(BeanProperty prop)
           
 SortedMap<String,String> getValidation(BeanProperty prop)
           
 boolean isNullable(BeanProperty prop)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LENGTH_MAX_DEFAULT

public static final int LENGTH_MAX_DEFAULT
See Also:
Constant Field Values

LENGTH_MIN_DEFAULT

public static final int LENGTH_MIN_DEFAULT
See Also:
Constant Field Values
Constructor Detail

HibernateIntegrator

public HibernateIntegrator()
Method Detail

getValidation

public SortedMap<String,String> getValidation(BeanProperty prop)
Specified by:
getValidation in interface Integrator

getMaxLength

public Integer getMaxLength(BeanProperty prop)
Specified by:
getMaxLength in interface Integrator

isNullable

public boolean isNullable(BeanProperty prop)
Specified by:
isNullable in interface Integrator


Copyright © 2005-2008 SourceForge.net. All Rights Reserved.