Package mondrian.olap4j
Interface Factory
-
- All Known Implementing Classes:
FactoryJdbc41Impl
interface Factory
Instantiates classes to implement the olap4j API against the Mondrian OLAP engine.There are implementations for JDBC 3.0 (which occurs in JDK 1.5) and JDBC 4.0 (which occurs in JDK 1.6).
- Since:
- Jun 14, 2007
- Author:
- jhyde
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MondrianOlap4jCellSet
newCellSet(MondrianOlap4jStatement olap4jStatement)
Creates a cell set.java.sql.Connection
newConnection(MondrianOlap4jDriver driver, java.lang.String url, java.util.Properties info)
Creates a connection.MondrianOlap4jDatabaseMetaData
newDatabaseMetaData(MondrianOlap4jConnection olap4jConnection, RolapConnection mondrianConnection)
Creates a metadata object.EmptyResultSet
newEmptyResultSet(MondrianOlap4jConnection olap4jConnection)
Creates an empty result set.java.sql.ResultSet
newFixedResultSet(MondrianOlap4jConnection olap4jConnection, java.util.List<java.lang.String> headerList, java.util.List<java.util.List<java.lang.Object>> rowList)
Creates a result set with a fixed set of rows.MondrianOlap4jPreparedStatement
newPreparedStatement(java.lang.String mdx, MondrianOlap4jConnection olap4jConnection)
Creates a prepared statement.MondrianOlap4jStatement
newStatement(MondrianOlap4jConnection olap4jConnection)
Creates a statement.
-
-
-
Method Detail
-
newConnection
java.sql.Connection newConnection(MondrianOlap4jDriver driver, java.lang.String url, java.util.Properties info) throws java.sql.SQLException
Creates a connection.- Parameters:
driver
- Driverurl
- URL of serverinfo
- Properties defining the connection- Returns:
- Connection
- Throws:
java.sql.SQLException
- on error
-
newEmptyResultSet
EmptyResultSet newEmptyResultSet(MondrianOlap4jConnection olap4jConnection)
Creates an empty result set.- Parameters:
olap4jConnection
- Connection- Returns:
- Result set
-
newFixedResultSet
java.sql.ResultSet newFixedResultSet(MondrianOlap4jConnection olap4jConnection, java.util.List<java.lang.String> headerList, java.util.List<java.util.List<java.lang.Object>> rowList)
Creates a result set with a fixed set of rows.- Parameters:
olap4jConnection
- ConnectionheaderList
- Column headersrowList
- Row values- Returns:
- Result set
-
newCellSet
MondrianOlap4jCellSet newCellSet(MondrianOlap4jStatement olap4jStatement)
Creates a cell set.- Parameters:
olap4jStatement
- Statement- Returns:
- Cell set
-
newStatement
MondrianOlap4jStatement newStatement(MondrianOlap4jConnection olap4jConnection)
Creates a statement.- Parameters:
olap4jConnection
- Connection- Returns:
- Statement
-
newPreparedStatement
MondrianOlap4jPreparedStatement newPreparedStatement(java.lang.String mdx, MondrianOlap4jConnection olap4jConnection) throws OlapException
Creates a prepared statement.- Parameters:
mdx
- MDX query textolap4jConnection
- Connection- Returns:
- Prepared statement
- Throws:
OlapException
- on database error
-
newDatabaseMetaData
MondrianOlap4jDatabaseMetaData newDatabaseMetaData(MondrianOlap4jConnection olap4jConnection, RolapConnection mondrianConnection)
Creates a metadata object.- Parameters:
olap4jConnection
- ConnectionmondrianConnection
- Mondrian connection- Returns:
- Metadata object
-
-