Examples of rollBackTrans()


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

        d.setFieldValue(0, fieldIndex, v2);
        d.undo();
        assertTrue(((BooleanValue) d.getFieldValue(0, fieldIndex).equals(v1)).getValue());
        d.redo();
        assertTrue(((BooleanValue) d.getFieldValue(0, fieldIndex).equals(v2)).getValue());
        d.rollBackTrans();
       
        d.beginTrans();
        d.buildIndex();
        d.setFieldValue(0, fieldIndex, v2);
        d.undo();
View Full Code Here

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

        d.setFieldValue(0, fieldIndex, v2);
        d.undo();
        assertTrue(((BooleanValue) d.getFieldValue(0, fieldIndex).equals(v1)).getValue());
        d.redo();
        assertTrue(((BooleanValue) d.getFieldValue(0, fieldIndex).equals(v2)).getValue());
        d.rollBackTrans();
       
    }
   
    public void testSpatialDeleteUndoRedo() throws Exception {
        SpatialDataSource d = (SpatialDataSource)
View Full Code Here

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

        d.deleteRow(1);
        d.undo();
        assertTrue(((BooleanValue) d.getFieldValue(1, fieldIndex).equals(v1)).getValue());
        d.redo();
        assertTrue(rc == d.getRowCount() + 1);
        d.rollBackTrans();
       
        d.beginTrans();
        d.buildIndex();
        v1 = d.getFieldValue(1, fieldIndex);
        d.deleteRow(1);
View Full Code Here

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

        d.deleteRow(1);
        d.undo();
        assertTrue(((BooleanValue) d.getFieldValue(1, fieldIndex).equals(v1)).getValue());
        d.redo();
        assertTrue(d.getFieldValue(1, fieldIndex) instanceof NullValue);
        d.rollBackTrans();
       
        d.beginTrans();
        d.buildIndex();
        v1 = d.getFieldValue(1, fieldIndex);
        rc = d.getRowCount();
View Full Code Here

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

        d.insertEmptyRow();
        d.undo();
        assertTrue(rc == d.getRowCount());
        d.redo();
        assertTrue(rc == d.getRowCount() - 1);
        d.rollBackTrans();
       
        d.beginTrans();
        d.buildIndex();
        d.getFieldValue(1, fieldIndex);
        d.insertEmptyRow();
View Full Code Here

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

        d.insertEmptyRow();
        d.undo();
        assertTrue(rc == d.getRowCount() - 1);
        d.redo();
        assertTrue(rc == d.getRowCount() - 2);
        d.rollBackTrans();
       
        d.beginTrans();
        d.buildIndex();
        d.getFieldValue(1, fieldIndex);
        d.insertEmptyRow();
View Full Code Here

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

        d.redo();
        assertTrue(d.getAsString().equals(snapshot3));
        d.undo();
        d.undo();
        assertTrue(d.getAsString().equals(snapshot1));
        d.rollBackTrans();
    }
   
    public void testAddTwoRowsAndUndoBoth() throws Exception {
        SpatialDataSource d = (SpatialDataSource)
        ds.getDataSource("spatialobjectpersona",
View Full Code Here

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

        d.insertFilledRow(row);
        d.undo();
        d.undo();
        assertTrue(d.getFieldValue(rc, 0) instanceof NullValue);
        assertTrue(d.getFieldValue(rc - 1, 0) instanceof NullValue);
        d.rollBackTrans();
    }
   
    private Set getValuesSet(DataSource d) throws Exception {
        HashSet<Value> ret = new HashSet<Value>();
        for (int i = 0; i < d.getRowCount(); i++) {
View Full Code Here

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

        d.redo();
        assertTrue(getValuesSet(d).equals(set3));
        d.undo();
        d.undo();
        assertTrue(getValuesSet(d).equals(set1));
        d.rollBackTrans();
    }
   
    public void testClearHistoryAfterBuildIndex() throws Exception {
        SpatialDataSource d = (SpatialDataSource)
        ds.getDataSource("spatialobjectpersona",
View Full Code Here

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

      SpatialDataSource sds = (SpatialDataSource) d;
      sds.beginTrans();
      assertFalse(sds.isModified());
      sds.deleteRow(0);
      assertTrue(sds.isModified());
      sds.rollBackTrans();

      sds.beginTrans();
      assertFalse(sds.isModified());
      sds.insertEmptyRowAt(0);
      assertTrue(sds.isModified());
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.