it.eng.qbe.geo.configuration
Class DatamartProviderConfiguration

java.lang.Object
  extended by it.eng.qbe.geo.configuration.DatamartProviderConfiguration

public class DatamartProviderConfiguration
extends java.lang.Object

The Class DatamartProviderConfiguration.

Author:
Andrea Gioia

Nested Class Summary
static class DatamartProviderConfiguration.Hierarchy
          The Class Hierarchy.
 
Field Summary
static java.lang.String DEFAULT_CALSS_NAME
          The Constant DEFAULT_CALSS_NAME.
 
Constructor Summary
DatamartProviderConfiguration(MapConfiguration parentConfiguration)
          Instantiates a new datamart provider configuration.
DatamartProviderConfiguration(MapConfiguration parentConfiguration, it.eng.spago.base.SourceBean datamartProviderConfigurationSB)
          Instantiates a new datamart provider configuration.
 
Method Summary
 void addHieararchy(DatamartProviderConfiguration.Hierarchy hierarchy)
          Adds the hieararchy.
 void deleteHieararchy(java.lang.String hierarchyName)
          Delete hieararchy.
 DatamartProviderConfiguration.Hierarchy.Level getBaseLevel()
          Gets the base level.
 java.lang.String getClassName()
          Gets the class name.
 java.lang.String getColumnId()
          Gets the column id.
 java.lang.String getConnectionName()
          Gets the connection name.
 java.lang.String getExecutableQuery()
          Gets the executable query.
 java.util.List getHierarchies()
          Gets the hierarchies.
 DatamartProviderConfiguration.Hierarchy getHierarchy(java.lang.String hierarchyName)
          Gets the hierarchy.
 java.lang.String getHierarchyBaseLevel()
          Gets the hierarchy base level.
 java.lang.String getHierarchyLevel()
          Gets the hierarchy level.
 java.lang.String getHierarchyName()
          Gets the hierarchy name.
 java.lang.String[] getKpiAgregationFunctins()
          Gets the kpi agregation functins.
 java.lang.String[] getKpiColumnNames()
          Gets the kpi column names.
 java.util.Properties getParameters()
          Gets the parameters.
 MapConfiguration getParentConfiguration()
          Gets the parent configuration.
 java.lang.String getQuery()
          Gets the query.
 DatamartProviderConfiguration.Hierarchy getSelectedHierarchy()
          Gets the selected hierarchy.
 DatamartProviderConfiguration.Hierarchy.Level getSelectedLevel()
          Gets the selected level.
 void setClassName(java.lang.String className)
          Sets the class name.
 void setColumnId(java.lang.String columnId)
          Sets the column id.
 void setConnectionName(java.lang.String connectionName)
          Sets the connection name.
 void setHierarchyBaseLevel(java.lang.String hierarchyBaseLevel)
          Sets the hierarchy base level.
 void setHierarchyLevel(java.lang.String hierarchyLevel)
          Sets the hierarchy level.
 void setHierarchyName(java.lang.String hierarchyName)
          Sets the hierarchy name.
 void setKpiAgregationFunctins(java.lang.String[] kpiAgregationFunctins)
          Sets the kpi agregation functins.
 void setKpiColumnNames(java.lang.String[] kpiColumnNames)
          Sets the kpi column names.
 void setParameters(java.util.Properties parameters)
          Sets the parameters.
 void setParentConfiguration(MapConfiguration parentConfiguration)
          Sets the parent configuration.
 void setQuery(java.lang.String query)
          Sets the query.
 java.lang.String toXml()
          To xml.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CALSS_NAME

public static final java.lang.String DEFAULT_CALSS_NAME
The Constant DEFAULT_CALSS_NAME.

See Also:
Constant Field Values
Constructor Detail

DatamartProviderConfiguration

public DatamartProviderConfiguration(MapConfiguration parentConfiguration)
Instantiates a new datamart provider configuration.

Parameters:
parentConfiguration - the parent configuration

DatamartProviderConfiguration

public DatamartProviderConfiguration(MapConfiguration parentConfiguration,
                                     it.eng.spago.base.SourceBean datamartProviderConfigurationSB)
                              throws ConfigurationException
Instantiates a new datamart provider configuration.

Parameters:
parentConfiguration - the parent configuration
datamartProviderConfigurationSB - the datamart provider configuration sb
Throws:
ConfigurationException - the configuration exception
Method Detail

