Class ExampleSpecification<T>

java.lang.Object
com.totvs.tjf.api.jpa.repository.impl.ExampleSpecification<T>
All Implemented Interfaces:
Serializable, org.springframework.data.jpa.domain.Specification<T>

public class ExampleSpecification<T> extends Object implements org.springframework.data.jpa.domain.Specification<T>
Specification that gives access to the Predicate instance representing the values contained in the Example.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    ExampleSpecification(org.springframework.data.domain.Example<T> example)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    javax.persistence.criteria.Predicate
    toPredicate(javax.persistence.criteria.Root<T> root, javax.persistence.criteria.CriteriaQuery<?> query, javax.persistence.criteria.CriteriaBuilder cb)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.data.jpa.domain.Specification

    and, or
  • Constructor Details

    • ExampleSpecification

      public ExampleSpecification(org.springframework.data.domain.Example<T> example)
  • Method Details

    • toPredicate

      public javax.persistence.criteria.Predicate toPredicate(javax.persistence.criteria.Root<T> root, javax.persistence.criteria.CriteriaQuery<?> query, javax.persistence.criteria.CriteriaBuilder cb)
      Specified by:
      toPredicate in interface org.springframework.data.jpa.domain.Specification<T>