Package org.haystack

Examples of org.haystack.HGridBuilder.addCol()


     */
    public HGrid pointWrite(HRef id, int level, String who, HVal val, HNum dur) {
        HGridBuilder b = new HGridBuilder();
        b.addCol("id");
        b.addCol("level");
        b.addCol("who");
        b.addCol("val");
        b.addCol("duration");

        b.addRow(new HVal[] { id, HNum.make(level), HStr.make(who), val, dur });

View Full Code Here


    public HGrid pointWrite(HRef id, int level, String who, HVal val, HNum dur) {
        HGridBuilder b = new HGridBuilder();
        b.addCol("id");
        b.addCol("level");
        b.addCol("who");
        b.addCol("val");
        b.addCol("duration");

        b.addRow(new HVal[] { id, HNum.make(level), HStr.make(who), val, dur });

        HGrid req = b.toGrid();
View Full Code Here

        HGridBuilder b = new HGridBuilder();
        b.addCol("id");
        b.addCol("level");
        b.addCol("who");
        b.addCol("val");
        b.addCol("duration");

        b.addRow(new HVal[] { id, HNum.make(level), HStr.make(who), val, dur });

        HGrid req = b.toGrid();
        HGrid res = call("pointWrite", req);
View Full Code Here

     * <li>who: who last controlled the value at this level
     * </ul>
     */
    public HGrid pointWriteArray(HRef id) {
        HGridBuilder b = new HGridBuilder();
        b.addCol("id");
        b.addRow(new HVal[] { id });

        HGrid req = b.toGrid();
        HGrid res = call("pointWrite", req);
        return res;
View Full Code Here

     * the history record. Otherwise if a String is passed, it is resolved
     * relative to the history record's timezone.
     */
    public HGrid hisRead(HRef id, Object range) {
        HGridBuilder b = new HGridBuilder();
        b.addCol("id");
        b.addCol("range");
        b.addRow(new HVal[] { id, HStr.make(range.toString()) });
        HGrid req = b.toGrid();
        HGrid res = call("hisRead", req);
        return res;
View Full Code Here

     * relative to the history record's timezone.
     */
    public HGrid hisRead(HRef id, Object range) {
        HGridBuilder b = new HGridBuilder();
        b.addCol("id");
        b.addCol("range");
        b.addRow(new HVal[] { id, HStr.make(range.toString()) });
        HGrid req = b.toGrid();
        HGrid res = call("hisRead", req);
        return res;
    }
View Full Code Here

    }

    @Override
    protected HGrid onReadByIds(HRef[] ids) {
        HGridBuilder b = new HGridBuilder();
        b.addCol("id");
        for (int i = 0; i < ids.length; ++i)
            b.addRow(new HVal[] { ids[i] });
        HGrid req = b.toGrid();
        return call("read", req);
    }
View Full Code Here

    }

    @Override
    protected HGrid onReadAll(String filter, int limit) {
        HGridBuilder b = new HGridBuilder();
        b.addCol("filter");
        b.addCol("limit");
        b.addRow(new HVal[] { HStr.make(filter), HNum.make(limit) });
        HGrid req = b.toGrid();
        return call("read", req);
    }
View Full Code Here

    @Override
    protected HGrid onReadAll(String filter, int limit) {
        HGridBuilder b = new HGridBuilder();
        b.addCol("filter");
        b.addCol("limit");
        b.addRow(new HVal[] { HStr.make(filter), HNum.make(limit) });
        HGrid req = b.toGrid();
        return call("read", req);
    }
View Full Code Here

     *
     * Raise CallErrException if the server raises an exception.
     */
    public HGrid eval(String expr) {
        HGridBuilder b = new HGridBuilder();
        b.addCol("expr");
        b.addRow(new HVal[] { HStr.make(expr) });
        HGrid req = b.toGrid();
        return call("eval", req);
    }

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.