Package com.blazebit.query.spi
Interface DataFetcher<T>
- Type Parameters:
T
- The schema object type
- All Known Subinterfaces:
ProjectableDataFetcher<T>
public interface DataFetcher<T>
An object to fetch schema object data.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionfetch
(DataFetchContext context) Returns freshly fetched data for a schema object.Returns the data format of the fetched data.
-
Method Details
-
getDataFormat
DataFormat getDataFormat()Returns the data format of the fetched data.- Returns:
- the data format of the fetched data
-
fetch
Returns freshly fetched data for a schema object.- Parameters:
context
- The data fetching context- Returns:
- the fetched data
- Throws:
DataFetcherException
- when an exception occurs during data fetching
-