Class ResultMap

java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,String>
org.nervousync.database.query.result.ResultMap
All Implemented Interfaces:
Serializable, Cloneable, Map<String,String>

public final class ResultMap extends HashMap<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:
  • Constructor Details

    • ResultMap

      public ResultMap()
      Instantiates a new Result map.
    • ResultMap

      public ResultMap(Map<String,String> map)
      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 class
      forUpdate - the for update
      identifyCode - patch identify code
      transactionalCode - the transactional code
      Returns:
      JavaBean instance
      Throws:
      TableConfigException - the table config exception
      DataModifiedException - the data modified exception
    • cacheData

      public String cacheData()
      Convert the result map to JSON string for cache data
      Returns:
      Converted JSON string