Package org.hivedb.annotations

Examples of org.hivedb.annotations.Validate


    return IndexType.None;
  }
 
  @SuppressWarnings("unchecked")
  private Validator resolveValidator(final Class entityInterface, final String propertyName) {
    Validate annotation = (Validate) ReflectionTools.getGetterOfProperty(entityInterface, propertyName).getAnnotation(Validate.class);
    if (annotation != null)
      try {
        return (Validator) Class.forName(annotation.value()).newInstance();
      } catch (Exception e) {
        throw new HiveRuntimeException(e);
      }
    return nonNullValidator;
  }
View Full Code Here

TOP

Related Classes of org.hivedb.annotations.Validate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.