手抖是什么症状| 化缘是什么意思| 胃出血吃什么药好| 疟原虫是什么生物| 最难写的字是什么| 是什么原因| 7.14什么情人节| 美尼尔氏综合症是什么病| 无缘无故头疼是什么原因| 生理期为什么会肚子疼| 升结肠憩室是什么意思| 月经周期短是什么原因| 几天不大便是什么原因| 晚上睡觉手发麻是什么原因| 萨德是什么意思| des是什么意思| 大校相当于地方什么级别| 尿酸高什么引起的| close是什么意思| 蓝天白云是什么生肖| 甄嬛传什么时候上映的| 什么是淡盐水| 爆血管是什么原因引起的| 什么叫前列腺炎| 嘴苦吃什么药| 本是同根生相煎何太急是什么意思| 真菌最怕什么| 什么都想吃| 柠檬酸是什么东西| 做梦梦到大蟒蛇是什么意思| 灵芝泡酒有什么功效| 蔻驰手表属于什么档次| 惊天动地是什么生肖| 瓒字取名有什么寓意| 头孢不能和什么食物一起吃| 脸书是什么意思| 3月份是什么星座| 1月30日什么星座| 什么的面目| 风湿吃什么药| 美妙绝伦是什么意思| 什么叫翡翠| 保家仙是什么意思| 小虾吃什么食物| 10月25号是什么星座| 贾宝玉的玉是什么来历| 鱼豆腐是用什么做的| 嘴角发麻是什么病前兆| 头晕想睡觉是什么原因| 髋关节在什么位置| 情调是什么意思| 腰部疼痛挂什么科| 动销是什么意思| l表示什么单位| 拉肚子吃什么药最有效果| 女人右眼皮跳是什么预兆| 2015属什么生肖| 大眼角痒是什么原因| 多囊卵巢综合征是什么意思| 立秋什么意思| 995是什么意思| 违背是什么意思| 迎风流泪是什么原因| 三文鱼有什么营养| 什么是冠心病| 女人背心正中间疼是什么原因| 蹦迪是什么意思| lof是什么基金| 曲克芦丁片治什么病| 突然耳鸣是什么原因| 什么叫偶数| 精液长什么样| 木志读什么| 胃火重口臭吃什么药好| 温婉是什么意思| 舌苔发黄是什么症状| uspa是什么牌子| 是的是什么意思| 海带绿豆汤有什么功效| 夏吃姜有什么好处| 辰砂是什么| 白痰多是什么原因造成的| 惠州有什么特产| r值是什么| 五心烦热是什么症状| 明了是什么意思| 检测hpv挂什么科| 为什么会突然吐血| 提手旁的字有什么| 79年的羊是什么命| 头大是什么原因造成的| 龟头发红是什么原因| 痔疮有什么特效药| im是什么意思| 脂肪肝是什么意思| 阳历8月份是什么星座| 右耳朵痒是什么预兆| 火气重吃什么降火| 芦荟有什么好处| 218号是什么星座| 什么样的女人招人嫉妒| 王加民念什么| 剃光头有什么好处| 隐血是什么意思| 结扎对男人有什么伤害| 颈椎退行性变是什么意思| 走路脚后跟疼是什么原因| 开塞露是什么成分| tg是什么| 蛇五行属什么| 子宫肌壁回声不均匀是什么意思| hla一b27阳性是什么意思| 南非叶有什么功效| act是什么意思| 梦见捡鸡蛋是什么预兆| 糙米饭是什么米| 检查淋巴挂什么科| 心脏属于什么组织| 做肠镜挂什么科| 5.20是什么星座| 酒不能和什么一起吃| 血糖高的人适合吃什么水果| 屁多不臭是什么原因| 85年属什么的生肖| 学位证是什么| 梦见和邻居吵架什么预兆| 月季什么时候扦插最好| 红眼病有什么症状| 宁静致远是什么意思| 金黄色葡萄球菌是什么菌| 提篮子是什么意思| 氯偏低是什么原因| 肚脐眼有什么用| 为什么招蚊子咬| 米线是什么材料做的| 12月出生是什么星座| 浮肿是什么原因造成的| tct检查什么| 月亮发红是什么原因| 中国民间为什么要吃腊八粥| 官官相护是什么意思| 应用心理学是什么| 怕金森是什么症状| 感冒流鼻涕咳嗽吃什么药好| amount是什么意思| 错综复杂是什么意思| 波霸是什么| 胎心是什么| 毡房是什么意思| 猝死是什么原因造成的| 比值是什么意思| 黑色的鸟是什么鸟| alt什么意思| 为什么月经不来| 和合双全是什么生肖| 嗓子疼不能吃什么| 什么叫精神出轨| 想吐吃什么药可以缓解| 乳房头疼是什么原因| 高良姜是什么姜| 111是什么意思| 口干是什么病的前兆| 胃低分化腺癌是什么意思| 百丽鞋属于什么档次| mra是什么意思| 大便黑色什么原因| mra检查是什么意思| 爱出者爱返福往者福来是什么意思| 精子吃了有什么好处| 一个金字旁一个川读什么| 镇团委书记是什么级别| 什么是pc| 豆豉是什么东西| 物尽其用什么意思| 乳头有点痒是什么原因| 怼人是什么意思| 工伤是什么意思| 血脂稠是什么原因造成的| 外泌体是什么| 吩咐是什么意思| 红景天是什么药| 老年人适合吃什么水果| 舌头麻木是什么原因引起| 抑郁症是什么原因造成| 文曲星下凡是什么意思| 尿胆原是什么| 激情什么意思| 朗朗原名叫什么| 缺锌有什么症状| 泥丸宫在什么位置| 箔是什么意思| 晚上睡觉阴部外面为什么会痒| 左上腹疼是什么原因| 爆缸是什么意思| 双子座是什么象| 女生喜欢什么礼物| 眼睛胀痛是什么原因| 顺风耳是什么意思| 狼吞虎咽的意思是什么| 糖尿病是什么原因造成的| 翌字五行属什么| 不是省油的灯是什么意思| 硬膜囊前缘受压是什么意思| 尿检隐血弱阳性是什么意思| 痔疮不治会有什么危害| 珀莱雅适合什么年龄| 科目一和科目四有什么区别| 凡士林是什么东西| 空心人是什么意思| 太后是什么意思| 调养是什么意思| 什么是阳光抑郁症| 香菜吃多了有什么坏处| 1994年属狗五行属什么| 晚上搬家有什么说法| 埃及艳后叫什么| 钥匙是什么意思| 苹果什么时候吃最好| 提上日程是什么意思| 亚麻籽有什么功效| 1961属什么生肖| 玉米有什么营养价值| 什么是个性| 什么牌子的保温杯好| 属实是什么意思| 蛇的五行属什么| 吃维e有什么好处和副作用| 儿郎是什么意思| 软是什么意思| 阴囊潮湿吃什么| 车前草治什么病最好| 草鱼吃什么| 眼皮发黑是什么病症| 半斤八两什么意思| 秦始皇的原名叫什么| 奶酪和芝士有什么区别| 一路顺风是什么生肖| 房水是什么| 鼻子老是出血是什么原因| 纲目是什么意思| 海带绿豆汤有什么功效| 菱形脸适合什么刘海| 夏至要吃什么| 心口窝疼是什么原因| 属龙本命佛是什么佛| 附子是什么| a型血的人容易得什么病| 肝火旺吃什么降火最快| 1993年出生属什么生肖| 什么时候量血压最准确| 内膜薄吃什么增长最快| 外向孤独症是什么意思| 小孩不吃肉是什么原因| 舌头麻木是什么原因引起| 现象是什么意思| 香港说什么语言| 念力是什么意思| 喝金银花有什么好处| 口引念什么| 冲菜是什么菜| 歆字取名什么寓意| 双肾实质回声增强是什么意思| 肌酐高不能吃什么| 什么是假性高血压| 百度

