target remove page

This commit is contained in:
geek 2018-06-27 19:12:35 +09:00
parent 9141632902
commit f30895c4f6
25 changed files with 438 additions and 361 deletions

View File

@ -0,0 +1,80 @@
package com.loafle.overflow.model.meta;
import javax.persistence.*;
import java.util.Date;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "META_COLLECTION_ITEM", schema = "public")
public class MetaCollectionItem {
@Id
private Integer id;
@Column(name = "KEY", nullable = true, length = 100)
private String key;
@Column(name = "ITEM", nullable = true, length = 100)
private String item;
@Column(name = "ITEM", nullable = true, length = 100)
private String itemClass;
@ManyToOne
@JoinColumn(name = "META_ITEM_UNIT_ID", nullable = false)
private MetaItemUnit metaItemUnit;
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
private Date createDate;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public String getItem() {
return item;
}
public void setItem(String item) {
this.item = item;
}
public String getItemClass() {
return itemClass;
}
public void setItemClass(String itemClass) {
this.itemClass = itemClass;
}
public MetaItemUnit getMetaItemUnit() {
return metaItemUnit;
}
public void setMetaItemUnit(MetaItemUnit metaItemUnit) {
this.metaItemUnit = metaItemUnit;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
}

View File

@ -0,0 +1,55 @@
package com.loafle.overflow.model.meta;
import javax.persistence.*;
import java.util.Date;
@Entity
@Table(name = "META_COLLECTION_ITEM_MAPPING", schema = "public")
public class MetaCollectionItemMapping {
@Id
private Short id;
@ManyToOne
@JoinColumn(name = "META_CRAWLER_MAPPING_ID", nullable = false)
private MetaCrawlerMapping metaCrawlerMapping;
@ManyToOne
@JoinColumn(name = "META_COLLECTION_ITEM_ID", nullable = false)
private MetaCollectionItem metaCollectionItem;
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
private Date createDate;
public Short getId() {
return id;
}
public void setId(Short id) {
this.id = id;
}
public MetaCrawlerMapping getMetaCrawlerMapping() {
return metaCrawlerMapping;
}
public void setMetaCrawlerMapping(MetaCrawlerMapping metaCrawlerMapping) {
this.metaCrawlerMapping = metaCrawlerMapping;
}
public MetaCollectionItem getMetaCollectionItem() {
return metaCollectionItem;
}
public void setMetaCollectionItem(MetaCollectionItem metaCollectionItem) {
this.metaCollectionItem = metaCollectionItem;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
}

View File

@ -13,6 +13,10 @@ public class MetaCrawler {
@Id @Id
private Short id; private Short id;
@ManyToOne
@JoinColumn(name = "META_CRAWLER_CONTAINER_ID", nullable = false)
private MetaCrawlerContainer metaCrawlerContainer;
@Column(name = "KEY", nullable = true, length = 50) @Column(name = "KEY", nullable = true, length = 50)
private String key; private String key;
@ -27,6 +31,7 @@ public class MetaCrawler {
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
private Date createDate; private Date createDate;
public Short getId() { public Short getId() {
return id; return id;
} }
@ -35,6 +40,14 @@ public class MetaCrawler {
this.id = id; this.id = id;
} }
public MetaCrawlerContainer getMetaCrawlerContainer() {
return metaCrawlerContainer;
}
public void setMetaCrawlerContainer(MetaCrawlerContainer metaCrawlerContainer) {
this.metaCrawlerContainer = metaCrawlerContainer;
}
public String getKey() { public String getKey() {
return key; return key;
} }

View File

@ -3,31 +3,27 @@ package com.loafle.overflow.model.meta;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;
/**
* Created by root on 17. 6. 22.
*/
@Entity @Entity
@Table(name = "META_SENSOR_ITEM", schema = "public") @Table(name = "META_CRAWLER_CONTAINER", schema = "public")
public class MetaSensorItem { public class MetaCrawlerContainer {
@Id @Id
private Integer id; private Short id;
@Column(name = "KEY", nullable = true, length = 100) @Column(name = "KEY", nullable = true, length = 50)
private String key; private String key;
@Column(name = "NAME", nullable = true, length = 100) @Column(name = "NAME", nullable = true, length = 50)
private String name; private String name;
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
private Date createDate; private Date createDate;
public Integer getId() { public Short getId() {
return id; return id;
} }
public void setId(Integer id) { public void setId(Short id) {
this.id = id; this.id = id;
} }

View File

@ -23,6 +23,12 @@ public class MetaCrawlerMapping {
@JoinColumn(name = "META_CRAWLER_ID", nullable = false) @JoinColumn(name = "META_CRAWLER_ID", nullable = false)
private MetaCrawler metaCrawler; private MetaCrawler metaCrawler;
@Column(name = "DEFAULT_INTERVAL", nullable = false)
private Integer defaultInterval;
@Column(name = "IS_DEFAULT", nullable = false, columnDefinition = "Boolean default false")
private Boolean isDefault;
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
private Date createDate; private Date createDate;
@ -51,6 +57,22 @@ public class MetaCrawlerMapping {
this.metaCrawler = metaCrawler; this.metaCrawler = metaCrawler;
} }
public Integer getDefaultInterval() {
return defaultInterval;
}
public void setDefaultInterval(Integer defaultInterval) {
this.defaultInterval = defaultInterval;
}
public Boolean getDefault() {
return isDefault;
}
public void setDefault(Boolean aDefault) {
isDefault = aDefault;
}
public Date getCreateDate() { public Date getCreateDate() {
return createDate; return createDate;
} }

View File

@ -0,0 +1,67 @@
package com.loafle.overflow.model.meta;
import javax.persistence.*;
import java.util.Date;
/**
* Created by insanity on 17. 9. 20.
*/
@Entity
@Table(name = "META_DISPLAY_ITEM", schema = "public")
public class MetaDisplayItem {
@Id
private Long id;
@Column(name = "KEY", nullable = false)
private String key;
@Column(name = "NAME", nullable = false)
private String name;
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
private Date createDate;
public MetaDisplayItem() {
}
public MetaDisplayItem(Long id) {
this.id = id;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
}

View File

@ -7,8 +7,8 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity @Entity
@Table(name = "META_SENSOR_ITEM_TYPE", schema = "public") @Table(name = "META_DISPLAY_ITEM_CATEGORY", schema = "public")
public class MetaSensorItemType { public class MetaDisplayItemCategory {
@Id @Id
private Short id; private Short id;
@ -23,10 +23,10 @@ public class MetaSensorItemType {
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
private Date createDate; private Date createDate;
public MetaSensorItemType() { public MetaDisplayItemCategory() {
} }
public MetaSensorItemType(Short id) { public MetaDisplayItemCategory(Short id) {
this.id = id; this.id = id;
} }

View File

@ -0,0 +1,100 @@
package com.loafle.overflow.model.meta;
import java.util.Date;
import javax.persistence.*;
/**
* Created by snoop on 18. 4. 24.
*/
@Entity
@Table(name = "META_DISPLAY_ITEM_MAPPING", schema = "public")
public class MetaDisplayItemMapping {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@ManyToOne
@JoinColumn(name = "META_DISPLAY_ITEM_ID", nullable = false)
private MetaDisplayItem metaDisplayItem;
@ManyToOne
@JoinColumn(name = "META_CRAWLER_MAPPING_ID", nullable = false)
private MetaCrawlerMapping metaCrawlerMapping;
@ManyToOne
@JoinColumn(name = "META_ITEM_UNIT_ID", nullable = true)
private MetaItemUnit metaItemUnit;
@ManyToOne
@JoinColumn(name = "META_DISPLAY_ITEM_CATEGORY_ID", nullable = true)
private MetaDisplayItemCategory metaDisplayItemCategory;
@Column(name = "IS_DEFAULT", nullable = false, columnDefinition = "Boolean default false")
private Boolean isDefault;
@Column(name = "FORMULA", nullable = false)
private String formula;
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
private Date createDate;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public MetaDisplayItem getMetaDisplayItem() {
return metaDisplayItem;
}
public void setMetaDisplayItem(MetaDisplayItem metaDisplayItem) {
this.metaDisplayItem = metaDisplayItem;
}
public MetaCrawlerMapping getMetaCrawlerMapping() {
return metaCrawlerMapping;
}
public void setMetaCrawlerMapping(MetaCrawlerMapping metaCrawlerMapping) {
this.metaCrawlerMapping = metaCrawlerMapping;
}
public MetaItemUnit getMetaItemUnit() {
return metaItemUnit;
}
public void setMetaItemUnit(MetaItemUnit metaItemUnit) {
this.metaItemUnit = metaItemUnit;
}
public Boolean getDefault() {
return isDefault;
}
public void setDefault(Boolean aDefault) {
isDefault = aDefault;
}
public String getFormula() {
return formula;
}
public void setFormula(String formula) {
this.formula = formula;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
}

View File

@ -7,8 +7,8 @@ import java.util.Date;
* Created by insanity on 17. 9. 19. * Created by insanity on 17. 9. 19.
*/ */
@Entity @Entity
@Table(name = "META_SENSOR_ITEM_UNIT", schema = "public") @Table(name = "META_ITEM_UNIT", schema = "public")
public class MetaSensorItemUnit { public class MetaItemUnit {
@Id @Id
private Short id; private Short id;

View File

@ -1,114 +0,0 @@
package com.loafle.overflow.model.meta;
import javax.persistence.*;
import java.util.Date;
/**
* Created by insanity on 17. 9. 20.
*/
@Entity
@Table(name = "META_SENSOR_DISPLAY_ITEM", schema = "public")
public class MetaSensorDisplayItem {
@Id
private Long id;
@Column(name = "KEY", nullable = false)
private String key;
@Column(name = "NAME", nullable = false)
private String name;
@Basic
@Column(name = "IS_DEFAULT", nullable = false, columnDefinition = "Boolean default false")
private Boolean isDefault;
@ManyToOne
@JoinColumn(name = "META_CRAWLER_ID", nullable = false)
private MetaCrawler metaCrawler;
@ManyToOne
@JoinColumn(name = "META_SENSOR_ITEM_UNIT_ID", nullable = true)
private MetaSensorItemUnit metaSensorItemUnit;
@ManyToOne
@JoinColumn(name = "META_SENSOR_ITEM_TYPE_ID", nullable = false)
private MetaSensorItemType metaSensorItemType;
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
private Date createDate;
public MetaSensorDisplayItem() {
}
public MetaSensorDisplayItem(Long id) {
this.id = id;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public MetaCrawler getMetaCrawler() {
return metaCrawler;
}
public void setMetaCrawler(MetaCrawler metaCrawler) {
this.metaCrawler = metaCrawler;
}
public MetaSensorItemUnit getMetaSensorItemUnit() {
return metaSensorItemUnit;
}
public void setMetaSensorItemUnit(MetaSensorItemUnit metaSensorItemUnit) {
this.metaSensorItemUnit = metaSensorItemUnit;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public Boolean getDefault() {
return isDefault;
}
public void setDefault(Boolean aDefault) {
isDefault = aDefault;
}
public MetaSensorItemType getMetaSensorItemType() {
return metaSensorItemType;
}
public void setMetaSensorItemType(MetaSensorItemType metaSensorItemType) {
this.metaSensorItemType = metaSensorItemType;
}
}

View File

@ -1,62 +0,0 @@
package com.loafle.overflow.model.meta;
import java.util.Date;
import javax.persistence.*;
/**
* Created by snoop on 18. 4. 24.
*/
@Entity
@Table(name = "META_SENSOR_DISPLAY_MAPPING", schema = "public")
public class MetaSensorDisplayMapping {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@ManyToOne
@JoinColumn(name = "META_SENSOR_DISPLAY_ITEM_ID", nullable = false)
private MetaSensorDisplayItem metaSensorDisplayItem;
@ManyToOne
@JoinColumn(name = "META_SENSOR_ITEM_KEY_ID", nullable = false)
private MetaSensorItemKey metaSensorItemKey;
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
private Date createDate;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public MetaSensorDisplayItem getMetaSensorDisplayItem() {
return metaSensorDisplayItem;
}
public void setMetaSensorDisplayItem(MetaSensorDisplayItem metaSensorDisplayItem) {
this.metaSensorDisplayItem = metaSensorDisplayItem;
}
public MetaSensorItemKey getMetaSensorItemKey() {
return metaSensorItemKey;
}
public void setMetaSensorItemKey(MetaSensorItemKey metaSensorItemKey) {
this.metaSensorItemKey = metaSensorItemKey;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
}

View File

@ -28,7 +28,7 @@ public class MetaSensorItemKey {
@ManyToOne @ManyToOne
@JoinColumn(name = "META_SENSOR_ITEM_ID", nullable = false) @JoinColumn(name = "META_SENSOR_ITEM_ID", nullable = false)
private MetaSensorItem metaSensorItem; private MetaCollectionItem metaCollectionItem;
@ManyToOne @ManyToOne
@JoinColumn(name = "META_CRAWLER_ID", nullable = false) @JoinColumn(name = "META_CRAWLER_ID", nullable = false)
@ -36,7 +36,7 @@ public class MetaSensorItemKey {
@ManyToOne @ManyToOne
@JoinColumn(name = "META_SENSOR_ITEM_UNIT_ID", nullable = true) @JoinColumn(name = "META_SENSOR_ITEM_UNIT_ID", nullable = true)
private MetaSensorItemUnit metaSensorItemUnit; private MetaItemUnit metaItemUnit;
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
@ -58,12 +58,12 @@ public class MetaSensorItemKey {
this.name = name; this.name = name;
} }
public MetaSensorItem getMetaSensorItem() { public MetaCollectionItem getMetaCollectionItem() {
return metaSensorItem; return metaCollectionItem;
} }
public void setMetaSensorItem(MetaSensorItem metaSensorItem) { public void setMetaCollectionItem(MetaCollectionItem metaCollectionItem) {
this.metaSensorItem = metaSensorItem; this.metaCollectionItem = metaCollectionItem;
} }
public String getKey() { public String getKey() {
@ -106,11 +106,11 @@ public class MetaSensorItemKey {
this.createDate = createDate; this.createDate = createDate;
} }
public MetaSensorItemUnit getMetaSensorItemUnit() { public MetaItemUnit getMetaItemUnit() {
return metaSensorItemUnit; return metaItemUnit;
} }
public void setMetaSensorItemUnit(MetaSensorItemUnit metaSensorItemUnit) { public void setMetaItemUnit(MetaItemUnit metaItemUnit) {
this.metaSensorItemUnit = metaSensorItemUnit; this.metaItemUnit = metaItemUnit;
} }
} }

View File

@ -1,7 +1,8 @@
package com.loafle.overflow.model.sensor; package com.loafle.overflow.model.sensor;
import com.loafle.overflow.model.meta.MetaCrawler; import com.loafle.overflow.model.meta.MetaCrawler;
import com.loafle.overflow.model.meta.MetaSensorDisplayItem; import com.loafle.overflow.model.meta.MetaCrawlerMapping;
import com.loafle.overflow.model.meta.MetaDisplayItem;
import com.loafle.overflow.model.meta.MetaSensorStatus; import com.loafle.overflow.model.meta.MetaSensorStatus;
import com.loafle.overflow.model.target.Target; import com.loafle.overflow.model.target.Target;
import org.hibernate.annotations.OnDelete; import org.hibernate.annotations.OnDelete;
@ -30,16 +31,13 @@ public class Sensor {
@Column(name = "NAME", nullable = false, length = 50) @Column(name = "NAME", nullable = false, length = 50)
private String name; private String name;
@Column(name = "DESCRIPTION", nullable = true, length = 50)
private String description;
@ManyToOne @ManyToOne
@JoinColumn(name = "META_SENSOR_STATUS_ID") @JoinColumn(name = "META_SENSOR_STATUS_ID")
private MetaSensorStatus metaSensorStatus; private MetaSensorStatus metaSensorStatus;
@ManyToOne @ManyToOne
@JoinColumn(name = "META_CRAWLER_ID", nullable = false) @JoinColumn(name = "META_CRAWLER_MAPPING_ID", nullable = false)
private MetaCrawler metaCrawler; private MetaCrawlerMapping metaCrawlerMapping;
@Column(name = "CRAWLER_INPUT_ITEMS", nullable = true, length = 50) @Column(name = "CRAWLER_INPUT_ITEMS", nullable = true, length = 50)
private String crawlerInputItems; private String crawlerInputItems;
@ -52,7 +50,7 @@ public class Sensor {
private Date createDate; private Date createDate;
@Transient @Transient
private List<MetaSensorDisplayItem> sensorItems; private List<MetaDisplayItem> sensorItems;
public Long getId() { public Long getId() {
return id; return id;
@ -62,14 +60,6 @@ public class Sensor {
this.id = id; this.id = id;
} }
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public MetaSensorStatus getMetaSensorStatus() { public MetaSensorStatus getMetaSensorStatus() {
return metaSensorStatus; return metaSensorStatus;
} }
@ -86,12 +76,12 @@ public class Sensor {
this.target = target; this.target = target;
} }
public MetaCrawler getMetaCrawler() { public MetaCrawlerMapping getMetaCrawlerMapping() {
return metaCrawler; return metaCrawlerMapping;
} }
public void setMetaCrawler(MetaCrawler metaCrawler) { public void setMetaCrawlerMapping(MetaCrawlerMapping metaCrawlerMapping) {
this.metaCrawler = metaCrawler; this.metaCrawlerMapping = metaCrawlerMapping;
} }
public String getCrawlerInputItems() { public String getCrawlerInputItems() {
@ -126,11 +116,11 @@ public class Sensor {
this.createDate = createDate; this.createDate = createDate;
} }
public List<MetaSensorDisplayItem> getSensorItems() { public List<MetaDisplayItem> getSensorItems() {
return sensorItems; return sensorItems;
} }
public void setSensorItems(List<MetaSensorDisplayItem> sensorItems) { public void setSensorItems(List<MetaDisplayItem> sensorItems) {
this.sensorItems = sensorItems; this.sensorItems = sensorItems;
} }

View File

@ -1,6 +1,7 @@
package com.loafle.overflow.model.sensor; package com.loafle.overflow.model.sensor;
import com.loafle.overflow.model.meta.MetaSensorDisplayItem; import com.loafle.overflow.model.meta.MetaDisplayItem;
import com.loafle.overflow.model.meta.MetaDisplayItemMapping;
import org.hibernate.annotations.OnDelete; import org.hibernate.annotations.OnDelete;
import org.hibernate.annotations.OnDeleteAction; import org.hibernate.annotations.OnDeleteAction;
@ -24,8 +25,8 @@ public class SensorItem {
private Sensor sensor; private Sensor sensor;
@ManyToOne @ManyToOne
@JoinColumn(name = "META_SENSOR_DISPLAY_ITEM_ID", nullable = false) @JoinColumn(name = "META_DISPLAY_ITEM_MAPPING_ID", nullable = false)
private MetaSensorDisplayItem metaSensorDisplayItem; private MetaDisplayItemMapping metaDisplayItemMapping;
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
@ -47,12 +48,12 @@ public class SensorItem {
this.sensor = sensor; this.sensor = sensor;
} }
public MetaSensorDisplayItem getMetaSensorDisplayItem() { public MetaDisplayItemMapping getMetaDisplayItemMapping() {
return metaSensorDisplayItem; return metaDisplayItemMapping;
} }
public void setMetaSensorDisplayItem(MetaSensorDisplayItem metaSensorDisplayItem) { public void setMetaDisplayItemMapping(MetaDisplayItemMapping metaDisplayItemMapping) {
this.metaSensorDisplayItem = metaSensorDisplayItem; this.metaDisplayItemMapping = metaDisplayItemMapping;
} }
public Date getCreateDate() { public Date getCreateDate() {

View File

@ -1,50 +0,0 @@
package com.loafle.overflow.model.sensor;
import com.loafle.overflow.model.meta.MetaSensorDisplayItem;
import com.loafle.overflow.model.meta.MetaSensorItemKey;
import javax.persistence.*;
/**
* Created by insanity on 17. 9. 20.
*/
@Entity
@Table(name = "SENSOR_ITEM_DEPENDENCY", schema = "public")
public class SensorItemDependency {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@ManyToOne
@JoinColumn(name = "META_SENSOR_DISPLAY_ITEM_ID", nullable = false)
private MetaSensorDisplayItem metaSensorDisplayItem;
@ManyToOne
@JoinColumn(name = "META_SENSOR_ITEM_KEY_ID", nullable = false)
private MetaSensorItemKey metaSensorItemKey;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public MetaSensorDisplayItem getMetaSensorDisplayItem() {
return metaSensorDisplayItem;
}
public void setMetaSensorDisplayItem(MetaSensorDisplayItem metaSensorDisplayItem) {
this.metaSensorDisplayItem = metaSensorDisplayItem;
}
public MetaSensorItemKey getMetaSensorItemKey() {
return metaSensorItemKey;
}
public void setMetaSensorItemKey(MetaSensorItemKey metaSensorItemKey) {
this.metaSensorItemKey = metaSensorItemKey;
}
}

View File

@ -0,0 +1,4 @@
package com.loafle.overflow.service.central.meta;
public interface MetaCollectionItemMappingService {
}

View File

@ -2,16 +2,16 @@ package com.loafle.overflow.service.central.meta;
import com.loafle.overflow.core.annotation.WebappAPI; import com.loafle.overflow.core.annotation.WebappAPI;
import com.loafle.overflow.core.exception.OverflowException; import com.loafle.overflow.core.exception.OverflowException;
import com.loafle.overflow.model.meta.MetaSensorItem; import com.loafle.overflow.model.meta.MetaCollectionItem;
import java.util.List; import java.util.List;
/** /**
* Created by snoop on 17. 7. 27. * Created by snoop on 17. 7. 27.
*/ */
public interface MetaSensorItemService { public interface MetaCollectionItemService {
@WebappAPI @WebappAPI
List<MetaSensorItem> readAll() throws OverflowException; List<MetaCollectionItem> readAll() throws OverflowException;
} }

View File

@ -0,0 +1,5 @@
package com.loafle.overflow.service.central.meta;
public interface MetaCrawlerContainerService {
}

View File

@ -0,0 +1,22 @@
package com.loafle.overflow.service.central.meta;
import com.loafle.overflow.core.annotation.WebappAPI;
import com.loafle.overflow.core.exception.OverflowException;
import com.loafle.overflow.model.meta.MetaDisplayItemCategory;
import java.util.List;
/**
* Created by snoop on 17. 7. 27.
*/
public interface MetaDisplayItemCategoryService {
@WebappAPI
List<MetaDisplayItemCategory> readAll() throws OverflowException;
@WebappAPI
MetaDisplayItemCategory regist(MetaDisplayItemCategory metaDisplayItemCategory) throws OverflowException;
@WebappAPI
List<MetaDisplayItemCategory> registAll(List<MetaDisplayItemCategory> metaDisplayItemCategories) throws OverflowException;
}

View File

@ -2,7 +2,7 @@ package com.loafle.overflow.service.central.meta;
import com.loafle.overflow.core.annotation.WebappAPI; import com.loafle.overflow.core.annotation.WebappAPI;
import com.loafle.overflow.core.exception.OverflowException; import com.loafle.overflow.core.exception.OverflowException;
import com.loafle.overflow.model.meta.MetaSensorDisplayMapping; import com.loafle.overflow.model.meta.MetaDisplayItemMapping;
import com.loafle.overflow.model.meta.MetaSensorItemKey; import com.loafle.overflow.model.meta.MetaSensorItemKey;
import java.util.List; import java.util.List;
@ -10,9 +10,9 @@ import java.util.List;
/** /**
* Created by snoop on 18. 4. 24. * Created by snoop on 18. 4. 24.
*/ */
public interface MetaSensorDisplayMappingService { public interface MetaDisplayItemMappingService {
@WebappAPI @WebappAPI
MetaSensorDisplayMapping regist(MetaSensorDisplayMapping metaSensorDisplayMapping) throws OverflowException; MetaDisplayItemMapping regist(MetaDisplayItemMapping metaDisplayItemMapping) throws OverflowException;
@WebappAPI @WebappAPI
List<MetaSensorItemKey> readAllMetaSensorItemKeyByDisplayItemID(Long metaSensorDisplayItemID) throws OverflowException; List<MetaSensorItemKey> readAllMetaSensorItemKeyByDisplayItemID(Long metaSensorDisplayItemID) throws OverflowException;

View File

@ -0,0 +1,19 @@
package com.loafle.overflow.service.central.meta;
import com.loafle.overflow.core.annotation.WebappAPI;
import com.loafle.overflow.core.exception.OverflowException;
import com.loafle.overflow.model.meta.MetaDisplayItem;
import java.util.List;
/**
* Created by insanity on 17. 9. 20.
*/
public interface MetaDisplayItemService {
@WebappAPI
MetaDisplayItem regist(MetaDisplayItem metaDisplayItem) throws OverflowException;
@WebappAPI
MetaDisplayItem read(Long id) throws OverflowException;
}

View File

@ -2,13 +2,13 @@ package com.loafle.overflow.service.central.meta;
import com.loafle.overflow.core.annotation.WebappAPI; import com.loafle.overflow.core.annotation.WebappAPI;
import com.loafle.overflow.core.exception.OverflowException; import com.loafle.overflow.core.exception.OverflowException;
import com.loafle.overflow.model.meta.MetaSensorItemUnit; import com.loafle.overflow.model.meta.MetaItemUnit;
/** /**
* Created by insanity on 17. 9. 20. * Created by insanity on 17. 9. 20.
*/ */
public interface MetaSensorItemUnitService { public interface MetaItemUnitService {
@WebappAPI @WebappAPI
MetaSensorItemUnit regist(MetaSensorItemUnit metaSensorItemUnit) throws OverflowException; MetaItemUnit regist(MetaItemUnit metaItemUnit) throws OverflowException;
} }

View File

@ -1,22 +0,0 @@
package com.loafle.overflow.service.central.meta;
import com.loafle.overflow.core.annotation.WebappAPI;
import com.loafle.overflow.core.exception.OverflowException;
import com.loafle.overflow.model.meta.MetaSensorDisplayItem;
import java.util.List;
/**
* Created by insanity on 17. 9. 20.
*/
public interface MetaSensorDisplayItemService {
@WebappAPI
MetaSensorDisplayItem regist(MetaSensorDisplayItem metaSensorDisplayItem) throws OverflowException;
@WebappAPI
MetaSensorDisplayItem read(Long id) throws OverflowException;
@WebappAPI
List<MetaSensorDisplayItem> readAllByCrawlerID(Short metaCrawlerID) throws OverflowException;
}

View File

@ -1,22 +0,0 @@
package com.loafle.overflow.service.central.meta;
import com.loafle.overflow.core.annotation.WebappAPI;
import com.loafle.overflow.core.exception.OverflowException;
import com.loafle.overflow.model.meta.MetaSensorItemType;
import java.util.List;
/**
* Created by snoop on 17. 7. 27.
*/
public interface MetaSensorItemTypeService {
@WebappAPI
List<MetaSensorItemType> readAll() throws OverflowException;
@WebappAPI
MetaSensorItemType regist(MetaSensorItemType metaSensorItemType) throws OverflowException;
@WebappAPI
List<MetaSensorItemType> registAll(List<MetaSensorItemType> metaSensorItemTypes) throws OverflowException;
}

View File

@ -1,27 +0,0 @@
package com.loafle.overflow.service.central.sensor;
import com.loafle.overflow.core.annotation.WebappAPI;
import com.loafle.overflow.core.exception.OverflowException;
import com.loafle.overflow.model.meta.MetaSensorDisplayItem;
import com.loafle.overflow.model.meta.MetaSensorItemKey;
import com.loafle.overflow.model.sensor.SensorItemDependency;
import java.util.List;
import java.util.Map;
/**
* Created by insanity on 17. 9. 20.
*/
public interface SensorItemDependencyService {
@WebappAPI
SensorItemDependency regist(SensorItemDependency dependency) throws OverflowException;
@WebappAPI
List<MetaSensorItemKey> readAllMetaSensorItemKeyByMetaSensorDisplayItemID(Long metaSensorDisplayItemID) throws OverflowException;
@WebappAPI
Map<String, List<MetaSensorItemKey>> readAllMapByMetaSensorDisplayItems(List<MetaSensorDisplayItem> metaSensorDisplayItems)
throws OverflowException;
}