|
Oracle Fusion Middleware Java API Reference for Oracle Platform Security Services 11g Release 1 (11.1.1.1) E14650-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.jps.service.policystore.search.BaseSearchQuery
public class BaseSearchQuery
A class to construct generic Search Queries to aid with retrieving information from a persistent store.
The search query comprises
Further, a search query can be AND-ed, OR-ed with other queries to build a specific search criteria. The query objects are not thread-safe and concurrent modifications to the query is not allowed.
Nested Class Summary | |
---|---|
static class |
BaseSearchQuery.MATCHER Rules to match two Strings. |
Field Summary | |
---|---|
java.util.ArrayList<BaseSearchQuery> |
queries |
Constructor Summary | |
---|---|
BaseSearchQuery(EntryReference.EntryType context) Constructs a BaseQuery. |
|
BaseSearchQuery(EntryReference.EntryType context, java.lang.String property, boolean negation, ComparatorType operator, java.lang.Object objectValue) |
|
BaseSearchQuery(EntryReference.EntryType context, java.lang.String property, boolean negation, ComparatorType operator, java.lang.Object objectValue, BaseSearchQuery.MATCHER matcher) |
|
BaseSearchQuery(EntryReference.EntryType context, java.lang.String property, boolean negation, ComparatorType operator, java.lang.String value, BaseSearchQuery.MATCHER matcher) Constructs a Base query. |
Method Summary | ||
---|---|---|
void |
addBaseQuery(BaseSearchQuery query) Add a BaseSearchQuery |
|
BaseSearchQuery[] |
getBaseSearchQueryInOrder() Get the base search queries in order. |
|
ComparatorType |
getComparator() |
|
EntryReference.EntryType |
getEntityType() |
|
java.util.ArrayList<BaseSearchQuery> |
getQueries() Get the Queries. |
|
java.lang.String |
getSearchByPropertyString() Get The Search by Property as a String. |
|
java.lang.String |
getSearchByValue() Get the Search by Value. |
|
|
getSearchByValueObject(java.lang.Class<T> klass) Get the Search by value object. |
|
BaseSearchQuery.MATCHER |
getSearchValueMatch() |
|
boolean |
isANDMatch() |
|
boolean |
isComplexQuery() Complex means this query contains some children queries, the query result will be intersection or union of children queries' results See isANDMatch() and isORMatch() and isNegativeMatch() A Complex query may be like: NOT (queryA OR (queryB AND queryC)) Simple query means this query has no children queries, but a simple property assertion. |
|
boolean |
isNegativeMatch() |
|
boolean |
isORMatch() |
|
void |
setANDMatch() Apply the AND condition to all sub-queries in this query. |
|
void |
setORMatch() Apply the OR condition to all sub-queries in this query. |
|
java.lang.String |
toString() |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final java.util.ArrayList<BaseSearchQuery> queries
Constructor Detail |
---|
public BaseSearchQuery(EntryReference.EntryType context)
context
- The entity being searched for.public BaseSearchQuery(EntryReference.EntryType context, java.lang.String property, boolean negation, ComparatorType operator, java.lang.String value, BaseSearchQuery.MATCHER matcher)
context
- The entity to search forproperty
- the property to search bynegation
- if true, then the NOT operator is applied.operator
- the operator to applyvalue
- the value to search for
If value is null, the match
must be ANY
If value is non-null, this value is matched against the values to search for. The match
algorithm is applied to values to sarch against.
matcher
- how the value should match-ed with the values to search against. If match is null, an EXACT match is assumed. value should be non-null.public BaseSearchQuery(EntryReference.EntryType context, java.lang.String property, boolean negation, ComparatorType operator, java.lang.Object objectValue)
public BaseSearchQuery(EntryReference.EntryType context, java.lang.String property, boolean negation, ComparatorType operator, java.lang.Object objectValue, BaseSearchQuery.MATCHER matcher)
Method Detail |
---|
public java.util.ArrayList<BaseSearchQuery> getQueries()
public void addBaseQuery(BaseSearchQuery query)
query
- to add a a sub-query.public BaseSearchQuery[] getBaseSearchQueryInOrder()
public java.lang.String getSearchByPropertyString()
public java.lang.String getSearchByValue()
public <T> T getSearchByValueObject(java.lang.Class<T> klass)
public final void setORMatch()
public final void setANDMatch()
public final boolean isComplexQuery()
isANDMatch()
and isORMatch()
and isNegativeMatch()
A Complex query may be like: NOT (queryA OR (queryB AND queryC)) Simple query means this query has no children queries, but a simple property assertion. A simple query may be like: NOT (description contains 'weather')public final boolean isORMatch()
public final boolean isANDMatch()
public final boolean isNegativeMatch()
public final BaseSearchQuery.MATCHER getSearchValueMatch()
public final ComparatorType getComparator()
public final EntryReference.EntryType getEntityType()
public java.lang.String toString()
toString
in class java.lang.Object
|
Oracle Fusion Middleware Java API Reference for Oracle Platform Security Services 11g Release 1 (11.1.1.1) E14650-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |