Package org.hivedb.annotations

Examples of org.hivedb.annotations.Index.type()


 
  @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


          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)));
   
  }
 
  public String getResourceName() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.