Spring Data Jpa

org.springframework.data.jpa.domain
Interface Specification<T>

All Known Implementing Classes:
Specifications

public interface Specification<T>

Specification in the sense of Domain Driven Design.

Author:
Oliver Gierke

Method Summary
 javax.persistence.criteria.Predicate toPredicate(javax.persistence.criteria.Root<T> root, javax.persistence.criteria.CriteriaQuery<?> query, javax.persistence.criteria.CriteriaBuilder cb)
          Creates a WHERE clause for a query of the referenced entity in form of a Predicate for the given Root and CriteriaQuery.
 

Method Detail

toPredicate

javax.persistence.criteria.Predicate toPredicate(javax.persistence.criteria.Root<T> root,
                                                 javax.persistence.criteria.CriteriaQuery<?> query,
                                                 javax.persistence.criteria.CriteriaBuilder cb)
Creates a WHERE clause for a query of the referenced entity in form of a Predicate for the given Root and CriteriaQuery.

Parameters:
root -
query -
Returns:
a Predicate, must not be null.

Spring Data Jpa

Copyright © 2011-2012-2012 SpringSource. All Rights Reserved.