public class BatchLoaderEnvironment extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BatchLoaderEnvironment.Builder |
Modifier and Type | Method and Description |
---|---|
<T> T |
getContext()
Returns the overall context object provided by
BatchLoaderContextProvider |
Map<Object,Object> |
getKeyContexts()
Each call to
DataLoader.load(Object, Object) or
DataLoader.loadMany(java.util.List, java.util.List) can be given
a context object when it is invoked. |
List<Object> |
getKeyContextsList()
Each call to
DataLoader.load(Object, Object) or
DataLoader.loadMany(java.util.List, java.util.List) can be given
a context object when it is invoked. |
static BatchLoaderEnvironment.Builder |
newBatchLoaderEnvironment() |
public <T> T getContext()
BatchLoaderContextProvider
T
- the type you would like the object to bepublic Map<Object,Object> getKeyContexts()
DataLoader.load(Object, Object)
or
DataLoader.loadMany(java.util.List, java.util.List)
can be given
a context object when it is invoked. A map of them is present by this method.public List<Object> getKeyContextsList()
DataLoader.load(Object, Object)
or
DataLoader.loadMany(java.util.List, java.util.List)
can be given
a context object when it is invoked. A list of them is present by this method.public static BatchLoaderEnvironment.Builder newBatchLoaderEnvironment()
Copyright © 2017–2021. All rights reserved.