fr.cnes.sitools.dataset.model
Class Column

java.lang.Object
  extended by fr.cnes.sitools.dataset.model.Column

public final class Column
extends java.lang.Object

Class for column definition of a DataSet

Author:
jp.boignard (AKKA Technologies)

Constructor Summary
Column()
          Default constructor
Column(java.lang.String id, java.lang.String dataIndex, java.lang.String header, int width, boolean sortable, boolean visible, java.lang.String sqlColumnType)
          Complete constructor
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getColumnAlias()
          Get the columnAlias
 ColumnRenderer getColumnRenderer()
          Get the columnRenderer
 java.lang.String getDataIndex()
          Gets the dataIndex value
 java.lang.String getDimensionId()
          Gets the dimensionId value
 java.lang.Boolean getFilter()
          Gets the filterType value
 java.lang.String getFormat()
          Gets the format value
 java.lang.String getHeader()
          Gets the header value
 java.lang.String getId()
          Gets the id value
 short getJavaSqlColumnType()
          Gets the javaSqlColumnType value
 java.lang.String getOrderBy()
          Gets the orderBy value
 java.lang.String getSchema()
          Gets the schema value
 SpecificColumnType getSpecificColumnType()
          Get the getSpecificColumnType
 java.lang.String getSqlColumnType()
          Get the sql column type
 java.lang.String getTableAlias()
          Gets the tableAlias value
 java.lang.String getTableName()
          Gets the tableName value
 java.lang.String getToolTip()
          Gets the toolTip value
 SitoolsUnit getUnit()
          Gets the unitName value
 int getWidth()
          Gets the width value
 int hashCode()
           
 boolean isPrimaryKey()
          Returns if the column is a primary key
 boolean isSortable()
          Tells if it can be sorted
 java.lang.Boolean isVisible()
          Gets the value of visible
 void setColumnAlias(java.lang.String columnAlias)
          Set the columnAlias
 void setColumnRenderer(ColumnRenderer columnRenderer)
          Set the columnRenderer
 void setDataIndex(java.lang.String dataIndex)
          Sets the value of dataIndex
 void setDimensionId(java.lang.String dimensionId)
          Sets the value of dimensionId
 void setFilter(java.lang.Boolean filterType)
          Sets the value of filterType
 void setFormat(java.lang.String format)
          Sets the value of format
 void setHeader(java.lang.String header)
          Sets the value of header
 void setId(java.lang.String id)
          Sets the value of id
 void setJavaSqlColumnType(short javaSqlColumnType)
          Sets the value of javaSqlColumnType
 void setOrderBy(java.lang.String orderBy)
          Sets the value of orderBy
 void setPrimaryKey(boolean primaryKey)
          Set if the column is a primary key
 void setSchema(java.lang.String schema)
          Sets the value of schema
 void setSortable(boolean sortable)
          Sets the value to tell if it can be sorted
 void setSpecificColumnType(SpecificColumnType specificColumnType)
          Set the setSpecificColumnType
 void setSqlColumnType(java.lang.String sqlColumnType)
          Set the column type
 void setTableAlias(java.lang.String tableAlias)
          Sets the value of tableAlias
 void setTableName(java.lang.String tableName)
          Sets the value of tableName
 void setToolTip(java.lang.String toolTip)
          Sets the value of toolTip
 void setUnit(SitoolsUnit unit)
          Sets the value of unitName
 void setVisible(boolean visible)
          Sets the value of visible
 void setWidth(int width)
          Sets the value of width
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Column

public Column(java.lang.String id,
              java.lang.String dataIndex,
              java.lang.String header,
              int width,
              boolean sortable,
              boolean visible,
              java.lang.String sqlColumnType)
Complete constructor

Parameters:
id - column ID
dataIndex - data index of the column
header - header of the column
width - width of the column
sortable - set if the column can be sorted
visible - set if the column if visible
sqlColumnType - set the column type

Column

public Column()
Default constructor

Method Detail

isVisible

public java.lang.Boolean isVisible()
Gets the value of visible

Returns:
the visible

getId

public java.lang.String getId()
Gets the id value

Returns:
the id

setId

public void setId(java.lang.String id)
Sets the value of id

Parameters:
id - the id to set

getDataIndex

public java.lang.String getDataIndex()
Gets the dataIndex value

Returns:
the dataIndex

setDataIndex

public void setDataIndex(java.lang.String dataIndex)
Sets the value of dataIndex

Parameters:
dataIndex - the dataIndex to set

getHeader

public java.lang.String getHeader()
Gets the header value

Returns:
the header

setHeader

