Package com.blazebit.query.spi
Interface DataFetchContext
public interface DataFetchContext
The context object for
DataFetcher
invocations.- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescription<T> T
findProperty
(String key) Returns the value registered for the property in this DataFetchContext, ornull
if no value was found.Returns the current query session.
-
Method Details
-
findProperty
Returns the value registered for the property in this DataFetchContext, ornull
if no value was found.- Type Parameters:
T
- The value type- Parameters:
key
- The property name- Returns:
- The value registered for the property in this DataFetchContext or
null
-
getSession
QuerySession getSession()Returns the current query session.- Returns:
- the current query session
-