Package com.ctp.cdi.query.meta

Examples of com.ctp.cdi.query.meta.QueryInvocationLiteral


    @Inject @Any
    private Instance<QueryBuilder> queryBuilder;
   
    public QueryBuilder build(DaoMethod method) {
        QueryBuilder builder = queryBuilder.select(new QueryInvocationLiteral(method.getMethodType())).get();
        if (method.returns(QueryResult.class)) {
            return new WrappedQueryBuilder(builder);
        }
        return builder;
    }
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.meta.QueryInvocationLiteral

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.