Package com.mysema.query.types.path

Examples of com.mysema.query.types.path.StringPath.startsWith()


    }

    @Test
    public void Various1() {
        StringPath str = new StringPath("str");
        for (String s : from(str, "a", "ab", "cd", "de").where(str.startsWith("a")).list(str)) {
            assertTrue(s.equals("a") || s.equals("ab"));
            System.out.println(s);
        }
    }
View Full Code Here


        predicates.add(str.lt("a"));
        predicates.add(str.matches("a"));
        predicates.add(str.ne("a"));
        predicates.add(str.notBetween("a", "b"));
        predicates.add(str.notIn("a","b","c"));
        predicates.add(str.startsWith("a"));
        predicates.add(str.startsWithIgnoreCase("a"));

        for (Predicate predicate : predicates) {
            where(predicate).count();
            where(predicate.not()).count();
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.