|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
public interface MetadataInterface
The MetadataInterface is used to obtain the metadata for this server's database. There are two ways in which this information may be consumed. One way is to consume the information in a hierarchical way. The getSchemas() method provides the top level of the tree, which is the SchemaInterface. Each of the subsequent metadata interfaces contain the necessary methods to navigate the rest of the metadata. For example, the DimensionInterface has a getCube() method and a getHierachies() method. These methods return the parent and children of the Dimension, respectively. The second way to view the metadata is to directly access specific pieces of the metadata based on a set of restrictions. The MetadataInterface provides a full set of methods for obtaining each piece of the metadata (Dimensions, Hierarchies, etc.). Each of these methods requires an appropriate set of restrictions that returns an array of objects meeting this criteria. For example, "What are all the Levels for the Geography Dimension?" In this case, the search condition is known ahead of time, and it is not necessary to navigate through the metadata in order to determine the set of Levels belonging to the Geography Dimension. When applying restrictions there are a couple of rules to keep in mind. All of the restrictions do not have to be applied. An empty string ("") or 0 should be used when no restriction is needed. Also, when applying multiple restrictions each restriction is joined together with an AND operator.
SchemaInterface,
CubeInterface,
DimensionInterface,
HierarchyInterface,
LevelInterface,
MeasureInterface,
PropertyInterface,
MemberInterface,
Filter| Method Summary | |
|---|---|
java.lang.Object |
getConnection()
Returns the connection to the OLAP server. |
CubeInterface |
getCube(Filter filter)
Returns the cube with the appropriate restrictions |
CubeInterface[] |
getCubes(Filter filter)
Returns the cube(s) with the appropriate restrictions |
DimensionInterface |
getDimension(Filter filter)
Returns the dimension with the appropriate restrictions |
DimensionInterface[] |
getDimensions(Filter filter)
Returns the dimension(s) with the appropriate restrictions |
HierarchyInterface[] |
getHierarchies(Filter filter)
Returns the hierarchies with the appropriate restrictions |
HierarchyInterface |
getHierarchy(Filter filter)
Returns the hierarchy with the appropriate restrictions |
LevelInterface |
getLevel(Filter filter)
Returns the level with the appropriate restrictions |
LevelInterface[] |
getLevels(Filter filter)
Returns the level(s) with the appropriate restrictions |
java.util.Locale |
getLocale()
Returns the locale used for the session. |
MeasureInterface |
getMeasure(Filter filter)
Returns the measure with the appropriate restrictions |
MeasureInterface[] |
getMeasures(Filter filter)
Returns the measure(s) with the appropriate restrictions |
MemberInterface[] |
getMembers(Filter filter,
int start,
int count)
Returns the member(s) with the appropriate restrictions |
PropertyInterface[] |
getProperties(Filter filter)
Returns the properties with the appropriate restrictions |
PropertyInterface |
getProperty(Filter filter)
Returns the property with the appropriate restrictions |
SchemaInterface |
getSchema(Filter filter)
Returns the schema with the appropriate restrictions |
SchemaInterface[] |
getSchemas()
Returns the schemas for this server's database. |
SchemaInterface[] |
getSchemas(Filter filter)
Returns the schema(s) with the appropriate restrictions |
void |
setConnection(java.lang.Object con)
Sets the connection to the OLAP server. |
void |
setLocale(java.util.Locale locale)
Sets the locale for the session object |
| Method Detail |
|---|
java.lang.Object getConnection()
throws OLAPException
OLAPException - if a database error occurs
void setConnection(java.lang.Object con)
throws OLAPException
The - connection to the OLAP server
OLAPException - if a database error occurs
java.util.Locale getLocale()
throws OLAPException
OLAPException - if a database error occurs
void setLocale(java.util.Locale locale)
throws OLAPException
The - locale to the OLAP server
OLAPException - if a database error occurs
SchemaInterface[] getSchemas()
throws OLAPException
OLAPException - if a database error occurs
SchemaInterface[] getSchemas(Filter filter)
throws OLAPException
filter - The filter defines the restrictions to be applied for this metadata query. The following restrictions
are applicable for this type of Metadata object:OLAPException - if a database error occurs
SchemaInterface getSchema(Filter filter)
throws OLAPException
filter - The filter defines the restrictions to be applied for this metadata query. The following restrictions
are applicable for this type of Metadata object:OLAPException - if a database error occurs
CubeInterface[] getCubes(Filter filter)
throws OLAPException
filter - The filter defines the restrictions to be applied for this metadata query. The following restrictions
are applicable for this type of Metadata object:OLAPException - if a database error occurs
CubeInterface getCube(Filter filter)
throws OLAPException
filter - The filter defines the restrictions to be applied for this metadata query. The following restrictions
are applicable for this type of Metadata object:OLAPException - if a database error occurs
DimensionInterface[] getDimensions(Filter filter)
throws OLAPException
filter - The filter defines the restrictions to be applied for this metadata query. The following restrictions
are applicable for this type of Metadata object:OLAPException - if a database error occurs
DimensionInterface getDimension(Filter filter)
throws OLAPException
filter - The filter defines the restrictions to be applied for this metadata query. The following restrictions
are applicable for this type of Metadata object:OLAPException - if a database error occurs
HierarchyInterface[] getHierarchies(Filter filter)
throws OLAPException
filter - The filter defines the restrictions to be applied for this metadata query. The following restrictions
are applicable for this type of Metadata object:OLAPException - if a database error occurs
HierarchyInterface getHierarchy(Filter filter)
throws OLAPException
filter - The filter defines the restrictions to be applied for this metadata query. The following restrictions
are applicable for this type of Metadata object:OLAPException - if a database error occurs
LevelInterface[] getLevels(Filter filter)
throws OLAPException
filter - The filter defines the restrictions to be applied for this metadata query. The following restrictions
are applicable for this type of Metadata object:OLAPException - if a database error occurs
LevelInterface getLevel(Filter filter)
throws OLAPException
filter - The filter defines the restrictions to be applied for this metadata query. The following restrictions
are applicable for this type of Metadata object:OLAPException - if a database error occurs
MeasureInterface[] getMeasures(Filter filter)
throws OLAPException
filter - The filter defines the restrictions to be applied for this metadata query. The following restrictions
are applicable for this type of Metadata object:OLAPException - if a database error occurs
MeasureInterface getMeasure(Filter filter)
throws OLAPException
filter - The filter defines the restrictions to be applied for this metadata query. The following restrictions
are applicable for this type of Metadata object:OLAPException - if a database error occurs
PropertyInterface[] getProperties(Filter filter)
throws OLAPException
filter - The filter defines the restrictions to be applied for this metadata query. The following restrictions
are applicable for this type of Metadata object:OLAPException - if a database error occurs
PropertyInterface getProperty(Filter filter)
throws OLAPException
filter - The filter defines the restrictions to be applied for this metadata query. The following restrictions
are applicable for this type of Metadata object:OLAPException - if a database error occurs
MemberInterface[] getMembers(Filter filter,
int start,
int count)
throws OLAPException
filter - The filter defines the restrictions to be applied for this metadata query. The following restrictions
are applicable for this type of Metadata object:start - The zero based start index for the resulting set of memberscount - The number of members to return from the resulting set of members, where -1 returns
all members meeting the above criteria.
OLAPException - if a database error occurs
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||