Examples of commitTrans()


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

    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

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

  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

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

  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

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

    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

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

  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

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

    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

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

    d.beginTrans();
    assertTrue(d.getSpatialFieldIndex() == 1);
    d.insertEmptyRow();
    d.setFieldValue(0, 1, GeometryFactory.createPoint2D(0, 0));
    d.setFieldValue(0, 0, ValueFactory.createValue("a"));
    d.commitTrans();
  }

  public void testCreateAndEditAllFieldTypes() throws Exception {
    String cs = "jdbc:postgresql://127.0.0.1:5432/orbiscad?user=postgres&password=";
View Full Code Here

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

        ValueFactory.createValue((short) 4), // SMALLINT
        ValueFactory.createValue(new byte[] { (byte) 3, (byte) 250 }), // BYTEA
        ValueFactory.createValue(new Timestamp(4L)), // TIMESTAMP
        ValueFactory.createValue(new Time(3L)), // TIME
        GeometryFactory.createPoint2D(0, 0) });
    d.commitTrans();

    d.start();
    assertTrue(((BooleanValue) d.getFieldValue(0, 4)).getValue());
    d.stop();
  }
View Full Code Here

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

                GeometryFactory.createPoint2D(100, 100),
                ValueFactory.createValue("perfect")
        });
        String table = ds.getAsString();
        try {
            ds.commitTrans();
        } catch (DriverException e) {
            assertTrue(ds.getAsString().equals(table));
        }
        ds.rollBackTrans();
    }
View Full Code Here

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

                GeometryFactory.createPoint2D(100, 100),
                ValueFactory.createValue("perfect")
        });
        String table = ds.getAsString();
        try {
            ds.commitTrans();
        } catch (DriverException e) {
            assertTrue(ds.getAsString().equals(table));
        }
        ds.rollBackTrans();
    }
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.