public interface DataProviderAdapter
DataProviderAdapters must be registered with the
DataServiceExtensionRegistry
in order to be called. However,
when using Spring/OSGI, the adapter's registration is done automatically at the
time the bundle is loaded if the adapter is registered as an osgi-service under the
DataProviderAdapter
interface, like this:
Modifier and Type | Method and Description |
---|---|
Response |
getData(RequestSpec request)
Get the data from the adapter given a set of queries.
|
Response getData(RequestSpec request) throws java.lang.Exception
request
- The RequestSpec
.
A request encapsulates an array of QuerySpec
which define
the set of objects fulfilling some constraints for which the data is
being requested.ResultSet
containing the matched data for each
QuerySpec.java.lang.Exception
- If an exception is thrown it will be logged by the Data Service
and passed on the result for each query. This is provided for convenience only,
it is recommended to handle exceptions in your code when processing each query from
QuerySpec[] so that one failure doesn't affect all queries (see the error field of
ResulsSet).
Copyright @ 2013-2018 VMware, Inc. All rights reserved.