Examples of NamedQuery


Examples of org.apache.cayenne.query.NamedQuery

     * array of update counts.
     *
     * @since 1.1
     */
    public int[] performNonSelectingQuery(String queryName, Map<String, ?> parameters) {
        return performNonSelectingQuery(new NamedQuery(queryName, parameters));
    }
View Full Code Here

Examples of org.apache.cayenne.query.NamedQuery

     */
    public List<?> performQuery(
            String queryName,
            Map parameters,
            boolean expireCachedLists) {
        NamedQuery query = new NamedQuery(queryName, parameters);
        query.setForceNoCache(expireCachedLists);
        return performQuery(query);
    }
View Full Code Here

Examples of org.apache.cayenne.query.NamedQuery

            }
        }

        // create proxies for named queries
        for (Query q : getQueries()) {
            NamedQuery proxy = new NamedQuery(q.getName());
            proxy.setName(q.getName());
            proxy.setDataMap(clientMap);

            // resolve metadata so that client can have access to it without knowing about
            // the server query.
            proxy.initMetadata(q.getMetaData(serverResolver));
            clientMap.addQuery(proxy);
        }

        return clientMap;
    }
View Full Code Here

Examples of org.apache.cayenne.query.NamedQuery

        Object[] values = {
            artist,
        };

        return context.performQuery(new NamedQuery("ObjectQuery", parameters, values));
    }
View Full Code Here

Examples of org.apache.cayenne.query.NamedQuery

        Object[] values = {
            name,
        };

        return context.performQuery(new NamedQuery("ParameterizedQueryWithLocalCache", parameters, values));
    }
View Full Code Here

Examples of org.apache.cayenne.query.NamedQuery

        Object[] values = {
            name,
        };

        return context.performQuery(new NamedQuery("ParameterizedQueryWithSharedCache", parameters, values));
    }
View Full Code Here

Examples of org.apache.cayenne.query.NamedQuery

        return context.performQuery(new NamedQuery("ParameterizedQueryWithSharedCache", parameters, values));
    }

    public List<Artist> performQueryWithLocalCache(ObjectContext context ) {
        return context.performQuery(new NamedQuery("QueryWithLocalCache"));
    }
View Full Code Here

Examples of org.apache.cayenne.query.NamedQuery

    public List<Artist> performQueryWithLocalCache(ObjectContext context ) {
        return context.performQuery(new NamedQuery("QueryWithLocalCache"));
    }

    public List<Artist> performQueryWithOrdering(ObjectContext context ) {
        return context.performQuery(new NamedQuery("QueryWithOrdering"));
    }
View Full Code Here

Examples of org.apache.cayenne.query.NamedQuery

    public List<Artist> performQueryWithOrdering(ObjectContext context ) {
        return context.performQuery(new NamedQuery("QueryWithOrdering"));
    }

    public List<Gallery> performQueryWithPrefetch(ObjectContext context ) {
        return context.performQuery(new NamedQuery("QueryWithPrefetch"));
    }
View Full Code Here

Examples of org.apache.cayenne.query.NamedQuery

        Object[] values = {
            param1,
        };

        return context.performQuery(new NamedQuery("QueryWithQualifier", parameters, values));
    }
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.