javax.persistence.criteria
Interface CriteriaBuilder


public interface CriteriaBuilder

Used to construct criteria queries, compound selections, expressions, predicates, orderings.

Note that Predicate is used instead of Expression<Boolean> in this API in order to work around the fact that Java generics are not compatible with varags.

Since:
Java Persistence 2.0

Nested Class Summary
static interface CriteriaBuilder.Case<R>
          Interface used to build general case expressions.
static interface CriteriaBuilder.Coalesce<T>
          Interface used to build coalesce expressions.
static interface CriteriaBuilder.In<T>
          Interface used to build in predicates.
static interface CriteriaBuilder.SimpleCase<C,R>
          Interface used to build simple case expressions.
static class CriteriaBuilder.Trimspec
          Used to specify how strings are trimmed.
 
Method Summary
<N extends java.lang.Number>
Expression<N>
abs(Expression<N> x)
          Create an expression that returns the absolute value of its argument.
<Y> Expression<Y>
all(Subquery<Y> subquery)
          Create an all expression over the subquery results.
 Predicate and(Expression<java.lang.Boolean> x, Expression<java.lang.Boolean> y)
          Create a conjunction of the given boolean expressions.
 Predicate and(Predicate... restrictions)
          Create a conjunction of the given restriction predicates.
<Y> Expression<Y>
any(Subquery<Y> subquery)
          Create an any expression over the subquery results.
 CompoundSelection<java.lang.Object[]> array(Selection<?>... selections)
          Create an array-valued selection item.
 Order asc(Expression<?> x)
          Create an ordering by the ascending value of the expression.
<N extends java.lang.Number>
Expression<java.lang.Double>
avg(Expression<N> x)
          Create an aggregate expression applying the avg operation.
<Y extends java.lang.Comparable<? super Y>>
Predicate
between(Expression<? extends Y> v, Expression<? extends Y> x, Expression<? extends Y> y)
          Create a predicate for testing whether the first argument is between the second and third arguments in value.
<Y extends java.lang.Comparable<? super Y>>
Predicate
between(Expression<? extends Y> v, Y x, Y y)
          Create a predicate for testing whether the first argument is between the second and third arguments in value.
<T> CriteriaBuilder.Coalesce<T>
coalesce()
          Create a coalesce expression.
<Y> Expression<Y>
coalesce(Expression<? extends Y> x, Expression<? extends Y> y)
          Create an expression that returns null if all its arguments evaluate to null, and the value of the first non-null argument otherwise.
<Y> Expression<Y>
coalesce(Expression<? extends Y> x, Y y)
          Create an expression that returns null if all its arguments evaluate to null, and the value of the first non-null argument otherwise.
 Expression<java.lang.String> concat(Expression<java.lang.String> x, Expression<java.lang.String> y)
          Create an expression for string concatenation.
 Expression<java.lang.String> concat(Expression<java.lang.String> x, java.lang.String y)
          Create an expression for string concatenation.
 Expression<java.lang.String> concat(java.lang.String x, Expression<java.lang.String> y)
          Create an expression for string concatenation.
 Predicate conjunction()
          Create a conjunction (with zero conjuncts).
<Y> CompoundSelection<Y>
construct(java.lang.Class<Y> resultClass, Selection<?>... selections)
          Create a selection item corresponding to a constructor.
 Expression<java.lang.Long> count(Expression<?> x)
          Create an aggregate expression applying the count operation.
 Expression<java.lang.Long> countDistinct(Expression<?> x)
          Create an aggregate expression applying the count distinct operation.
 CriteriaQuery<java.lang.Object> createQuery()
          Create a CriteriaQuery object.
<T> CriteriaQuery<T>
createQuery(java.lang.Class<T> resultClass)
          Create a CriteriaQuery object with the specified result type.
 CriteriaQuery<Tuple> createTupleQuery()
          Create a CriteriaQuery object that returns a tuple of objects as its result.
 Expression<java.sql.Date> currentDate()
          Create expression to return current date.
 Expression<java.sql.Time> currentTime()
          Create expression to return current time.
 Expression<java.sql.Timestamp> currentTimestamp()
          Create expression to return current timestamp.
 Order desc(Expression<?> x)
          Create an ordering by the descending value of the expression.
<N extends java.lang.Number>
Expression<N>
diff(Expression<? extends N> x, Expression<? extends N> y)
          Create an expression that returns the difference between its arguments.
<N extends java.lang.Number>
Expression<N>
diff(Expression<? extends N> x, N y)
          Create an expression that returns the difference between its arguments.
<N extends java.lang.Number>
Expression<N>
diff(N x, Expression<? extends N> y)
          Create an expression that returns the difference between its arguments.
 Predicate disjunction()
          Create a disjunction (with zero disjuncts).
 Predicate equal(Expression<?> x, Expression<?> y)
          Create a predicate for testing the arguments for equality.
 Predicate equal(Expression<?> x, java.lang.Object y)
          Create a predicate for testing the arguments for equality.
 Predicate exists(Subquery<?> subquery)
          Create a predicate testing the existence of a subquery result.
<T> Expression<T>
function(java.lang.String name, java.lang.Class<T> type, Expression<?>... args)
          Create an expression for the execution of a database function.
 Predicate ge(Expression<? extends java.lang.Number> x, Expression<? extends java.lang.Number> y)
          Create a predicate for testing whether the first argument is greater than or equal to the second.
 Predicate ge(Expression<? extends java.lang.Number> x, java.lang.Number y)
          Create a predicate for testing whether the first argument is greater than or equal to the second.
<Y extends java.lang.Comparable<? super Y>>
Predicate
greaterThan(Expression<? extends Y> x, Expression<? extends Y> y)
          Create a predicate for testing whether the first argument is greater than the second.
<Y extends java.lang.Comparable<? super Y>>
Predicate
greaterThan(Expression<? extends Y> x, Y y)
          Create a predicate for testing whether the first argument is greater than the second.
<Y extends java.lang.Comparable<? super Y>>
Predicate
greaterThanOrEqualTo(Expression<? extends Y> x, Expression<? extends Y> y)
          Create a predicate for testing whether the first argument is greater than or equal to the second.
<Y extends java.lang.Comparable<? super Y>>
Predicate
greaterThanOrEqualTo(Expression<? extends Y> x, Y y)
          Create a predicate for testing whether the first argument is greater than or equal to the second.
<X extends java.lang.Comparable<? super X>>
Expression<X>
greatest(Expression<X> x)
          Create an aggregate expression for finding the greatest of the values (strings, dates, etc).
 Predicate gt(Expression<? extends java.lang.Number> x, Expression<? extends java.lang.Number> y)
          Create a predicate for testing whether the first argument is greater than the second.
 Predicate gt(Expression<? extends java.lang.Number> x, java.lang.Number y)
          Create a predicate for testing whether the first argument is greater than the second.
<T> CriteriaBuilder.In<T>
in(Expression<? extends T> expression)
          Create predicate to test whether given expression is contained in a list of values.
<C extends java.util.Collection<?>>
Predicate
isEmpty(Expression<C> collection)
          Create a predicate that tests whether a collection is empty.
 Predicate isFalse(Expression<java.lang.Boolean> x)
          Create a predicate testing for a false value.
<E,C extends java.util.Collection<E>>
Predicate
isMember(E elem, Expression<C> collection)
          Create a predicate that tests whether an element is a member of a collection.
<E,C extends java.util.Collection<E>>
Predicate
isMember(Expression<E> elem, Expression<C> collection)
          Create a predicate that tests whether an element is a member of a collection.
<C extends java.util.Collection<?>>
Predicate
isNotEmpty(Expression<C> collection)
          Create a predicate that tests whether a collection is not empty.
<E,C extends java.util.Collection<E>>
Predicate
isNotMember(E elem, Expression<C> collection)
          Create a predicate that tests whether an element is not a member of a collection.
