Package mondrian.olap4j
Class FactoryJdbc41Impl
- java.lang.Object
-
- mondrian.olap4j.FactoryJdbc41Impl
-
-
Constructor Summary
Constructors Constructor Description FactoryJdbc41Impl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MondrianOlap4jCellSet
newCellSet(MondrianOlap4jStatement olap4jStatement)
Creates a cell set.Connection
newConnection(MondrianOlap4jDriver driver, String url, Properties info)
Creates a connection.MondrianOlap4jDatabaseMetaData
newDatabaseMetaData(MondrianOlap4jConnection olap4jConnection, RolapConnection mondrianConnection)
Creates a metadata object.EmptyResultSet
newEmptyResultSet(MondrianOlap4jConnection olap4jConnection)
Creates an empty result set.ResultSet
newFixedResultSet(MondrianOlap4jConnection olap4jConnection, List<String> headerList, List<List<Object>> rowList)
Creates a result set with a fixed set of rows.MondrianOlap4jPreparedStatement
newPreparedStatement(String mdx, MondrianOlap4jConnection olap4jConnection)
Creates a prepared statement.MondrianOlap4jStatement
newStatement(MondrianOlap4jConnection olap4jConnection)
Creates a statement.
-
-
-
Method Detail
-
newConnection
public Connection newConnection(MondrianOlap4jDriver driver, String url, Properties info) throws SQLException
Description copied from interface:Factory
Creates a connection.- Specified by:
newConnection
in interfaceFactory
- Parameters:
driver
- Driverurl
- URL of serverinfo
- Properties defining the connection- Returns:
- Connection
- Throws:
SQLException
- on error
-
newEmptyResultSet
public EmptyResultSet newEmptyResultSet(MondrianOlap4jConnection olap4jConnection)
Description copied from interface:Factory
Creates an empty result set.- Specified by:
newEmptyResultSet
in interfaceFactory
- Parameters:
olap4jConnection
- Connection- Returns:
- Result set
-
newFixedResultSet
public ResultSet newFixedResultSet(MondrianOlap4jConnection olap4jConnection, List<String> headerList, List<List<Object>> rowList)
Description copied from interface:Factory
Creates a result set with a fixed set of rows.- Specified by:
newFixedResultSet
in interfaceFactory
- Parameters:
olap4jConnection
- ConnectionheaderList
- Column headersrowList
- Row values- Returns:
- Result set
-
newCellSet
public MondrianOlap4jCellSet newCellSet(MondrianOlap4jStatement olap4jStatement)
Description copied from interface:Factory
Creates a cell set.- Specified by:
newCellSet
in interfaceFactory
- Parameters:
olap4jStatement
- Statement- Returns:
- Cell set
-
newStatement
public MondrianOlap4jStatement newStatement(MondrianOlap4jConnection olap4jConnection)
Description copied from interface:Factory
Creates a statement.- Specified by:
newStatement
in interfaceFactory
- Parameters:
olap4jConnection
- Connection- Returns:
- Statement
-
newPreparedStatement
public MondrianOlap4jPreparedStatement newPreparedStatement(String mdx, MondrianOlap4jConnection olap4jConnection) throws OlapException
Description copied from interface:Factory
Creates a prepared statement.- Specified by:
newPreparedStatement
in interfaceFactory
- Parameters:
mdx
- MDX query textolap4jConnection
- Connection- Returns:
- Prepared statement
- Throws:
OlapException
- on database error
-
newDatabaseMetaData
public MondrianOlap4jDatabaseMetaData newDatabaseMetaData(MondrianOlap4jConnection olap4jConnection, RolapConnection mondrianConnection)
Description copied from interface:Factory
Creates a metadata object.- Specified by:
newDatabaseMetaData
in interfaceFactory
- Parameters:
olap4jConnection
- ConnectionmondrianConnection
- Mondrian connection- Returns:
- Metadata object
-
-