Examples of childrenWithName()


Examples of org.modeshape.sequencer.ddl.node.AstNode.childrenWithName()

        assertThat(alterOptionsNode.getName(), is("myProc"));
        assertMixinType(alterOptionsNode, TeiidDdlLexicon.AlterOptions.PROCEDURE_STATEMENT);
        assertProperty(alterOptionsNode, TeiidDdlLexicon.SchemaElement.TYPE, SchemaElementType.FOREIGN.toDdl());
        assertProperty(alterOptionsNode, TeiidDdlLexicon.AlterOptions.REFERENCE, this.procedureRefNode);
        assertThat(alterOptionsNode.childrenWithName("p1").size(), is(1));
    }

    @Test
    public void shouldParseAlterImplicitProcedureWithOptionsList() {
        final String content = "ALTER PROCEDURE myProc OPTIONS (ADD cardinality 100)";
View Full Code Here

Examples of org.modeshape.sequencer.ddl.node.AstNode.childrenWithName()

        assertThat(alterOptionsNode.getName(), is("myProc"));
        assertMixinType(alterOptionsNode, TeiidDdlLexicon.AlterOptions.PROCEDURE_STATEMENT);
        assertProperty(alterOptionsNode, TeiidDdlLexicon.SchemaElement.TYPE, SchemaElementType.FOREIGN.toDdl());
        assertProperty(alterOptionsNode, TeiidDdlLexicon.AlterOptions.REFERENCE, this.procedureRefNode);
        assertThat(alterOptionsNode.childrenWithName(TeiidDdlLexicon.AlterOptions.ALTERS).size(), is(1));
    }

    @Test
    public void shouldParseAlterImplicitTableWithColumnOptions() {
        final String content = "ALTER TABLE foo ALTER COLUMN bar OPTIONS (ADD cardinality 100)";
View Full Code Here

Examples of org.modeshape.sequencer.ddl.node.AstNode.childrenWithName()

        assertThat(alterOptionsNode.getName(), is("foo"));
        assertMixinType(alterOptionsNode, TeiidDdlLexicon.AlterOptions.TABLE_STATEMENT);
        assertProperty(alterOptionsNode, TeiidDdlLexicon.SchemaElement.TYPE, SchemaElementType.FOREIGN.toDdl());
        assertProperty(alterOptionsNode, TeiidDdlLexicon.AlterOptions.REFERENCE, this.tableRefNode);
        assertThat(alterOptionsNode.childrenWithName("bar").size(), is(1));
    }

    @Test
    public void shouldParseAlterImplicitTableWithOptionsList() {
        final String content = "ALTER TABLE foo OPTIONS (ADD cardinality 100)";
View Full Code Here

Examples of org.modeshape.sequencer.ddl.node.AstNode.childrenWithName()

        assertThat(alterOptionsNode.getName(), is("foo"));
        assertMixinType(alterOptionsNode, TeiidDdlLexicon.AlterOptions.TABLE_STATEMENT);
        assertProperty(alterOptionsNode, TeiidDdlLexicon.SchemaElement.TYPE, SchemaElementType.FOREIGN.toDdl());
        assertProperty(alterOptionsNode, TeiidDdlLexicon.AlterOptions.REFERENCE, this.tableRefNode);
        assertThat(alterOptionsNode.childrenWithName(TeiidDdlLexicon.AlterOptions.ALTERS).size(), is(1));
    }

    @Test
    public void shouldParseAlterImplicitViewWithColumnOptions() {
        final String content = "ALTER VIEW G1 ALTER COLUMN e1 OPTIONS (ADD cardinality 100)";
View Full Code Here

Examples of org.modeshape.sequencer.ddl.node.AstNode.childrenWithName()

        assertThat(alterOptionsNode.getName(), is("G1"));
        assertMixinType(alterOptionsNode, TeiidDdlLexicon.AlterOptions.VIEW_STATEMENT);
        assertProperty(alterOptionsNode, TeiidDdlLexicon.SchemaElement.TYPE, SchemaElementType.FOREIGN.toDdl());
        assertProperty(alterOptionsNode, TeiidDdlLexicon.AlterOptions.REFERENCE, this.viewRefNode);
        assertThat(alterOptionsNode.childrenWithName("e1").size(), is(1));
    }

    @Test
    public void shouldParseAlterImplicitViewWithOptionsList() {
        final String content = "ALTER VIEW G1 OPTIONS (ADD cardinality 100)";
View Full Code Here

Examples of org.modeshape.sequencer.ddl.node.AstNode.childrenWithName()

        assertThat(alterOptionsNode.getName(), is("G1"));
        assertMixinType(alterOptionsNode, TeiidDdlLexicon.AlterOptions.VIEW_STATEMENT);
        assertProperty(alterOptionsNode, TeiidDdlLexicon.SchemaElement.TYPE, SchemaElementType.FOREIGN.toDdl());
        assertProperty(alterOptionsNode, TeiidDdlLexicon.AlterOptions.REFERENCE, this.viewRefNode);
        assertThat(alterOptionsNode.childrenWithName(TeiidDdlLexicon.AlterOptions.ALTERS).size(), is(1));
    }

    @Test
    public void shouldParseAlterVirtualProcedureWithColumnOptions() {
        final String content = "ALTER VIRTUAL PROCEDURE myProc ALTER PARAMETER p1 OPTIONS (ADD cardinality 100)";
View Full Code Here

Examples of org.modeshape.sequencer.ddl.node.AstNode.childrenWithName()

        assertThat(alterOptionsNode.getName(), is("myProc"));
        assertMixinType(alterOptionsNode, TeiidDdlLexicon.AlterOptions.PROCEDURE_STATEMENT);
        assertProperty(alterOptionsNode, TeiidDdlLexicon.SchemaElement.TYPE, SchemaElementType.VIRTUAL.toDdl());
        assertProperty(alterOptionsNode, TeiidDdlLexicon.AlterOptions.REFERENCE, this.procedureRefNode);
        assertThat(alterOptionsNode.childrenWithName("p1").size(), is(1));
    }

    @Test
    public void shouldParseAlterVirtualProcedureWithOptionsList() {
        final String content = "ALTER VIRTUAL PROCEDURE myProc OPTIONS (ADD cardinality 100)";
View Full Code Here

Examples of org.modeshape.sequencer.ddl.node.AstNode.childrenWithName()

        assertThat(alterOptionsNode.getName(), is("myProc"));
        assertMixinType(alterOptionsNode, TeiidDdlLexicon.AlterOptions.PROCEDURE_STATEMENT);
        assertProperty(alterOptionsNode, TeiidDdlLexicon.SchemaElement.TYPE, SchemaElementType.VIRTUAL.toDdl());
        assertProperty(alterOptionsNode, TeiidDdlLexicon.AlterOptions.REFERENCE, this.procedureRefNode);
        assertThat(alterOptionsNode.childrenWithName(TeiidDdlLexicon.AlterOptions.ALTERS).size(), is(1));
    }

    @Test
    public void shouldParseAlterVirtualTableWithColumnOptions() {
        final String content = "ALTER VIRTUAL TABLE foo ALTER COLUMN bar OPTIONS (ADD cardinality 100)";
View Full Code Here

Examples of org.modeshape.sequencer.ddl.node.AstNode.childrenWithName()

        assertThat(alterOptionsNode.getName(), is("foo"));
        assertMixinType(alterOptionsNode, TeiidDdlLexicon.AlterOptions.TABLE_STATEMENT);
        assertProperty(alterOptionsNode, TeiidDdlLexicon.SchemaElement.TYPE, SchemaElementType.VIRTUAL.toDdl());
        assertProperty(alterOptionsNode, TeiidDdlLexicon.AlterOptions.REFERENCE, this.tableRefNode);
        assertThat(alterOptionsNode.childrenWithName("bar").size(), is(1));
    }

    @Test
    public void shouldParseAlterVirtualTableWithOptionsList() {
        final String content = "ALTER VIRTUAL TABLE foo OPTIONS (ADD cardinality 100)";
View Full Code Here

Examples of org.modeshape.sequencer.ddl.node.AstNode.childrenWithName()

        assertThat(alterOptionsNode.getName(), is("foo"));
        assertMixinType(alterOptionsNode, TeiidDdlLexicon.AlterOptions.TABLE_STATEMENT);
        assertProperty(alterOptionsNode, TeiidDdlLexicon.SchemaElement.TYPE, SchemaElementType.VIRTUAL.toDdl());
        assertProperty(alterOptionsNode, TeiidDdlLexicon.AlterOptions.REFERENCE, this.tableRefNode);
        assertThat(alterOptionsNode.childrenWithName(TeiidDdlLexicon.AlterOptions.ALTERS).size(), is(1));
    }

    @Test
    public void shouldParseAlterVirtualViewWithColumnOptions() {
        final String content = "ALTER VIRTUAL VIEW G1 ALTER COLUMN e1 OPTIONS (ADD cardinality 100)";
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.