Merge remote-tracking branch 'origin/master'
This commit is contained in:
		
						commit
						3df5b85d0d
					
				@ -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();
 | 
			
		||||
}
 | 
			
		||||
@ -43,4 +43,3 @@ public class Connection {
 | 
			
		||||
    this.ssl = ssl;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -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;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
@ -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) {
 | 
			
		||||
 | 
			
		||||
@ -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();
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user