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 MondrianOlap4jCellSetnewCellSet(MondrianOlap4jStatement olap4jStatement)Creates a cell set.ConnectionnewConnection(MondrianOlap4jDriver driver, String url, Properties info)Creates a connection.MondrianOlap4jDatabaseMetaDatanewDatabaseMetaData(MondrianOlap4jConnection olap4jConnection, RolapConnection mondrianConnection)Creates a metadata object.EmptyResultSetnewEmptyResultSet(MondrianOlap4jConnection olap4jConnection)Creates an empty result set.ResultSetnewFixedResultSet(MondrianOlap4jConnection olap4jConnection, List<String> headerList, List<List<Object>> rowList)Creates a result set with a fixed set of rows.MondrianOlap4jPreparedStatementnewPreparedStatement(String mdx, MondrianOlap4jConnection olap4jConnection)Creates a prepared statement.MondrianOlap4jStatementnewStatement(MondrianOlap4jConnection olap4jConnection)Creates a statement.
-
-
-
Method Detail
-
newConnection
public Connection newConnection(MondrianOlap4jDriver driver, String url, Properties info) throws SQLException
Description copied from interface:FactoryCreates a connection.- Specified by:
newConnectionin 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:FactoryCreates an empty result set.- Specified by:
newEmptyResultSetin interfaceFactory- Parameters:
olap4jConnection- Connection- Returns:
- Result set
-
newFixedResultSet
public ResultSet newFixedResultSet(MondrianOlap4jConnection olap4jConnection, List<String> headerList, List<List<Object>> rowList)
Description copied from interface:FactoryCreates a result set with a fixed set of rows.- Specified by:
newFixedResultSetin interfaceFactory- Parameters:
olap4jConnection- ConnectionheaderList- Column headersrowList- Row values- Returns:
- Result set
-
newCellSet
public MondrianOlap4jCellSet newCellSet(MondrianOlap4jStatement olap4jStatement)
Description copied from interface:FactoryCreates a cell set.- Specified by:
newCellSetin interfaceFactory- Parameters:
olap4jStatement- Statement- Returns:
- Cell set
-
newStatement
public MondrianOlap4jStatement newStatement(MondrianOlap4jConnection olap4jConnection)
Description copied from interface:FactoryCreates a statement.- Specified by:
newStatementin interfaceFactory- Parameters:
olap4jConnection- Connection- Returns:
- Statement
-
newPreparedStatement
public MondrianOlap4jPreparedStatement newPreparedStatement(String mdx, MondrianOlap4jConnection olap4jConnection) throws OlapException
Description copied from interface:FactoryCreates a prepared statement.- Specified by:
newPreparedStatementin 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:FactoryCreates a metadata object.- Specified by:
newDatabaseMetaDatain interfaceFactory- Parameters:
olap4jConnection- ConnectionmondrianConnection- Mondrian connection- Returns:
- Metadata object
-
-