Package org.apache.cayenne.exp.parser

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


     * escape character.</p>
     *
     * @since 3.0.1
     */
    public static Expression likeIgnoreCaseDbExp(String pathSpec, Object value, char escapeChar) {
        return new ASTLikeIgnoreCase(new ASTDbPath(pathSpec), value, escapeChar);
    }
View Full Code Here


     * A convenience shortcut for building NOT_LIKE_IGNORE_CASE expression.
     *
     * @since 3.0
     */
    public static Expression notLikeIgnoreCaseDbExp(String pathSpec, Object value) {
        return new ASTNotLikeIgnoreCase(new ASTDbPath(pathSpec), value);
    }
View Full Code Here

     * escape character.</p>
     *
     * @since 3.0.1
     */
    public static Expression notLikeIgnoreCaseDbExp(String pathSpec, Object value, char escapeChar) {
        return new ASTNotLikeIgnoreCase(new ASTDbPath(pathSpec), value, escapeChar);
    }
View Full Code Here

        StringBuilder validPath = new StringBuilder();

        try {
            for (PathComponent<DbAttribute, DbRelationship> pathComponent : dbEntity
                    .resolvePath(new ASTDbPath(path), Collections.emptyMap())) {

                if (validPath.length() > 0) {
                    validPath.append(Entity.PATH_SEPARATOR);
                }
                validPath.append(pathComponent.getName());
View Full Code Here

                }

                try {
                    // add new relationships from path
                    Iterator<CayenneMapEntry> it = entity
                            .resolvePathComponents(new ASTDbPath(dbRelationshipPath));

                    while (it.hasNext()) {
                        DbRelationship relationship = (DbRelationship) it.next();

                        dbRelationships.add(relationship);
View Full Code Here

                // not ready to handle inheritance from abstract entities...
                continue;
            }

            // determine DB relationship mapping...
            Expression exp = new ASTDbPath(targetPath);
            Iterator path = dbEntity.resolvePathComponents(exp);

            DbRelationship firstRel = null;
            DbRelationship lastRel = null;
            while (path.hasNext()) {
View Full Code Here

        StringBuilder validPath = new StringBuilder();

        try {
            for (PathComponent<DbAttribute, DbRelationship> pathComponent : dbEntity
                    .resolvePath(new ASTDbPath(path), Collections.emptyMap())) {

                if (validPath.length() > 0) {
                    validPath.append(Entity.PATH_SEPARATOR);
                }
                validPath.append(pathComponent.getName());
View Full Code Here

                }

                try {
                    // add new relationships from path
                    Iterator<CayenneMapEntry> it = entity
                            .resolvePathComponents(new ASTDbPath(this.dbRelationshipPath));

                    while (it.hasNext()) {
                        DbRelationship relationship = (DbRelationship) it.next();

                        dbRelationships.add(relationship);
View Full Code Here

        StringBuilder validPath = new StringBuilder();

        try {
            for (PathComponent<DbAttribute, DbRelationship> pathComponent : dbEntity
                    .resolvePath(new ASTDbPath(path), Collections.emptyMap())) {

                if (validPath.length() > 0) {
                    validPath.append(Entity.PATH_SEPARATOR);
                }
                validPath.append(pathComponent.getName());
View Full Code Here

                }

                try {
                    // add new relationships from path
                    Iterator<CayenneMapEntry> it = entity
                            .resolvePathComponents(new ASTDbPath(this.dbRelationshipPath));

                    while (it.hasNext()) {
                        DbRelationship relationship = (DbRelationship) it.next();

                        dbRelationships.add(relationship);
View Full Code Here

TOP

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

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.