Package org.gdbms.engine.data

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


        d.buildIndex();
        v1 = d.getFieldValue(1, fieldIndex);
        rc = d.getRowCount();
        d.deleteRow(1);
        d.undo();
        d.commitTrans();
        d.start();
        assertTrue(d.getRowCount() == rc);
        d.stop();
       
    }
View Full Code Here


        assertTrue(((DoubleValue)d.getFieldValue(0, 1)).getValue() == 1);
        assertTrue(((DoubleValue)d.getFieldValue(1, 1)).getValue() == 2);
        assertTrue(((DoubleValue)d.getFieldValue(2, 1)).getValue() == 3);
        assertTrue(d.getFieldValue(3, 1) instanceof NullValue);
        assertTrue(d.getFieldValue(4, 1) instanceof NullValue);
        d.commitTrans();
        d.start();
        assertTrue(d.getRowCount() == rc);
        assertTrue(((DoubleValue)d.getFieldValue(0, 1)).getValue() == 1);
        assertTrue(((DoubleValue)d.getFieldValue(1, 1)).getValue() == 2);
        assertTrue(((DoubleValue)d.getFieldValue(2, 1)).getValue() == 3);
View Full Code Here

    d.beginTrans();
    d.buildIndex();
    d.deleteRow(0);
    d.deleteRow(1);
    d.commitTrans();
  }

  public void testManyDeleteIndexedEditionFile() throws Exception {
    testManyDeleteIndexedEdition("shppuntos", GeometryFactory
        .createPoint2D(10, 30));
View Full Code Here

      d.insertFilledRowAt(1, new Value[0]);
      assertTrue(false);
    } catch (UnsupportedOperationException e) {
      assertTrue(true);
    }
    d.commitTrans();
    d.start();
    assertTrue(d.getRowCount() == originalRowCount - 1);
    d.stop();
  }
View Full Code Here

    for (int i = 0; i < d.getRowCount(); i++) {
      if (((BooleanValue) gid.equals(d.getFieldValue(i, 0))).getValue()) {
        d.setFieldValue(i, sfi, g);
      }
    }
    d.commitTrans();

    d.start();
    Geometry g2 = null;
    for (int i = 0; i < d.getRowCount(); i++) {
      if (((BooleanValue) gid.equals(d.getFieldValue(i, 0))).getValue()) {
View Full Code Here

  private void testMetadata(String dsName) throws Exception {
    SpatialDataSource d = (SpatialDataSource) ds.getDataSource(dsName);

    d.beginTrans();
    d.commitTrans();

    SpatialDataSource d2 = (SpatialDataSource) ds.getDataSource(dsName);
    d2.start();
    d2.stop();
View Full Code Here

  public void testEditedSpatialDataSourceFullExtentFile() throws Exception {
    SpatialDataSource d = (SpatialDataSource) ds.getDataSource("shppuntos",
        DataSourceFactory.UNDOABLE);
    d.beginTrans();
    testEditedSpatialDataSourceFullExtent(d);
    d.commitTrans();

    d.beginTrans();
    d.buildIndex();
    testEditedSpatialDataSourceFullExtent(d);
    d.commitTrans();
View Full Code Here

    d.commitTrans();

    d.beginTrans();
    d.buildIndex();
    testEditedSpatialDataSourceFullExtent(d);
    d.commitTrans();
  }

  public void testEditedSpatialDataSourceFullExtentObject() throws Exception {
    SpatialDataSource d = (SpatialDataSource) ds.getDataSource(
        "spatialobjectpersona", DataSourceFactory.UNDOABLE);
View Full Code Here

  public void testEditedSpatialDataSourceFullExtentObject() throws Exception {
    SpatialDataSource d = (SpatialDataSource) ds.getDataSource(
        "spatialobjectpersona", DataSourceFactory.UNDOABLE);
    d.beginTrans();
    testEditedSpatialDataSourceFullExtent(d);
    d.commitTrans();

    d.beginTrans();
    d.buildIndex();
    testEditedSpatialDataSourceFullExtent(d);
    d.commitTrans();
View Full Code Here

    d.commitTrans();

    d.beginTrans();
    d.buildIndex();
    testEditedSpatialDataSourceFullExtent(d);
    d.commitTrans();
  }

  public void testEditedSpatialDataSourceFullExtentDB() throws Exception {
    SpatialDataSource d = (SpatialDataSource) ds.getDataSource("points0",
        DataSourceFactory.UNDOABLE);
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.