Package org.apache.cayenne.test.jdbc

Examples of org.apache.cayenne.test.jdbc.TableHelper.deleteAll()


        Object[] subdata = ivSub1Table.select();
        assertEquals(2, subdata.length);
        assertEquals(data[0], subdata[0]);
        assertNull(subdata[1]);

        ivSub1Table.deleteAll();
        ivRootTable.deleteAll();

        IvSub1 sub11 = context.newObject(IvSub1.class);
        sub11.setName("XyZXY");
        sub11.setSub1Name("BdE2");
View Full Code Here


    protected void createClobDataSet() throws Exception {
        TableHelper tClobTest = new TableHelper(dbHelper, "CLOB_TEST");
        tClobTest.setColumns("CLOB_TEST_ID", "CLOB_COL");

        tClobTest.deleteAll();

        tClobTest.insert(1, "clob1");
        tClobTest.insert(2, "clob2");
    }
View Full Code Here

    protected void createClobDataSet() throws Exception {
        TableHelper tClobTest = new TableHelper(dbHelper, "CLOB_TEST");
        tClobTest.setColumns("CLOB_TEST_ID", "CLOB_COL");

        tClobTest.deleteAll();

        tClobTest.insert(1, "clob1");
        tClobTest.insert(2, "clob2");
    }
View Full Code Here

    protected void createClobDataSet() throws Exception {
        TableHelper tClobTest = new TableHelper(dbHelper, "CLOB_TEST");
        tClobTest.setColumns("CLOB_TEST_ID", "CLOB_COL");

        tClobTest.deleteAll();

        tClobTest.insert(1, "clob1");
        tClobTest.insert(2, "clob2");
    }
View Full Code Here

    Object[] subdata = ivSub1Table.select();
    assertEquals(2, subdata.length);
    assertEquals(data[0], subdata[0]);
    assertNull(subdata[1]);

    ivSub1Table.deleteAll();
    ivRootTable.deleteAll();

    IvSub1 sub11 = context.newObject(IvSub1.class);
    sub11.setName("XyZXY");
    sub11.setSub1Name("BdE2");
View Full Code Here

    assertEquals(3, subdata.length);
    assertEquals(data[0], subdata[0]);
    assertNull(subdata[1]);
    assertNull(subdata[2]);

    ivSub2Table.deleteAll();
    ivRootTable.deleteAll();

    IvSub2 sub21 = context.newObject(IvSub2.class);
    sub21.setName("XyZXY");
    sub21.setSub2Name("BdE2");
View Full Code Here

        Object[] subdata = ivSub1Table.select();
        assertEquals(2, subdata.length);
        assertEquals(data[0], subdata[0]);
        assertNull(subdata[1]);

        ivSub1Table.deleteAll();
        ivRootTable.deleteAll();

        IvSub1 sub11 = context.newObject(IvSub1.class);
        sub11.setName("XyZXY");
        sub11.setSub1Name("BdE2");
View Full Code Here

        assertEquals(3, subdata.length);
        assertEquals(data[0], subdata[0]);
        assertNull(subdata[1]);
        assertNull(subdata[2]);

        ivSub2Table.deleteAll();
        ivRootTable.deleteAll();

        IvSub2 sub21 = context.newObject(IvSub2.class);
        sub21.setName("XyZXY");
        sub21.setSub2Name("BdE2");
View Full Code Here

    protected DBHelper dbHelper;

    @Override
    protected void setUpAfterInjection() throws Exception {
        TableHelper noPkTestTable = new TableHelper(dbHelper, "NO_PK_TEST", "ATTRIBUTE1");
        noPkTestTable.deleteAll();

        noPkTestTable.insert(1);
        noPkTestTable.insert(2);
    }
View Full Code Here

    protected void createClobDataSet() throws Exception {
        TableHelper tClobTest = new TableHelper(dbHelper, "CLOB_TEST");
        tClobTest.setColumns("CLOB_TEST_ID", "CLOB_COL");

        tClobTest.deleteAll();

        tClobTest.insert(1, "clob1");
        tClobTest.insert(2, "clob2");
    }
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.