perfsonar-dev - [pS-dev] [GEANT/SA2/ps-java-services] r5818 - in trunk/perfsonar-java-rrd-sql-ma/src/main/java/org/perfs onar/service/measurementArchive/rrdType/storage: . per sistence persistence/entity
Subject: perfsonar development work
List archive
[pS-dev] [GEANT/SA2/ps-java-services] r5818 - in trunk/perfsonar-java-rrd-sql-ma/src/main/java/org/perfs onar/service/measurementArchive/rrdType/storage: . per sistence persistence/entity
Chronological Thread
- From:
- To:
- Subject: [pS-dev] [GEANT/SA2/ps-java-services] r5818 - in trunk/perfsonar-java-rrd-sql-ma/src/main/java/org/perfs onar/service/measurementArchive/rrdType/storage: . per sistence persistence/entity
- Date: Fri, 29 Jul 2011 15:44:45 +0100
Author: psnc.pikusa
Date: 2011-07-29 15:44:45 +0100 (Fri, 29 Jul 2011)
New Revision: 5818
Added:
trunk/perfsonar-java-rrd-sql-ma/src/main/java/org/perfsonar/service/measurementArchive/rrdType/storage/persistence/
trunk/perfsonar-java-rrd-sql-ma/src/main/java/org/perfsonar/service/measurementArchive/rrdType/storage/persistence/entity/
trunk/perfsonar-java-rrd-sql-ma/src/main/java/org/perfsonar/service/measurementArchive/rrdType/storage/persistence/entity/Interfaces.java
Log:
Entity related to backend transition
Added:
trunk/perfsonar-java-rrd-sql-ma/src/main/java/org/perfsonar/service/measurementArchive/rrdType/storage/persistence/entity/Interfaces.java
===================================================================
---
trunk/perfsonar-java-rrd-sql-ma/src/main/java/org/perfsonar/service/measurementArchive/rrdType/storage/persistence/entity/Interfaces.java
(rev 0)
+++
trunk/perfsonar-java-rrd-sql-ma/src/main/java/org/perfsonar/service/measurementArchive/rrdType/storage/persistence/entity/Interfaces.java
2011-07-29 14:44:45 UTC (rev 5818)
@@ -0,0 +1,401 @@
+package
org.perfsonar.service.measurementArchive.rrdType.storage.persistence.entity;
+
+import javax.persistence.Entity;
+import javax.persistence.Id;
+import javax.persistence.NamedNativeQuery;
+
+
+
+@Entity
+@NamedNativeQuery(name
= Interfaces.ALL, query = "select * from interfaces m", resultClass =
Interfaces.class)
+public class Interfaces {
+
+ public static final String ALL = "allInterfaces";
+ public static final String TABLE = "interfaces m";
+ @Id
+ private String metadataId;
+
+ private String subjId;
+ private String hostName;
+ private String ifAddress;
+ private String ifAddressType;
+ private String ifName;
+ private String ifDescription;
+ private String direction;
+ private String capacity;
+ private String keyword;
+
+ private String file;
+ private String dataSource;
+ private String valueUnits;
+ private String eventType;
+ private String dataSourceStep;
+ private String dataSourceType;
+ private String dataSourceHeartbeat;
+ private String dataSourceMinValue;
+ private String dataSourceMaxValue;
+
+ public Interfaces(){
+
+ }
+
+ /**
+ * @param metadataId
+ * @param subjId
+ * @param hostNam
+ * @param ifAddress
+ * @param ifDescription
+ * @param direction
+ * @param capacity
+ * @param file
+ * @param dataSource
+ * @param valueUnits
+ * @param eventType
+ * @param dataSourceStep
+ * @param dataSourceType
+ * @param dataSourceMinValue
+ * @param dataSourceMaxValue
+ */
+ public Interfaces(final String metadataId, final String subjId, final
String hostNam, final String ifName, final String ifAddress,final String
ifAddressType , final String ifDescription, final String direction, final
String capacity, final String keyword, final String file, final String
dataSource, final String valueUnits, final String eventType, final String
dataSourceStep, final String dataSourceType,final String dataSourceHeartbeat,
final String dataSourceMinValue, final String dataSourceMaxValue) {
+ this.metadataId = metadataId;
+ this.subjId = subjId;
+ this.hostName = hostNam;
+ this.ifAddress = ifAddress;
+ this.ifAddressType = ifAddressType;
+ this.ifName = ifName;
+ this.ifDescription = ifDescription;
+ this.direction = direction;
+ this.capacity = capacity;
+ this.keyword = keyword;
+ this.file = file;
+ this.dataSource = dataSource;
+ this.valueUnits = valueUnits;
+ this.eventType = eventType;
+ this.dataSourceStep = dataSourceStep;
+ this.dataSourceType = dataSourceType;
+ this.dataSourceHeartbeat = dataSourceHeartbeat;
+ this.dataSourceMinValue = dataSourceMinValue;
+ this.dataSourceMaxValue = dataSourceMaxValue;
+ }
+
+
+ public String getKeyword() {
+ return keyword;
+ }
+
+ public void setKeyword(String keyword) {
+ this.keyword = keyword;
+ }
+
+ public String getCapacity() {
+ return capacity;
+ }
+
+
+ public void setCapacity(String capacity) {
+ this.capacity = capacity;
+ }
+
+
+ public String getDataSource() {
+ return dataSource;
+ }
+
+
+ public void setDataSource(String dataSource) {
+ this.dataSource = dataSource;
+ }
+
+
+ public String getDataSourceMaxValue() {
+ return dataSourceMaxValue;
+ }
+
+
+ public void setDataSourceMaxValue(String dataSourceMaxValue) {
+ this.dataSourceMaxValue = dataSourceMaxValue;
+ }
+
+
+ public String getDataSourceMinValue() {
+ return dataSourceMinValue;
+ }
+
+ public String getDataSourceHeartbeat() {
+ return dataSourceHeartbeat;
+ }
+
+ public void setDataSourceHeartbeat(String dataSourceHeartbeat) {
+ this.dataSourceHeartbeat = dataSourceHeartbeat;
+ }
+
+ public void setHostName(String hostName) {
+ this.hostName = hostName;
+ }
+
+
+ public void setDataSourceMinValue(String dataSourceMinValue) {
+ this.dataSourceMinValue = dataSourceMinValue;
+ }
+
+
+ public String getDataSourceStep() {
+ return dataSourceStep;
+ }
+
+
+ public void setDataSourceStep(String dataSourceStep) {
+ this.dataSourceStep = dataSourceStep;
+ }
+
+
+ public String getDataSourceType() {
+ return dataSourceType;
+ }
+
+
+ public void setDataSourceType(String dataSourceType) {
+ this.dataSourceType = dataSourceType;
+ }
+
+
+ public String getDirection() {
+ return direction;
+ }
+
+
+ public void setDirection(String direction) {
+ this.direction = direction;
+ }
+
+
+ public String getEventType() {
+ return eventType;
+ }
+
+
+ public void setEventType(String eventType) {
+ this.eventType = eventType;
+ }
+
+
+ public String getFile() {
+ return file;
+ }
+
+
+ public void setFile(String file) {
+ this.file = file;
+ }
+
+
+ public String getHostName() {
+ return hostName;
+ }
+
+
+ public void setHostNam(String hostName) {
+ this.hostName = hostName;
+ }
+
+ public String getIfName() {
+ return ifName;
+ }
+
+ public void setIfName(String ifName) {
+ this.ifName = ifName;
+ }
+
+
+ public String getIfAddress() {
+ return ifAddress;
+ }
+
+ public String getIfAddressType() {
+ return ifAddressType;
+ }
+
+ public void setIfAddress(String ifAddress) {
+ this.ifAddress = ifAddress;
+ }
+
+
+ public void setIfAddressType(String ifAddressType) {
+ this.ifAddressType = ifAddressType;
+ }
+
+ public String getIfDescription() {
+ return ifDescription;
+ }
+
+
+ public void setIfDescription(String ifDescription) {
+ this.ifDescription = ifDescription;
+ }
+
+
+ public String getMetadataId() {
+ return metadataId;
+ }
+
+
+ public void setMetadataId(String metadataId) {
+ this.metadataId = metadataId;
+ }
+
+
+ public String getSubjId() {
+ return subjId;
+ }
+
+
+ public void setSubjId(String subjId) {
+ this.subjId = subjId;
+ }
+
+
+ public String getValueUnits() {
+ return valueUnits;
+ }
+
+
+ public void setValueUnits(String valueUnits) {
+ this.valueUnits = valueUnits;
+ }
+
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 31;
+ int result = 1;
+ result = PRIME * result + ((capacity == null) ? 0 :
capacity.hashCode());
+ result = PRIME * result + ((keyword == null) ? 0 :
keyword.hashCode());
+ result = PRIME * result + ((dataSource == null) ? 0 :
dataSource.hashCode());
+ result = PRIME * result + ((dataSourceMaxValue == null) ? 0 :
dataSourceMaxValue.hashCode());
+ result = PRIME * result + ((dataSourceMinValue == null) ? 0 :
dataSourceMinValue.hashCode());
+ result = PRIME * result + ((dataSourceHeartbeat == null) ? 0
: dataSourceHeartbeat.hashCode());
+ result = PRIME * result + ((dataSourceStep == null) ? 0 :
dataSourceStep.hashCode());
+ result = PRIME * result + ((dataSourceType == null) ? 0 :
dataSourceType.hashCode());
+ result = PRIME * result + ((direction == null) ? 0 :
direction.hashCode());
+ result = PRIME * result + ((eventType == null) ? 0 :
eventType.hashCode());
+ result = PRIME * result + ((file == null) ? 0 :
file.hashCode());
+ result = PRIME * result + ((hostName == null) ? 0 :
hostName.hashCode());
+ result = PRIME * result + ((ifName == null) ? 0 :
ifName.hashCode());
+ result = PRIME * result + ((ifAddress == null) ? 0 :
ifAddress.hashCode());
+ result = PRIME * result + ((ifAddressType == null) ? 0 :
ifAddressType.hashCode());
+ result = PRIME * result + ((ifDescription == null) ? 0 :
ifDescription.hashCode());
+ result = PRIME * result + ((metadataId == null) ? 0 :
metadataId.hashCode());
+ result = PRIME * result + ((subjId == null) ? 0 :
subjId.hashCode());
+ result = PRIME * result + ((valueUnits == null) ? 0 :
valueUnits.hashCode());
+ return result;
+ }
+
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+ if (getClass() != obj.getClass())
+ return false;
+ final Interfaces other = (Interfaces) obj;
+ if (capacity == null) {
+ if (other.capacity != null)
+ return false;
+ } else if (!capacity.equals(other.capacity))
+ return false;
+ if (keyword == null) {
+ if (other.keyword != null)
+ return false;
+ } else if (!keyword.equals(other.keyword))
+ return false;
+ if (dataSource == null) {
+ if (other.dataSource != null)
+ return false;
+ } else if (!dataSource.equals(other.dataSource))
+ return false;
+ if (dataSourceMaxValue == null) {
+ if (other.dataSourceMaxValue != null)
+ return false;
+ } else if
(!dataSourceMaxValue.equals(other.dataSourceMaxValue))
+ return false;
+ if (dataSourceMinValue == null) {
+ if (other.dataSourceMinValue != null)
+ return false;
+ } else if
(!dataSourceMinValue.equals(other.dataSourceMinValue))
+ return false;
+ if (dataSourceHeartbeat == null) {
+ if (other.dataSourceHeartbeat != null)
+ return false;
+ } else if
(!dataSourceHeartbeat.equals(other.dataSourceHeartbeat))
+ return false;
+ if (dataSourceStep == null) {
+ if (other.dataSourceStep != null)
+ return false;
+ } else if (!dataSourceStep.equals(other.dataSourceStep))
+ return false;
+ if (dataSourceType == null) {
+ if (other.dataSourceType != null)
+ return false;
+ } else if (!dataSourceType.equals(other.dataSourceType))
+ return false;
+ if (direction == null) {
+ if (other.direction != null)
+ return false;
+ } else if (!direction.equals(other.direction))
+ return false;
+ if (eventType == null) {
+ if (other.eventType != null)
+ return false;
+ } else if (!eventType.equals(other.eventType))
+ return false;
+ if (file == null) {
+ if (other.file != null)
+ return false;
+ } else if (!file.equals(other.file))
+ return false;
+ if (hostName == null) {
+ if (other.hostName != null)
+ return false;
+ } else if (!hostName.equals(other.hostName))
+ return false;
+ if (ifName == null) {
+ if (other.ifName != null)
+ return false;
+ } else if (!ifName.equals(other.ifName))
+ return false;
+ if (ifAddress == null) {
+ if (other.ifAddress != null)
+ return false;
+ } else if (!ifAddress.equals(other.ifAddress))
+ return false;
+ if (ifAddressType == null) {
+ if (other.ifAddressType != null)
+ return false;
+ } else if (!ifAddressType.equals(other.ifAddressType))
+ return false;
+ if (ifDescription == null) {
+ if (other.ifDescription != null)
+ return false;
+ } else if (!ifDescription.equals(other.ifDescription))
+ return false;
+ if (metadataId == null) {
+ if (other.metadataId != null)
+ return false;
+ } else if (!metadataId.equals(other.metadataId))
+ return false;
+ if (subjId == null) {
+ if (other.subjId != null)
+ return false;
+ } else if (!subjId.equals(other.subjId))
+ return false;
+ if (valueUnits == null) {
+ if (other.valueUnits != null)
+ return false;
+ } else if (!valueUnits.equals(other.valueUnits))
+ return false;
+ return true;
+ }
+
+}
- [pS-dev] [GEANT/SA2/ps-java-services] r5818 - in trunk/perfsonar-java-rrd-sql-ma/src/main/java/org/perfs onar/service/measurementArchive/rrdType/storage: . per sistence persistence/entity, svn-noreply, 07/29/2011
Archive powered by MHonArc 2.6.16.