Package org.gdbms.engine.data

Examples of org.gdbms.engine.data.DataSource.undo()


        d.setSelectedRows(new int[]{0});
        d.insertFilledRow(d.getRow(0));
        int[] sel = d.getSelectedRows();
        assertTrue(sel.length == 1);
        assertTrue(sel[0] == 0);
        d.undo();
        assertTrue(d.getSelectedRows().length == 0);
       
        d.commitTrans();
    }
}
View Full Code Here


        int fi = d.getFieldIndexByName("extra");
        new UndoRedoTests()
                .testAlphanumericEditionUndoRedo((AlphanumericDataSource) d);
        d.setFieldValue(0, fi, ValueFactory.createValue(true));
        assertTrue(((BooleanValue) d.getFieldValue(0, fi)).getValue());
        d.undo();
        assertTrue(d.getFieldValue(0, fi) instanceof NullValue);
        d.rollBackTrans();
    }

    public void testEditionWithFieldAdded() throws Exception {
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.