<E,C extends java.util.Collection<E>>
Predicate
isNotMember(Expression<E> elem, Expression<C> collection)
          Create a predicate that tests whether an element is not a member of a collection.
 Predicate isNotNull(Expression<?> x)
          Create a predicate to test whether the expression is not null.
 Predicate isNull(Expression<?> x)
          Create a predicate to test whether the expression is null.
 Predicate isTrue(Expression<java.lang.Boolean> x)
          Create a predicate testing for a true value.
<K,M extends java.util.Map<K,?>>
Expression<java.util.Set<K>>
keys(M map)
          Create an expression that returns the keys of a map.
 Predicate le(Expression<? extends java.lang.Number> x, Expression<? extends java.lang.Number> y)
          Create a predicate for testing whether the first argument is less than or equal to the second.
 Predicate le(Expression<? extends java.lang.Number> x, java.lang.Number y)
          Create a predicate for testing whether the first argument is less than or equal to the second.
<X extends java.lang.Comparable<? super X>>
Expression<X>
least(Expression<X> x)
          Create an aggregate expression for finding the least of the values (strings, dates, etc).
 Expression<java.lang.Integer> length(Expression<java.lang.String> x)
          Create expression to return length of a string.
<Y extends java.lang.Comparable<? super Y>>
Predicate
lessThan(Expression<? extends Y> x, Expression<? extends Y> y)
          Create a predicate for testing whether the first argument is less than the second.
<Y extends java.lang.Comparable<? super Y>>
Predicate
lessThan(Expression<? extends Y> x, Y y)
          Create a predicate for testing whether the first argument is less than the second.
<Y extends java.lang.Comparable<? super Y>>
Predicate
lessThanOrEqualTo(Expression<? extends Y> x, Expression<? extends Y> y)
          Create a predicate for testing whether the first argument is less than or equal to the second.
<Y extends java.lang.Comparable<? super Y>>
Predicate
lessThanOrEqualTo(Expression<? extends Y> x, Y y)
          Create a predicate for testing whether the first argument is less than or equal to the second.
 Predicate like(Expression<java.lang.String> x, Expression<java.lang.String> pattern)
          Create a predicate for testing whether the expression satisfies the given pattern.
 Predicate like(Expression<java.lang.String> x, Expression<java.lang.String> pattern, char escapeChar)
          Create a predicate for testing whether the expression satisfies the given pattern.
 Predicate like(Expression<java.lang.String> x, Expression<java.lang.String> pattern, Expression<java.lang.Character> escapeChar)
          Create a predicate for testing whether the expression satisfies the given pattern.
 Predicate like(Expression<java.lang.String> x, java.lang.String pattern)
          Create a predicate for testing whether the expression satisfies the given pattern.
 Predicate like(Expression<java.lang.String> x, java.lang.String pattern, char escapeChar)
          Create a predicate for testing whether the expression satisfies the given pattern.
 Predicate like(Expression<java.lang.String> x, java.lang.String pattern, Expression<java.lang.Character> escapeChar)
          Create a predicate for testing whether the expression satisfies the given pattern.
<T> Expression<T>
literal(T value)
          Create an expression for a literal.
 Expression<java.lang.Integer> locate(Expression<java.lang.String> x, Expression<java.lang.String> pattern)
          Create expression to locate the position of one string within another, returning position of first character if found.
 Expression<java.lang.Integer> locate(Expression<java.lang.String> x, Expression<java.lang.String> pattern, Expression<java.lang.Integer> from)
          Create expression to locate the position of one string within another, returning position of first character if found.
 Expression<java.lang.Integer> locate(Expression<java.lang.String> x, java.lang.String pattern)
          Create expression to locate the position of one string within another, returning position of first character if found.
 Expression<java.lang.Integer> locate(Expression<java.lang.String> x, java.lang.String pattern, int from)
          Create expression to locate the position of one string within another, returning position of first character if found.
 Expression<java.lang.String> lower(Expression<java.lang.String> x)
          Create expression for converting a string to lowercase.
 Predicate lt(Expression<? extends java.lang.Number> x, Expression<? extends java.lang.Number> y)
          Create a predicate for testing whether the first argument is less than the second.
 Predicate lt(Expression<? extends java.lang.Number> x, java.lang.Number y)
          Create a predicate for testing whether the first argument is less than the second.
<N extends java.lang.Number>
Expression<N>
max(Expression<N> x)
          Create an aggregate expression applying the numerical max operation.
<N extends java.lang.Number>
Expression<N>
min(Expression<N> x)
          Create an aggregate expression applying the numerical min operation.
 Expression<java.lang.Integer> mod(Expression<java.lang.Integer> x, Expression<java.lang.Integer> y)
          Create an expression that returns the modulus of its arguments.
 Expression<java.lang.Integer> mod(Expression<java.lang.Integer> x, java.lang.Integer y)
          Create an expression that returns the modulus of its arguments.
 Expression<java.lang.Integer> mod(java.lang.Integer x, Expression<java.lang.Integer> y)
          Create an expression that returns the modulus of its arguments.
<N extends java.lang.Number>
Expression<N>
neg(Expression<N> x)
          Create an expression that returns the arithmetic negation of its argument.
 Predicate not(Expression<java.lang.Boolean> restriction)
          Create a negation of the given restriction.
 Predicate notEqual(Expression<?> x, Expression<?> y)
          Create a predicate for testing the arguments for inequality.
 Predicate notEqual(Expression<?> x, java.lang.Object y)
          Create a predicate for testing the arguments for inequality.
 Predicate notLike(Expression<java.lang.String> x, Expression<java.lang.String> pattern)
          Create a predicate for testing whether the expression does not satisfy the given pattern.
 Predicate notLike(Expression<java.lang.String> x, Expression<java.lang.String> pattern, char escapeChar)
          Create a predicate for testing whether the expression does not satisfy the given pattern.
 Predicate notLike(Expression<java.lang.String> x, Expression<java.lang.String> pattern, Expression<java.lang.Character> escapeChar)
          Create a predicate for testing whether the expression does not satisfy the given pattern.
 Predicate notLike(Expression<java.lang.String> x, java.lang.String pattern)
          Create a predicate for testing whether the expression does not satisfy the given pattern.
 Predicate notLike(Expression<java.lang.String> x, java.lang.String pattern, char escapeChar)
          Create a predicate for testing whether the expression does not satisfy the given pattern.
 Predicate notLike(Expression<java.lang.String> x, java.lang.String pattern, Expression<java.lang.Character> escapeChar)
          Create a predicate for testing whether the expression does not satisfy the given pattern.
<Y> Expression<Y>
nullif(Expression<Y> x, Expression<?> y)
          Create an expression that tests whether its argument are equal, returning null if they are and the value of the first expression if they are not.
<Y> Expression<Y>
nullif(Expression<Y> x, Y y)
          Create an expression that tests whether its argument are equal, returning null if they are and the value of the first expression if they are not.
<T> Expression<T>
nullLiteral(java.lang.Class<T> resultClass)
          Create an expression for a null literal with the given type.
 Predicate or(Expression<java.lang.Boolean> x, Expression<java.lang.Boolean> y)
          Create a disjunction of the given boolean expressions.
 Predicate or(Predicate... restrictions)
          Create a disjunction of the given restriction predicates.
<T> ParameterExpression<T>
parameter(java.lang.Class<T> paramClass)
          Create a parameter expression.
<T> ParameterExpression<T>
parameter(java.lang.Class<T> paramClass, java.lang.String name)
          Create a parameter expression with the given name.
<N extends java.lang.Number>
Expression<N>
prod(Expression<? extends N> x, Expression<? extends N> y)
          Create an expression that returns the product of its arguments.
<N extends java.lang.Number>
Expression<N>
prod(Expression<? extends N> x, N y)
          Create an expression that returns the product of its arguments.
<N extends java.lang.Number>
Expression<N>
prod(N x, Expression<? extends N> y)
          Create an expression that returns the product of its arguments.
 Expression<java.lang.Number> quot(Expression<? extends java.lang.Number> x, Expression<? extends java.lang.Number> y)
          Create an expression that returns the quotient of its arguments.
 Expression<java.lang.Number> quot(Expression<? extends java.lang.Number> x, java.lang.Number y)
          Create an expression that returns the quotient of its arguments.
 Expression<java.lang.Number> quot(java.lang.Number x, Expression<? extends java.lang.Number> y)
          Create an expression that returns the quotient of its arguments.
<R> CriteriaBuilder.Case<R>
selectCase()
          Create a general case expression.
<C,R> CriteriaBuilder.SimpleCase<C,R>
selectCase(Expression<? extends C> expression)
          Create a simple case expression.
<C extends java.util.Collection<?>>
Expression<java.lang.Integer>
size(C collection)
          Create an expression that tests the size of a collection.
<C extends java.util.Collection<?>>
Expression<java.lang.Integer>
size(Expression<C> collection)
          Create an expression that tests the size of a collection.
<Y> Expression<Y>
some(Subquery<Y> subquery)
          Create a some expression over the subquery results.
 Expression<java.lang.Double> sqrt(Expression<? extends java.lang.Number> x)
          Create an expression that returns the square root of its argument.
 Expression<java.lang.String> substring(Expression<java.lang.String> x, Expression<java.lang.Integer> from)
          Create an expression for substring extraction.
 Expression<java.lang.String> substring(Expression<java.lang.String> x, Expression<java.lang.Integer> from, Expression<java.lang.Integer> len)
          Create an expression for substring extraction.
 Expression<java.lang.String> substring(Expression<java.lang.String> x, int from)
          Create an expression for substring extraction.
 Expression<java.lang.String> substring(Expression<java.lang.String> x, int from, int len)
          Create an expression for substring extraction.
<N extends java.lang.Number>
Expression<N>
sum(Expression<? extends N> x, Expression<? extends N> y)
          Create an expression that returns the sum of its arguments.
<N extends java.lang.Number>
Expression<N>
sum(Expression<? extends N> x, N y)
          Create an expression that returns the sum of its arguments.
<N extends java.lang.Number>
Expression<N>
sum(Expression<N> x)
          Create an aggregate expression applying the sum operation.
<N extends java.lang.Number>
Expression<N>
sum(N x, Expression<? extends N> y)
          Create an expression that returns the sum of its arguments.
 Expression<java.lang.Double> sumAsDouble(Expression<java.lang.Float> x)
          Create an aggregate expression applying the sum operation to a Float-valued expression, returning a Double result.
 Expression<java.lang.Long> sumAsLong(Expression<java.lang.Integer> x)
          Create an aggregate expression applying the sum operation to an Integer-valued expression, returning a Long result.
 Expression<java.math.BigDecimal> toBigDecimal(Expression<? extends java.lang.Number> number)
          Typecast.
 Expression<java.math.BigInteger> toBigInteger(Expression<? extends java.lang.Number> number)
          Typecast.
 Expression<java.lang.Double> toDouble(Expression<? extends java.lang.Number> number)
          Typecast.
 Expression<java.lang.Float> toFloat(Expression<? extends java.lang.Number> number)
          Typecast.
 Expression<java.lang.Integer> toInteger(Expression<? extends java.lang.Number> number)
          Typecast.
 Expression<java.lang.Long> toLong(Expression<? extends java.lang.Number> number)
          Typecast.
 Expression<java.lang.String> toString(Expression<java.lang.Character> character)
          Typecast.
 Expression<java.lang.String> trim(char t, Expression<java.lang.String> x)
          Create expression to trim character from both ends of a string.
 Expression<java.lang.String> trim(CriteriaBuilder.Trimspec ts, char t, Expression<java.lang.String> x)
          Create expression to trim character from a string.
 Expression<java.lang.String> trim(CriteriaBuilder.Trimspec ts, Expression<java.lang.Character> t, Expression<java.lang.String> x)
          Create expression to trim character from a string.
 Expression<java.lang.String> trim(CriteriaBuilder.Trimspec ts, Expression<java.lang.String> x)
          Create expression to trim blanks from a string.
 Expression<java.lang.String> trim(Expression<java.lang.Character> t, Expression<java.lang.String> x)
          Create expression to trim character from both ends of a string.
 Expression<java.lang.String> trim(Expression<java.lang.String> x)
          Create expression to trim blanks from both ends of a string.
 CompoundSelection<Tuple> tuple(Selection<?>... selections)
          Create a tuple-valued selection item.
 Expression<java.lang.String> upper(Expression<java.lang.String> x)
          Create expression for converting a string to uppercase.
<V,M extends java.util.Map<?,V>>
Expression<java.util.Collection<V>>
values(M map)
          Create an expression that returns the values of a map.
 

Method Detail

createQuery

CriteriaQuery<java.lang.Object> createQuery()
Create a CriteriaQuery object.

Returns:
criteria query object

createQuery

<T> CriteriaQuery<T> createQuery(java.lang.Class<T> resultClass)
Create a CriteriaQuery object with the specified result type.

Parameters:
resultClass - type of the query result
Returns:
criteria query object

createTupleQuery

CriteriaQuery<Tuple> createTupleQuery()
Create a CriteriaQuery object that returns a tuple of objects as its result.

Returns:
criteria query object

construct

<Y> CompoundSelection<Y> construct(java.lang.Class<Y> resultClass,
                                   Selection<?>... selections)
Create a selection item corresponding to a constructor. This method is used to specify a constructor that will be applied to the results of the query execution. If the constructor is for an entity class, the resulting entities will be in the new state after the query is executed.

Parameters:
resultClass - class whose instance is to be constructed
selections - arguments to the constructor
Returns:
compound selection item
Throws:
IllegalArgumentException - if an argument is a tuple- or array-valued selection item

tuple

CompoundSelection<Tuple> tuple(Selection<?>... selections)
Create a tuple-valued selection item.

Parameters:
selections - selection items
Returns:
tuple-valued compound selection
Throws:
IllegalArgumentException - if an argument is a tuple- or array-valued selection item

array

CompoundSelection<java.lang.Object[]> array(Selection<?>... selections)
Create an array-valued selection item.

Parameters:
selections - selection items
Returns:
array-valued compound selection
Throws:
IllegalArgumentException - if an argument is a tuple- or array-valued selection item

asc

Order asc(Expression<?> x)
Create an ordering by the ascending value of the expression.

Parameters:
x - expression used to define the ordering
Returns:
ascending ordering corresponding to the expression

desc

Order desc(Expression<?> x)
Create an ordering by the descending value of the expression.

Parameters:
x - expression used to define the ordering
Returns:
descending ordering corresponding to the expression

avg

<N extends java.lang.Number> Expression<java.lang.Double> avg(Expression<N> x)
Create an aggregate expression applying the avg operation.

Parameters:
x - expression representing input value to avg operation
Returns:
avg expression

sum

<N extends java.lang.Number> Expression<N> sum(Expression<N> x)
Create an aggregate expression applying the sum operation.

Parameters:
x - expression representing input value to sum operation
Returns:
sum expression

sumAsLong

Expression<java.lang.Long> sumAsLong(Expression<java.lang.Integer> x)
Create an aggregate expression applying the sum operation to an Integer-valued expression, returning a Long result.

Parameters:
x - expression representing input value to sum operation
Returns:
sum expression

sumAsDouble

Expression<java.lang.Double> sumAsDouble(Expression<java.lang.Float> x)
Create an aggregate expression applying the sum operation to a Float-valued expression, returning a Double result.

Parameters:
x - expression representing input value to sum operation
Returns:
sum expression

max

<N extends java.lang.Number> Expression<N> max(Expression<N> x)
Create an aggregate expression applying the numerical max operation.

Parameters:
x - expression representing input value to max operation
Returns:
max expression

min

<N extends java.lang.Number> Expression<N> min(Expression<N> x)
Create an aggregate expression applying the numerical min operation.

Parameters:
x - expression representing input value to min operation
Returns:
min expression

greatest

<X extends java.lang.Comparable<? super X>> Expression<X> greatest(Expression<X> x)
Create an aggregate expression for finding the greatest of the values (strings, dates, etc).

Parameters:
x - expression representing input value to greatest operation
Returns:
greatest expression

least

<X extends java.lang.Comparable<? super X>> Expression<X> least(Expression<X> x)
Create an aggregate expression for finding the least of the values (strings, dates, etc).

Parameters:
x - expression representing input value to least operation
Returns:
least expression

count

Expression<java.lang.Long> count(Expression<?> x)
Create an aggregate expression applying the count operation.

Parameters:
x - expression representing input value to count operation
Returns:
count expression

countDistinct

Expression<java.lang.Long> countDistinct(Expression<?> x)
Create an aggregate expression applying the count distinct operation.

Parameters:
x - expression representing input value to count distinct operation
Returns:
count distinct expression

exists

Predicate exists(Subquery<?> subquery)
Create a predicate testing the existence of a subquery result.

Parameters:
subquery - subquery whose result is to be tested
Returns:
exists predicate

all

<Y> Expression<Y> all(Subquery<Y> subquery)
Create an all expression over the subquery results.

Parameters:
subquery - subquery
Returns:
all expression

some

<Y> Expression<Y> some(Subquery<Y> subquery)
Create a some expression over the subquery results. This expression is equivalent to an any expression.

Parameters:
subquery - subquery
Returns:
some expression

any

<Y> Expression<Y> any(Subquery<Y> subquery)
Create an any expression over the subquery results. This expression is equivalent to a some expression.

Parameters:
subquery - subquery
Returns:
any expression

and

Predicate and(Expression<java.lang.Boolean> x,
              Expression<java.lang.Boolean> y)
Create a conjunction of the given boolean expressions.

Parameters:
x - boolean expression
y - boolean expression
Returns:
and predicate

and

Predicate and(Predicate... restrictions)
Create a conjunction of the given restriction predicates. A conjunction of zero predicates is true.

Parameters:
restrictions - zero or more restriction predicates
Returns:
and predicate

or

Predicate or(Expression<java.lang.Boolean> x,
             Expression<java.lang.Boolean> y)
Create a disjunction of the given boolean expressions.

Parameters:
x - boolean expression
y - boolean expression
Returns:
or predicate

or

Predicate or(Predicate... restrictions)
Create a disjunction of the given restriction predicates. A disjunction of zero predicates is false.

Parameters:
restrictions - zero or more restriction predicates
Returns:
or predicate

not

Predicate not(Expression<java.lang.Boolean> restriction)
Create a negation of the given restriction.

Parameters:
restriction - restriction expression
Returns:
not predicate

conjunction

Predicate conjunction()
Create a conjunction (with zero conjuncts). A conjunction with zero conjuncts is true.

Returns:
and predicate

disjunction

Predicate disjunction()
Create a disjunction (with zero disjuncts). A disjunction with zero disjuncts is false.

Returns:
or predicate

isTrue

Predicate isTrue(Expression<java.lang.Boolean> x)
Create a predicate testing for a true value.

Parameters:
x - expression to be tested
Returns:
predicate

isFalse

Predicate isFalse(Expression<java.lang.Boolean> x)
Create a predicate testing for a false value.

Parameters:
x - expression to be tested
Returns:
predicate

isNull

Predicate isNull(Expression<?> x)
Create a predicate to test whether the expression is null.

Parameters:
x - expression
Returns:
is-null predicate

isNotNull

Predicate isNotNull(Expression<?> x)
Create a predicate to test whether the expression is not null.

Parameters:
x - expression
Returns:
is-not-null predicate

equal

Predicate equal(Expression<?> x,
                Expression<?> y)
Create a predicate for testing the arguments for equality.

Parameters:
x - expression
y - expression
Returns:
equality predicate

equal

Predicate equal(Expression<?> x,
                java.lang.Object y)
Create a predicate for testing the arguments for equality.

Parameters:
x - expression
y - object
Returns:
equality predicate

notEqual

Predicate notEqual(Expression<?> x,
                   Expression<?> y)
Create a predicate for testing the arguments for inequality.

Parameters:
x - expression
y - expression
Returns:
inequality predicate

notEqual

Predicate notEqual(Expression<?> x,
                   java.lang.Object y)
Create a predicate for testing the arguments for inequality.

Parameters:
x - expression
y - object
Returns:
inequality predicate

greaterThan

<Y extends java.lang.Comparable<? super Y>> Predicate greaterThan(Expression<? extends Y> x,
                                                                  Expression<? extends Y> y)
Create a predicate for testing whether the first argument is greater than the second.

Parameters:
x - expression
y - expression
Returns:
greater-than predicate

greaterThan

<Y extends java.lang.Comparable<? super Y>> Predicate greaterThan(Expression<? extends Y> x,
                                                                  Y y)
Create a predicate for testing whether the first argument is greater than the second.

Parameters:
x - expression
y - value
Returns:
greater-than predicate

greaterThanOrEqualTo

<Y extends java.lang.Comparable<? super Y>> Predicate greaterThanOrEqualTo(Expression<? extends Y> x,
                                                                           Expression<? extends Y> y)
Create a predicate for testing whether the first argument is greater than or equal to the second.

Parameters:
x - expression
y - expression
Returns:
greater-than-or-equal predicate

greaterThanOrEqualTo

<Y extends java.lang.Comparable<? super Y>> Predicate greaterThanOrEqualTo(Expression<? extends Y> x,
                                                                           Y y)
Create a predicate for testing whether the first argument is greater than or equal to the second.

Parameters:
x - expression
y - value
Returns:
greater-than-or-equal predicate

lessThan

<Y extends java.lang.Comparable<? super Y>> Predicate lessThan(Expression<? extends Y> x,
                                                               Expression<? extends Y> y)
Create a predicate for testing whether the first argument is less than the second.

Parameters:
x - expression
y - expression
Returns:
less-than predicate

lessThan

<Y extends java.lang.Comparable<? super Y>> Predicate lessThan(Expression<? extends Y> x,
                                                               Y y)
Create a predicate for testing whether the first argument is less than the second.

Parameters:
x - expression
y - value
Returns:
less-than predicate

lessThanOrEqualTo

<Y extends java.lang.Comparable<? super Y>> Predicate lessThanOrEqualTo(Expression<? extends Y> x,
                                                                        Expression<? extends Y> y)
Create a predicate for testing whether the first argument is less than or equal to the second.

Parameters:
x - expression
y - expression
Returns:
less-than-or-equal predicate

lessThanOrEqualTo

<Y extends java.lang.Comparable<? super Y>> Predicate lessThanOrEqualTo(Expression<? extends Y> x,
                                                                        Y y)
Create a predicate for testing whether the first argument is less than or equal to the second.

Parameters:
x - expression
y - value
Returns:
less-than-or-equal predicate

between

<Y extends java.lang.Comparable<? super Y>> Predicate between(Expression<? extends Y> v,
                                                              Expression<? extends Y> x,
                                                              Expression<? extends Y> y)
Create a predicate for testing whether the first argument is between the second and third arguments in value.

Parameters:
v - expression
x - expression
y - expression
Returns:
between predicate

between

<Y extends java.lang.Comparable<? super Y>> Predicate between(Expression<? extends Y> v,
                                                              Y x,
                                                              Y y)
Create a predicate for testing whether the first argument is between the second and third arguments in value.

Parameters:
v - expression
x - value
y - value
Returns:
between predicate

gt

Predicate gt(Expression<? extends java.lang.Number> x,
             Expression<? extends java.lang.Number> y)
Create a predicate for testing whether the first argument is greater than the second.

Parameters:
x - expression
y - expression
Returns:
greater-than predicate

gt

Predicate gt(Expression<? extends java.lang.Number> x,
             java.lang.Number y)
Create a predicate for testing whether the first argument is greater than the second.

Parameters:
x - expression
y - value
Returns:
greater-than predicate

ge

Predicate ge(Expression<? extends java.lang.Number> x,
             Expression<? extends java.lang.Number> y)
Create a predicate for testing whether the first argument is greater than or equal to the second.

Parameters:
x - expression
y - expression
Returns:
greater-than-or-equal predicate

ge

Predicate ge(Expression<? extends java.lang.Number> x,
             java.lang.Number y)
Create a predicate for testing whether the first argument is greater than or equal to the second.

Parameters:
x - expression
y - value
Returns:
greater-than-or-equal predicate

lt

Predicate lt(Expression<? extends java.lang.Number> x,
             Expression<? extends java.lang.Number> y)
Create a predicate for testing whether the first argument is less than the second.

Parameters:
x - expression
y - expression
Returns:
less-than predicate

lt

Predicate lt(Expression<? extends java.lang.Number> x,
             java.lang.Number y)
Create a predicate for testing whether the first argument is less than the second.

Parameters:
x - expression
y - value
Returns:
less-than predicate

le

Predicate le(Expression<? extends java.lang.Number> x,
             Expression<? extends java.lang.Number> y)
Create a predicate for testing whether the first argument is less than or equal to the second.

Parameters:
x - expression
y - expression
Returns:
less-than-or-equal predicate

le

Predicate le(Expression<? extends java.lang.Number> x,
             java.lang.Number y)
Create a predicate for testing whether the first argument is less than or equal to the second.

Parameters:
x - expression
y - value
Returns:
less-than-or-equal predicate

neg

<N extends java.lang.Number> Expression<N> neg(Expression<N> x)
Create an expression that returns the arithmetic negation of its argument.

Parameters:
x - expression
Returns:
arithmetic negation

abs

<N extends java.lang.Number> Expression<N> abs(Expression<N> x)
Create an expression that returns the absolute value of its argument.

Parameters:
x - expression
Returns:
absolute value

sum

<N extends java.lang.Number> Expression<N> sum(Expression<? extends N> x,
                                               Expression<? extends N> y)
Create an expression that returns the sum of its arguments.

Parameters:
x - expression
y - expression
Returns:
sum

sum

<N extends java.lang.Number> Expression<N> sum(Expression<? extends N> x,
                                               N y)
Create an expression that returns the sum of its arguments.

Parameters:
x - expression
y - value
Returns:
sum

sum

<N extends java.lang.Number> Expression<N> sum(N x,
                                               Expression<? extends N> y)
Create an expression that returns the sum of its arguments.

Parameters:
x - value
y - expression
Returns:
sum

prod

<N extends java.lang.Number> Expression<N> prod(Expression<? extends N> x,
                                                Expression<? extends N> y)
Create an expression that returns the product of its arguments.

Parameters:
x - expression
y - expression
Returns:
product

prod

<N extends java.lang.Number> Expression<N> prod(Expression<? extends N> x,
                                                N y)
Create an expression that returns the product of its arguments.

Parameters:
x - expression
y - value
Returns:
product

prod

<N extends java.lang.Number> Expression<N> prod(N x,
                                                Expression<? extends N> y)
Create an expression that returns the product of its arguments.

Parameters:
x - value
y - expression
Returns:
product

diff

<N extends java.lang.Number> Expression<N> diff(Expression<? extends N> x,
                                                Expression<? extends N> y)
Create an expression that returns the difference between its arguments.

Parameters:
x - expression
y - expression
Returns:
difference

diff

<N extends java.lang.Number> Expression<N> diff(Expression<? extends N> x,
                                                N y)
Create an expression that returns the difference between its arguments.

Parameters:
x - expression
y - value
Returns:
difference

diff

<N extends java.lang.Number> Expression<N> diff(N x,
                                                Expression<? extends N> y)
Create an expression that returns the difference between its arguments.

Parameters:
x - value
y - expression
Returns:
difference

quot

Expression<java.lang.Number> quot(Expression<? extends java.lang.Number> x,
                                  Expression<? extends java.lang.Number> y)
Create an expression that returns the quotient of its arguments.

Parameters:
x - expression
y - expression
Returns:
quotient

quot

Expression<java.lang.Number> quot(Expression<? extends java.lang.Number> x,
                                  java.lang.Number y)
Create an expression that returns the quotient of its arguments.

Parameters:
x - expression
y - value
Returns:
quotient

quot

Expression<java.lang.Number> quot(java.lang.Number x,
                                  Expression<? extends java.lang.Number> y)
Create an expression that returns the quotient of its arguments.

Parameters:
x - value
y - expression
Returns:
quotient

mod

Expression<java.lang.Integer> mod(Expression<java.lang.Integer> x,
                                  Expression<java.lang.Integer> y)
Create an expression that returns the modulus of its arguments.

Parameters:
x - expression
y - expression
Returns:
modulus

mod

Expression<java.lang.Integer> mod(Expression<java.lang.Integer> x,
                                  java.lang.Integer y)
Create an expression that returns the modulus of its arguments.

Parameters:
x - expression
y - value
Returns:
modulus

mod

Expression<java.lang.Integer> mod(java.lang.Integer x,
                                  Expression<java.lang.Integer> y)
Create an expression that returns the modulus of its arguments.

Parameters:
x - value
y - expression
Returns:
modulus

sqrt

Expression<java.lang.Double> sqrt(Expression<? extends java.lang.Number> x)
Create an expression that returns the square root of its argument.

Parameters:
x - expression
Returns:
square root

toLong

Expression<java.lang.Long> toLong(Expression<? extends java.lang.Number> number)
Typecast. Returns same expression object.

Parameters:
number - numeric expression
Returns:
Expression<Long>

toInteger

Expression<java.lang.Integer> toInteger(Expression<? extends java.lang.Number> number)
Typecast. Returns same expression object.

Parameters:
number - numeric expression
Returns:
Expression<Integer>

toFloat

Expression<java.lang.Float> toFloat(Expression<? extends java.lang.Number> number)
Typecast. Returns same expression object.

Parameters:
number - numeric expression
Returns:
Expression<Float>

toDouble

Expression<java.lang.Double> toDouble(Expression<? extends java.lang.Number> number)
Typecast. Returns same expression object.

Parameters:
number - numeric expression
Returns:
Expression<Double>

toBigDecimal

Expression<java.math.BigDecimal> toBigDecimal(Expression<? extends java.lang.Number> number)
Typecast. Returns same expression object.

Parameters:
number - numeric expression
Returns:
Expression<BigDecimal>

toBigInteger

Expression<java.math.BigInteger> toBigInteger(Expression<? extends java.lang.Number> number)
Typecast. Returns same expression object.

Parameters:
number - numeric expression
Returns:
Expression<BigInteger>

toString

Expression<java.lang.String> toString(Expression<java.lang.Character> character)
Typecast. Returns same expression object.

Parameters:
character - expression
Returns:
Expression<String>

literal

<T> Expression<T> literal(T value)
Create an expression for a literal.

Parameters:
value - value represented by the expression
Returns:
expression literal
Throws:
IllegalArgumentException - if value is null

nullLiteral

<T> Expression<T> nullLiteral(java.lang.Class<T> resultClass)
Create an expression for a null literal with the given type.

Parameters:
resultClass - type of the null literal
Returns:
null expression literal

parameter

<T> ParameterExpression<T> parameter(java.lang.Class<T> paramClass)
Create a parameter expression.

Parameters:
paramClass - parameter class
Returns:
parameter expression

parameter

<T> ParameterExpression<T> parameter(java.lang.Class<T> paramClass,
                                     java.lang.String name)
Create a parameter expression with the given name.

Parameters:
paramClass - parameter class
name - name that can be used to refer to the parameter
Returns:
parameter expression

isEmpty

<C extends java.util.Collection<?>> Predicate isEmpty(Expression<C> collection)
Create a predicate that tests whether a collection is empty.

Parameters:
collection - expression
Returns:
is-empty predicate

isNotEmpty

<C extends java.util.Collection<?>> Predicate isNotEmpty(Expression<C> collection)
Create a predicate that tests whether a collection is not empty.

Parameters:
collection - expression
Returns:
is-not-empty predicate

size

<C extends java.util.Collection<?>> Expression<java.lang.Integer> size(Expression<C> collection)
Create an expression that tests the size of a collection.

Parameters:
collection - expression
Returns:
size expression

size

<C extends java.util.Collection<?>> Expression<java.lang.Integer> size(C collection)
Create an expression that tests the size of a collection.

Parameters:
collection - collection
Returns:
size expression

isMember

<E,C extends java.util.Collection<E>> Predicate isMember(Expression<E> elem,
                                                         Expression<C> collection)
Create a predicate that tests whether an element is a member of a collection. If the collection is empty, the predicate will be false.

Parameters:
elem - element expression
collection - expression
Returns:
is-member predicate

isMember

<E,C extends java.util.Collection<E>> Predicate isMember(E elem,
                                                         Expression<C> collection)
Create a predicate that tests whether an element is a member of a collection. If the collection is empty, the predicate will be false.

Parameters:
elem - element
collection - expression
Returns:
is-member predicate

isNotMember

<E,C extends java.util.Collection<E>> Predicate isNotMember(Expression<E> elem,
                                                            Expression<C> collection)
Create a predicate that tests whether an element is not a member of a collection. If the collection is empty, the predicate will be true.

Parameters:
elem - element expression
collection - expression
Returns:
is-not-member predicate

isNotMember

<E,C extends java.util.Collection<E>> Predicate isNotMember(E elem,
                                                            Expression<C> collection)
Create a predicate that tests whether an element is not a member of a collection. If the collection is empty, the predicate will be true.

Parameters:
elem - element
collection - expression
Returns:
is-not-member predicate

values

<V,M extends java.util.Map<?,V>> Expression<java.util.Collection<V>> values(M map)
Create an expression that returns the values of a map.

Parameters:
map - map
Returns:
collection expression

keys

<K,M extends java.util.Map<K,?>> Expression<java.util.Set<K>> keys(M map)
Create an expression that returns the keys of a map.

Parameters:
map - map
Returns:
set expression

like

Predicate like(Expression<java.lang.String> x,
               Expression<java.lang.String> pattern)
Create a predicate for testing whether the expression satisfies the given pattern.

Parameters:
x - string expression
pattern - string expression
Returns:
like predicate

like

Predicate like(Expression<java.lang.String> x,
               java.lang.String pattern)
Create a predicate for testing whether the expression satisfies the given pattern.

Parameters:
x - string expression
pattern - string
Returns:
like predicate

like

Predicate like(Expression<java.lang.String> x,
               Expression<java.lang.String> pattern,
               Expression<java.lang.Character> escapeChar)
Create a predicate for testing whether the expression satisfies the given pattern.

Parameters:
x - string expression
pattern - string expression
escapeChar - escape character expression
Returns:
like predicate

like

Predicate like(Expression<java.lang.String> x,
               Expression<java.lang.String> pattern,
               char escapeChar)
Create a predicate for testing whether the expression satisfies the given pattern.

Parameters:
x - string expression
pattern - string expression
escapeChar - escape character
Returns:
like predicate

like

Predicate like(Expression<java.lang.String> x,
               java.lang.String pattern,
               Expression<java.lang.Character> escapeChar)
Create a predicate for testing whether the expression satisfies the given pattern.

Parameters:
x - string expression
pattern - string
escapeChar - escape character expression
Returns:
like predicate

like

Predicate like(Expression<java.lang.String> x,
               java.lang.String pattern,
               char escapeChar)
Create a predicate for testing whether the expression satisfies the given pattern.

Parameters:
x - string expression
pattern - string
escapeChar - escape character
Returns:
like predicate

notLike

Predicate notLike(Expression<java.lang.String> x,
                  Expression<java.lang.String> pattern)
Create a predicate for testing whether the expression does not satisfy the given pattern.

Parameters:
x - string expression
pattern - string expression
Returns:
not-like predicate

notLike

Predicate notLike(Expression<java.lang.String> x,
                  java.lang.String pattern)
Create a predicate for testing whether the expression does not satisfy the given pattern.

Parameters:
x - string expression
pattern - string
Returns:
not-like predicate

notLike

Predicate notLike(Expression<java.lang.String> x,
                  Expression<java.lang.String> pattern,
                  Expression<java.lang.Character> escapeChar)
Create a predicate for testing whether the expression does not satisfy the given pattern.

Parameters:
x - string expression
pattern - string expression
escapeChar - escape character expression
Returns:
not-like predicate

notLike

Predicate notLike(Expression<java.lang.String> x,
                  Expression<java.lang.String> pattern,
                  char escapeChar)
Create a predicate for testing whether the expression does not satisfy the given pattern.

Parameters:
x - string expression
pattern - string expression
escapeChar - escape character
Returns:
not-like predicate

notLike

Predicate notLike(Expression<java.lang.String> x,
                  java.lang.String pattern,
                  Expression<java.lang.Character> escapeChar)
Create a predicate for testing whether the expression does not satisfy the given pattern.

Parameters:
x - string expression
pattern - string
escapeChar - escape character expression
Returns:
not-like predicate

notLike

Predicate notLike(Expression<java.lang.String> x,
                  java.lang.String pattern,
                  char escapeChar)
Create a predicate for testing whether the expression does not satisfy the given pattern.

Parameters:
x - string expression
pattern - string
escapeChar - escape character
Returns:
not-like predicate

concat

Expression<java.lang.String> concat(Expression<java.lang.String> x,
                                    Expression<java.lang.String> y)
Create an expression for string concatenation.

Parameters:
x - string expression
y - string expression
Returns:
expression corresponding to concatenation

concat

Expression<java.lang.String> concat(Expression<java.lang.String> x,
                                    java.lang.String y)
Create an expression for string concatenation.

Parameters:
x - string expression
y - string
Returns:
expression corresponding to concatenation

concat

Expression<java.lang.String> concat(java.lang.String x,
                                    Expression<java.lang.String> y)
Create an expression for string concatenation.

Parameters:
x - string
y - string expression
Returns:
expression corresponding to concatenation

substring

Expression<java.lang.String> substring(Expression<java.lang.String> x,
                                       Expression<java.lang.Integer> from)
Create an expression for substring extraction. Extracts a substring starting at the specified position through to end of the string. First position is 1.

Parameters:
x - string expression
from - start position expression
Returns:
expression corresponding to substring extraction

substring

Expression<java.lang.String> substring(Expression<java.lang.String> x,
                                       int from)
Create an expression for substring extraction. Extracts a substring starting at the specified position through to end of the string. First position is 1.

Parameters:
x - string expression
from - start position
Returns:
expression corresponding to substring extraction

substring

Expression<java.lang.String> substring(Expression<java.lang.String> x,
                                       Expression<java.lang.Integer> from,
                                       Expression<java.lang.Integer> len)
Create an expression for substring extraction. Extracts a substring of given length starting at the specified position. First position is 1.

Parameters:
x - string expression
from - start position expression
len - length expression
Returns:
expression corresponding to substring extraction

substring

Expression<java.lang.String> substring(Expression<java.lang.String> x,
                                       int from,
                                       int len)
Create an expression for substring extraction. Extracts a substring of given length starting at the specified position. First position is 1.

Parameters:
x - string expression
from - start position
len - length
Returns:
expression corresponding to substring extraction

trim

Expression<java.lang.String> trim(Expression<java.lang.String> x)
Create expression to trim blanks from both ends of a string.

Parameters:
x - expression for string to trim
Returns:
trim expression

trim

Expression<java.lang.String> trim(CriteriaBuilder.Trimspec ts,
                                  Expression<java.lang.String> x)
Create expression to trim blanks from a string.

Parameters:
ts - trim specification
x - expression for string to trim
Returns:
trim expression

trim

Expression<java.lang.String> trim(Expression<java.lang.Character> t,
                                  Expression<java.lang.String> x)
Create expression to trim character from both ends of a string.

Parameters:
t - expression for character to be trimmed
x - expression for string to trim
Returns:
trim expression

trim

Expression<java.lang.String> trim(CriteriaBuilder.Trimspec ts,
                                  Expression<java.lang.Character> t,
                                  Expression<java.lang.String> x)
Create expression to trim character from a string.

Parameters:
ts - trim specification
t - expression for character to be trimmed
x - expression for string to trim
Returns:
trim expression

trim

Expression<java.lang.String> trim(char t,
                                  Expression<java.lang.String> x)
Create expression to trim character from both ends of a string.

Parameters:
t - character to be trimmed
x - expression for string to trim
Returns:
trim expression

trim

Expression<java.lang.String> trim(CriteriaBuilder.Trimspec ts,
                                  char t,
                                  Expression<java.lang.String> x)
Create expression to trim character from a string.

Parameters:
ts - trim specification
t - character to be trimmed
x - expression for string to trim
Returns:
trim expression

lower

Expression<java.lang.String> lower(Expression<java.lang.String> x)
Create expression for converting a string to lowercase.

Parameters:
x - string expression
Returns:
expression to convert to lowercase

upper

Expression<java.lang.String> upper(Expression<java.lang.String> x)
Create expression for converting a string to uppercase.

Parameters:
x - string expression
Returns:
expression to convert to uppercase

length

Expression<java.lang.Integer> length(Expression<java.lang.String> x)
Create expression to return length of a string.

Parameters:
x - string expression
Returns:
length expression

locate

Expression<java.lang.Integer> locate(Expression<java.lang.String> x,
                                     Expression<java.lang.String> pattern)
Create expression to locate the position of one string within another, returning position of first character if found. The first position in a string is denoted by 1. If the string to be located is not found, 0 is returned.

Parameters:
x - expression for string to be searched
pattern - expression for string to be located
Returns:
expression corresponding to position

locate

Expression<java.lang.Integer> locate(Expression<java.lang.String> x,
                                     java.lang.String pattern)
Create expression to locate the position of one string within another, returning position of first character if found. The first position in a string is denoted by 1. If the string to be located is not found, 0 is returned.

Parameters:
x - expression for string to be searched
pattern - string to be located
Returns:
expression corresponding to position

locate

Expression<java.lang.Integer> locate(Expression<java.lang.String> x,
                                     Expression<java.lang.String> pattern,
                                     Expression<java.lang.Integer> from)
Create expression to locate the position of one string within another, returning position of first character if found. The first position in a string is denoted by 1. If the string to be located is not found, 0 is returned.

Parameters:
x - expression for string to be searched
pattern - expression for string to be located
from - expression for position at which to start search
Returns:
expression corresponding to position

locate

Expression<java.lang.Integer> locate(Expression<java.lang.String> x,
                                     java.lang.String pattern,
                                     int from)
Create expression to locate the position of one string within another, returning position of first character if found. The first position in a string is denoted by 1. If the string to be located is not found, 0 is returned.

Parameters:
x - expression for string to be searched
pattern - string to be located
from - position at which to start search
Returns:
expression corresponding to position

currentDate

Expression<java.sql.Date> currentDate()
Create expression to return current date.

Returns:
expression for current date

currentTimestamp

Expression<java.sql.Timestamp> currentTimestamp()
Create expression to return current timestamp.

Returns:
expression for current timestamp

currentTime

Expression<java.sql.Time> currentTime()
Create expression to return current time.

Returns:
expression for current time

in

<T> CriteriaBuilder.In<T> in(Expression<? extends T> expression)
Create predicate to test whether given expression is contained in a list of values.

Parameters:
expression - to be tested against list of values
Returns:
in predicate

coalesce

<Y> Expression<Y> coalesce(Expression<? extends Y> x,
                           Expression<? extends Y> y)
Create an expression that returns null if all its arguments evaluate to null, and the value of the first non-null argument otherwise.

Parameters:
x - expression
y - expression
Returns:
coalesce expression

coalesce

<Y> Expression<Y> coalesce(Expression<? extends Y> x,
                           Y y)
Create an expression that returns null if all its arguments evaluate to null, and the value of the first non-null argument otherwise.

Parameters:
x - expression
y - value
Returns:
coalesce expression

nullif

<Y> Expression<Y> nullif(Expression<Y> x,
                         Expression<?> y)
Create an expression that tests whether its argument are equal, returning null if they are and the value of the first expression if they are not.

Parameters:
x - expression
y - expression
Returns:
nullif expression

nullif

<Y> Expression<Y> nullif(Expression<Y> x,
                         Y y)
Create an expression that tests whether its argument are equal, returning null if they are and the value of the first expression if they are not.

Parameters:
x - expression
y - value
Returns:
nullif expression

coalesce

<T> CriteriaBuilder.Coalesce<T> coalesce()
Create a coalesce expression.

Returns:
coalesce expression

selectCase

<C,R> CriteriaBuilder.SimpleCase<C,R> selectCase(Expression<? extends C> expression)
Create a simple case expression.

Parameters:
expression - to be tested against the case conditions
Returns:
simple case expression

selectCase

<R> CriteriaBuilder.Case<R> selectCase()
Create a general case expression.

Returns:
general case expression

function

<T> Expression<T> function(java.lang.String name,
                           java.lang.Class<T> type,
                           Expression<?>... args)
Create an expression for the execution of a database function.

Parameters:
name - function name
type - expected result type
args - function arguments
Returns:
expression


Submit a bug or feature

Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.

Generated on 10-February-2011 12:41

Scripting on this page tracks web page traffic, but does not change the content in any way.

感冒冒虚汗是什么原因 什么是抗生素 殁年是什么意思 一直放屁什么原因 梅花像什么
沟壑什么意思 mbi是什么意思 乙肝两对半阳性是什么意思 农历七月初七俗称什么 什么教无类
痛风有什么不能吃 悱恻是什么意思 刮骨疗毒的意思是什么 7月12是什么星座 滋阴润燥是什么意思
动脉硬化吃什么 护士节送什么鲜花 nokia是什么牌子的手机 遭罪什么意思 放疗后不能吃什么
有什么蔬菜bfb118.com 滢是什么意思hcv9jop0ns9r.cn 白细胞和血小板高是什么原因hlguo.com 塔罗牌能算什么hcv8jop1ns2r.cn 朵字五行属什么hcv8jop2ns1r.cn
一指什么生肖inbungee.com 瞌睡多什么原因hcv7jop5ns5r.cn 霉菌是什么菌hcv8jop7ns3r.cn 甲木代表什么adwl56.com 痛风喝什么茶最好hcv7jop6ns9r.cn
巴基斯坦用什么语言hcv9jop6ns6r.cn 放热屁是什么原因hcv8jop9ns4r.cn beko是什么牌子hcv7jop4ns8r.cn 金什么xjhesheng.com 做完雾化为什么要漱口hcv8jop9ns5r.cn
酒酿蛋什么时候吃效果最好hcv8jop3ns6r.cn 再生牙技术什么时候能实现hcv7jop6ns1r.cn 苹果是什么季节的水果hcv9jop0ns5r.cn 氯化钠注射液是什么hcv9jop2ns1r.cn 若无其事的若是什么意思hcv8jop1ns2r.cn
百度