|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Interface for constructing Query objects; the methods enumerate all permitted query predicate types.
The intended semantics is that each node has grouping parentheses
around its arguments. That is, the code
QueryFactory.and(or(A, B), C) constructs the query
predicate ((A or B) and C).
| Method Summary | |
Query |
all()
Matches all documents. |
Query |
and(Query left,
Query right)
Boolean conjunction of two sub-queries: matches documents matched by both the right and left sub-queries. |
Query |
conformsTo(Schema schema)
Matches documents that conform to the named schema, that is, documents whose set of property values meets the requirements of the schema. |
Query |
create(String query)
Placeholder for queries expressed as a String in an external query language. |
Query |
isEnforced(Schema schema)
Matches documents that have the named schema enforced by the Storage implementation. |
Query |
not(Query query)
Boolean negation of a sub-query: matches documents not matched by the sub-query. |
Query |
or(Query left,
Query right)
Boolean disjunction of two sub-queries: matches documents matched by either the right or the left sub-query or both. |
Query |
propertyContains(FieldDescriptor name,
Object value)
|
Query |
propertyContains(String name,
Object value)
Matches documents having the specified value equal to at least one value of the named property according to the semantics of Object.equals, with the following
extensions:
This predicate will match documents having more than one
value for the named property. |
Query |
propertyContainsText(FieldDescriptor name,
String substr)
|
Query |
propertyContainsText(String name,
String substr)
Matches documents having the supplied value as a substring of the String value of the named property. |
Query |
propertyContainsTextIgnoreCase(FieldDescriptor name,
String substr)
|
Query |
propertyContainsTextIgnoreCase(String name,
String substr)
Matches documents having the supplied value as a substring of the String value of the named property, ignoring case. |
Query |
propertyEquals(FieldDescriptor name,
Object value)
|
Query |
propertyEquals(FieldDescriptor name,
String value)
Deprecated. Use propertyEquals(FieldDescriptor,
Object) instead. |
Query |
propertyEquals(String name,
Object value)
Matches documents having the value of the named property equal to the specified value according to the semantics of Object.equals, with the following extensions:
This predicate does not match documents having more than
one value for the named property. |
Query |
propertyEquals(String name,
String value)
Deprecated. Use propertyEquals(String, Object)
instead. |
Query |
propertyEqualsIgnoreCase(FieldDescriptor name,
String value)
|
Query |
propertyEqualsIgnoreCase(String name,
String value)
Matches documents having the String value of the named property equal to the specified value without regard to case, that is, using the semantics of String.equalsIgnoreCase,
with the following extensions:
This predicate does not match documents having more than
one value for the named property. |
Query |
propertyExists(FieldDescriptor name)
Matches documents having a value for the specified property name. |
Query |
propertyExists(String name)
Matches documents having a value for the specified property name. |
Query |
propertyGreaterThan(FieldDescriptor name,
Comparable value)
|
Query |
propertyGreaterThan(String name,
Comparable value)
Matches documents having the value of the named property which is greater than the specified value according to the semantics of Java Comparable.compareTo, with the following
extensions:
This predicate does not match documents having more than
one value for the named property. |
Query |
propertyGreaterThanEquals(FieldDescriptor name,
Comparable value)
|
Query |
propertyGreaterThanEquals(String name,
Comparable value)
Matches documents having the value of the named property which is greater than or equal to the specified value according to the semantics of Java Comparable.compareTo(), with
the following extensions:
This predicate does not match documents having more than
one value for the named property. |
Query |
propertyLessThan(FieldDescriptor name,
Comparable value)
|
Query |
propertyLessThan(String name,
Comparable value)
Matches documents having the value of the named property which is less than the specified value according to the semantics of Comparable.compareTo, with the following
extensions:
This predicate does not match documents having more than
one value for the named property. |
Query |
propertyLessThanEquals(FieldDescriptor name,
Comparable value)
|
Query |
propertyLessThanEquals(String name,
Comparable value)
Matches documents having the value of the named property which is less than or equal to the specified value according to the semantics of Comparable.compareTo, with the
following extensions:
This predicate does not match documents having more than
one value for the named property. |
Query |
propertyNotEquals(FieldDescriptor name,
Object value)
|
Query |
propertyNotEquals(FieldDescriptor name,
String value)
Deprecated. Use propertyNotEquals(FieldDescriptor,
Object) instead. |
Query |
propertyNotEquals(String name,
Object value)
Matches documents having the value of the named property which is not equal to the specified value according to the semantics of Object.equals, with the following extensions:
This predicate does not match documents having more than
one value for the named property. |
Query |
propertyNotEquals(String name,
String value)
Deprecated. Use propertyNotEquals(String, Object)
instead. |
Query |
textContains(String value)
Matches documents having the specified value as a substring of a text extraction of the content. |
| Method Detail |
public Query create(String query)
throws StorageException
public Query isEnforced(Schema schema)
throws StorageException
isEnforced(s) implies conformsTo(s)
public Query conformsTo(Schema schema)
throws StorageException
conformsTo(s) does not imply isEnforced(s)
public Query all()
throws StorageException
public Query propertyExists(String name)
throws StorageException
public Query propertyExists(FieldDescriptor name)
throws StorageException
propertyExists(String)
public Query propertyEquals(String name,
Object value)
throws StorageException
Object.equals, with the following extensions:
propertyContains.
true.
public Query propertyEquals(FieldDescriptor name,
Object value)
throws StorageException
propertyEquals(String, Object)
public Query propertyEquals(String name,
String value)
throws StorageException
propertyEquals(String, Object)
instead.
propertyEquals(String, Object)
public Query propertyEquals(FieldDescriptor name,
String value)
throws StorageException
propertyEquals(FieldDescriptor,
Object) instead.
propertyEquals(String, Object)
public Query propertyNotEquals(String name,
Object value)
throws StorageException
Object.equals, with the following extensions:
true.
public Query propertyNotEquals(FieldDescriptor name,
Object value)
throws StorageException
propertyNotEquals(String, Object)
public Query propertyNotEquals(String name,
String value)
throws StorageException
propertyNotEquals(String, Object)
instead.
propertyNotEquals(String, Object)
public Query propertyNotEquals(FieldDescriptor name,
String value)
throws StorageException
propertyNotEquals(FieldDescriptor,
Object) instead.
propertyNotEquals(String, Object)
public Query propertyLessThan(String name,
Comparable value)
throws StorageException
Comparable.compareTo, with the following
extensions:
false. No type conversion or promotion will
be performed, and no exception will be thrown.
public Query propertyLessThan(FieldDescriptor name,
Comparable value)
throws StorageException
propertyLessThan(String, Comparable)
public Query propertyLessThanEquals(String name,
Comparable value)
throws StorageException
Comparable.compareTo, with the
following extensions:
false. No type conversion or promotion will
be performed, and no exception will be thrown.
public Query propertyLessThanEquals(FieldDescriptor name,
Comparable value)
throws StorageException
propertyLessThanEquals(String, Comparable)
public Query propertyGreaterThan(String name,
Comparable value)
throws StorageException
Comparable.compareTo, with the following
extensions:
false. No type conversion or promotion will
be performed, and no exception will be thrown.
public Query propertyGreaterThan(FieldDescriptor name,
Comparable value)
throws StorageException
propertyGreaterThan(String, Comparable)
public Query propertyGreaterThanEquals(String name,
Comparable value)
throws StorageException
Comparable.compareTo(), with
the following extensions:
false. No type conversion or promotion will
be performed, and no exception will be thrown.
public Query propertyGreaterThanEquals(FieldDescriptor name,
Comparable value)
throws StorageException
propertyGreaterThanEquals(String, Comparable)
public Query propertyEqualsIgnoreCase(String name,
String value)
throws StorageException
String.equalsIgnoreCase,
with the following extensions:
String, the
test is always false.
public Query propertyEqualsIgnoreCase(FieldDescriptor name,
String value)
throws StorageException
propertyEqualsIgnoreCase(String, String)
public Query propertyContainsText(String name,
String substr)
throws StorageException
String.indexOf(substr) != -1, with the
following extensions:
String, the
test is always false.
public Query propertyContainsText(FieldDescriptor name,
String substr)
throws StorageException
propertyContainsText(String, String)
public Query propertyContainsTextIgnoreCase(String name,
String substr)
throws StorageException
String.toUpperCase().indexOf(substr.toUpperCase()) !=
-1, with the following extensions:
String, the
test is always false.
public Query propertyContainsTextIgnoreCase(FieldDescriptor name,
String substr)
throws StorageException
propertyContainsTextIgnoreCase(String, String)
public Query propertyContains(String name,
Object value)
throws StorageException
Object.equals, with the following
extensions:
propertyEquals.
false.
public Query propertyContains(FieldDescriptor name,
Object value)
throws StorageException
propertyContains(String, Object)
public Query textContains(String value)
throws StorageException
ContentDocuments. The algorithm by which text is extracted
from various content types is implementation-specific.
Implementation-specific query syntax may also be accepted
within value.
public Query and(Query left,
Query right)
throws StorageException
public Query or(Query left,
Query right)
throws StorageException
public Query not(Query query)
throws StorageException
|
Project Harland | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||