Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@95621 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
27729fdc4d
commit
bfcd1c0617
|
@ -27,7 +27,10 @@ public class ColumnData implements Serializable {
|
||||||
protected TRId trId;
|
protected TRId trId;
|
||||||
protected boolean viewColumn;
|
protected boolean viewColumn;
|
||||||
protected ColumnViewData columnViewData;
|
protected ColumnViewData columnViewData;
|
||||||
|
|
||||||
|
// Relationship for Dimension and Timedimension columns
|
||||||
|
protected RelationshipData relationship;
|
||||||
|
|
||||||
// validation columns that validate this column
|
// validation columns that validate this column
|
||||||
protected ArrayList<String> validationColumnReferences;
|
protected ArrayList<String> validationColumnReferences;
|
||||||
|
|
||||||
|
@ -35,7 +38,13 @@ public class ColumnData implements Serializable {
|
||||||
protected boolean validationColumn;
|
protected boolean validationColumn;
|
||||||
// if this is a validation column then contains the columns validated
|
// if this is a validation column then contains the columns validated
|
||||||
protected ArrayList<String> validatedColumns;
|
protected ArrayList<String> validatedColumns;
|
||||||
|
|
||||||
|
|
||||||
|
public ColumnData(){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public String getColumnId() {
|
public String getColumnId() {
|
||||||
return columnId;
|
return columnId;
|
||||||
}
|
}
|
||||||
|
@ -149,6 +158,14 @@ public class ColumnData implements Serializable {
|
||||||
this.locale = locale;
|
this.locale = locale;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public RelationshipData getRelationship() {
|
||||||
|
return relationship;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRelationship(RelationshipData relationship) {
|
||||||
|
this.relationship = relationship;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "ColumnData [id=" + id + ", columnId=" + columnId + ", name="
|
return "ColumnData [id=" + id + ", columnId=" + columnId + ", name="
|
||||||
|
@ -156,10 +173,12 @@ public class ColumnData implements Serializable {
|
||||||
+ ", dataTypeName=" + dataTypeName + ", label=" + label
|
+ ", dataTypeName=" + dataTypeName + ", label=" + label
|
||||||
+ ", locale=" + locale + ", trId=" + trId + ", viewColumn="
|
+ ", locale=" + locale + ", trId=" + trId + ", viewColumn="
|
||||||
+ viewColumn + ", columnViewData=" + columnViewData
|
+ viewColumn + ", columnViewData=" + columnViewData
|
||||||
|
+ ", relationship=" + relationship
|
||||||
+ ", validationColumnReferences=" + validationColumnReferences
|
+ ", validationColumnReferences=" + validationColumnReferences
|
||||||
+ ", validationColumn=" + validationColumn
|
+ ", validationColumn=" + validationColumn
|
||||||
+ ", validatedColumns=" + validatedColumns + "]";
|
+ ", validatedColumns=" + validatedColumns + "]";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,49 @@
|
||||||
|
package org.gcube.portlets.user.td.gwtservice.shared.tr;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Implements the realtionship for Dimension and TimeDimension columns
|
||||||
|
*
|
||||||
|
* @author "Giancarlo Panichi"
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class RelationshipData implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 897893891284145975L;
|
||||||
|
|
||||||
|
String targetColumnId;
|
||||||
|
Long targetTableId;
|
||||||
|
|
||||||
|
public RelationshipData() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public RelationshipData(String targetColumnId, Long targetTableId) {
|
||||||
|
this.targetColumnId=targetColumnId;
|
||||||
|
this.targetTableId=targetTableId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTargetColumnId() {
|
||||||
|
return targetColumnId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTargetColumnId(String targetColumnId) {
|
||||||
|
this.targetColumnId = targetColumnId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getTargetTableId() {
|
||||||
|
return targetTableId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTargetTableId(Long targetTableId) {
|
||||||
|
this.targetTableId = targetTableId;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "RelationshipData [targetColumnId=" + targetColumnId
|
||||||
|
+ ", targetTableId=" + targetTableId + "]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue