@@ -123,6 +123,56 @@ public PropertyQueryCondition<ENTITY> notEqual(boolean value) {
123123 return new LongCondition <>(this , LongCondition .Operation .NOT_EQUAL , value );
124124 }
125125
126+ /** Creates an "equal ('=')" condition for this property. */
127+ public PropertyQueryCondition <ENTITY > equal (short value ) {
128+ return equal ((long ) value );
129+ }
130+
131+ /** Creates a "not equal ('<>')" condition for this property. */
132+ public PropertyQueryCondition <ENTITY > notEqual (short value ) {
133+ return notEqual ((long ) value );
134+ }
135+
136+ /** Creates a "greater than ('>')" condition for this property. */
137+ public PropertyQueryCondition <ENTITY > greater (short value ) {
138+ return greater ((long ) value );
139+ }
140+
141+ /** Creates a "less than ('<')" condition for this property. */
142+ public PropertyQueryCondition <ENTITY > less (short value ) {
143+ return less ((long ) value );
144+ }
145+
146+ /** Creates an "BETWEEN ... AND ..." condition for this property. */
147+ public PropertyQueryCondition <ENTITY > between (short lowerBoundary , short upperBoundary ) {
148+ return between ((long ) lowerBoundary , upperBoundary );
149+ }
150+
151+ /** Creates an "equal ('=')" condition for this property. */
152+ public PropertyQueryCondition <ENTITY > equal (int value ) {
153+ return equal ((long ) value );
154+ }
155+
156+ /** Creates a "not equal ('<>')" condition for this property. */
157+ public PropertyQueryCondition <ENTITY > notEqual (int value ) {
158+ return notEqual ((long ) value );
159+ }
160+
161+ /** Creates a "greater than ('>')" condition for this property. */
162+ public PropertyQueryCondition <ENTITY > greater (int value ) {
163+ return greater ((long ) value );
164+ }
165+
166+ /** Creates a "less than ('<')" condition for this property. */
167+ public PropertyQueryCondition <ENTITY > less (int value ) {
168+ return less ((long ) value );
169+ }
170+
171+ /** Creates an "BETWEEN ... AND ..." condition for this property. */
172+ public PropertyQueryCondition <ENTITY > between (int lowerBoundary , int upperBoundary ) {
173+ return between ((long ) lowerBoundary , upperBoundary );
174+ }
175+
126176 /** Creates an "IN (..., ..., ...)" condition for this property. */
127177 public PropertyQueryCondition <ENTITY > oneOf (int [] values ) {
128178 return new IntArrayCondition <>(this , IntArrayCondition .Operation .IN , values );
@@ -153,6 +203,11 @@ public PropertyQueryCondition<ENTITY> less(long value) {
153203 return new LongCondition <>(this , LongCondition .Operation .LESS , value );
154204 }
155205
206+ /** Creates an "BETWEEN ... AND ..." condition for this property. */
207+ public PropertyQueryCondition <ENTITY > between (long lowerBoundary , long upperBoundary ) {
208+ return new LongLongCondition <>(this , LongLongCondition .Operation .BETWEEN , lowerBoundary , upperBoundary );
209+ }
210+
156211 /** Creates an "IN (..., ..., ...)" condition for this property. */
157212 public PropertyQueryCondition <ENTITY > oneOf (long [] values ) {
158213 return new LongArrayCondition <>(this , LongArrayCondition .Operation .IN , values );
@@ -163,11 +218,6 @@ public PropertyQueryCondition<ENTITY> notOneOf(long[] values) {
163218 return new LongArrayCondition <>(this , LongArrayCondition .Operation .NOT_IN , values );
164219 }
165220
166- /** Creates an "BETWEEN ... AND ..." condition for this property. */
167- public PropertyQueryCondition <ENTITY > between (long lowerBoundary , long upperBoundary ) {
168- return new LongLongCondition <>(this , LongLongCondition .Operation .BETWEEN , lowerBoundary , upperBoundary );
169- }
170-
171221 /**
172222 * Calls {@link #between(double, double)} with {@code value - tolerance} as lower bound and
173223 * {@code value + tolerance} as upper bound.
0 commit comments