public void setHeader(java.lang.String header)
Sets the value of header

Parameters:
header - the header to set

getToolTip

public java.lang.String getToolTip()
Gets the toolTip value

Returns:
the toolTip

setToolTip

public void setToolTip(java.lang.String toolTip)
Sets the value of toolTip

Parameters:
toolTip - the toolTip to set

getWidth

public int getWidth()
Gets the width value

Returns:
the width

setWidth

public void setWidth(int width)
Sets the value of width

Parameters:
width - the width to set

isSortable

public boolean isSortable()
Tells if it can be sorted

Returns:
true if it can be sorted

setSortable

public void setSortable(boolean sortable)
Sets the value to tell if it can be sorted

Parameters:
sortable - true if it can be sorted

getFilter

public java.lang.Boolean getFilter()
Gets the filterType value

Returns:
the filterType

setFilter

public void setFilter(java.lang.Boolean filterType)
Sets the value of filterType

Parameters:
filterType - the filterType to set

setVisible

public void setVisible(boolean visible)
Sets the value of visible

Parameters:
visible - the visible to set

getSchema

public java.lang.String getSchema()
Gets the schema value

Returns:
the schema

setSchema

public void setSchema(java.lang.String schema)
Sets the value of schema

Parameters:
schema - the schema to set

getTableName

public java.lang.String getTableName()
Gets the tableName value

Returns:
the tableName

setTableName

public void setTableName(java.lang.String tableName)
Sets the value of tableName

Parameters:
tableName - the tableName to set

getTableAlias

public java.lang.String getTableAlias()
Gets the tableAlias value

Returns:
the tableAlias

setTableAlias

public void setTableAlias(java.lang.String tableAlias)
Sets the value of tableAlias

Parameters:
tableAlias - the tableAlias to set

isPrimaryKey

public boolean isPrimaryKey()
Returns if the column is a primary key

Returns:
the primaryKey

setPrimaryKey

public void setPrimaryKey(boolean primaryKey)
Set if the column is a primary key

Parameters:
primaryKey - the primaryKey to set

getSqlColumnType

public java.lang.String getSqlColumnType()
Get the sql column type

Returns:
the sqlColumnType

setSqlColumnType

public void setSqlColumnType(java.lang.String sqlColumnType)
Set the column type

Parameters:
sqlColumnType - the sqlColumnType to set

getColumnRenderer

public ColumnRenderer getColumnRenderer()
Get the columnRenderer

Returns:
the columnRenderer

setColumnRenderer

public void setColumnRenderer(ColumnRenderer columnRenderer)
Set the columnRenderer

Parameters:
columnRenderer - the columnRenderer to set

getSpecificColumnType

public SpecificColumnType getSpecificColumnType()
Get the getSpecificColumnType

Returns:
the specificColumnType

setSpecificColumnType

public void setSpecificColumnType(SpecificColumnType specificColumnType)
Set the setSpecificColumnType

Parameters:
specificColumnType - the specificColumnType to set

getColumnAlias

public java.lang.String getColumnAlias()
Get the columnAlias

Returns:
the columnAlias

setColumnAlias

public void setColumnAlias(java.lang.String columnAlias)
Set the columnAlias

Parameters:
columnAlias - the columnAlias to set

setJavaSqlColumnType

public void setJavaSqlColumnType(short javaSqlColumnType)
Sets the value of javaSqlColumnType

Parameters:
javaSqlColumnType - the javaSqlColumnType to set

getJavaSqlColumnType

public short getJavaSqlColumnType()
Gets the javaSqlColumnType value

Returns:
the javaSqlColumnType

getDimensionId

public java.lang.String getDimensionId()
Gets the dimensionId value

Returns:
the dimensionId

setDimensionId

public void setDimensionId(java.lang.String dimensionId)
Sets the value of dimensionId

Parameters:
dimensionId - the dimensionId to set

getUnit

public SitoolsUnit getUnit()
Gets the unitName value

Returns:
the unitName

setUnit

public void setUnit(SitoolsUnit unit)
Sets the value of unitName

Parameters:
unit - the unitName to set

getOrderBy

public java.lang.String getOrderBy()
Gets the orderBy value

Returns:
the orderBy

setOrderBy

public void setOrderBy(java.lang.String orderBy)
Sets the value of orderBy

Parameters:
orderBy - the orderBy to set

getFormat

public java.lang.String getFormat()
Gets the format value

Returns:
the format

setFormat

public void setFormat(java.lang.String format)
Sets the value of format

Parameters:
format - the format to set

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010-2013 CNES. All Rights Reserved.