org.gcube.contentmanagement.codelistmanager.entities
Class TableField

java.lang.Object
  extended by org.gcube.contentmanagement.codelistmanager.entities.TableField
All Implemented Interfaces:
Comparable<TableField>

public class TableField
extends Object
implements Comparable<TableField>


Nested Class Summary
static class TableField.ColumnType
           
 
Constructor Summary
TableField(String id, String fieldName, ColumnReference columnReference, org.gcube.common.dbinterface.types.Type.Types dataType)
           
TableField(String id, String fieldName, ColumnReference columnReference, org.gcube.common.dbinterface.types.Type.Types dataType, int[] length)
           
TableField(String id, String fieldName, TableField.ColumnType columnType, org.gcube.common.dbinterface.types.Type.Types dataType, int[] length)
           
TableField(String id, String fieldName, org.gcube.common.dbinterface.types.Type.Types dataType)
           
 
Method Summary
 int compareTo(TableField tablefield)
           
 boolean equals(Object obj)
           
 ColumnReference getColumnReference()
           
 org.gcube.common.dbinterface.types.Type.Types getDataType()
           
 String getFieldName()
           
 String getId()
           
 int[] getLength()
           
 int hashCode()
           
 void setColumnReference(ColumnReference columnReference)
           
 void setDataType(org.gcube.common.dbinterface.types.Type.Types dataType)
           
 void setFieldName(String fieldName)
           
 void setLength(int[] length)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableField

public TableField(String id,
                  String fieldName,
                  TableField.ColumnType columnType,
                  org.gcube.common.dbinterface.types.Type.Types dataType,
                  int[] length)

TableField

public TableField(String id,
                  String fieldName,
                  ColumnReference columnReference,
                  org.gcube.common.dbinterface.types.Type.Types dataType,
                  int[] length)

TableField

public TableField(String id,
                  String fieldName,
                  ColumnReference columnReference,
                  org.gcube.common.dbinterface.types.Type.Types dataType)

TableField

public TableField(String id,
                  String fieldName,
                  org.gcube.common.dbinterface.types.Type.Types dataType)
Method Detail

getId

public String getId()

getFieldName

public String getFieldName()

setColumnReference

public void setColumnReference(ColumnReference columnReference)
Parameters:
columnReference - the columnReference to set

setFieldName

public void setFieldName(String fieldName)
Parameters:
fieldName - the fieldName to set

getColumnReference

public ColumnReference getColumnReference()
Returns:
the columnReference

getLength

public int[] getLength()
Returns:
the length

setLength

public void setLength(int[] length)
Parameters:
length - the length to set

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

setDataType

public void setDataType(org.gcube.common.dbinterface.types.Type.Types dataType)

getDataType

public org.gcube.common.dbinterface.types.Type.Types getDataType()

compareTo

public int compareTo(TableField tablefield)
Specified by:
compareTo in interface Comparable<TableField>


Copyright © 2014. All Rights Reserved.