This commit is contained in:
crusader 2018-04-23 17:41:09 +09:00
parent bc9c8f9848
commit 1865c8f17a
5 changed files with 103 additions and 76 deletions

View File

@ -43,4 +43,3 @@ public class Connection {
this.ssl = ssl;
}
}

View File

@ -1,9 +1,37 @@
package com.loafle.overflow.module.sensorconfig.model;
import java.util.List;
/**
* Item
*/
public class Item {
private List<Keys> keys;
private QueryInfo queryInfo;
private MappingInfo mappingInfo;
public List<Keys> getKeys() {
return keys;
}
public void setKeys(List<Keys> keys) {
this.keys = keys;
}
public QueryInfo getQueryInfo() {
return queryInfo;
}
public void setQueryInfo(QueryInfo queryInfo) {
this.queryInfo = queryInfo;
}
public MappingInfo getMappingInfo() {
return mappingInfo;
}
public void setMappingInfo(MappingInfo mappingInfo) {
this.mappingInfo = mappingInfo;
}
}

View File

@ -8,9 +8,9 @@ import java.util.Map;
* ResultSet
*/
public abstract class ResultSet {
private Item item;
private List<List<String>> rows;
private Map<String, Integer> meta;
protected Item item;
protected List<List<String>> rows;
protected Map<String, Integer> meta;
// methods
public static ResultSet newInstance(Item item) {

View File

@ -1,5 +1,6 @@
package com.loafle.overflow.module.sensorconfig.model;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@ -14,7 +15,6 @@ public class ResultSetCol extends ResultSet {
}
public void setMeta() {
List<Keys> meta = this.item.getKeys();
List<String> arrayColumns = this.item.getMappingInfo().getArrayColumns();