Package com.ctp.cdi.query.param

Examples of com.ctp.cdi.query.param.Parameters


        }
    }
   
    private javax.persistence.Query createJpaQuery(Query query, QueryInvocationContext context) {
        EntityManager entityManager = context.getEntityManager();
        Parameters params = context.getParams();
        javax.persistence.Query result = null;
        if (isNotEmpty(query.named())) {
            result = params.applyTo(entityManager.createNamedQuery(query.named()));
        } else if (isNotEmpty(query.sql())) {
            result = params.applyTo(entityManager.createNativeQuery(query.sql()));
        } else {
            result = params.applyTo(entityManager.createQuery(query.value()));
        }
        return applyRestrictions(context, result);
    }
View Full Code Here

TOP

Related Classes of com.ctp.cdi.query.param.Parameters

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.