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(); }
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(); }