Class PJson<R>
java.lang.Object
io.ebean.typequery.TQProperty<R,String>
io.ebean.typequery.TQPropertyBase<R,String>
io.ebean.typequery.PJson<R>
- Type Parameters:
R- the root query bean type
- All Implemented Interfaces:
io.ebean.Query.Property<String>
JSON document type.
Type that is JSON content mapped to database types such as Postgres JSON/JSONB and otherwise Varchar,Clob and Blob.
The expressions on this type are valid of Postgres and Oracle.
The path can reference a nested property in the JSON document using dot notation - for example "documentMeta.score" where "score" is an embedded attribute of "documentMeta"
-
Field Summary
Fields inherited from class TQProperty
_name, _root -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjsonEqualTo(String path, Object value) Value at the given JSON path is equal to the given value.jsonExists(String path) Path exists - for the given path in a JSON document.jsonGreaterOrEqual(String path, Object value) Greater than or equal to - for the given path in a JSON document.jsonGreaterThan(String path, Object value) Greater than - for the given path in a JSON document.jsonLessOrEqualTo(String path, Object value) Less than or equal to - for the given path in a JSON document.jsonLessThan(String path, Object value) Less than - for the given path in a JSON document.jsonNotEqualTo(String path, Object value) Not Equal to - for the given path in a JSON document.jsonNotExists(String path) Path does not exist - for the given path in a JSON document.Methods inherited from class TQPropertyBase
asc, descMethods inherited from class TQProperty
expr, isNotNull, isNull, propertyName, toString
-
Constructor Details
-
PJson
-
PJson
-
-
Method Details
-
jsonExists
-
jsonNotExists
-
jsonEqualTo
Value at the given JSON path is equal to the given value.new QSimpleDoc() .content.jsonEqualTo("title", "Rob JSON in the DB") .findList();new QSimpleDoc() .content.jsonEqualTo("path.other", 34) .findList();- Parameters:
path- the dot notation path in the JSON documentvalue- the equal to bind value
-
jsonNotEqualTo
-
jsonGreaterThan
-
jsonGreaterOrEqual
-
jsonLessThan
-
jsonLessOrEqualTo
-