Examples of removeColumn()


Examples of org.apache.openjpa.jdbc.schema.Index.removeColumn()

        assertTrue(idx.removeColumn(c1));
        cols = idx.getColumns();
        assertEquals(1, cols.length);
        assertEquals(c2, cols[0]);
        assertTrue(idx.removeColumn(c2));
        cols = idx.getColumns();
        assertEquals(0, cols.length);

        assertTrue(!idx.isUnique());
        idx.setUnique(true);
View Full Code Here

Examples of org.apache.openjpa.jdbc.schema.Table.removeColumn()

        assertEquals(c1, cols[1]);

        assertEquals(c1, table.getColumn("c1"));
        assertEquals(c2, table.getColumn("c2"));

        assertTrue(table.removeColumn(c1));
        assertTrue(!table.isNameTaken("c1"));
        assertNull(table.getColumn("c1"));

        // foreign key testing
        ForeignKey fk = table.addForeignKey("fk");
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.group.ColumnGroupModel.ColumnGroup.removeColumn()

                        .getColumnGroupByIndex(fromColumnIndex);

                // If 'from' index not already present in the 'to' group
                if (fromColumnGroup != toColumnGroup) {
                    if (fromColumnGroup != null) {
                        fromColumnGroup.removeColumn(fromColumnIndex);
                    }
                    model.addColumnsIndexesToGroup(toGroupName, fromColumnIndex);
                }
            }
            return true;
View Full Code Here

Examples of org.geotools.data.shapefile.dbf.DbaseFileHeader.removeColumn()

            header.addColumn("emptyDouble", 'N', 20, 5);
            header.addColumn("emptyFloat", 'F', 20, 5);
            header.addColumn("emptyLogical", 'L', 1, 0);
            header.addColumn("emptyDate", 'D', 20, 0);
            int length = header.getRecordLength();
            header.removeColumn("emptyDate");
            assertTrue(length != header.getRecordLength());
            header.addColumn("emptyDate", 'D', 20, 0);
            assertTrue(length == header.getRecordLength());
            header.removeColumn("billy");
            assertTrue(length == header.getRecordLength());
View Full Code Here

Examples of org.jbpm.formbuilder.client.form.items.TableLayoutFormItem.removeColumn()

            @Override
            public void undoAction(UndoableEvent event) {
                TableLayoutFormItem item = (TableLayoutFormItem) event.getData("item");
                Integer selectedX = (Integer) event.getData("selectedX");
                int columnNumber = item.getColumnForXCoordinate(selectedX);
                item.removeColumn(columnNumber);
            }
            @Override
            public void onEvent(UndoableEvent event) { }
            @Override
            public void doAction(UndoableEvent event) {
View Full Code Here

Examples of org.jfree.data.DefaultKeyedValues2D.removeColumn()

     */
    public void testRemoveColumnByKey() {
        DefaultKeyedValues2D d = new DefaultKeyedValues2D();
        d.addValue(new Double(1.0), "R1", "C1");
        d.addValue(new Double(2.0), "R2", "C2");
        d.removeColumn("C2");
        d.addValue(new Double(3.0), "R2", "C2");
        assertEquals(3.0, d.getValue("R2", "C2").doubleValue(), EPSILON);

        // check for unknown column
        boolean pass = false;
View Full Code Here

Examples of org.jfree.data.DefaultKeyedValues2D.removeColumn()

        assertEquals(3.0, d.getValue("R2", "C2").doubleValue(), EPSILON);

        // check for unknown column
        boolean pass = false;
        try {
            d.removeColumn("XXX");
        }
        catch (UnknownKeyException e) {
            pass = true;
        }
        assertTrue(pass);
View Full Code Here

Examples of org.jfree.data.KeyedObjects2D.removeColumn()

     */
    public void testRemoveColumnByIndex() {
        KeyedObjects2D data = new KeyedObjects2D();
        data.setObject("Obj1", "R1", "C1");
        data.setObject("Obj2", "R2", "C2");
        data.removeColumn(0);
        assertEquals(1, data.getColumnCount());
        assertEquals("Obj2", data.getObject(1, 0));

        // try negative column index
        boolean pass = false;
View Full Code Here

Examples of org.jfree.data.KeyedObjects2D.removeColumn()

        assertEquals("Obj2", data.getObject(1, 0));

        // try negative column index
        boolean pass = false;
        try {
            data.removeColumn(-1);
        }
        catch (IndexOutOfBoundsException e) {
            pass = true;
        }
        assertTrue(pass);
View Full Code Here

Examples of org.jfree.data.KeyedObjects2D.removeColumn()

        assertTrue(pass);

        // try column index too high
        pass = false;
        try {
            data.removeColumn(data.getColumnCount());
        }
        catch (IndexOutOfBoundsException e) {
            pass = true;
        }
        assertTrue(pass);
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.