Package com.googlecode.objectify.persister.operation

Examples of com.googlecode.objectify.persister.operation.Deleter


    return new ResultHelper<Void>() {

      public Void get() {
        Objectify sync = base.sync();
        T object = sync.get(clazz, id);
        new Deleter(sync, factory).delete(object);
        return null;
      }

    };
View Full Code Here


    return new ResultHelper<Void>() {

      public Void get() {
        Objectify sync = base.sync();
        T object = sync.get(clazz, name);
        new Deleter(sync, factory).delete(object);
        return null;
      }

    };
View Full Code Here

    return new ResultHelper<Void>() {

      public Void get() {

        Objectify sync = base.sync();
        Deleter deleter = new Deleter(sync, factory);

        for (Object object : keysOrEntities) {

          if (isKey(object)) {
            sync.delete(object);
          } else {
            deleter.delete(object);
          }

        }

        return null;
View Full Code Here

  }

  public <T> void delete(Class<T> clazz, long id) {
    T object = find(clazz, id);
    if (object != null) {
      new Deleter(base, factory).delete(object);
    }
  }
View Full Code Here

  }

  public <T> void delete(Class<T> clazz, String name) {
    T object = find(clazz, name);
    if (object != null) {
      new Deleter(base, factory).delete(object);
    }
  }
View Full Code Here

      if (isKey(obj)) {
        obj = this.get((Key<?>) obj);
      }

      new Deleter(base, factory).delete(obj);

    }

  }
View Full Code Here

TOP

Related Classes of com.googlecode.objectify.persister.operation.Deleter

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.