@Exported
public interface AssetDataReadStrategy
Modifier and Type | Method and Description |
---|---|
MutableAssetData |
read(com.openmarket.xcelerate.interfaces.IAsset asset,
AssetId id)
|
Iterable<MutableAssetData> |
read(List<AssetId> ids)
Reads asset data for all given
AssetId s. |
Iterable<MutableAssetData> |
read(Query query)
Reads all asset data that satisfies a given Query.
|
MutableAssetData |
readAttributes(AssetId id,
List<String> attributeNames)
Reads given set attribute data and returns an AssetData instance containing them.
|
Iterable<MutableAssetData> read(Query query) throws AssetAccessException
query
- Query to be satisfied.AssetAccessException
- Is thrown when Query is invalid by the way of incorrect attributes or invalid operation given
the choice of query algorithm. AssetAccessException also wraps any AssetExceptions thrown by the internal implementation.Iterable<MutableAssetData> read(List<AssetId> ids) throws AssetAccessException, AssetNotExistException
AssetId
s.ids
- List of AssetIds.AssetAccessException
- Is thrown when any of the AssetIds passed in does not exist.
AssetAccessException also wraps any AssetExceptions thrown by the internal implementation.AssetNotExistException
- an AssetNotExistExceptionMutableAssetData read(com.openmarket.xcelerate.interfaces.IAsset asset, AssetId id) throws AssetAccessException
asset
- The asset where the asset will be read from.id
- AssetId to read for.AssetAccessException
- Is thrown when error met reading the data from the asset.MutableAssetData readAttributes(AssetId id, List<String> attributeNames) throws AssetAccessException, AssetNotExistException
id
- AssetId to read attributes for.attributeNames
- Names of the attributes.AssetAccessException
- Is thrown if the AssetId does not exist or attribute names passed are incorrect
for the asset. AssetAccessException also wraps any AssetExceptions thrown by the internal implementation.AssetNotExistException
- an AssetNotExistException.