|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.citra.pivot.olap.mdx.MDXDataSource
public abstract class MDXDataSource
MDXDataSource is a DataSource that connects to a database that uses the MDX query language. When executing an OlapSelection, this is first converted to the MDX statement, which is then passed to the database, and the result from the query is returned. MDXResolver is used for that purpose.
Field Summary | |
---|---|
protected MDXResolver |
resolver
|
protected OlapSchema |
schema
|
Constructor Summary | |
---|---|
MDXDataSource()
Constructs a MDXDataSource. |
Method Summary | |
---|---|
void |
closeConnection(Connection connection)
Closes and releases a connection. |
Connection |
createConnection()
Returns a new connection to the datasource. |
protected abstract MDXResolver |
createResolver()
Creates and returns an instance of the class responsible for resolving selections. |
protected abstract OlapSchema |
createSchema()
Creates and returns the schema. |
Object |
executeSelection(OlapSelection selection,
Connection connection)
Executes the selection using the supplied connection object. |
boolean |
getLogging()
Sets debugging on/off. |
MDXResolver |
getResolver()
Returns the class responsible for resolving selections. |
OlapSchema |
getSchema()
Retrieves the schema of the datasource. |
void |
setLogging(boolean logging)
Sets logging on/off. |
void |
setResolver(MDXResolver resolver)
Assigns the class responsible for resolving selections. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected MDXResolver resolver
protected OlapSchema schema
Constructor Detail |
---|
public MDXDataSource()
Method Detail |
---|
public void closeConnection(Connection connection) throws DataSourceException
connection
- the connection to close
DataSourceException
public Connection createConnection()
createConnection
in interface DataSource
protected abstract MDXResolver createResolver()
protected abstract OlapSchema createSchema()
public Object executeSelection(OlapSelection selection, Connection connection) throws DataSourceException
selection
- the selection to executeconnection
- the connection to use
DataSourceException
public boolean getLogging()
public MDXResolver getResolver()
public OlapSchema getSchema()
getSchema
in interface DataSource
public void setLogging(boolean logging)
logging
- true, if logging is enabled, false otherwisepublic void setResolver(MDXResolver resolver)
resolver
- the resolver to assign
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |