Package org.openengsb.core.edb.jpa.internal.util

Examples of org.openengsb.core.edb.jpa.internal.util.QueryRequestCriteriaBuilder


    @Override
    public List<JPAObject> query(QueryRequest request) throws EDBException {
        synchronized (entityManager) {
            LOGGER.debug("Perform query with the query object: {}", request);
            CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();
            QueryRequestCriteriaBuilder builder = new QueryRequestCriteriaBuilder(request, criteriaBuilder);
            TypedQuery<JPAObject> typedQuery = entityManager.createQuery(builder.buildQuery());
            return typedQuery.getResultList();
        }
    }
View Full Code Here

TOP

Related Classes of org.openengsb.core.edb.jpa.internal.util.QueryRequestCriteriaBuilder

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.