Examples of rollBackTrans()


Examples of org.gdbms.engine.data.AlphanumericDataSource.rollBackTrans()

        d.setFieldValue(0, 0, v2);
        d.undo();
        assertTrue(((BooleanValue) d.getFieldValue(0, 0).equals(v1)).getValue());
        d.redo();
        assertTrue(((BooleanValue) d.getFieldValue(0, 0).equals(v2)).getValue());
        d.rollBackTrans();
    }
   
    public void testAlphanumericDeleteUndoRedo() throws Exception {
        AlphanumericDataSource d = (AlphanumericDataSource)
        ds.getDataSource("persona",
View Full Code Here

Examples of org.gdbms.engine.data.AlphanumericDataSource.rollBackTrans()

        d.deleteRow(1);
        d.undo();
        assertTrue(((BooleanValue) d.getFieldValue(1, 0).equals(v1)).getValue());
        d.redo();
        assertTrue(((BooleanValue) d.getFieldValue(1, 0).equals(v2)).getValue());
        d.rollBackTrans();
    }
   
    public void testAlphanumericInsertUndoRedo() throws Exception {
        AlphanumericDataSource d = (AlphanumericDataSource)
        ds.getDataSource("persona",
View Full Code Here

Examples of org.gdbms.engine.data.AlphanumericDataSource.rollBackTrans()

        d.insertEmptyRowAt(1);
        d.undo();
        assertTrue(((BooleanValue) d.getFieldValue(1, 0).equals(v1)).getValue());
        d.redo();
        assertTrue(d.getFieldValue(1, 0) instanceof NullValue);
        d.rollBackTrans();
    }
   
    public void testSpatialModifyUndoRedo() throws Exception {
        SpatialDataSource d = (SpatialDataSource)
        ds.getDataSource("spatialobjectpersona",
View Full Code Here

Examples of org.gdbms.engine.data.AlphanumericDataSource.rollBackTrans()

        ds.getDataSource("persona",
                DataSourceFactory.UNDOABLE);
       
        d.beginTrans();
        testAlphanumericEditionUndoRedo(d);       
        d.rollBackTrans();
    }
   
    public void testSpatialEditionUndoRedo() throws Exception {
        SpatialDataSource d = (SpatialDataSource)
        ds.getDataSource("spatialobjectpersona",
View Full Code Here

Examples of org.gdbms.engine.data.AlphanumericDataSource.rollBackTrans()

        d.setFieldValue(0, 0, ValueFactory.createValue(2));
        assertTrue(listener.deletions == 1);
        assertTrue(listener.insertions == 4);
        assertTrue(listener.modifications == 1);
        assertTrue(listener.total == 6);
        d.rollBackTrans();
    }

    public void testComplexChange() throws Exception {
        AlphanumericDataSource d = (AlphanumericDataSource) ds
                .getDataSource("persona");
View Full Code Here

Examples of org.gdbms.engine.data.AlphanumericDataSource.rollBackTrans()

        d.setDispatchingMode(DataSource.DISPATCH);
        assertTrue(listener.deletions == 1);
        assertTrue(listener.insertions == 4);
        assertTrue(listener.modifications == 1);
        assertTrue(listener.total == 6);
        d.rollBackTrans();
    }

    public void testUndoRedoChanges() throws Exception {
        AlphanumericDataSource d = (AlphanumericDataSource) ds
                .getDataSource("persona", DataSourceFactory.UNDOABLE);
View Full Code Here

Examples of org.gdbms.engine.data.AlphanumericDataSource.rollBackTrans()

        d.redo();
        d.undo();
        d.deleteRow(0);
        assertTrue(listener.total == 15);
        assertTrue(listener.undoRedo == 8);
        d.rollBackTrans();
    }

    public void testIgnoreChanges() throws Exception {
        AlphanumericDataSource d = (AlphanumericDataSource) ds
                .getDataSource("persona", DataSourceFactory.UNDOABLE);
View Full Code Here

Examples of org.gdbms.engine.data.AlphanumericDataSource.rollBackTrans()

            d.undo();          
        }
        d.redo();
        d.undo();
        assertTrue(listener.total == 0);
        d.rollBackTrans();
    }

    public void testIgnoreCommit() throws Exception {
        AlphanumericDataSource d = (AlphanumericDataSource) ds
                .getDataSource("persona", DataSourceFactory.UNDOABLE);
View Full Code Here

Examples of org.gdbms.engine.data.AlphanumericDataSource.rollBackTrans()

        try {
            ds.commitTrans();
        } catch (DriverException e) {
            assertTrue(ds.getAsString().equals(table));
        }
        ds.rollBackTrans();
    }

    public void testSpatialObjectfailedCommit() throws Exception {
        SpatialDataSource ds = (SpatialDataSource)
            dsf.getDataSource("spatialObject");
View Full Code Here

Examples of org.gdbms.engine.data.AlphanumericDataSource.rollBackTrans()

        try {
            ds.commitTrans();
        } catch (DriverException e) {
            assertTrue(ds.getAsString().equals(table));
        }
        ds.rollBackTrans();
    }

    public void testAlphanumericFileFailOnClose() throws Exception {
        AlphanumericDataSource ds = (AlphanumericDataSource)
            dsf.getDataSource("alphaCloseFile");
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.