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 io.ebean.typequery.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 io.ebean.typequery.TQPropertyBase
asc, descMethods inherited from class io.ebean.typequery.TQProperty
expr, isNotNull, isNull, propertyName, toString
-
Constructor Details
-
PArray
Construct with a property name and root instance.- Parameters:
name- property nameroot- the root query bean instance
-
PArray
Construct with additional path prefix.
-
-
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();
-