public class RebindResult extends Object
Constructor and Description |
---|
RebindResult(RebindMode rebindMode,
String resultType)
Constructs a result using the provided rebindMode and resultTypeName.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Serializable> |
getClientDataMap()
Returns a map containing all client data added to this result.
|
RebindMode |
getRebindMode() |
String |
getResultTypeName() |
void |
putClientData(String key,
Serializable data)
Adds keyed, serializable data to a rebind result.
|
public RebindResult(RebindMode rebindMode, String resultType)
rebindMode
- resultType
- RebindMode
public Map<String,Serializable> getClientDataMap()
null
if no client data has been added.public RebindMode getRebindMode()
public String getResultTypeName()
public void putClientData(String key, Serializable data)
CachedGeneratorResult
, to subsequent
invocations of the same generator, when called under the same conditions
(e.g. for the same rebind rule and requested type name). A generator
implementation can use this to remember information needed for subsequent
regeneration, such as for making cache reuse decisions.key
- data
- CachedGeneratorResult
,
GeneratorContext.getCachedGeneratorResult()
Copyright © 2018. All rights reserved.