Class PArray<R,E>
java.lang.Object
io.ebean.typequery.TQProperty<R,E>
io.ebean.typequery.TQPropertyBase<R,E>
io.ebean.typequery.PArray<R,E>
- Type Parameters:
R- the root query bean typeE- the element type of the DbArray
- All Implemented Interfaces:
io.ebean.Query.Property<E>
Array property with E as the element type.
-
Field Summary
Fields inherited from class TQProperty
_name, _root -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal RARRAY contains the values.isEmpty()ARRAY is empty.ARRAY is not empty.final RnotContains(E... values) ARRAY does not contain the values.Methods inherited from class TQPropertyBase
asc, descMethods inherited from class TQProperty
expr, isNotNull, isNull, propertyName, toString
-
Constructor Details
-
PArray
-
PArray
-
-
Method Details
-
contains
ARRAY contains the values.new QContact() .phoneNumbers.contains("4321") .findList();- Parameters:
values- The values that should be contained in the array
-
notContains
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
ARRAY is empty.new QContact() .phoneNumbers.isEmpty() .findList(); -
isNotEmpty
ARRAY is not empty.new QContact() .phoneNumbers.isNotEmpty() .findList();
-