|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.olap4j.MondrianOlap4jConnection
abstract class MondrianOlap4jConnection
Implementation of OlapConnection
for the Mondrian OLAP engine.
This class has sub-classes which implement JDBC 3.0 and JDBC 4.0 APIs;
it is instantiated using Factory.newConnection(mondrian.olap4j.MondrianOlap4jDriver, java.lang.String, java.util.Properties).
| Nested Class Summary | |
|---|---|
(package private) static class |
MondrianOlap4jConnection.Helper
Package-private helper class which encapsulates policies which are common throughout the driver. |
| Field Summary | |
|---|---|
(package private) Connection |
connection
Underlying mondrian connection. |
(package private) MondrianOlap4jDriver |
driver
|
(package private) Factory |
factory
|
(package private) MondrianOlap4jConnection.Helper |
helper
Handler for errors. |
(package private) static String |
LOCALDB_CATALOG_NAME
The name of the sole catalog. |
(package private) MondrianOlap4jSchema |
olap4jSchema
Current schema. |
(package private) Map<Schema,MondrianOlap4jSchema> |
schemaMap
Map from mondrian schema objects to olap4j schemas. |
| Fields inherited from interface java.sql.Connection |
|---|
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE |
| Constructor Summary | |
|---|---|
MondrianOlap4jConnection(Factory factory,
MondrianOlap4jDriver driver,
String url,
Properties info)
Creates an Olap4j connection to Mondrian. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.sql.Connection |
|---|
createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStruct, getClientInfo, getClientInfo, isValid, setClientInfo, setClientInfo |
| Field Detail |
|---|
final MondrianOlap4jConnection.Helper helper
Connection connection
MondrianOlap4jSchema olap4jSchema
final Map<Schema,MondrianOlap4jSchema> schemaMap
static final String LOCALDB_CATALOG_NAME
final Factory factory
final MondrianOlap4jDriver driver
| Constructor Detail |
|---|
MondrianOlap4jConnection(Factory factory,
MondrianOlap4jDriver driver,
String url,
Properties info)
throws SQLException
This method is intentionally package-protected. The public API
uses the traditional JDBC DriverManager.
See MondrianOlap4jDriver for more details.
factory - Factorydriver - Driverurl - Connect-string URLinfo - Additional properties
SQLException - if there is an error| Method Detail |
|---|
static boolean acceptsURL(String url)
public OlapStatement createStatement()
createStatement in interface ConnectioncreateStatement in interface OlapConnectionpublic ScenarioImpl createScenario()
createScenario in interface OlapConnectionpublic void setScenario(Scenario scenario)
setScenario in interface OlapConnectionpublic Scenario getScenario()
getScenario in interface OlapConnection
public PreparedStatement prepareStatement(String sql)
throws SQLException
prepareStatement in interface ConnectionSQLException
public CallableStatement prepareCall(String sql)
throws SQLException
prepareCall in interface ConnectionSQLException
public String nativeSQL(String sql)
throws SQLException
nativeSQL in interface ConnectionSQLException
public void setAutoCommit(boolean autoCommit)
throws SQLException
setAutoCommit in interface ConnectionSQLException
public boolean getAutoCommit()
throws SQLException
getAutoCommit in interface ConnectionSQLException
public void commit()
throws SQLException
commit in interface ConnectionSQLException
public void rollback()
throws SQLException
rollback in interface ConnectionSQLException
public void close()
throws SQLException
close in interface ConnectionSQLException
public boolean isClosed()
throws SQLException
isClosed in interface ConnectionSQLExceptionpublic OlapDatabaseMetaData getMetaData()
getMetaData in interface ConnectiongetMetaData in interface OlapConnectionpublic NamedList<Catalog> getCatalogs()
getCatalogs in interface OlapConnection
public void setReadOnly(boolean readOnly)
throws SQLException
setReadOnly in interface ConnectionSQLException
public boolean isReadOnly()
throws SQLException
isReadOnly in interface ConnectionSQLException
public void setCatalog(String catalog)
throws SQLException
setCatalog in interface ConnectionSQLException
public String getCatalog()
throws SQLException
getCatalog in interface ConnectionSQLException
public void setTransactionIsolation(int level)
throws SQLException
setTransactionIsolation in interface ConnectionSQLException
public int getTransactionIsolation()
throws SQLException
getTransactionIsolation in interface ConnectionSQLException
public SQLWarning getWarnings()
throws SQLException
getWarnings in interface ConnectionSQLException
public void clearWarnings()
throws SQLException
clearWarnings in interface ConnectionSQLException
public Statement createStatement(int resultSetType,
int resultSetConcurrency)
throws SQLException
createStatement in interface ConnectionSQLException
public PreparedStatement prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency)
throws SQLException
prepareStatement in interface ConnectionSQLException
public CallableStatement prepareCall(String sql,
int resultSetType,
int resultSetConcurrency)
throws SQLException
prepareCall in interface ConnectionSQLException
public Map<String,Class<?>> getTypeMap()
throws SQLException
getTypeMap in interface ConnectionSQLException
public void setTypeMap(Map<String,Class<?>> map)
throws SQLException
setTypeMap in interface ConnectionSQLException
public void setHoldability(int holdability)
throws SQLException
setHoldability in interface ConnectionSQLException
public int getHoldability()
throws SQLException
getHoldability in interface ConnectionSQLException
public Savepoint setSavepoint()
throws SQLException
setSavepoint in interface ConnectionSQLException
public Savepoint setSavepoint(String name)
throws SQLException
setSavepoint in interface ConnectionSQLException
public void rollback(Savepoint savepoint)
throws SQLException
rollback in interface ConnectionSQLException
public void releaseSavepoint(Savepoint savepoint)
throws SQLException
releaseSavepoint in interface ConnectionSQLException
public Statement createStatement(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
throws SQLException
createStatement in interface ConnectionSQLException
public PreparedStatement prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
throws SQLException
prepareStatement in interface ConnectionSQLException
public CallableStatement prepareCall(String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
throws SQLException
prepareCall in interface ConnectionSQLException
public PreparedStatement prepareStatement(String sql,
int autoGeneratedKeys)
throws SQLException
prepareStatement in interface ConnectionSQLException
public PreparedStatement prepareStatement(String sql,
int[] columnIndexes)
throws SQLException
prepareStatement in interface ConnectionSQLException
public PreparedStatement prepareStatement(String sql,
String[] columnNames)
throws SQLException
prepareStatement in interface ConnectionSQLException
public <T> T unwrap(Class<T> iface)
throws SQLException
unwrap in interface Wrapperunwrap in interface OlapWrapperSQLException
public boolean isWrapperFor(Class<?> iface)
throws SQLException
isWrapperFor in interface WrapperisWrapperFor in interface OlapWrapperSQLException
public PreparedOlapStatement prepareOlapStatement(String mdx)
throws OlapException
prepareOlapStatement in interface OlapConnectionOlapExceptionpublic MdxParserFactory getParserFactory()
getParserFactory in interface OlapConnection
public Schema getSchema()
throws OlapException
getSchema in interface OlapConnectionOlapExceptionMondrianOlap4jCube toOlap4j(Cube cube)
MondrianOlap4jDimension toOlap4j(Dimension dimension)
MondrianOlap4jSchema toOlap4j(Schema schema)
Type toOlap4j(Type type)
MondrianOlap4jMember toOlap4j(Member member)
MondrianOlap4jLevel toOlap4j(Level level)
MondrianOlap4jHierarchy toOlap4j(Hierarchy hierarchy)
Type[] toOlap4j(Type[] mondrianTypes)
public static Map<String,String> toMap(Properties properties)
properties - Properties
MondrianOlap4jNamedSet toOlap4j(Cube cube,
NamedSet namedSet)
ParseTreeNode toOlap4j(Exp exp)
SelectNode toOlap4j(Query query)
public void setLocale(Locale locale)
setLocale in interface OlapConnectionpublic Locale getLocale()
getLocale in interface OlapConnection
public void setRoleName(String roleName)
throws OlapException
setRoleName in interface OlapConnectionOlapExceptionpublic String getRoleName()
getRoleName in interface OlapConnection
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||