- java.lang.Object
-
- io.ebean.typequery.TQProperty<R>
-
- io.ebean.typequery.TQPropertyBase<R>
-
- io.ebean.typequery.PArray<R,E>
-
- Type Parameters:
R- the root query bean typeE- the element type of the DbArray
public final class PArray<R,E> extends TQPropertyBase<R>
Array property with E as the element type.
-
-
Field Summary
-
Fields inherited from class io.ebean.typequery.TQProperty
_name, _root
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rcontains(E... values)ARRAY contains the values.RisEmpty()ARRAY is empty.RisNotEmpty()ARRAY is not empty.RnotContains(E... values)ARRAY does not contain the values.-
Methods inherited from class io.ebean.typequery.TQPropertyBase
asc, desc
-
Methods inherited from class io.ebean.typequery.TQProperty
expr, isNotNull, isNull, propertyName, toString
-
-
-
-
Method Detail
-
contains
@SafeVarargs public final R contains(E... values)
ARRAY contains the values.new QContact() .phoneNumbers.contains("4321") .findList();- Parameters:
values- The values that should be contained in the array
-
notContains
@SafeVarargs public final R notContains(E... values)
ARRAY does not contain the values.new QContact() .phoneNumbers.notContains("4321") .findList();- Parameters:
values- The values that should not be contained in the array
-
isEmpty
public R isEmpty()
ARRAY is empty.new QContact() .phoneNumbers.isEmpty() .findList();
-
isNotEmpty
public R isNotEmpty()
ARRAY is not empty.new QContact() .phoneNumbers.isNotEmpty() .findList();
-
-