java.lang.Object
com.flexstor.flexdbserver.util.search.SearchAssetInstancesUtil
- public class SearchAssetInstancesUtil
- extends java.lang.Object
Utility class that provides some common methods to handle searches to the database
and manipulation of search results
|
Field Summary |
(package private) java.util.List |
lAllInstanceIds
This List stores the AssetInstanceId objects being added during calls to the
addOtherAssets() method |
(package private) java.util.Map |
mOtherInstanceIds
This is a different view of the list of other AssetInstanceIds; it is presented
as a Map where:
key = AssetInstanceId of primary parent
value = List of AssetIntanceIds in the element which the primary parent belongs to |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lAllInstanceIds
java.util.List lAllInstanceIds
- This List stores the AssetInstanceId objects being added during calls to the
addOtherAssets() method
mOtherInstanceIds
java.util.Map mOtherInstanceIds
- This is a different view of the list of other AssetInstanceIds; it is presented
as a Map where:
key = AssetInstanceId of primary parent
value = List of AssetIntanceIds in the element which the primary parent belongs to
SearchAssetInstancesUtil
public SearchAssetInstancesUtil()
addOtherAssets
public void addOtherAssets(com.flexstor.common.data.ejb.search.ElementSkeletonData elementSkel)
- Add asset instances of other assets in the element (other than the primary asset) to a
list, to be later used to retrieve the asset information for those assets.
Call
getOtherAssetInstances to retrieve the list or
getOtherAssetIntancesMapped to retrieve it as a Map object
searchAssetIntances
public java.util.Hashtable searchAssetIntances(int[] naSkeletonFields)
throws com.flexstor.common.gateway.exceptions.TransactionFailedException
- Searches the database returning the AssetSkeletonData of those other assets in a
ElementSkeletonData object. This method must be called after invoking
addOtherAssets which will populate the list of assets to use in the search
getOtherAssetInstances
public com.flexstor.common.data.ejb.search.AssetInstanceId[] getOtherAssetInstances()
- Return an array of AssetInstanceId object to be used for retrieving the AssetSkeletonData
for each one from the database.
getOtherAssetIntancesMapped
public java.util.Map getOtherAssetIntancesMapped()
- Returns a List of the AssetInstanceIds for other assets group by primary parent AssetInstanceId.