Package org.gdbms.engine.data

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


        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

                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

                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

                GeometryFactory.createPoint2D(100, 100),
                ValueFactory.createValue("perfect")
        });
        ds.getAsString();
        try {
            ds.commitTrans();
        } catch (FreeingResourcesException e) {
            assertTrue(true);
        } catch (DriverException e) {
            assertTrue(false);
        }
View Full Code Here

                GeometryFactory.createPoint2D(100, 100),
                ValueFactory.createValue("perfect")
        });
        ds.getAsString();
        try {
            ds.commitTrans();
        } catch (FreeingResourcesException e) {
            assertTrue(true);
        } catch (DriverException e) {
            assertTrue(false);
        }
View Full Code Here

                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

                GeometryFactory.createPoint2D(100, 100),
                ValueFactory.createValue("perfect")
        });
        ds.getAsString();
        try {
            ds.commitTrans();
        } catch (FreeingResourcesException e) {
            assertTrue(true);
        } catch (DriverException e) {
            assertTrue(false);
        }
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.