Merge remote-tracking branch 'origin/master'

This commit is contained in:
geek 2018-04-23 18:34:33 +09:00
commit 3df5b85d0d
6 changed files with 114 additions and 76 deletions

View File

@ -0,0 +1,11 @@
package com.loafle.overflow.module.core.interfaces;
/**
* Service
*/
public interface Service {
void initService() throws Exception;
void startService() throws Exception;
void stopService();
void destroyService();
}

View File

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

View File

@ -1,9 +1,37 @@
package com.loafle.overflow.module.sensorconfig.model; package com.loafle.overflow.module.sensorconfig.model;
import java.util.List;
/** /**
* Item * Item
*/ */
public class 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 * ResultSet
*/ */
public abstract class ResultSet { public abstract class ResultSet {
private Item item; protected Item item;
private List<List<String>> rows; protected List<List<String>> rows;
private Map<String, Integer> meta; protected Map<String, Integer> meta;
// methods // methods
public static ResultSet newInstance(Item item) { public static ResultSet newInstance(Item item) {

View File

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