Examples of SaveCallback


Examples of org.parse4j.callback.SaveCallback

  public void saveInBackground() {
    System.out.println("saveInBackground(): initializing...");
    final ParseObject parseObject = getParseObject(CLASS_NAME);
   
    parseObject.saveInBackground(new SaveCallback() {     
      @Override
      public void done(ParseException parseException) {
        assertNull("saveInBackground(): parseException should not be null", parseException);
        System.out.println("saveInBackground(): objectId: " + parseObject.getObjectId());
        System.out.println("saveInBackground(): createdAt: " + parseObject.getCreatedAt());
View Full Code Here

Examples of org.parse4j.callback.SaveCallback

      assertNotNull("updatedAt should not be null", parseObject.getUpdatedAt());
   
      parseObject.put("name", "updated");
      parseObject.increment("int");
      parseObject.decrement("double");
      parseObject.saveInBackground(new SaveCallback() {
       
        @Override
        public void done(ParseException parseException) {
          assertNull("updateInBackground(): parseException should not be null", parseException);
          System.out.println("updateInBackground(): name: " + parseObject.getString("name"));
View Full Code Here

Examples of org.springmodules.prevayler.callback.SaveCallback

   
    public Object save(Object entity) {
        Session session = null;
        try {
            session = PersistenceManagerUtils.getSession(this.getPersistenceManager(), true);
            PrevaylerCallback callback = new SaveCallback(entity);
            Object saved = session.execute(callback);
            if (entity != saved) {
                session.execute(new MergeCallback(saved, entity));
            }
            return saved;
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.