Package com.hp.ucmdb.api.topology
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 Summary
Modifier and TypeMethodDescriptionattachToBundles
(String... bundles) Attaches bundles to the query, adding them to the query's existing bundles, if any.attachToBundles
(Collection<String> bundles) Attaches bundles to the query, adding them to the query's existing bundles, if any.Returns the bundles the command will attach to the query.Returns the bundles the command should detach from the query.changeFirstLoadStrategyTo
(QueryDefinitionFirstLoadStrategy firstLoadStrategy) Changes the first load strategy of the query to the given value.changeRecalcPriorityTo
(QueryDefinitionRecalcPriority recalcPriority) Changes the recalculation priority of the query to the given value.detachFromBundles
(String... bundles) Detachs the bundles from the query.detachFromBundles
(Collection<String> bundles) Detachs the bundles from the query.Returns the previously set first load strategy, or null if none was set.The name of the query the command affects.Returns the previously set recalculation prioirty, or null if none was set.Changes all the data store settings for all elements in the query definition to "internal".boolean
Returns true ifsetInternalDataStoreOnly()
was called.
-
Method Details
-
queryName
String queryName()The name of the query the command affects.- Returns:
- the query name the command affects.
-
changeRecalcPriorityTo
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
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 ifsetInternalDataStoreOnly()
was called. -
attachToBundles
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
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
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
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
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
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.
-