Examples of BetweenCondition


Examples of org.ofbiz.sql.BetweenCondition

                        new ConditionList(
                            Joiner.AND,
                            list(
                                new BooleanCondition(new FieldValue("a", "partyTypeId"), "=", new StringValue("PERSON")),
                                new BooleanCondition(new FieldValue("b", "lastName"), "LIKE", new ParameterValue("lastName")),
                                new BetweenCondition(new FieldValue("b", "birthDate"), new StringValue("1974-12-01"), new StringValue("1974-12-31"))
                            )
                        ),
                        new ConditionList(
                            Joiner.AND,
                            list(
View Full Code Here

Examples of org.ofbiz.sql.BetweenCondition

        assertEquals(label + ":r2", r2, c.getR2());
        basicTest(label, BetweenCondition.class, c, s, o, matches);
    }

    public void testBetweenCondition() {
        BetweenCondition c1 = new BetweenCondition(l1, l2, l3);
        betweenConditionTest("c1", c1, l1, l2, l3, "1 BETWEEN 5 AND 10", null, false);
        BetweenCondition c2 = new BetweenCondition(l3, l1, l2);
        betweenConditionTest("c2", c2, l3, l1, l2, "10 BETWEEN 1 AND 5", c1, false);
        BetweenCondition c3 = new BetweenCondition(l1, l2, l3);
        betweenConditionTest("c3", c3, l1, l2, l3, "1 BETWEEN 5 AND 10", c1, true);
        BetweenCondition c4 = new BetweenCondition(l1, l3, l2);
        betweenConditionTest("c4", c4, l1, l3, l2, "1 BETWEEN 10 AND 5", c1, false);
        BetweenCondition c5 = new BetweenCondition(l1, l2, l1);
        betweenConditionTest("c5", c5, l1, l2, l1, "1 BETWEEN 5 AND 1", c1, 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.