Package org.apache.cayenne.exp.parser

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


     * A convenience shortcut for boolean true expression.
     *
     * @since 3.0
     */
    public static Expression expTrue() {
        return new ASTTrue();
    }
View Full Code Here


        if (values == null) {
            throw new NullPointerException("Null values collection");
        }

        if (values.size() == 0) {
            return new ASTTrue();
        }

        return matchAllExp(path, values.toArray());
    }
View Full Code Here

        if (values == null) {
            throw new NullPointerException("Null values collection");
        }

        if (values.length == 0) {
            return new ASTTrue();
        }

        int split = path.indexOf(SPLIT_SEPARATOR);

        List<Expression> matches = new ArrayList<Expression>(values.length);
View Full Code Here

     * A convenience shortcut for building NOT_IN expression. Return ASTTrue for empty
     * collection.
     */
    public static Expression notInExp(String pathSpec, Collection<?> values) {
        if (values.isEmpty()) {
            return new ASTTrue();
        }
        return new ASTNotIn(new ASTObjPath(pathSpec), new ASTList(values));
    }
View Full Code Here

     *
     * @since 3.0
     */
    public static Expression notInDbExp(String pathSpec, Collection<?> values) {
        if (values.isEmpty()) {
            return new ASTTrue();
        }
        return new ASTNotIn(new ASTDbPath(pathSpec), new ASTList(values));
    }
View Full Code Here

     *
     * @since 1.0.6
     */
    public static Expression notInExp(String pathSpec, Object... values) {
        if (values.length == 0) {
            return new ASTTrue();
        }
        return new ASTNotIn(new ASTObjPath(pathSpec), new ASTList(values));
    }
View Full Code Here

     *
     * @since 3.0
     */
    public static Expression notInDbExp(String pathSpec, Object... values) {
        if (values.length == 0) {
            return new ASTTrue();
        }
        return new ASTNotIn(new ASTDbPath(pathSpec), new ASTList(values));
    }
View Full Code Here

     * A convenience shortcut for boolean true expression.
     *
     * @since 3.0
     */
    public static Expression expTrue() {
        return new ASTTrue();
    }
View Full Code Here

        if (!node.getEntity().isAbstract()) {

            Expression qualifier = node.getDbQualifier();

            if (qualifier == null) {
                qualifier = new ASTTrue();
            }

            entityQualifiers.add(qualifier);
            entityReaders.add(rowReader);
        }
View Full Code Here

        if (values == null) {
            throw new NullPointerException("Null values collection");
        }

        if (values.size() == 0) {
            return new ASTTrue();
        }

        return matchAllExp(path, values.toArray());
    }
View Full Code Here

TOP

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

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.