com.hp.ucmdb.api.topology
Interface DataStoresConditionable<E>

All Known Subinterfaces:
ExecutableQuery, QueryNode, SingleQueryReferenceDefinition

@NotFinalAPI
public interface DataStoresConditionable<E>

Allows the restriction of the extending element to one of:


Method Summary
 java.util.Collection<java.lang.String> dataStores()
          Returns the data stores previously set using any of the "withDataStores..." methods.
 boolean isAllDataStores()
          Returns true if all data stores allowed for this element.
 boolean isInternalDataStoreOnly()
          Returns true if only the internal data store search is allowed for this element.
 E withAllDataStores()
          Toggle allow all/not-all data stores for this element.
 E withDataStores(java.lang.Iterable<java.lang.String> dataStores)
          Restricts the set of data stores for this element.
 E withDataStores(java.lang.String... dataStores)
          Restricts the set of data stores for this element.
 E withInternalDataStoreOnly()
          Toggle 'allow only internal data store' flag for this element.
 

Method Detail

withDataStores

E withDataStores(java.lang.String... dataStores)
Restricts the set of data stores for this element.

Parameters:
dataStores - data stores to add.
Returns:
this object. The returned object can be used for method chaining.
See Also:
DataStoresConditionable

withDataStores

E withDataStores(java.lang.Iterable<java.lang.String> dataStores)
Restricts the set of data stores for this element.

Parameters:
dataStores - data stores to add
Returns:
this object. The returned object can be used for method chaining.
See Also:
DataStoresConditionable

withAllDataStores

E withAllDataStores()
Toggle allow all/not-all data stores for this element.

Returns:
this object. The returned object can be used for method chaining.
See Also:
DataStoresConditionable

dataStores

java.util.Collection<java.lang.String> dataStores()
Returns the data stores previously set using any of the "withDataStores..." methods. Returns an empty collection if none of these methods were used.

Returns:
the data stores previously set.
See Also:
DataStoresConditionable

isAllDataStores

boolean isAllDataStores()
Returns true if all data stores allowed for this element.

Returns:
true if all data stores allowed for this element.
See Also:
DataStoresConditionable

withInternalDataStoreOnly

E withInternalDataStoreOnly()
Toggle 'allow only internal data store' flag for this element.

The internal data store flag limits the scope of the search to UCMDB internal data only. It blocks searching other data stores.

Returns:
this object. The returned object can be used for method chaining.
See Also:
DataStoresConditionable

isInternalDataStoreOnly

boolean isInternalDataStoreOnly()
Returns true if only the internal data store search is allowed for this element.

Returns:
true if only the internal data store is allowed for this element.
See Also:
DataStoresConditionable


Documentation Feedback
Copyright 2010 Hewlett-Packard Development Company, L.P.