Package net.caprazzi.keez.Keez

Examples of net.caprazzi.keez.Keez.Put


          upgradeFrom0to1();
        } catch (Exception e) {
          throw new RuntimeException(e);
        }
       
        db.put(MASTER_KEY, 0, getMasterRecord(), new Put() {

          @Override
          public void ok(String key, int rev) {}

          @Override
View Full Code Here


   
   
    Meta<Story> meta = Meta.wrap("story", story);
   
    System.out.println(new String(meta.toJson()));
    db.put(entry.getKey() + "rx", 0, meta.toJson(), new Put() {

      @Override
      public void ok(String key, int rev) {
        // TODO Auto-generated method stub
        System.out.println("OK");
View Full Code Here

  }

  public void createList(String id, String name, int pos) throws Exception {
    Meta<StoryList> wrap = Meta.wrap("list", new StoryList(id, name, new BigDecimal(pos)));
    byte[] json = wrap.toJson();
    db.put(id, 0, json, new Put() {

      @Override
      public void ok(String key, int rev) {
        // TODO Auto-generated method stub
      }
View Full Code Here

    } catch (Exception e) {
      callback.callError(doc.getId(), e);
      return;
    }
   
    db.put(doc.getId(), doc.getRevision(), data, new Put() {

      @Override public void collision(String key, int yourRev, int foundRev) {
        callback.callCollision(key, yourRev, foundRev);
      }
View Full Code Here

TOP

Related Classes of net.caprazzi.keez.Keez.Put

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.