List of usage examples for javax.persistence.criteria CriteriaBuilder like
Predicate like(Expression<String> x, String pattern);
From source file:th.co.geniustree.dental.spec.DepartmentSpec.java
public static Specification<Department> namelike(final String keyword) { return new Specification<Department>() { @Override//from ww w. j a va 2s . c om public Predicate toPredicate(Root<Department> root, CriteriaQuery<?> cq, CriteriaBuilder cb) { return cb.like(cb.upper(root.get(Department_.name)), keyword.toUpperCase()); } }; }
From source file:th.co.geniustree.dental.spec.ListSelectHealSpec.java
public static Specification<ListSelectHeal> nameLike(final String keyword) { return new Specification<ListSelectHeal>() { @Override//from w w w. jav a 2 s. c o m public Predicate toPredicate(Root<ListSelectHeal> root, CriteriaQuery<?> cq, CriteriaBuilder cb) { return cb.like(cb.upper(root.get(ListSelectHeal_.name)), keyword.toUpperCase()); } }; }
From source file:th.co.geniustree.intenship.advisor.spec.StudentSpec.java
public static Specification<Student> emailLike(final String keyword) { return new Specification<Student>() { @Override/* w w w. j a v a 2s . c o m*/ public Predicate toPredicate(Root<Student> root, CriteriaQuery<?> query, CriteriaBuilder cb) { return cb.like(cb.upper(root.get(Student_.email)), keyword.toUpperCase()); } }; }
From source file:th.co.geniustree.intenship.advisor.spec.ParentSpec.java
public static Specification<Parent> emailLike(final String keyword) { return new Specification<Parent>() { @Override// ww w. j a va2s. c o m public Predicate toPredicate(Root<Parent> root, CriteriaQuery<?> query, CriteriaBuilder cb) { return cb.like(cb.upper(root.get(Parent_.email)), keyword.toUpperCase()); } }; }
From source file:th.co.geniustree.intenship.advisor.spec.StudentSpec.java
public static Specification<Student> nameLike(final String keyword) { return new Specification<Student>() { @Override//w w w .j a v a2s. com public Predicate toPredicate(Root<Student> root, CriteriaQuery<?> query, CriteriaBuilder cb) { return cb.like(cb.upper(root.get(Student_.name)), keyword.toUpperCase()); } }; }
From source file:th.co.geniustree.intenship.advisor.spec.InformationSpec.java
public static Specification<Information> titleLike(final String keyword) { return new Specification<Information>() { @Override//from ww w. j a v a 2s .c o m public Predicate toPredicate(Root<Information> root, CriteriaQuery<?> cq, CriteriaBuilder cb) { return cb.like(cb.upper(root.get(Information_.title)), keyword.toUpperCase()); } }; }
From source file:th.co.geniustree.intenship.advisor.spec.ParentSpec.java
public static Specification<Parent> nameLike(final String keyword) { return new Specification<Parent>() { @Override/* w ww .jav a2 s . c o m*/ public Predicate toPredicate(Root<Parent> root, CriteriaQuery<?> cq, CriteriaBuilder cb) { return cb.like(cb.upper(root.get(Parent_.name)), keyword.toUpperCase()); } }; }
From source file:th.co.geniustree.intenship.advisor.spec.AccountSpec.java
public static Specification<Account> emailLike(final String keyword) { return new Specification<Account>() { @Override/*w w w . ja v a 2 s .com*/ public Predicate toPredicate(Root<Account> root, CriteriaQuery<?> query, CriteriaBuilder cb) { return cb.like(cb.upper(root.get(Account_.email)), keyword.toUpperCase()); } }; }
From source file:th.co.geniustree.intenship.advisor.spec.AccountSpec.java
public static Specification<Account> nameLike(final String keyword) { return new Specification<Account>() { @Override/*from w w w .j a v a2 s . c o m*/ public Predicate toPredicate(Root<Account> root, CriteriaQuery<?> cq, CriteriaBuilder cb) { return cb.like(cb.upper(root.get(Account_.name)), keyword.toUpperCase()); } }; }
From source file:th.co.geniustree.dental.spec.EmployeeSpec.java
public static Specification<Employee> nameLike(final String keyword) { return new Specification<Employee>() { @Override//from w ww . j a va2 s . c o m public Predicate toPredicate(Root<Employee> root, CriteriaQuery<?> cq, CriteriaBuilder cb) { return cb.like(cb.upper(root.get(Employee_.nameTh)), keyword.toUpperCase()); } }; }