From 6a7bec49497b39d624220bd689f9084b9a512034 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Tue, 19 Nov 2013 12:58:21 +0000 Subject: [PATCH] Added Table information git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@85689 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../user/td/gwtservice/shared/ColumnData.java | 52 +++++++++++++++ .../user/td/gwtservice/shared/TableData.java | 64 +++++++++++++++++++ 2 files changed, 116 insertions(+) create mode 100644 src/main/java/org/gcube/portlets/user/td/gwtservice/shared/ColumnData.java create mode 100644 src/main/java/org/gcube/portlets/user/td/gwtservice/shared/TableData.java diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/ColumnData.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/ColumnData.java new file mode 100644 index 0000000..a04379d --- /dev/null +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/ColumnData.java @@ -0,0 +1,52 @@ +package org.gcube.portlets.user.td.gwtservice.shared; + +import java.io.Serializable; + + +/** + * + * @author "Giancarlo Panichi" + * g.panichi@isti.cnr.it + * + */ +public class ColumnData implements Serializable { + + private static final long serialVersionUID = 7614033455605898209L; + + protected String name; + protected String typeName; + protected String typeCode; + protected TRId trId; + + public String getName() { + return name; + } + public void setName(String name) { + this.name = name; + } + public String getTypeName() { + return typeName; + } + public void setTypeName(String typeName) { + this.typeName = typeName; + } + public String getTypeCode() { + return typeCode; + } + public void setTypeCode(String typeCode) { + this.typeCode = typeCode; + } + public TRId getTrId() { + return trId; + } + public void setTrId(TRId trId) { + this.trId = trId; + } + @Override + public String toString() { + return "ColumnData [name=" + name + ", typeName=" + typeName + + ", typeCode=" + typeCode + ", trId=" + trId + "]"; + } + + +} diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/TableData.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/TableData.java new file mode 100644 index 0000000..993d50a --- /dev/null +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/TableData.java @@ -0,0 +1,64 @@ +package org.gcube.portlets.user.td.gwtservice.shared; + +import java.io.Serializable; +import java.util.ArrayList; + + +/** + * + * @author "Giancarlo Panichi" + * g.panichi@isti.cnr.it + * + */ +public class TableData implements Serializable { + + private static final long serialVersionUID = -6248251038277538555L; + + protected String name; + protected String typeName; + protected String typeCode; + protected ArrayList listColumnData; + protected TRId trId; + + + public String getName() { + return name; + } + public void setName(String name) { + this.name = name; + } + public String getTypeName() { + return typeName; + } + public void setTypeName(String typeName) { + this.typeName = typeName; + } + public String getTypeCode() { + return typeCode; + } + public void setTypeCode(String typeCode) { + this.typeCode = typeCode; + } + public ArrayList getListColumnData() { + return listColumnData; + } + public void setListColumnData(ArrayList listColumnData) { + this.listColumnData = listColumnData; + } + public TRId getTrId() { + return trId; + } + public void setTrId(TRId trId) { + this.trId = trId; + } + @Override + public String toString() { + return "TableData [name=" + name + ", typeName=" + + typeName + ", typeCode=" + typeCode + ", lColumnData=" + + listColumnData + ", trId=" + trId + "]"; + } + + + + +}