Package com.googlecode.objectify.persister.annotation

Examples of com.googlecode.objectify.persister.annotation.Cascade


    this.factory = factory;
  }

  private Cascade getCascade(FieldMetadata metadata, Object object) {

    Cascade result = metadata.field.getAnnotation(Cascade.class);

    if (result == null) {
      result = object.getClass().getAnnotation(Cascade.class);
    }
View Full Code Here


  protected boolean hasCascadeType(FieldMetadata metadata, Object target, CascadeType... types) {

    boolean result = false;

    Cascade annotation = getCascade(metadata, target);

    if (annotation != null) {

      CascadeType[] cascadeTypes = annotation.value();

      for (CascadeType cascadeType : cascadeTypes) {

        if (isOneOfTypes(cascadeType, types)) {
          result = true;
View Full Code Here

TOP

Related Classes of com.googlecode.objectify.persister.annotation.Cascade

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.