com.sas.dataselectors
Class MetadataProvider

com.sas.dataselectors.MetadataProvider
All Implemented Interfaces:
MetadataProviderInterface

Deprecated. Do not use this class. IQ has added methods in BusinessQueryOLAPUtil class to get the com.sas.storage.olap.MetadataInterface instances from a BusinessModel or BusinessQuery. It is important to release the instanceof Metadata retrieved from BusinessQueryOLAPUtil.

public class MetadataProvider
implements MetadataProviderInterface

This class provides access to an OLAP Metadata instance while tying up as few resources as possible.


Field Summary
protected  java.lang.Object model
          Deprecated. The BusinessModel that holds the connection information for the creation of the MetadataInterface instance.
 
Constructor Summary
MetadataProvider(java.lang.Object model)
          Deprecated. Creates a new MetadataProvider with the specified BusinessModel.
 
Method Summary
 MetadataInterface getMetadata()
          Deprecated.  
static MetadataInterface getMetadata(com.sas.iquery.metadata.business.BusinessModel model)
          Deprecated. Returns a MetadataInterface instance that should connect with the first DataSource in the given BusinessModel.
static MetadataInterface getMetadata(com.sas.iquery.metadata.business.DataSelection model)
          Deprecated. Returns a MetadataInterface instance that should connect with the first DataSource in the given BusinessModel.
static MetadataInterface getMetadata(com.sas.iquery.metadata.business.DataSelection dataSelection, com.sas.metadata.remote.LogicalServer logicalServer, com.sas.iquery.dataretrieval.RetrievalPolicy retrievalPolicy)
          Deprecated. Returns an instance of MetadataInterface based on the specified parameters.
static MetadataInterface getMetadata(com.sas.iom.SASMDX.ISession iSession)
          Deprecated. Do not use this class to construct com.sas.storage.olap.MetadataInterface
static MetadataInterface getMetadata(java.lang.Object model)
          Deprecated. Examines the given object and attempts to return a MetadataInterface associated with it.
 java.lang.Object getModel()
          Deprecated. Returns the model used by this MetadataProvider
 void setModel(java.lang.Object model)
          Deprecated. Sets the model
 

Field Detail

model

protected transient java.lang.Object model
Deprecated. 
The BusinessModel that holds the connection information for the creation of the MetadataInterface instance.

Constructor Detail

MetadataProvider

public MetadataProvider(java.lang.Object model)
Deprecated. 
Creates a new MetadataProvider with the specified BusinessModel.

Parameters:
businessModel - the BusinessModel holding the connection info
Method Detail

setModel

public void setModel(java.lang.Object model)
Deprecated. 
Sets the model

Parameters:
model -

getModel

public java.lang.Object getModel()
Deprecated. 
Returns the model used by this MetadataProvider

Returns:
the current model

getMetadata

public MetadataInterface getMetadata()
Deprecated. 
Specified by:
getMetadata in interface MetadataProviderInterface

getMetadata

public static MetadataInterface getMetadata(java.lang.Object model)
Deprecated. 
Examines the given object and attempts to return a MetadataInterface associated with it.

Parameters:
model - the model to examine
Returns:
a MetadataInterface associated with the given model or null if one could not be established

getMetadata

public static MetadataInterface getMetadata(com.sas.iquery.metadata.business.BusinessModel model)
                                     throws com.sas.iquery.metadata.MetadataException
Deprecated. 
Returns a MetadataInterface instance that should connect with the first DataSource in the given BusinessModel.

Parameters:
model - the business model to examine
Returns:
the metadata connection or null if none was available.
Throws:
com.sas.iquery.metadata.MetadataException - for any unrecoverable errors that occur while connecting with the OLAP metadata server

getMetadata

public static MetadataInterface getMetadata(com.sas.iquery.metadata.business.DataSelection model)
                                     throws com.sas.iquery.metadata.MetadataException
Deprecated. 
Returns a MetadataInterface instance that should connect with the first DataSource in the given BusinessModel.

Parameters:
model - the business model to examine
Returns:
the metadata connection or null if none was available.
Throws:
com.sas.iquery.metadata.MetadataException - for any unrecoverable errors that occur while connecting with the OLAP metadata server

getMetadata

public static MetadataInterface getMetadata(com.sas.iquery.metadata.business.DataSelection dataSelection,
                                            com.sas.metadata.remote.LogicalServer logicalServer,
                                            com.sas.iquery.dataretrieval.RetrievalPolicy retrievalPolicy)
                                     throws java.rmi.RemoteException
Deprecated. 
Returns an instance of MetadataInterface based on the specified parameters. The DataSelection is processed to acquire a services session and combined with the connection information from the LogicalServer to produce the MetadataInterface object.

Parameters:
dataSelection - The DataSelection to process
logicalServer - The LogicalServer to connect to
retrievalPolicy - The RetrievalPolicy to use w/ the connection
Returns:
the MetadataInterface instance or null if one could not be established
Throws:
java.rmi.RemoteException - if a problem occurs while retrieving the ConnectionRecycler

getMetadata

public static MetadataInterface getMetadata(com.sas.iom.SASMDX.ISession iSession)
                                     throws OLAPException
Deprecated. Do not use this class to construct com.sas.storage.olap.MetadataInterface

Returns a MetadataInterface instance associated with the given ISession.

Parameters:
iSession - the ISession object holding the connection information
Returns:
the MetadataInterface instance or null if one could not be created
Throws:
OLAPException - if any problems occur while retrieving the object



Copyright © 2009 SAS Institute Inc. All Rights Reserved.