Package org.apache.art

Examples of org.apache.art.ExtendedTypeEntity


        super.setUp();
        deleteTestData();
    }

    public void testStoreExtendedType() {
        ExtendedTypeEntity e1 = createDataContext().newObject(ExtendedTypeEntity.class);
        e1.setName(new StringET1("X"));
        e1.getObjectContext().commitChanges();

        SQLTemplate checkQ = new SQLTemplate(
                ExtendedTypeEntity.class,
                "SELECT * FROM EXTENDED_TYPE_TEST WHERE NAME = 'X'");
        checkQ.setFetchingDataRows(true);
        checkQ.setColumnNamesCapitalization(CapsStrategy.UPPER);
        assertEquals(1, e1.getObjectContext().performQuery(checkQ).size());
    }
View Full Code Here


        checkQ.setColumnNamesCapitalization(CapsStrategy.UPPER);
        assertEquals(1, e1.getObjectContext().performQuery(checkQ).size());
    }

    public void testInExpressionExtendedTypeArray() {
        ExtendedTypeEntity e1 = createDataContext().newObject(ExtendedTypeEntity.class);
        e1.setName(new StringET1("X"));

        ExtendedTypeEntity e2 = e1.getObjectContext().newObject(ExtendedTypeEntity.class);
        e2.setName(new StringET1("Y"));

        ExtendedTypeEntity e3 = e1.getObjectContext().newObject(ExtendedTypeEntity.class);
        e3.setName(new StringET1("Z"));

        e1.getObjectContext().commitChanges();

        Expression in = ExpressionFactory.inExp(
                ExtendedTypeEntity.NAME_PROPERTY,
View Full Code Here

        SelectQuery query = new SelectQuery(ExtendedTypeEntity.class, in);
        assertEquals(2, e1.getObjectContext().performQuery(query).size());
    }

    public void testInExpressionExtendedTypeList() {
        ExtendedTypeEntity e1 = createDataContext().newObject(ExtendedTypeEntity.class);
        e1.setName(new StringET1("X"));

        ExtendedTypeEntity e2 = e1.getObjectContext().newObject(ExtendedTypeEntity.class);
        e2.setName(new StringET1("Y"));

        ExtendedTypeEntity e3 = e1.getObjectContext().newObject(ExtendedTypeEntity.class);
        e3.setName(new StringET1("Z"));

        e1.getObjectContext().commitChanges();

        Expression in = ExpressionFactory.inExp(ExtendedTypeEntity.NAME_PROPERTY, Arrays
                .asList(new StringET1("X"), new StringET1("Y")));
View Full Code Here

TOP

Related Classes of org.apache.art.ExtendedTypeEntity

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.