Examples of beginTrans()


Examples of org.gdbms.engine.data.DataSource.beginTrans()

    Value v3 = ValueFactory.createValue("apellido");
    Value v4 = ValueFactory.createValue(Date.valueOf("1998-09-05"));
    Value v5 = ValueFactory.createValue(Time.valueOf("4:30:01"));
    Value v6 = ValueFactory.createValue(Timestamp.valueOf("2005-09-05 4:30:01.666666666"));

    d.beginTrans();
    d.insertFilledRow(new Value[] {v1, v2, v3, v4, v5, v6});
    d.commitTrans();

        d.start();
    assertTrue(((BooleanValue) d.getFieldValue(3, 0).equals(v1)).getValue());
View Full Code Here

Examples of org.gdbms.engine.data.DataSource.beginTrans()

        Value v3 = ValueFactory.createValue("apellido");
        Value v4 = ValueFactory.createValue(Date.valueOf("1998-09-05"));
        Value v5 = ValueFactory.createValue(Time.valueOf("4:30:01"));
        Value v6 = ValueFactory.createValue(Timestamp.valueOf("2005-09-05 4:30:01.666666666"));

        d.beginTrans();
        d.insertFilledRow(new Value[] {v1, v2, v3, v4, v5, v6});
        d.setFieldValue(0, 1, ValueFactory.createNullValue());
        d.commitTrans();

        d.start();
View Full Code Here

Examples of org.gdbms.engine.data.DataSource.beginTrans()

        Value v4 = ValueFactory.createValue(Date.valueOf("1998-09-05"));
        Value v5 = ValueFactory.createValue(Time.valueOf("4:30:01"));
        Value v6 = ValueFactory.createValue(Timestamp.valueOf("2005-09-05 4:30:01.666666666"));

       
        d.beginTrans();
        int rc = (int) d.getRowCount();
        d.insertFilledRow(new Value[] {v1, v2, v3, v4, v5, v6});
        assertTrue(d.getRowCount() == rc+1);
        d.commitTrans();
    }
View Full Code Here

Examples of org.gdbms.engine.data.DataSource.beginTrans()

    Value v4 = ValueFactory.createValue(Date.valueOf("1998-09-05"));
    Value v5 = ValueFactory.createValue(Time.valueOf("4:30:01"));
    Value v6 = ValueFactory.createValue(Timestamp.valueOf("2005-09-05 4:30:01.666666666"));
    Value v7 = ValueFactory.createValue(3);
   
    d.beginTrans();
    d.insertFilledRow(new Value[] {v1, v2, v3, v4, v5, v6, v7});
    d.setFieldValue(0, 1, ValueFactory.createNullValue());
    d.commitTrans();
    }
   
View Full Code Here

Examples of org.gdbms.engine.data.DataSource.beginTrans()

    }
   
    public void testAutomaticDataSource() throws Exception{
    DataSource d = ds.getDataSource("persona");

        d.beginTrans();
        d.setFieldValue(0, 1, ValueFactory.createValue("la gacela"));
        d.commitTrans();
       
    d = ds.getDataSource("hsqldbpersona");
View Full Code Here

Examples of org.gdbms.engine.data.DataSource.beginTrans()

        d.setFieldValue(0, 1, ValueFactory.createValue("la gacela"));
        d.commitTrans();
       
    d = ds.getDataSource("hsqldbpersona");

        d.beginTrans();
        d.setFieldValue(0, 1, ValueFactory.createValue("la gacela"));
        d.commitTrans();
       
    assertTrue(true);
    }
View Full Code Here

Examples of org.gdbms.engine.data.DataSource.beginTrans()

        Value v1 = ValueFactory.createValue("Fernando");
        Value v2 = ValueFactory.createValue("Gonz�lez");

        DataSource d = ds.getDataSource("persona_created");

        d.beginTrans();
        d.insertFilledRow(new Value[]{
                v1,
                v2,
                ValueFactory.createValue(0L)
        });
View Full Code Here

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

        ds.getDataSource("spatialobjectpersona",
                DataSourceFactory.UNDOABLE);
        Value v1 = ValueFactory.createValue(1);
        Value v2 = ValueFactory.createValue(10);
       
        d.beginTrans();
        int fieldIndex = d.getFieldIndexByName("id");
        d.setFieldValue(0, fieldIndex, v2);
        d.undo();
        assertTrue(((BooleanValue) d.getFieldValue(0, fieldIndex).equals(v1)).getValue());
        d.redo();
View Full Code Here

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

        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();
        assertTrue(((BooleanValue) d.getFieldValue(0, fieldIndex).equals(v1)).getValue());
        d.redo();
View Full Code Here

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

    public void testSpatialDeleteUndoRedo() throws Exception {
        SpatialDataSource d = (SpatialDataSource)
        ds.getDataSource("spatialobjectpersona",
                DataSourceFactory.UNDOABLE);
       
        d.beginTrans();
        long rc = d.getRowCount();
        int fieldIndex = d.getFieldIndexByName("id");
        Value v1 = d.getFieldValue(1, fieldIndex);
        d.deleteRow(1);
        d.undo();
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.