Package com.googlecode.objectify.annotation

Examples of com.googlecode.objectify.annotation.AlsoLoad


    // If we have @IgnoreLoad, don't add priamry name to the names collection (which is used for loading)
    if (this.getAnnotation(IgnoreLoad.class) == null)
      nameSet.add(name);
   
    // Now any additional names
    AlsoLoad alsoLoad = this.getAnnotation(AlsoLoad.class);
    if (alsoLoad != null)
      if (alsoLoad.value() == null || alsoLoad.value().length == 0)
        throw new IllegalStateException("If specified, @AlsoLoad must specify at least one value: " + thingForDebug);
      else
        for (String value: alsoLoad.value())
          if (value == null || value.trim().length() == 0)
            throw new IllegalStateException("Illegal empty value in @AlsoLoad for " + thingForDebug);
          else
            nameSet.add(value);
   
View Full Code Here

TOP

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

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.