it.eng.spagobi.engines.geo.dataset
Class DataSetMetaData

java.lang.Object
  extended by it.eng.spagobi.engines.geo.dataset.DataSetMetaData

public class DataSetMetaData
extends java.lang.Object

The Class DataSetMetaData.

Author:
Andrea Gioia (andrea.gioia@eng.it)

Constructor Summary
DataSetMetaData()
          Instantiates a new data set meta data.
 
Method Summary
 void addColumn(java.lang.String columnName)
          Adds the column.
 java.lang.String getAggregationFunction(java.lang.String columnName)
          Gets the aggregation function.
 java.util.Set getColumnNames()
          Gets the column names.
 java.lang.String getColumnProperty(java.lang.String columnName, java.lang.String propertyName)
          Gets the column property.
 java.lang.String getColumnType(java.lang.String columnName)
          Gets the column type.
 java.lang.String getGeoIdColumnName(java.lang.String hierarchyName)
          Gets the geo id column name.
 java.lang.String getLevelName(java.lang.String hierarchyName)
          Gets the level name.
 java.util.Set getMeasureColumnNames()
          Gets the measure column names.
 boolean isGeoIdColumn(java.lang.String columnName)
          Checks if is geo id column.
 void setColumnProperty(java.lang.String columnName, java.lang.String propertyName, java.lang.String propertyValue)
          Sets the column property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSetMetaData

public DataSetMetaData()
Instantiates a new data set meta data.

Method Detail

getColumnNames

public java.util.Set getColumnNames()
Gets the column names.

Returns:
the column names

getMeasureColumnNames

public java.util.Set getMeasureColumnNames()
Gets the measure column names.

Returns:
the measure column names

getColumnProperty

public java.lang.String getColumnProperty(java.lang.String columnName,
                                          java.lang.String propertyName)
Gets the column property.

Parameters:
columnName - the column name
propertyName - the property name
Returns:
the column property

setColumnProperty

public void setColumnProperty(java.lang.String columnName,
                              java.lang.String propertyName,
                              java.lang.String propertyValue)
Sets the column property.

Parameters:
columnName - the column name
propertyName - the property name
propertyValue - the property value

addColumn

public void addColumn(java.lang.String columnName)
Adds the column.

Parameters:
columnName - the column name

getGeoIdColumnName

public java.lang.String getGeoIdColumnName(java.lang.String hierarchyName)
Gets the geo id column name.

Parameters:
hierarchyName - the hierarchy name
Returns:
the geo id column name

getLevelName

public java.lang.String getLevelName(java.lang.String hierarchyName)
Gets the level name.

Parameters:
hierarchyName - the hierarchy name
Returns:
the level name

getColumnType

public java.lang.String getColumnType(java.lang.String columnName)
Gets the column type.

Parameters:
columnName - the column name
Returns:
the column type

isGeoIdColumn

public boolean isGeoIdColumn(java.lang.String columnName)
Checks if is geo id column.

Parameters:
columnName - the column name
Returns:
true, if is geo id column

getAggregationFunction

public java.lang.String getAggregationFunction(java.lang.String columnName)
Gets the aggregation function.

Parameters:
columnName - the column name
Returns:
the aggregation function