An interface to register and retrieve data fetcher instances
Type Params | Return Type | Name and description |
---|---|---|
|
java.util.Optional<BindingGormDataFetcher> |
getBindingFetcher(PersistentEntity entity, GraphQLDataFetcherType type) Returns a data fetcher instance to be used in CREATE or UPDATE |
|
java.util.Optional<DeletingGormDataFetcher> |
getDeletingFetcher(PersistentEntity entity) Returns a data fetcher instance to be used in DELETE |
|
java.util.Optional<ReadingGormDataFetcher> |
getReadingFetcher(PersistentEntity entity, GraphQLDataFetcherType type) Returns a data fetcher instance to be used in GET or LIST |
|
void |
registerBindingDataFetcher(java.lang.Class clazz, BindingGormDataFetcher fetcher) Register a fetcher instance to be used for CREATE or UPDATE for the provided class. |
|
void |
registerDeletingDataFetcher(java.lang.Class clazz, DeletingGormDataFetcher fetcher) Register a fetcher instance to be used for DELETE for the provided class. |
|
void |
registerReadingDataFetcher(java.lang.Class clazz, ReadingGormDataFetcher fetcher) Register a fetcher instance to be used for GET or LIST for the provided class. |
Returns a data fetcher instance to be used in CREATE or UPDATE
entity
- The entity representing the domain used in the fetchertype
- Which returnType of fetcher to return (CREATE or UPDATE)Returns a data fetcher instance to be used in DELETE
entity
- The entity representing the domain used in the fetcherReturns a data fetcher instance to be used in GET or LIST
entity
- The entity representing the domain used in the fetchertype
- Which returnType of fetcher to return (GET or LIST)Register a fetcher instance to be used for CREATE or UPDATE for the provided class.
clazz
- The class to be updated or deletedfetcher
- The fetcher instance to be usedRegister a fetcher instance to be used for DELETE for the provided class.
clazz
- The class to be deletedfetcher
- The fetcher instance to be usedRegister a fetcher instance to be used for GET or LIST for the provided class.
clazz
- The class to be retrievedfetcher
- The fetcher instance to be used