Package org.apache.metamodel.delete

Examples of org.apache.metamodel.delete.DeleteFrom


                assertTrue(dateValueFromDataSet instanceof Date);
                assertEquals("1980-08-08 00:00:00", dateFormat.format(dateValueFromDataSet));

            } finally {
                // clean up
                dc.executeUpdate(new DeleteFrom(table).where("Id").eq(id));
            }

            rows++;
        }
View Full Code Here


        assertTrue(ds.next());
        assertEquals("Row[values=[2]]", ds.getRow().toString());
        assertFalse(ds.next());
        ds.close();

        dc.executeUpdate(new DeleteFrom(table).where("id").eq("bar"));
       

        ds = dc.query().from(table).selectCount().execute();
        assertTrue(ds.next());
        assertEquals("Row[values=[1]]", ds.getRow().toString());
View Full Code Here

TOP

Related Classes of org.apache.metamodel.delete.DeleteFrom

Copyright © 2018 www.massapicom. 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.