Package net.reyadeyat.nlp.json
Class JsonResultset
java.lang.Object
net.reyadeyat.nlp.json.JsonResultset
- Since:
- 2023.01.01
- Author:
- Mohammad Nabil Mostafa code@reyadeyat.net
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddRecordField(int field_type, String field_label, Object field_value, com.google.gson.JsonObject record) static com.google.gson.JsonArraystatic <T> ArrayList<T>static <T> voidstatic com.google.gson.JsonObjectresultsetJson(String[] field_list, ResultSet resultset, com.google.gson.JsonObject json) static <K,V> Map<K, V> resultsetMap(Map<K, V> map, String key, ResultSet resultset, Class<V> java_class)
-
Constructor Details
-
JsonResultset
public JsonResultset()
-
-
Method Details
-
resultsetJson
public static com.google.gson.JsonObject resultsetJson(String[] field_list, ResultSet resultset, com.google.gson.JsonObject json) throws Exception - Throws:
Exception
-
resultset
public static <T> void resultset(ResultSet resultset, Class<T> java_class, ArrayList<T> t_list) throws Exception - Throws:
Exception
-
resultset
- Throws:
Exception
-
resultsetMap
public static <K,V> Map<K,V> resultsetMap(Map<K, V> map, String key, ResultSet resultset, Class<V> java_class) throws Exception- Throws:
Exception
-
resultset
- Throws:
Exception
-
addRecordField
public static void addRecordField(int field_type, String field_label, Object field_value, com.google.gson.JsonObject record) throws Exception - Throws:
Exception
-