|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface OlapDatabaseMetaData
Information about an OLAP database.
Methods are provided to query the metadata catalog of the database.
There is a method for each metadata class, and each method takes zero or more
parameters to qualify the instances should be returned, and returns a JDBC
ResultSet.
For example, getCubes(java.lang.String, java.lang.String, java.lang.String) returns the description of a cube.
![]() |
![]() |
| Field Summary |
|---|
| Method Summary | |
|---|---|
ResultSet |
getActions(String catalog,
String schemaPattern,
String cubeNamePattern,
String actionNamePattern)
Retrieves a result set describing the Actions in this database. |
OlapConnection |
getConnection()
|
ResultSet |
getCubes(String catalog,
String schemaPattern,
String cubeNamePattern)
Retrieves a result set describing the Cubes in this database. |
ResultSet |
getDatabaseProperties(String dataSourceName,
String propertyNamePattern)
Retrieves a list of the standard and provider-specific properties supported by an olap4j provider. |
ResultSet |
getDatasources()
Retrives a list of olap4j data sources that are available on the server. |
ResultSet |
getDimensions(String catalog,
String schemaPattern,
String cubeNamePattern,
String dimensionNamePattern)
Retrieves a result set describing the shared and private Dimensions in this database. |
ResultSet |
getHierarchies(String catalog,
String schemaPattern,
String cubeNamePattern,
String dimensionNamePattern,
String hierarchyNamePattern)
Retrieves a result set describing the Hierarchies in this database. |
ResultSet |
getLevels(String catalog,
String schemaPattern,
String cubeNamePattern,
String dimensionUniqueName,
String hierarchyUniqueName,
String levelNamePattern)
Retrieves a result set describing the Levels in this database. |
ResultSet |
getLiterals()
Retrieves a list of information on supported literals, including data types and values. |
String |
getMdxKeywords()
Retrieves a comma-separated list of all of this database's MDX keywords. |
ResultSet |
getMeasures(String catalog,
String schemaPattern,
String cubeNamePattern,
String measureNamePattern,
String measureUniqueName)
Retrieves a result set describing the Measures in this database. |
ResultSet |
getMembers(String catalog,
String schemaPattern,
String cubeNamePattern,
String dimensionUniqueName,
String hierarchyUniqueName,
String levelUniqueName,
String memberUniqueName,
Set<Member.TreeOp> treeOps)
Retrieves a result set describing the Members in this database. |
ResultSet |
getOlapFunctions(String functionNamePattern)
Retrieves a result set describing the Functions available to client applications connected to the database. |
ResultSet |
getProperties(String catalog,
String schemaPattern,
String cubeNamePattern,
String dimensionUniqueName,
String hierarchyUniqueName,
String levelUniqueName,
String memberUniqueName,
String propertyNamePattern)
Retrieves a result set describing member and cell Properties. |
ResultSet |
getSets(String catalog,
String schemaPattern,
String cubeNamePattern,
String setNamePattern)
Retrieves a result set describing the named Sets in this database. |
| Methods inherited from interface java.sql.Wrapper |
|---|
isWrapperFor, unwrap |
| Methods inherited from interface org.olap4j.OlapWrapper |
|---|
isWrapperFor, unwrap |
| Method Detail |
|---|
OlapConnection getConnection()
throws SQLException
getConnection in interface DatabaseMetaDataSQLException
ResultSet getActions(String catalog,
String schemaPattern,
String cubeNamePattern,
String actionNamePattern)
throws OlapException
Specification as for XML/A MDSCHEMA_ACTIONS schema rowset.
Each action description has the following columns:
null) => The name of
the schema to which this action belongs.
OlapException - if a database access error occurscatalog - a catalog name; must match the catalog name as it
is stored in the database; "" retrieves those without a catalog;
null means that the catalog name should not be used
to narrow the searchschemaPattern - a schema name pattern; must match the schema name
as it is stored in the database; "" retrieves those without a
schema; null means that the schema name should not
be used to narrow the searchcubeNamePattern - a cube name pattern; must match the
cube name as it is stored in the database; "" retrieves those
without a cube (such as shared dimensions);
null means that the cube name should
not be used to narrow the searchactionNamePattern - an action name pattern; must match the
action name as it is stored in the database; null
means that the action name should not be used to narrow the
search
ResultSet object in which each row is an
action descriptionDatabaseMetaData.getSearchStringEscape()
ResultSet getDatasources()
throws OlapException
Specification as for XML/A DISCOVER_DATASOURCES schema rowset.
null)null)null)null)
OlapException - if a database access error occurs
ResultSet object in which each row is a
datasource description
ResultSet getLiterals()
throws OlapException
Specification as for XML/A DISCOVER_LITERALS schema rowset.
null) => Contains
the actual literal value.null) =>
The characters, in the literal, that are not valid.null) => The characters that are not valid as the
first character of the literal. If the literal can start with
any valid character, this is null.null) => The
maximum number of characters in the literal. If there is no
maximum or the maximum is unknown, the value is -1.
OlapException - if a database access error occurs
ResultSet object in which each row is a
literal description
ResultSet getDatabaseProperties(String dataSourceName,
String propertyNamePattern)
throws OlapException
Specification as for XML/A DISCOVER_PROPERTIES schema rowset.
Not to be confused with getProperties(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String).
OlapException - if a database access error occursdataSourceName - Name of data sourcepropertyNamePattern - an property name pattern; must match the
property name as it is stored in the database; null
means that the property name should not be used to narrow the
search
ResultSet object in which each row is a
the description of a database propertyDatabaseMetaData.getSearchStringEscape()
ResultSet getProperties(String catalog,
String schemaPattern,
String cubeNamePattern,
String dimensionUniqueName,
String hierarchyUniqueName,
String levelUniqueName,
String memberUniqueName,
String propertyNamePattern)
throws OlapException
Specification as for XML/A MDSCHEMA_PROPERTIES schema rowset.
Not to be confused with getDatabaseProperties(String,String).
null) => The name of
the database.null) => The name of
the schema to which this property belongs.null) => The
unique name of the member to which the property belongs.null) => The
type of the property. null) => A
human-readable description of the measure.
OlapException - if a database access error occurscatalog - a catalog name; must match the catalog name as it
is stored in the database; "" retrieves those without a catalog;
null means that the catalog name should not be used
to narrow the searchschemaPattern - a schema name pattern; must match the schema
name as it is stored in the database; "" retrieves those without
a schema; null means that the schema name should not
be used to narrow the searchcubeNamePattern - a cube name pattern; must match the
cube name as it is stored in the database; "" retrieves those
without a cube; null means that the cube name should
not be used to narrow the searchdimensionUniqueName - unique name of a dimension (not a pattern);
must match the dimension name as it is stored in the database;
null means that the dimension name should not be
used to narrow the searchhierarchyUniqueName - unique name of a hierarchy (not a pattern);
must match the
hierarchy name as it is stored in the database; null
means that the hierarchy name should not be used to narrow the
searchlevelUniqueName - unique name of a level (not a pattern);
must match the
level name as it is stored in the database; null
means that the level name should not be used to narrow the
searchmemberUniqueName - unique name of member (not a pattern);
null
means that the member unique name should not be used to narrow
the searchpropertyNamePattern - a property name pattern; must match the
property name as it is stored in the database; null
means that the property name should not be used to narrow the
search
ResultSet object in which each row is a
description of a member or cell propertyDatabaseMetaData.getSearchStringEscape(),
Property
String getMdxKeywords()
throws OlapException
OlapException - if a database access error occurs
ResultSet getCubes(String catalog,
String schemaPattern,
String cubeNamePattern)
throws OlapException
Specification as for XML/A MDSCHEMA_CUBES schema rowset.
Each cube description has the following columns:
null) => The name of
the catalog to which this cube belongs.null) => The name of
the schema to which this cube belongs.null) => Cube type.null) => Date and
time of cube creation.null) =>
Date and time of last schema update.null) => User
ID of the person who last updated the schema.null) => Date
and time of last data update.null) => User ID
of the person who last updated the data. null) => A
user-friendly description of the dimension.
OlapException - if a database access error occurscatalog - a catalog name; must match the catalog name as it
is stored in the database; "" retrieves those without a catalog;
null means that the catalog name should not be used
to narrow the searchschemaPattern - a schema name pattern; must match the schema
name as it is stored in the database; "" retrieves those without
a schema; null means that the schema name should not
be used to narrow the searchcubeNamePattern - a cube name pattern; must match the
cube name as it is stored in the database; null
means that the cube name should not be used to narrow the search
ResultSet in which each row is a cube descriptionDatabaseMetaData.getSearchStringEscape(),
Cube
ResultSet getDimensions(String catalog,
String schemaPattern,
String cubeNamePattern,
String dimensionNamePattern)
throws OlapException
Specification as for XML/A MDSCHEMA_DIMENSIONS schema rowset.
Each dimension description has the following columns:
null) => The name of
the database.null) => Not
supported.null) => Not
supported.null) => A
user-friendly description of the dimension.null) => Always
FALSE.null) => A Boolean
that indicates whether the dimension is write-enabled.null) => A
bitmap that specifies which columns contain unique values if
the dimension contains only members with unique names.null) => Always NULL.null) =>
Always TRUE.
OlapException - if a database access error occurscatalog - a catalog name; must match the catalog name as it
is stored in the database; "" retrieves those without a catalog;
null means that the catalog name should not be used
to narrow the searchschemaPattern - a schema name pattern; must match the schema name
as it is stored in the database; "" retrieves those without a
schema; null means that the schema name should not
be used to narrow the searchcubeNamePattern - a cube name pattern; must match the
cube name as it is stored in the database; "" retrieves those
without a cube (such as shared dimensions);
null means that the cube name should
not be used to narrow the searchdimensionNamePattern - a dimension name pattern; must match the
dimension name as it is stored in the database; null
means that the dimension name should not be used to narrow the
search
ResultSet object in which each row is a
dimension descriptionDatabaseMetaData.getSearchStringEscape(),
Dimension
ResultSet getOlapFunctions(String functionNamePattern)
throws OlapException
Specification as for XML/A MDSCHEMA_FUNCTIONS schema rowset.
Each function description has the following columns:
null) => A
description of the function.null) => A comma
delimited list of parameters.null) => The name of
the type library for user-defined functions. NULL for MDX
functions.null) => The display
caption for the function.
OlapException - if a database access error occursfunctionNamePattern - a function name pattern; must match the
function name as it is stored in the database; null
means that the function name should not be used to narrow the
search
ResultSet object in which each row is a
function descriptionDatabaseMetaData.getFunctions(String, String, String),
DatabaseMetaData.getSearchStringEscape()
ResultSet getHierarchies(String catalog,
String schemaPattern,
String cubeNamePattern,
String dimensionNamePattern,
String hierarchyNamePattern)
throws OlapException
Specification as for XML/A MDSCHEMA_HIERARCHIES schema rowset.
Each hierarchy description has the following columns:
null) => The name of
the catalog to which this hierarchy belongs.null) => Not
supportednull) => Hierarchy
GUID.null) => The
default member for this hierarchy. null) => The member at
the highest level of rollup in the hierarchy.null) => A
human-readable description of the hierarchy. NULL if no
description exists.null) => Is
hierarchy a parent.
OlapException - if a database access error occurscatalog - a catalog name; must match the catalog name as it
is stored in the database; "" retrieves those without a catalog;
null means that the catalog name should not be used
to narrow the searchschemaPattern - a schema name pattern; must match the schema name
as it is stored in the database; "" retrieves those without a
schema; null means that the schema name should not
be used to narrow the searchcubeNamePattern - a cube name pattern; must match the
cube name as it is stored in the database; "" retrieves those
without a cube; null means that the cube name should
not be used to narrow the searchdimensionNamePattern - a dimension name pattern; must match the
dimension name as it is stored in the database; null
means that the dimension name should not be used to narrow the
searchhierarchyNamePattern - a hierarchy name pattern; must match the
hierarchy name as it is stored in the database; null
means that the hierarchy name should not be used to narrow the
search
ResultSet object in which each row is a
hierarchy descriptionDatabaseMetaData.getSearchStringEscape(),
Hierarchy
ResultSet getLevels(String catalog,
String schemaPattern,
String cubeNamePattern,
String dimensionUniqueName,
String hierarchyUniqueName,
String levelNamePattern)
throws OlapException
Specification as for XML/A MDSCHEMA_LEVELS schema rowset.
Each level description has the following columns:
null) => The name of
the catalog to which this level belongs.null) => The name of
the schema to which this level belongs.null) => Level
GUID.null) => A
human-readable description of the level. NULL if no
description exists.
OlapException - if a database access error occurscatalog - a catalog name; must match the catalog name as it
is stored in the database; "" retrieves those without a catalog;
null means that the catalog name should not be used
to narrow the searchschemaPattern - a schema name pattern; must match the schema name
as it is stored in the database; "" retrieves those without a
schema; null means that the schema name should not
be used to narrow the searchcubeNamePattern - a cube name pattern; must match the
cube name as it is stored in the database; "" retrieves those
without a cube; null means that the cube name should
not be used to narrow the searchdimensionUniqueName - unique name of a dimension (not a pattern);
must match the
dimension name as it is stored in the database; null
means that the dimension name should not be used to narrow the
searchhierarchyUniqueName - unique name of a hierarchy (not a pattern);
must match the
hierarchy name as it is stored in the database; null
means that the hierarchy name should not be used to narrow the
searchlevelNamePattern - a level name pattern; must match the
level name as it is stored in the database; null
means that the level name should not be used to narrow the
search
ResultSet object in which each row is a
level descriptionDatabaseMetaData.getSearchStringEscape(),
Level
ResultSet getMeasures(String catalog,
String schemaPattern,
String cubeNamePattern,
String measureNamePattern,
String measureUniqueName)
throws OlapException
Specification as for XML/A MDSCHEMA_MEASURES schema rowset.
Each measure description has the following columns:
null) => The name of
the catalog to which this measure belongs. null) => The name of
the schema to which this measure belongs.null) => Measure
GUID.null) => A string
that always returns NULL. EXCEPT that SQL Server returns
non-null values!!!null) => A
human-readable description of the measure.
OlapException - if a database access error occurscatalog - a catalog name; must match the catalog name as it
is stored in the database; "" retrieves those without a catalog;
null means that the catalog name should not be used
to narrow the searchschemaPattern - a schema name pattern; must match the schema name
as it is stored in the database; "" retrieves those without a
schema; null means that the schema name should not
be used to narrow the searchcubeNamePattern - a cube name pattern; must match the
cube name as it is stored in the database; "" retrieves those
without a cube; null means that the cube name should
not be used to narrow the searchmeasureNamePattern - a measure name pattern; must match the
measure name as it is stored in the database; null
means that the measure name should not be used to narrow the
searchmeasureUniqueName - unique name of measure (not a pattern);
null means that the measure unique name should not
be used to narrow the search
ResultSet object in which each row is a
measure descriptionDatabaseMetaData.getSearchStringEscape(),
Measure
ResultSet getMembers(String catalog,
String schemaPattern,
String cubeNamePattern,
String dimensionUniqueName,
String hierarchyUniqueName,
String levelUniqueName,
String memberUniqueName,
Set<Member.TreeOp> treeOps)
throws OlapException
Specification as for XML/A MDSCHEMA_MEMBERS schema rowset. Rows are sorted by level number then by ordinal.
The treeOps parameter allows you to retrieve members
relative to a given member. It is only applicable if a
memberUniqueName is also specified; otherwise it is
ignored. The following example retrieves all descendants and ancestors
of California, but not California itself:
OlapDatabaseMetaData metaData;
ResultSet rset = metaData.getMembers(
"LOCALDB", "FoodMart", "Sales", null, null, null,
"[Customers].[USA].[CA]",
EnumSet.of(Member.TreeOp.ANCESTORS, Member.TreeOp.DESCENDANTS));
Each member description has the following columns:
null) => The name of
the catalog to which this member belongs. null) => The name of
the schema to which this member belongs. null) => Memeber
GUID.null) =>
Unique name of the member's parent.null) => Tree
Operationnull) => depth
OlapException - if a database access error occurscatalog - a catalog name; must match the catalog name as it
is stored in the database; "" retrieves those without a catalog;
null means that the catalog name should not be used
to narrow the searchschemaPattern - a schema name pattern; must match the schema name
as it is stored in the database; "" retrieves those without a
schema; null means that the schema name should not
be used to narrow the searchcubeNamePattern - a cube name pattern; must match the
cube name as it is stored in the database; "" retrieves those
without a cube; null means that the cube name should
not be used to narrow the searchdimensionUniqueName - uniqu