|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.dss.metadataManager.client.MetadataManager
The main client-side class of the MetadataManager bean. The MetadataManager consolidates access to metadata from multiple connections. For example, you might have metadata stored in an analytic workspace and in the repository. The MetadataManager consolidates these sources of metadata to give you unified access to the metadata.
Constructor Summary | |
MetadataManager() Default constructor. |
Method Summary | |
void |
addErrorHandler(ErrorHandler errHandler) Specifies the error for this MetadataManager . |
void |
addListener(MetadataManagerListener listener) Adds a MetadataManagerListener to this MetadataManager . |
boolean |
areLevelIDsEquivalent(java.lang.String id1, java.lang.String id2) Indicates whether two unique IDs for levels refer to the same Level in the database. |
int |
attach() Attaches (opens) all analytic workspaces to which this MetadataManager has connections. |
int |
detach() Detaches (closes) all open analytic workspaces. |
int |
detach(boolean disconnect) Detaches (closes) all open analytic workspaces. |
MDDimension[] |
dimensionalityOfMeasures(MDMeasure[] measures, java.lang.String flags) Retrieves the dimensions that specified measures have. |
int |
free() Frees resources that the MetadataManager bean uses, including all the connections that are associated with this MetadataManager . |
int |
free(boolean freeConnection) Frees resources that the MetadataManager bean uses. |
int |
getAttachStatus() Retrieves information about whether the most recently-attached analytic workspace is open and attached for this MetadataManager . |
PropertyBag |
getAttributes(MDObject mdObj, java.lang.String[] properties) Retrieves the attributes of an object. |
java.lang.String |
getBeanName() Retrieves the name of this MetadataManager . |
Connection[] |
getConnections() Retrieves the connections that this MetadataManager uses. |
MDDimension |
getDimension(java.lang.String strPropertyName, java.lang.String strPropertyValue) Retrieves the first dimension that has a specified property value. |
MDDimension[] |
getDimensions() Retrieves the MDDimension objects for the MDRoot object. |
java.lang.String |
getDriverImpl(java.lang.String driverType) Retrieve the driver associated with the specified drivertype from the MetadataManager bean. |
MDFolder |
getFolder(java.lang.String strPropertyName, java.lang.String strPropertyValue) Retrieves the first MDFolder object that has a specified property value. |
MDFolder[] |
getFolders() Retrieves the MDFolder objects for the MDRoot object. |
MDHierarchy |
getHierarchy(java.lang.String strPropertyName, java.lang.String strPropertyValue) Retrieves the first hierarchy that has a specified property value. |
MDLevel |
getLevel(java.lang.String strPropertyName, java.lang.String strPropertyValue) Retrieves the first level that has a specified property value. |
java.util.Locale |
getLocale() Retrieves the locale that this MetadataManager uses. |
MDObject |
getMDObject(java.lang.String strPropertyName, java.lang.String strPropertyValue, java.lang.String objectType) Retrieves a metadata object that has the specified property values and object type. |
MDObject |
getMDObject(java.lang.String strPropertyName, java.util.Vector vstrPropertyValues, java.lang.String objectType) Retrieves a metadata object that has the specified property values and object type. |
MDRoot |
getMDRoot() Retrieve the root folder for this MetadataManager . |
MDMeasure |
getMeasure(java.lang.String strPropertyName, java.lang.String strPropertyValue) Retrieves the first measure that has a specified property value. |
MDDimension |
getMeasureDimension(java.lang.String dbString) Retrieves the measure dimension for this MetadataManager . |
MDMeasure[] |
getMeasures() Retrieves the MDMeasure objects for the MDRoot object. |
ObjectFactory |
getObjectFactory(boolean remoteFactory) Retrieves the object factory that this MetadataManager uses to create new objects when loading XML from the BI Beans Catalog. |
MDSelection |
getSelection(java.lang.String strPropertyName, java.lang.String strPropertyValue) Retrieves the first selection that has a specified property value. |
BISession |
getSession() Retrieves the session to which this MetadataManager object belongs. |
java.lang.String |
getXMLAsString() Retrieves the XML representation of this MetadataManager . |
boolean |
isBeanClass() Indicates whether this object is the client-side part of the MetadataManager. |
java.util.Hashtable |
listDriverImpl() List the drivers associated with the metadataManager bean |
MDMeasure[] |
measuresOfDimensions(MDDimension[] dimensions, java.lang.String flags) Retrieves measures that have specified dimensions. |
void |
removeDriverImpl(java.lang.String driverType) De-register the driver from the metadataManager bean. |
void |
removeErrorHandler() Removes a customized error handler for this MetadataManager . |
void |
removeListener(MetadataManagerListener listener) Removes a MetadataManagerListener from the list of listeners for this MetadataManager . |
void |
setBeanName(java.lang.String name) Specifies the name of this MetadataManager . |
int |
setConnection(Connection connection) Adds a connection to this MetadataManager . |
void |
setDriverImpl(java.lang.String driverType, java.lang.String driverClassName) Register the driver with the MetadataManager bean. |
void |
setLocale(java.util.Locale locale) Specifies the locale that this MetadataManager uses. |
void |
setMeasureDimensionLabels(PropertyBag propertyBag) Specifies labels for measure dimension for this MetadataManager . |
void |
setSession(BISession session) Specifies the session to which this MetadataManager object belongs. |
boolean |
setXMLAsString(java.lang.String xml) Specifies the XML representation of this MetadataManager . |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.dss.util.persistence.Persistable |
getPersistableAttributes, getPersistableComponents, initialize, setPersistableAttributes, setPersistableComponents |
Methods inherited from interface oracle.dss.connection.common.ConnectionListener |
connected, connecting, disconnected, disconnecting |
Constructor Detail |
public MetadataManager() throws MetadataManagerException
MetadataManagerException
- If a problem occurs during the initialization of this MetadataManager
.Method Detail |
public void setSession(BISession session)
MetadataManager
object belongs.session
- The BISession
to which this MetadataManager object belongs.public BISession getSession()
MetadataManager
object belongs.BISession
to which this MetadataManager object belongs.public int setConnection(Connection connection) throws MetadataManagerException
MetadataManager
. The MetadataManager
uses the connection to connect to the source of metadata. A MetadataManager
can have more than one connection. Each connection provides information for connecting to a different source of metadata.connection
- The connection to add.MetadataManagerException
- If the connection cannot be set.MDU.SUCCESS
, MDU.FAILURE
public Connection[] getConnections()
MetadataManager
uses.MetadataManager
.public int getAttachStatus()
MetadataManager
.MM.ATTACHED
, MM.NOT_ATTACHED
, MM.ATTACHING
public int attach() throws MetadataManagerException
MetadataManager
has connections.MetadataManagerException
- If the process of attaching workspaces fails.MM.ATTACHED
, MDU.FAILURE
, MDU.NO_REMOTE
public int detach() throws MetadataManagerException
MetadataManager
.MetadataManagerException
- If the process of closing the workspaces fails.MM.ATTACHED
, MDU.FAILURE
, MDU.NO_REMOTE
public int detach(boolean disconnect) throws MetadataManagerException
disconnect
- true
to disconnect all connections, false
to detach without disconnecting.MetadataManagerException
- If the process of closing the workspaces fails.MM.ATTACHED
, MDU.FAILURE
, MDU.NO_REMOTE
public MDRoot getMDRoot()
MetadataManager
.MetadataManager
.public java.lang.String getBeanName()
MetadataManager
.MetadataManager
.public void setBeanName(java.lang.String name)
MetadataManager
.name
- The name of this MetadataManager
.public void addListener(MetadataManagerListener listener)
MetadataManagerListener
to this MetadataManager
.listener
- The listener to add.public void removeListener(MetadataManagerListener listener)
MetadataManagerListener
from the list of listeners for this MetadataManager
.listener
- The listener to remove.public boolean isBeanClass()
MetadataManager
is the main client component, this method always returns true
.true
.public int free() throws MetadataManagerException
MetadataManager
. Call this method before you close your application.SUCCESS
FAILURE
MetadataManagerException
- If the connection fails during the execution of this method or if there is a problem storing the object on the server.MDU.SUCCESS
, MDU.FAILURE
public int free(boolean freeConnection) throws MetadataManagerException
freeConnection
- true
to free connections, false
to free resources but not connections.SUCCESS
FAILURE
MetadataManagerException
- If the connection fails during the execution of this methodpublic MDFolder[] getFolders() throws MetadataManagerException
MDFolder
objects for the MDRoot
object.MDFolder
objects.public MDMeasure[] getMeasures() throws MetadataManagerException
MDMeasure
objects for the MDRoot
object.MDMeasure
objects.MetadataManagerException
- If the connection fails during the execution of this method or if there is a problem storing the object on the server.public MDDimension[] getDimensions() throws MetadataManagerException
MDDimension
objects for the MDRoot
object.MDDimension
objects.MetadataManagerException
- If the connection fails during the execution of this method or if there is a problem storing the object on the server.public MDObject getMDObject(java.lang.String strPropertyName, java.util.Vector vstrPropertyValues, java.lang.String objectType) throws MetadataManagerException
strPropertyName
- The property name to find.vstrPropertyValues
- A list of property values to find.strObjectType
- The type of object to retrieve.strObjectType
that has all of the specified property values, or null
if the object could not be found.MetadataManagerException
- If the connection fails during the execution of this method or if there is a problem retrieving objects from the server.public MDObject getMDObject(java.lang.String strPropertyName, java.lang.String strPropertyValue, java.lang.String objectType) throws MetadataManagerException
strPropertyName
- The property name to find.vstrPropertyValues
- A list of property values to find.strObjectType
- The type of object to retrieve.strObjectType
that has all of the specified property values, or null
if the object could not be found.MetadataManagerException
- If the connection fails during the execution of this method or if there is a problem retrieving objects from the server.public MDFolder getFolder(java.lang.String strPropertyName, java.lang.String strPropertyValue) throws MetadataManagerException
MDFolder
object that has a specified property value.strPropertyName
- a String
value that represents the property name to find.strPropertyValue
- a String value that contains a property value to find.e.strPropertyValue
value for the strPropertyName
property, or null
if no folder can be found that has the property value.MetadataManagerException
- If the connection fails during the execution of this method or if there is a problem retrieving objects from the server.public MDSelection getSelection(java.lang.String strPropertyName, java.lang.String strPropertyValue) throws MetadataManagerException
strPropertyName
- The name of the property to find.strPropertyValue
- The property value to find.null
if no selection can be found.MetadataManagerException
- If the connection fails during the execution of this method or if there is a problem retrieving objects from the server.public MDMeasure getMeasure(java.lang.String strPropertyName, java.lang.String strPropertyValue) throws MetadataManagerException
strPropertyName
- The name of the property to find.strPropertyValue
- The property value to find.null
if no measure can be found.MetadataManagerException
- If the connection fails during the execution of this method or if there is a problem retrieving objects from the server.public MDDimension getDimension(java.lang.String strPropertyName, java.lang.String strPropertyValue) throws MetadataManagerException
strPropertyName
- The name of the property to find.strPropertyValue
- The property value to find.null
if no dimension can be found.MetadataManagerException
- If the connection fails during the execution of this method or if there is a problem retrieving objects from the server.public MDHierarchy getHierarchy(java.lang.String strPropertyName, java.lang.String strPropertyValue) throws MetadataManagerException
strPropertyName
- The name of the property to find.strPropertyValue
- The property value to find.null
if no hierarchy can be found.MetadataManagerException
- If the connection fails during the execution of this method or if there is a problem retrieving objects from the server.public MDLevel getLevel(java.lang.String strPropertyName, java.lang.String strPropertyValue) throws MetadataManagerException
strPropertyName
- The name of the property to find.strPropertyValue
- The property value to find.null
if no level can be found.MetadataManagerException
- If the connection fails during the execution of this method or if there is a problem retrieving objects from the server.public boolean areLevelIDsEquivalent(java.lang.String id1, java.lang.String id2)
id1
- First ID string to compareid2
- Second ID string to comparetrue
if they are equivalent, false
if they are not equivalent.public MDMeasure[] measuresOfDimensions(MDDimension[] dimensions, java.lang.String flags) throws MetadataManagerException
MM.UNION
as the flags
parameter. To retrieve only the measures that have all of the specified dimensions, pass MM.INTERSECTION
.dimensions
- The dimensions that the retrieved measures should have.flags
- A constant that indicates whether to retrieve measures that have any of the dimensions
or only the measures that have all of the dimensions
. Valid constants are listed in the See Also section.MetadataManagerException
- If the connection fails during the execution of this method or if there is a problem retrieving objects from the server.MM.UNION
, MM.INTERSECTION
public MDDimension[] dimensionalityOfMeasures(MDMeasure[] measures, java.lang.String flags) throws MetadataManagerException
MM.UNION
as the flags
parameter. To retrieve only the dimensions that all of the measures have, pass MM.INTERSECTION
.measures
- The measures whose dimensions you want.flags
- A constant that indicates whether to include the dimensions that any of the measures
has or the dimensions that are common to all measures
. Valid constants are listed in the See Also section.MetadataManagerException
- If the connection fails during the execution of this method or if there is a problem retrieving objects from the server.MM.UNION
, MM.INTERSECTION
public MDDimension getMeasureDimension(java.lang.String dbString) throws MetadataManagerException
MetadataManager
. The measure dimension is the dimension that lists available measures.dbString
- The analytic workspace whose measure dimension you want.MetadataManagerException
- If the connection fails during the execution of this method or if there is a problem retrieving objects from the server.public void setMeasureDimensionLabels(PropertyBag propertyBag) throws MetadataManagerException
MetadataManager
.propertyBag
- PropertyBag
that contains labels settings.MetadataManagerException
- If there is a problem retrieving Measure Dimension object or if propertyBag
contains a property that is a nonlabel property, such as MM.OBJECT_NAME
.public void setLocale(java.util.Locale locale)
MetadataManager
uses.locale
- The Locale
for this MetadataManager
.public java.util.Locale getLocale()
MetadataManager
uses.MetadataManager
uses.public java.lang.String getXMLAsString() throws BIPersistenceException
MetadataManager
. This method is called by the persistence service when you save the MetadataManager
to the repository. Application developers should not need to call this method.getXMLAsString
in interface StringXMLizable
MetadataManager
.BIPersistenceException
- If a problem occurs in getting the XML.public boolean setXMLAsString(java.lang.String xml) throws BIPersistenceException
MetadataManager
. The persistence service calls this method when the MetadataManager
is restored from the repository. Application developers should not need to call this method.setXMLAsString
in interface StringXMLizable
name
- The XML representation of this MetadataManager
.true
the XML was successfully set, false
if not.BIPersistenceException
- If a problem occurs in setting the XML.public void addErrorHandler(ErrorHandler errHandler)
MetadataManager
. The MetadataManager
can have one and only one error handler. The default handler prints messages to the console.addErrorHandler
in interface ErrorHandlerCallback
errHandler
- The error handler to use.public void removeErrorHandler()
MetadataManager
. This method replaces the current error handler with a default error handler. The default error handler prints information to the console.removeErrorHandler
in interface ErrorHandlerCallback
public ObjectFactory getObjectFactory(boolean remoteFactory)
MetadataManager
uses to create new objects when loading XML from the BI Beans Catalog.remoteFactory
- true
to retrieve the middle-tier object factory, false
to retrieve an object factory for the client.MetadataManager
.public PropertyBag getAttributes(MDObject mdObj, java.lang.String[] properties) throws MetadataManagerException
mdObj
- The object whose attributes you want to get.properties
- An array of properties that you want.MetadataManagerException
- public void setDriverImpl(java.lang.String driverType, java.lang.String driverClassName)
driverType
- String associated with the MetadataDriver.driverImpl
- String representing the fully qualified class name of the MetadataDriver implementation. The MetadataManager bean will instantiate the class at attach time.public java.lang.String getDriverImpl(java.lang.String driverType)
driverType
- String associated with the MetadataDriver.public java.util.Hashtable listDriverImpl()
public void removeDriverImpl(java.lang.String driverType)
driverType
- String associated with the MetadataDriver that should be removed.
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |