1
14
15 package com.liferay.portal.kernel.dao.orm;
16
17 import java.util.Collection;
18 import java.util.Map;
19
20
25 public class RestrictionsFactoryUtil {
26
27 public static Criterion allEq(Map<String, Criterion> propertyNameValues) {
28 return getRestrictionsFactory().allEq(propertyNameValues);
29 }
30
31 public static Criterion and(Criterion lhs, Criterion rhs) {
32 return getRestrictionsFactory().and(lhs, rhs);
33 }
34
35 public static Criterion between(String propertyName, Object lo, Object hi) {
36 return getRestrictionsFactory().between(propertyName, lo, hi);
37 }
38
39 public static Conjunction conjunction() {
40 return getRestrictionsFactory().conjunction();
41 }
42
43 public static Disjunction disjunction() {
44 return getRestrictionsFactory().disjunction();
45 }
46
47 public static Criterion eq(String propertyName, Object value) {
48 return getRestrictionsFactory().eq(propertyName, value);
49 }
50
51 public static Criterion eqProperty(
52 String propertyName, String otherPropertyName) {
53
54 return getRestrictionsFactory().eqProperty(
55 propertyName, otherPropertyName);
56 }
57
58 public static Criterion ge(String propertyName, Object value) {
59 return getRestrictionsFactory().ge(propertyName, value);
60 }
61
62 public static Criterion geProperty(
63 String propertyName, String otherPropertyName) {
64
65 return getRestrictionsFactory().geProperty(
66 propertyName, otherPropertyName);
67 }
68
69 public static RestrictionsFactory getRestrictionsFactory() {
70 return _restrictionsFactory;
71 }
72
73 public static Criterion gt(String propertyName, Object value) {
74 return getRestrictionsFactory().gt(propertyName, value);
75 }
76
77 public static Criterion gtProperty(
78 String propertyName, String otherPropertyName) {
79
80 return getRestrictionsFactory().gtProperty(
81 propertyName, otherPropertyName);
82 }
83
84 public static Criterion ilike(String propertyName, Object value) {
85 return getRestrictionsFactory().ilike(propertyName, value);
86 }
87
88 public static Criterion in(String propertyName, Collection<Object> values) {
89 return getRestrictionsFactory().in(propertyName, values);
90 }
91
92 public static Criterion in(String propertyName, Object[] values) {
93 return getRestrictionsFactory().in(propertyName, values);
94 }
95
96 public static Criterion isEmpty(String propertyName) {
97 return getRestrictionsFactory().isEmpty(propertyName);
98 }
99
100 public static Criterion isNotEmpty(String propertyName) {
101 return getRestrictionsFactory().isNotEmpty(propertyName);
102 }
103
104 public static Criterion isNotNull(String propertyName) {
105 return getRestrictionsFactory().isNotNull(propertyName);
106 }
107
108 public static Criterion isNull(String propertyName) {
109 return getRestrictionsFactory().isNull(propertyName);
110 }
111
112 public static Criterion le(String propertyName, Object value) {
113 return getRestrictionsFactory().le(propertyName, value);
114 }
115
116 public static Criterion leProperty(
117 String propertyName, String otherPropertyName) {
118
119 return getRestrictionsFactory().leProperty(
120 propertyName, otherPropertyName);
121 }
122
123 public static Criterion like(String propertyName, Object value) {
124 return getRestrictionsFactory().like(propertyName, value);
125 }
126
127 public static Criterion lt(String propertyName, Object value) {
128 return getRestrictionsFactory().lt(propertyName, value);
129 }
130
131 public static Criterion ltProperty(
132 String propertyName, String otherPropertyName) {
133
134 return getRestrictionsFactory().ltProperty(
135 propertyName, otherPropertyName);
136 }
137
138 public static Criterion ne(String propertyName, Object value) {
139 return getRestrictionsFactory().ne(propertyName, value);
140 }
141
142 public static Criterion neProperty(
143 String propertyName, String otherPropertyName) {
144
145 return getRestrictionsFactory().neProperty(
146 propertyName, otherPropertyName);
147 }
148
149 public static Criterion not(Criterion expression) {
150 return getRestrictionsFactory().not(expression);
151 }
152
153 public static Criterion or(Criterion lhs, Criterion rhs) {
154 return getRestrictionsFactory().or(lhs, rhs);
155 }
156
157 public void setRestrictionsFactory(
158 RestrictionsFactory restrictionsFactory) {
159
160 _restrictionsFactory = restrictionsFactory;
161 }
162
163 public static Criterion sizeEq(String propertyName, int size) {
164 return getRestrictionsFactory().sizeEq(propertyName, size);
165 }
166
167 public static Criterion sizeGe(String propertyName, int size) {
168 return getRestrictionsFactory().sizeGe(propertyName, size);
169 }
170
171 public static Criterion sizeGt(String propertyName, int size) {
172 return getRestrictionsFactory().sizeGt(propertyName, size);
173 }
174
175 public static Criterion sizeLe(String propertyName, int size) {
176 return getRestrictionsFactory().sizeLe(propertyName, size);
177 }
178
179 public static Criterion sizeLt(String propertyName, int size) {
180 return getRestrictionsFactory().sizeLt(propertyName, size);
181 }
182
183 public static Criterion sizeNe(String propertyName, int size) {
184 return getRestrictionsFactory().sizeNe(propertyName, size);
185 }
186
187 private static RestrictionsFactory _restrictionsFactory;
188
189 }