Package org.apache.cayenne.exp.parser

Examples of org.apache.cayenne.exp.parser.ASTIn


     */
    public static Expression inDbExp(String pathSpec, Collection<?> values) {
        if (values.isEmpty()) {
            return new ASTFalse();
        }
        return new ASTIn(new ASTDbPath(pathSpec), new ASTList(values));
    }
View Full Code Here


     */
    public static Expression inExp(String pathSpec, Object... values) {
        if (values.length == 0) {
            return new ASTFalse();
        }
        return new ASTIn(new ASTObjPath(pathSpec), new ASTList(values));
    }
View Full Code Here

     */
    public static Expression inDbExp(String pathSpec, Object... values) {
        if (values.length == 0) {
            return new ASTFalse();
        }
        return new ASTIn(new ASTDbPath(pathSpec), new ASTList(values));
    }
View Full Code Here

     */
    public static Expression inExp(String pathSpec, Collection<?> values) {
        if (values.isEmpty()) {
            return new ASTFalse();
        }
        return new ASTIn(new ASTObjPath(pathSpec), new ASTList(values));
    }
View Full Code Here

     */
    public static Expression inDbExp(String pathSpec, Collection<?> values) {
        if (values.isEmpty()) {
            return new ASTFalse();
        }
        return new ASTIn(new ASTDbPath(pathSpec), new ASTList(values));
    }
View Full Code Here

    /**
     * A convenience shortcut for building IN DB expression.
     */
    public static Expression inDbExp(String pathSpec, Object[] values) {
        return new ASTIn(new ASTDbPath(pathSpec), new ASTList(values));
    }
View Full Code Here

    /**
     * A convenience shortcut for building IN DB expression.
     */
    public static Expression inDbExp(String pathSpec, Collection values) {
        return new ASTIn(new ASTDbPath(pathSpec), new ASTList(values));
    }
View Full Code Here

    /**
     * A convenience shortcut for building IN expression.
     */
    public static Expression inExp(String pathSpec, Object[] values) {
        return new ASTIn(new ASTObjPath(pathSpec), new ASTList(values));
    }
View Full Code Here

    /**
     * A convenience shortcut for building IN expression.
     */
    public static Expression inExp(String pathSpec, Collection values) {
        return new ASTIn(new ASTObjPath(pathSpec), new ASTList(values));
    }
View Full Code Here

     */
    public static Expression inExp(String pathSpec, Object[] values) {
        if (values.length == 0) {
            return new ASTFalse();
        }
        return new ASTIn(new ASTObjPath(pathSpec), new ASTList(values));
    }
View Full Code Here

TOP

Related Classes of org.apache.cayenne.exp.parser.ASTIn

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.