class FactoryJdbc4Impl extends Object implements Factory
Factory
for JDBC 4.0.Constructor and Description |
---|
FactoryJdbc4Impl() |
Modifier and Type | Method and 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.
|
FactoryJdbc4Impl()
public Connection newConnection(MondrianOlap4jDriver driver, String url, Properties info) throws SQLException
Factory
newConnection
in interface Factory
SQLException
- on errordriver
- Driverurl
- URL of serverinfo
- Properties defining the connectionpublic EmptyResultSet newEmptyResultSet(MondrianOlap4jConnection olap4jConnection)
Factory
newEmptyResultSet
in interface Factory
olap4jConnection
- Connectionpublic ResultSet newFixedResultSet(MondrianOlap4jConnection olap4jConnection, List<String> headerList, List<List<Object>> rowList)
Factory
newFixedResultSet
in interface Factory
olap4jConnection
- ConnectionheaderList
- Column headersrowList
- Row valuespublic MondrianOlap4jCellSet newCellSet(MondrianOlap4jStatement olap4jStatement)
Factory
newCellSet
in interface Factory
olap4jStatement
- Statementpublic MondrianOlap4jStatement newStatement(MondrianOlap4jConnection olap4jConnection)
Factory
newStatement
in interface Factory
olap4jConnection
- Connectionpublic MondrianOlap4jPreparedStatement newPreparedStatement(String mdx, MondrianOlap4jConnection olap4jConnection) throws OlapException
Factory
newPreparedStatement
in interface Factory
OlapException
- on database errormdx
- MDX query textolap4jConnection
- Connectionpublic MondrianOlap4jDatabaseMetaData newDatabaseMetaData(MondrianOlap4jConnection olap4jConnection, RolapConnection mondrianConnection)
Factory
newDatabaseMetaData
in interface Factory
olap4jConnection
- ConnectionmondrianConnection
- Mondrian connection