Examples of translateToDbPath()


Examples of org.apache.cayenne.map.ObjEntity.translateToDbPath()

                if (visitedIdentifier.equals(prefetch.getEjbqlPathEntityId())) {
                    DbEntity table = descriptor.getRootDbEntities().iterator().next();
                    ObjEntity objectEntity = descriptor.getEntity();
                    prefetch.setEntityName(objectEntity.getName());
                    Expression prefetchExp = Expression.fromString(prefetch.getPath());
                    Expression dbPrefetch = objectEntity.translateToDbPath(prefetchExp);

                    DbRelationship r = null;
                    for (PathComponent<DbAttribute, DbRelationship> component : table
                            .resolvePath(dbPrefetch, context
                                    .getMetadata()
View Full Code Here

Examples of org.apache.cayenne.map.ObjEntity.translateToDbPath()

            // for each relationship path add closest FK or PK, for each attribute path,
            // add specified column
            for (String path : ((PrefetchSelectQuery) query).getResultPaths()) {

                Expression pathExp = oe.translateToDbPath(Expression.fromString(path));

                // add joins and find terminating element

                resetJoinStack();
View Full Code Here

Examples of org.apache.cayenne.map.ObjEntity.translateToDbPath()

            for (PrefetchTreeNode prefetch : query.getPrefetchTree().adjacentJointNodes()) {

                // for each prefetch add all joins plus columns from the target entity
                Expression prefetchExp = Expression.fromString(prefetch.getPath());
                Expression dbPrefetch = oe.translateToDbPath(prefetchExp);

                resetJoinStack();
                DbRelationship r = null;
                for (PathComponent<DbAttribute, DbRelationship> component : table
                        .resolvePath(dbPrefetch, getPathAliases())) {
View Full Code Here

Examples of org.apache.cayenne.map.ObjEntity.translateToDbPath()

            // for each relationship path add closest FK or PK, for each attribute path,
            // add specified column
            while (extraPaths.hasNext()) {

                String path = (String) extraPaths.next();
                Expression pathExp = oe.translateToDbPath(Expression.fromString(path));

                Iterator<CayenneMapEntry> it = table.resolvePathComponents(pathExp);

                // add joins and find terminating element
                CayenneMapEntry pathComponent = null;
View Full Code Here

Examples of org.apache.cayenne.map.ObjEntity.translateToDbPath()

            for (PrefetchTreeNode prefetch : query.getPrefetchTree().adjacentJointNodes()) {

                // for each prefetch add all joins plus columns from the target entity
                Expression prefetchExp = Expression.fromString(prefetch.getPath());
                Expression dbPrefetch = oe.translateToDbPath(prefetchExp);

                Iterator it = table.resolvePathComponents(dbPrefetch);

                DbRelationship r = null;
                while (it.hasNext()) {
View Full Code Here

Examples of org.apache.cayenne.map.ObjEntity.translateToDbPath()

        if (query instanceof PrefetchSelectQuery) {

            // for each relationship path add PK of the target entity...
            for (String path : ((PrefetchSelectQuery) query).getResultPaths()) {

                Expression pathExp = oe.translateToDbPath(Expression.fromString(path));

                // add joins and find terminating element

                resetJoinStack();
View Full Code Here

Examples of org.apache.cayenne.map.ObjEntity.translateToDbPath()

            for (PrefetchTreeNode prefetch : query.getPrefetchTree().adjacentJointNodes()) {

                // for each prefetch add all joins plus columns from the target entity
                Expression prefetchExp = Expression.fromString(prefetch.getPath());
                Expression dbPrefetch = oe.translateToDbPath(prefetchExp);

                resetJoinStack();
                DbRelationship r = null;
                for (PathComponent<DbAttribute, DbRelationship> component : table
                        .resolvePath(dbPrefetch, getPathAliases())) {
View Full Code Here

Examples of org.apache.cayenne.map.ObjEntity.translateToDbPath()

            // for each relationship path add closest FK or PK, for each attribute path,
            // add specified column
            while (extraPaths.hasNext()) {

                String path = (String) extraPaths.next();
                Expression pathExp = oe.translateToDbPath(Expression.fromString(path));

                Iterator it = table.resolvePathComponents(pathExp);

                // add joins and find terminating element
                Object pathComponent = null;
View Full Code Here

Examples of org.apache.cayenne.map.ObjEntity.translateToDbPath()

            while (jointPrefetches.hasNext()) {
                PrefetchTreeNode prefetch = (PrefetchTreeNode) jointPrefetches.next();

                // for each prefetch add all joins plus columns from the target entity
                Expression prefetchExp = Expression.fromString(prefetch.getPath());
                Expression dbPrefetch = oe.translateToDbPath(prefetchExp);

                Iterator it = table.resolvePathComponents(dbPrefetch);

                DbRelationship r = null;
                while (it.hasNext()) {
View Full Code Here

Examples of org.apache.cayenne.map.ObjEntity.translateToDbPath()

            // for each relationship path add closest FK or PK, for each attribute path,
            // add specified column
            while (extraPaths.hasNext()) {

                String path = (String) extraPaths.next();
                Expression pathExp = oe.translateToDbPath(Expression.fromString(path));

                Iterator it = table.resolvePathComponents(pathExp);

                // add joins and find terminating element
                Object pathComponent = null;
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.