getClassName

public java.lang.String getClassName()
Gets the class name.

Returns:
the class name

setClassName

public void setClassName(java.lang.String className)
Sets the class name.

Parameters:
className - the new class name

getColumnId

public java.lang.String getColumnId()
Gets the column id.

Returns:
the column id

setColumnId

public void setColumnId(java.lang.String columnId)
Sets the column id.

Parameters:
columnId - the new column id

getConnectionName

public java.lang.String getConnectionName()
Gets the connection name.

Returns:
the connection name

setConnectionName

public void setConnectionName(java.lang.String connectionName)
Sets the connection name.

Parameters:
connectionName - the new connection name

getKpiColumnNames

public java.lang.String[] getKpiColumnNames()
Gets the kpi column names.

Returns:
the kpi column names

setKpiColumnNames

public void setKpiColumnNames(java.lang.String[] kpiColumnNames)
Sets the kpi column names.

Parameters:
kpiColumnNames - the new kpi column names

getQuery

public java.lang.String getQuery()
Gets the query.

Returns:
the query

getExecutableQuery

public java.lang.String getExecutableQuery()
Gets the executable query.

Returns:
the executable query

setQuery

public void setQuery(java.lang.String query)
Sets the query.

Parameters:
query - the new query

getParameters

public java.util.Properties getParameters()
Gets the parameters.

Returns:
the parameters

setParameters

public void setParameters(java.util.Properties parameters)
Sets the parameters.

Parameters:
parameters - the new parameters

getHierarchyLevel

public java.lang.String getHierarchyLevel()
Gets the hierarchy level.

Returns:
the hierarchy level

setHierarchyLevel

public void setHierarchyLevel(java.lang.String hierarchyLevel)
Sets the hierarchy level.

Parameters:
hierarchyLevel - the new hierarchy level

getHierarchyName

public java.lang.String getHierarchyName()
Gets the hierarchy name.

Returns:
the hierarchy name

setHierarchyName

public void setHierarchyName(java.lang.String hierarchyName)
Sets the hierarchy name.

Parameters:
hierarchyName - the new hierarchy name

getKpiAgregationFunctins

public java.lang.String[] getKpiAgregationFunctins()
Gets the kpi agregation functins.

Returns:
the kpi agregation functins

setKpiAgregationFunctins

public void setKpiAgregationFunctins(java.lang.String[] kpiAgregationFunctins)
Sets the kpi agregation functins.

Parameters:
kpiAgregationFunctins - the new kpi agregation functins

addHieararchy

public void addHieararchy(DatamartProviderConfiguration.Hierarchy hierarchy)
Adds the hieararchy.

Parameters:
hierarchy - the hierarchy

deleteHieararchy

public void deleteHieararchy(java.lang.String hierarchyName)
Delete hieararchy.

Parameters:
hierarchyName - the hierarchy name

getHierarchy

public DatamartProviderConfiguration.Hierarchy getHierarchy(java.lang.String hierarchyName)
Gets the hierarchy.

Parameters:
hierarchyName - the hierarchy name
Returns:
the hierarchy

getHierarchies

public java.util.List getHierarchies()
Gets the hierarchies.

Returns:
the hierarchies

getSelectedHierarchy

public DatamartProviderConfiguration.Hierarchy getSelectedHierarchy()
Gets the selected hierarchy.

Returns:
the selected hierarchy

getSelectedLevel

public DatamartProviderConfiguration.Hierarchy.Level getSelectedLevel()
Gets the selected level.

Returns:
the selected level

getBaseLevel

public DatamartProviderConfiguration.Hierarchy.Level getBaseLevel()
Gets the base level.

Returns:
the base level

getHierarchyBaseLevel

public java.lang.String getHierarchyBaseLevel()
Gets the hierarchy base level.

Returns:
the hierarchy base level

setHierarchyBaseLevel

public void setHierarchyBaseLevel(java.lang.String hierarchyBaseLevel)
Sets the hierarchy base level.

Parameters:
hierarchyBaseLevel - the new hierarchy base level

getParentConfiguration

public MapConfiguration getParentConfiguration()
Gets the parent configuration.

Returns:
the parent configuration

setParentConfiguration

public void setParentConfiguration(MapConfiguration parentConfiguration)
Sets the parent configuration.

Parameters:
parentConfiguration - the new parent configuration

toXml

public java.lang.String toXml()
To xml.

Returns:
the string