Package com.ctp.cdi.query.builder

Examples of com.ctp.cdi.query.builder.QueryBuilder


        try {
            Class<?> daoClass = extractFromProxy(context);
            DaoComponent dao = components.lookupComponent(daoClass);
            DaoMethod method = components.lookupMethod(daoClass, context.getMethod());
            queryContext = createContext(context, dao, method);
            QueryBuilder builder = queryBuilder.build(method);
            return builder.execute(queryContext);
        } catch (Exception e) {
            log.error("Query execution error", e);
            if (queryContext != null) {
                throw new QueryInvocationException(e, queryContext);
            }
View Full Code Here


    public Object handle(InvocationContext context) throws Exception {
        try {
            Class<?> daoClass = extractFromProxy(context);
            DaoComponent dao = components.lookupComponent(daoClass);
            DaoMethod method = components.lookupMethod(daoClass, context.getMethod());
            QueryBuilder builder = queryBuilder.build(method);
            return builder.execute(new QueryInvocationContext(context, method, resolveEntityManager(dao)));
        } catch (Exception e) {
            log.error("Query execution error", e);
            throw e;
        }
    }
View Full Code Here

    @AroundInvoke
    public Object handle(InvocationContext context) throws Exception {
        Class<?> daoClass = extractFromProxy(context);
        DaoComponent dao = components.lookupComponent(daoClass);
        DaoMethod method = components.lookupMethod(daoClass, context.getMethod());
        QueryBuilder builder = queryBuilder.select(new QueryInvocationLiteral(method.getMethodType())).get();
        return builder.execute(new QueryInvocationContext(context, method, resolveEntityManager(dao)));
    }
View Full Code Here

TOP

Related Classes of com.ctp.cdi.query.builder.QueryBuilder

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.