Package com.googlecode.objectify.annotation

Examples of com.googlecode.objectify.annotation.Unindex


    IfConditionGenerator ifGenerator = new IfConditionGenerator(fact);

    // Check @Index and @Unindex conditions
    Index indexedAnn = field.getAnnotation(Index.class);
    Unindex unindexedAnn = field.getAnnotation(Unindex.class);

    if (indexedAnn != null && unindexedAnn != null)
      throw new IllegalStateException("Cannot have @Indexed and @Unindexed on the same field: " + field);
   
    if (indexedAnn != null)
      this.indexConditions = ifGenerator.generateIfConditions(indexedAnn.value(), field);
   
    if (unindexedAnn != null)
      this.unindexConditions = ifGenerator.generateIfConditions(unindexedAnn.value(), field);
   
    // Now watch out for @IgnoreSave conditions
    IgnoreSave ignoreSave = field.getAnnotation(IgnoreSave.class);
    if (ignoreSave != null)
      ignoreSaveConditions = ifGenerator.generateIfConditions(ignoreSave.value(), field);
View Full Code Here


   * Figure out if there is an index instruction for the whole class.
   * @return true, false, or null (which means no info)
   */
  private Boolean getIndexInstruction(Class<P> clazz) {
    Index ind = clazz.getAnnotation(Index.class);
    Unindex unind = clazz.getAnnotation(Unindex.class);

    if (ind != null && unind != null)
      throw new IllegalStateException("You cannot have @Index and @Unindex on the same class: " + clazz);

    if (ind != null)
View Full Code Here

TOP

Related Classes of com.googlecode.objectify.annotation.Unindex

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.