Class ResultMap
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,String>
The type Result map.
- Version:
- $Revision : 1.0 $ $Date: 10/17/2020 2:58 PM $
- Author:
- Steven Wee wmkm0113@Hotmail.com
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
ResultMap
public ResultMap()Instantiates a new Result map. -
ResultMap
Instantiates a new Result map.- Parameters:
map- the map
-
-
Method Details
-
unwrap
public <T> T unwrap(Class<T> clazz, boolean forUpdate, long identifyCode, long transactionalCode) throws TableConfigException, DataModifiedException Convert the result map to JavaBean- Type Parameters:
T- Template- Parameters:
clazz- JavaBean classforUpdate- the for updateidentifyCode- patch identify codetransactionalCode- the transactional code- Returns:
- JavaBean instance
- Throws:
TableConfigException- the table config exceptionDataModifiedException- the data modified exception
-
cacheData
Convert the result map to JSON string for cache data- Returns:
- Converted JSON string
-