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

public class MetadataQueryBuilder<METADATA_TYPE extends BaseMetadata<METADATA_TYPE>> extends Object
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.
See Also:
  • 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 in oracle.as.scheduler.MetadataService.QueryField enum
      queryComparator - a comparator defined in oracle.as.scheduler.Filter.Comparator enum
      value - 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 in oracle.as.scheduler.Filter.Comparator enum
      name - 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 in oracle.as.scheduler.Filter.Comparator enum
      packageName - 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 in oracle.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...) because QueryComparator.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 in oracle.as.scheduler.Filter.Comparator enum
      actions - actions defined in oracle.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 in oracle.as.scheduler.Filter.Comparator enum
      value - 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 in oracle.as.scheduler.Filter.Comparator enum
      value - 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 in oracle.as.scheduler.Filter.Comparator enum
      name - an Object
      Returns:
      an instance of query filter