public class RASTargetDatabaseSearchQuery extends BaseSearchQuery
Following code snippet illustrates how to build a search criteria to search by the Security Module Configuration Id.
RASTargetdatabaseSearchQuery searchQuery = new RASTargetdatabaseSearchQuery( RASTargetdatabaseSearchQuery.SEARCH_PROPERTY.TARGET_DATABASE_NAME, false, ComparatorType.EQUALITY, "target1", // unique configuration id for target database BaseSearchQuery.MATCHER.EXACT); List <RASTargetDatabaseEntry> targetDatabaseEntries = rasConfigManager.getTargetDatabases(searchQuery); *
Modifier and Type | Class and Description |
---|---|
static class |
RASTargetDatabaseSearchQuery.SEARCH_PROPERTY
Properties to search a target database Configuration by.
|
SearchQuery.MATCHER
Constructor and Description |
---|
RASTargetDatabaseSearchQuery(java.util.List<RASTargetDatabaseSearchQuery> queries, boolean negation, boolean isORMatch)
Constructor
|
RASTargetDatabaseSearchQuery(RASTargetDatabaseSearchQuery.SEARCH_PROPERTY property, boolean negation, ComparatorType operator, java.lang.String value, SearchQuery.MATCHER match)
Constructor
|
Modifier and Type | Method and Description |
---|---|
RASTargetDatabaseSearchQuery[] |
getSearchQueryInOrder()
Get all added queries in the order they were added.
|
getBaseSearchQueryInOrder, getComparator, getEntityType, getQueries, toString
addBaseQuery, getPageInfo, getPreparedQueryId, getSearchByPropertyString, getSearchByValue, getSearchByValueObject, getSearchComparator, getSearchQueries, getSearchValueMatch, hasPageInfo, isANDMatch, isComplexQuery, isNegativeMatch, isORMatch, setPageInfo, setPreparedQueryId, unsetPageInfo
public RASTargetDatabaseSearchQuery(RASTargetDatabaseSearchQuery.SEARCH_PROPERTY property, boolean negation, ComparatorType operator, java.lang.String value, SearchQuery.MATCHER match)
property
- the property to search by, See RASTargetDatabaseSearchQuery.SEARCH_PROPERTY
for list of valid valuesnegation
- if true, then the NOT operator is appliedoperator
- the operator to applyvalueObject
- 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.
match
- 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 RASTargetDatabaseSearchQuery(java.util.List<RASTargetDatabaseSearchQuery> queries, boolean negation, boolean isORMatch)
queries
- child queries of this querynegation
- if true, then the NOT operator is applied.isORMatch
- if true the syntax among the child queries is 'OR', if false, the syntax among child queries is 'AND'public RASTargetDatabaseSearchQuery[] getSearchQueryInOrder()