Class MetadataQueryBuilder<METADATA_TYPE extends BaseMetadata<METADATA_TYPE>>
java.lang.Object
oracle.as.scheduler.metadata.query.builder.MetadataQueryBuilder<METADATA_TYPE>
- Direct Known Subclasses:
oracle.as.scheduler.metadata.query.MetadataQueryFilterFactory.ExclusionsDefinitionFilterFactory
,oracle.as.scheduler.metadata.query.MetadataQueryFilterFactory.IncompatibilityFilterFactory
,oracle.as.scheduler.metadata.query.MetadataQueryFilterFactory.JobDefinitionFilterFactory
,oracle.as.scheduler.metadata.query.MetadataQueryFilterFactory.JobSetFilterFactory
,oracle.as.scheduler.metadata.query.MetadataQueryFilterFactory.JobTypeFilterFactory
,oracle.as.scheduler.metadata.query.MetadataQueryFilterFactory.ScheduleFilterFactory
,oracle.as.scheduler.metadata.query.MetadataQueryFilterFactory.WorkAssignmentFilterFactory
,oracle.as.scheduler.metadata.query.MetadataQueryFilterFactory.WorkshiftFilterFactory
Base Query builder object for building filters to query ESS metadata. The methods of this classs are to be accessed by
obtaining the type-specific QueryBuilder instances implemented for every metadata type.
-
Method Summary
Modifier and TypeMethodDescription<VALUE_TYPE extends Serializable>
MetadataQueryFilter<METADATA_TYPE>createFilter
(oracle.as.scheduler.metadata.query.MetadataQueryField<VALUE_TYPE> queryField, oracle.as.scheduler.query.QueryComparator queryComparator, VALUE_TYPE value) Creates a metadata query filter for the given query field, comparator and valuefinal MetadataQueryFilter<METADATA_TYPE>
queryDisplayName
(oracle.as.scheduler.query.QueryComparator c, oracle.as.scheduler.translation.TranslatedString value) Creates a filter to query by display namefinal MetadataQueryFilter<METADATA_TYPE>
queryLogicalClusterName
(oracle.as.scheduler.query.QueryComparator c, String name) Creates a filter to query by logical cluster namefinal MetadataQueryFilter<METADATA_TYPE>
Creates a filter to query by metadata namefinal MetadataQueryFilter<METADATA_TYPE>
queryPackage
(oracle.as.scheduler.query.QueryComparator c, String packageName) Creates a filter to query by metadata packagefinal MetadataQueryFilter<METADATA_TYPE>
queryPrivileges
(oracle.as.scheduler.query.QueryComparator c, MetadataPermission.Action... actions) Deprecated.final MetadataQueryFilter<METADATA_TYPE>
queryPrivileges
(MetadataPermission.Action... actions) Creates a filter to query by metadata privilege actionsfinal MetadataQueryFilter<METADATA_TYPE>
queryResultIndex
(oracle.as.scheduler.query.QueryComparator c, Integer value) Creates a filter to query by ResultIndex
-
Method Details
-
createFilter
public <VALUE_TYPE extends Serializable> MetadataQueryFilter<METADATA_TYPE> createFilter(oracle.as.scheduler.metadata.query.MetadataQueryField<VALUE_TYPE> queryField, oracle.as.scheduler.query.QueryComparator queryComparator, VALUE_TYPE value) Creates a metadata query filter for the given query field, comparator and value- Parameters:
queryField
- a query field defined inoracle.as.scheduler.MetadataService.QueryField
enumqueryComparator
- a comparator defined inoracle.as.scheduler.Filter.Comparator
enumvalue
- an Object- Returns:
- an instance of MetadataQueryFilter
-
queryName
public final MetadataQueryFilter<METADATA_TYPE> queryName(oracle.as.scheduler.query.QueryComparator c, String name) Creates a filter to query by metadata name- Parameters:
c
- comparator defined inoracle.as.scheduler.Filter.Comparator
enumname
- name of metadata in String- Returns:
- an instance of query filter
-
queryPackage
public final MetadataQueryFilter<METADATA_TYPE> queryPackage(oracle.as.scheduler.query.QueryComparator c, String packageName) Creates a filter to query by metadata package- Parameters:
c
- comparator defined inoracle.as.scheduler.Filter.Comparator
enumpackageName
- package of metadata in String- Returns:
- an instance of query filter
-
queryPrivileges
public final MetadataQueryFilter<METADATA_TYPE> queryPrivileges(MetadataPermission.Action... actions) Creates a filter to query by metadata privilege actions- Parameters:
actions
- actions defined inoracle.as.scheduler.security.MetadataPermission.Action
- Returns:
- an instance of query filter
-
queryPrivileges
@Deprecated public final MetadataQueryFilter<METADATA_TYPE> queryPrivileges(oracle.as.scheduler.query.QueryComparator c, MetadataPermission.Action... actions) Deprecated.use queryPrivileges(Action...) becauseQueryComparator.CONTAINS
is the only valid value for the first argument. Creates a filter to query by metadata privilege actions and comparator- Parameters:
c
- comparator defined inoracle.as.scheduler.Filter.Comparator
enumactions
- actions defined inoracle.as.scheduler.security.MetadataPermission.Action
- Returns:
- an instance of query filter
-
queryResultIndex
public final MetadataQueryFilter<METADATA_TYPE> queryResultIndex(oracle.as.scheduler.query.QueryComparator c, Integer value) Creates a filter to query by ResultIndex- Parameters:
c
- comparator defined inoracle.as.scheduler.Filter.Comparator
enumvalue
- index value- Returns:
- an instance of query filter
-
queryDisplayName
public final MetadataQueryFilter<METADATA_TYPE> queryDisplayName(oracle.as.scheduler.query.QueryComparator c, oracle.as.scheduler.translation.TranslatedString value) Creates a filter to query by display name- Parameters:
c
- comparator defined inoracle.as.scheduler.Filter.Comparator
enumvalue
- an Object- Returns:
- an instance of query filter
-
queryLogicalClusterName
public final MetadataQueryFilter<METADATA_TYPE> queryLogicalClusterName(oracle.as.scheduler.query.QueryComparator c, String name) Creates a filter to query by logical cluster name- Parameters:
c
- comparator defined inoracle.as.scheduler.Filter.Comparator
enumname
- an Object- Returns:
- an instance of query filter
-
QueryComparator.CONTAINS
is the only valid value for the first argument.