Package com.asakusafw.dmdl.thundergate.util

Examples of com.asakusafw.dmdl.thundergate.util.JoinedModelBuilder


            .toDescription();
        TableModelDescription right = new TableModelBuilder("RIGHT")
            .add(null, "SID", PropertyTypeKind.LONG, Attribute.PRIMARY_KEY)
            .add(null, "VALUE", new StringType(255))
            .toDescription();
        JoinedModelDescription join = new JoinedModelBuilder("SIMPLE", left, "l", right, "r")
            .on("l.RIGHT_ID", "r.SID")
            .add("ID", "r.SID")
            .add("LEFT", "l.VALUE")
            .add("RIGHT", "r.VALUE")
            .toDescription();
View Full Code Here


            .toDescription();
        TableModelDescription right = new TableModelBuilder("RIGHT")
            .add(null, "SID", PropertyTypeKind.LONG, Attribute.PRIMARY_KEY)
            .add(null, "VALUE", new StringType(255))
            .toDescription();
        JoinedModelDescription join = new JoinedModelBuilder("SIMPLE", left, "l", right, "r")
            .on("l.RIGHT_ID", "r.SID")
            .add("ID", "r.SID")
            .add("LEFT", "l.VALUE")
            .add("RIGHT", "r.VALUE")
            .toDescription();
View Full Code Here

        assert target.getKind() == CreateView.Kind.JOINED;
        assert context != null;
        assert context.get(target.from.table) != null;
        assert context.get(target.from.join.table) != null;

        JoinedModelBuilder builder = new JoinedModelBuilder(
                target.name.token,
                context.get(target.from.table),
                target.from.alias,
                context.get(target.from.join.table),
                target.from.join.alias);

        // 結合条件
        for (On on : target.from.join.condition) {
            builder.on(on.left.token, on.right.token);
        }

        // カラムの追加
        for (Select select : target.selectList) {
            assert select.aggregator == Aggregator.IDENT;
            builder.add(select.alias.token, select.name.token);
        }

        return builder.toDescription();
    }
View Full Code Here

TOP

Related Classes of com.asakusafw.dmdl.thundergate.util.JoinedModelBuilder

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.