Class EssDataSourceImpl

java.lang.Object
com.appliedolap.essbase.AbstractEssObject
com.appliedolap.essbase.impl.EssDataSourceImpl
All Implemented Interfaces:
EssDataSource, EssObject

public class EssDataSourceImpl extends AbstractEssObject implements EssDataSource
A data source object on the Essbase server, which seems to be a general abstraction for a tabular data source, such as a SQL table, MDX result set, CSV file, and others.
  • Constructor Details

    • EssDataSourceImpl

      public EssDataSourceImpl(ApiContext api, EssServer server, com.appliedolap.essbase.client.model.Datasource datasource)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: EssDataSource
      Gets the name of this data source.
      Specified by:
      getName in interface EssDataSource
      Specified by:
      getName in interface EssObject
      Returns:
      the data source name
    • getType

      public EssObject.Type getType()
      Description copied from interface: EssObject
      Gets the type of this object.
      Specified by:
      getType in interface EssDataSource
      Specified by:
      getType in interface EssObject
      Returns:
      the object type
    • getColumns

      public List<EssDataSourceColumn> getColumns()
      Description copied from interface: EssDataSource
      The columns this data source exposes, in the order the server lists them.

      Fetches the data source in full the first time it is asked, because the listing does not carry columns - GET /datasources answers name, type and connection and nothing more, while GET /datasources/{name} answers the whole thing.

      Specified by:
      getColumns in interface EssDataSource
      Returns:
      the columns, empty where the server reports none