Package org.hivedb.annotations

Examples of org.hivedb.annotations.Index


    this.validator = resolveValidator(entityInterface, propertyName);
  }
 
  @SuppressWarnings("unchecked")
  private IndexType resolveIndexType(final Class entityInterface, final String propertyName) {
    Index annotation = ReflectionTools.getGetterOfProperty(entityInterface, propertyName).getAnnotation(Index.class);
    if (annotation != null)
      return annotation.type();
    if (ReflectionTools.getGetterOfProperty(entityInterface, propertyName).getAnnotation(PartitionIndex.class) != null)
      return IndexType.Partition;
    return IndexType.None;
  }
View Full Code Here


        public boolean f(Method method) {
          String property = ReflectionTools.getPropertyNameOfAccessor(method);
          if (ReflectionTools.isCollectionProperty(representedInterface, property)
            && !ReflectionTools.isComplexCollectionItemProperty(representedInterface, property))
            return false;
          Index index = AnnotationHelper.getAnnotationDeeply(method, Index.class);
          return index != null && index.type() != IndexType.Delegates;
      }}, ReflectionTools.getComplexGetters(representedInterface)));
   
  }
View Full Code Here

TOP

Related Classes of org.hivedb.annotations.Index

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.