程式與日常
SQL predicates是指表示TRUE或FALSE等條件判斷的敘述,例如=, <>, >, >=, <, <=, IN, BETWEEN, LIKE, IS NULL or IS NOT NULL等就稱之為predicates。或是說WHERE後的條件式都可稱為predicates。
TRUE
FALSE
=, <>, >, >=, <, <=, IN, BETWEEN, LIKE, IS NULL or IS NOT NULL
WHERE
所以JPA Criteria API中的Predicates即為CriteriaQuery.where(Predicate... restrictions)的WHERE條件物件。
Predicates
CriteriaQuery.where(Predicate... restrictions)
沒有留言:
張貼留言