Interface QueryChangeCommand


@NotFinalAPI public interface QueryChangeCommand
A command controlling changes to a query without knowledge of the query internal structure, type or dependencies.

All "setters" return 'this' to facilitate method chaining.

Can be created using TopologyQueryFactory.createQueryChangeCommand(String).

Since:
UCMDB 9.0
See Also:
  • Method Details

    • queryName

      String queryName()
      The name of the query the command affects.
      Returns:
      the query name the command affects.
    • changeRecalcPriorityTo

      QueryChangeCommand changeRecalcPriorityTo(QueryDefinitionRecalcPriority recalcPriority)
      Changes the recalculation priority of the query to the given value.
    • recalcPriorityToChangeTo

      QueryDefinitionRecalcPriority recalcPriorityToChangeTo()
      Returns the previously set recalculation prioirty, or null if none was set.
    • changeFirstLoadStrategyTo

      QueryChangeCommand changeFirstLoadStrategyTo(QueryDefinitionFirstLoadStrategy firstLoadStrategy)
      Changes the first load strategy of the query to the given value.
    • firstLoadStrategyToChangeTo

      QueryDefinitionFirstLoadStrategy firstLoadStrategyToChangeTo()
      Returns the previously set first load strategy, or null if none was set.
    • setInternalDataStoreOnly

      QueryChangeCommand setInternalDataStoreOnly()
      Changes all the data store settings for all elements in the query definition to "internal". This allows the query to run restricted to the CMDB data.
    • shouldSetInternalDataStoreOnly

      boolean shouldSetInternalDataStoreOnly()
      Returns true if setInternalDataStoreOnly() was called.
    • attachToBundles

      QueryChangeCommand attachToBundles(Collection<String> bundles)
      Attaches bundles to the query, adding them to the query's existing bundles, if any.

      If a detach and attach operation are both called on the same bundle, the later call determines the behavior.

    • attachToBundles

      QueryChangeCommand attachToBundles(String... bundles)
      Attaches bundles to the query, adding them to the query's existing bundles, if any.

      If a detach and attach operation are both called on the same bundle, the later call determines the behavior.

    • bundlesToAttachTo

      Set<String> bundlesToAttachTo()
      Returns the bundles the command will attach to the query. These bundles are added to the query's bundles, if any.

      If a detach and attach operation are both called on the same bundle, the later call determines the behavior.

    • detachFromBundles

      QueryChangeCommand detachFromBundles(Collection<String> bundles)
      Detachs the bundles from the query.

      If a detach and attach operation are both called on the same bundle, the later call determines the behavior.

    • detachFromBundles

      QueryChangeCommand detachFromBundles(String... bundles)
      Detachs the bundles from the query.

      If a detach and attach operation are both called on the same bundle, the later call determines the behavior.

    • bundlesToDetachFrom

      Set<String> bundlesToDetachFrom()
      Returns the bundles the command should detach from the query.

      If a detach and attach operation are both called on the same bundle, the later call determines the behavior.