Esempio n. 1
0
 public void testFunction() throws Exception {
   session.tranSync(
       new WriteJob<Void>() {
         @Override
         public Void handle(WriteSession wsession) throws Exception {
           wsession.pathBy("/emps/bleujin").property("name", "bleujin").refTo("dept", "/dept/dev");
           wsession.pathBy("/dept/dev").property("name", "dev").refTo("manager", "/emps/bleujin");
           return null;
         }
       });
   Rows rows = session.pathBy("/emps").children().toRows("substring(this.name, 2) s");
   rows.debugPrint();
 }
Esempio n. 2
0
  public void testDebugPrint() throws Exception {
    session.tranSync(
        new WriteJob<Void>() {
          @Override
          public Void handle(WriteSession wsession) throws Exception {
            wsession.pathBy("/bleujin").property("name", "bleujin").property("age", 20);
            return null;
          }
        });

    Rows rows = session.root().children().toRows("this.name b, this.age");
    rows.debugPrint();
  }