public abstract class MondrianOlap4jConnection extends Object implements org.olap4j.OlapConnection
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(MondrianOlap4jDriver, String, java.util.Properties).
This class is public, to allow access to the
setRoleNames(java.util.List) method before it is added to olap4j
version 2.0. This may change without notice. Code should not rely on
this class being public.
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE| Modifier and Type | Method and Description |
|---|---|
void |
clearWarnings() |
void |
close() |
void |
commit() |
ScenarioImpl |
createScenario() |
org.olap4j.OlapStatement |
createStatement() |
Statement |
createStatement(int resultSetType,
int resultSetConcurrency) |
Statement |
createStatement(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) |
boolean |
getAutoCommit() |
List<String> |
getAvailableRoleNames() |
String |
getCatalog() |
String |
getDatabase() |
int |
getHoldability() |
Locale |
getLocale() |
org.olap4j.OlapDatabaseMetaData |
getMetaData() |
org.olap4j.metadata.Catalog |
getOlapCatalog() |
org.olap4j.metadata.NamedList<org.olap4j.metadata.Catalog> |
getOlapCatalogs() |
org.olap4j.metadata.Database |
getOlapDatabase() |
org.olap4j.metadata.NamedList<org.olap4j.metadata.Database> |
getOlapDatabases() |
org.olap4j.metadata.Schema |
getOlapSchema() |
org.olap4j.metadata.NamedList<org.olap4j.metadata.Schema> |
getOlapSchemas() |
org.olap4j.mdx.parser.MdxParserFactory |
getParserFactory() |
String |
getRoleName() |
List<String> |
getRoleNames()
Returns a list of the current role names.
|
org.olap4j.Scenario |
getScenario() |
String |
getSchema() |
int |
getTransactionIsolation() |
Map<String,Class<?>> |
getTypeMap() |
SQLWarning |
getWarnings() |
boolean |
isClosed() |
boolean |
isReadOnly() |
boolean |
isWrapperFor(Class<?> iface) |
String |
nativeSQL(String sql) |
CallableStatement |
prepareCall(String sql) |
CallableStatement |
prepareCall(String sql,
int resultSetType,
int resultSetConcurrency) |
CallableStatement |
prepareCall(String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) |
org.olap4j.PreparedOlapStatement |
prepareOlapStatement(String mdx) |
PreparedStatement |
prepareStatement(String sql) |
PreparedStatement |
prepareStatement(String sql,
int autoGeneratedKeys) |
PreparedStatement |
prepareStatement(String sql,
int[] columnIndexes) |
PreparedStatement |
prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency) |
PreparedStatement |
prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) |
PreparedStatement |
prepareStatement(String sql,
String[] columnNames) |
void |
releaseSavepoint(Savepoint savepoint) |
void |
rollback() |
void |
rollback(Savepoint savepoint) |
void |
setAutoCommit(boolean autoCommit) |
void |
setCatalog(String catalogName) |
void |
setDatabase(String databaseName) |
void |
setHoldability(int holdability) |
void |
setLocale(Locale locale) |
void |
setPreferList(boolean preferList) |
void |
setReadOnly(boolean readOnly) |
void |
setRoleName(String roleName) |
void |
setRoleNames(List<String> roleNames)
Set the active role(s) in this connection based on a list of role
names.
|
Savepoint |
setSavepoint() |
Savepoint |
setSavepoint(String name) |
void |
setScenario(org.olap4j.Scenario scenario) |
void |
setSchema(String schemaName) |
void |
setTransactionIsolation(int level) |
void |
setTypeMap(Map<String,Class<?>> map) |
<T> T |
unwrap(Class<T> iface) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabort, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStruct, getClientInfo, getClientInfo, getNetworkTimeout, isValid, setClientInfo, setClientInfo, setNetworkTimeoutpublic org.olap4j.OlapStatement createStatement()
createStatement in interface ConnectioncreateStatement in interface org.olap4j.OlapConnectionpublic ScenarioImpl createScenario() throws org.olap4j.OlapException
createScenario in interface org.olap4j.OlapConnectionorg.olap4j.OlapExceptionpublic void setScenario(org.olap4j.Scenario scenario)
throws org.olap4j.OlapException
setScenario in interface org.olap4j.OlapConnectionorg.olap4j.OlapExceptionpublic org.olap4j.Scenario getScenario()
throws org.olap4j.OlapException
getScenario in interface org.olap4j.OlapConnectionorg.olap4j.OlapExceptionpublic PreparedStatement prepareStatement(String sql) throws SQLException
prepareStatement in interface ConnectionSQLExceptionpublic CallableStatement prepareCall(String sql) throws SQLException
prepareCall in interface ConnectionSQLExceptionpublic String nativeSQL(String sql) throws SQLException
nativeSQL in interface ConnectionSQLExceptionpublic void setAutoCommit(boolean autoCommit)
throws SQLException
setAutoCommit in interface ConnectionSQLExceptionpublic boolean getAutoCommit()
throws SQLException
getAutoCommit in interface ConnectionSQLExceptionpublic void commit()
throws SQLException
commit in interface ConnectionSQLExceptionpublic void rollback()
throws SQLException
rollback in interface ConnectionSQLExceptionpublic void close()
throws SQLException
close in interface AutoCloseableclose in interface ConnectionSQLExceptionpublic boolean isClosed()
throws SQLException
isClosed in interface ConnectionSQLExceptionpublic org.olap4j.OlapDatabaseMetaData getMetaData()
getMetaData in interface ConnectiongetMetaData in interface org.olap4j.OlapConnectionpublic void setReadOnly(boolean readOnly)
throws SQLException
setReadOnly in interface ConnectionSQLExceptionpublic boolean isReadOnly()
throws SQLException
isReadOnly in interface ConnectionSQLExceptionpublic void setSchema(String schemaName) throws org.olap4j.OlapException
setSchema in interface ConnectionsetSchema in interface org.olap4j.OlapConnectionorg.olap4j.OlapExceptionpublic String getSchema() throws org.olap4j.OlapException
getSchema in interface ConnectiongetSchema in interface org.olap4j.OlapConnectionorg.olap4j.OlapExceptionpublic org.olap4j.metadata.Schema getOlapSchema()
throws org.olap4j.OlapException
getOlapSchema in interface org.olap4j.OlapConnectionorg.olap4j.OlapExceptionpublic org.olap4j.metadata.NamedList<org.olap4j.metadata.Schema> getOlapSchemas()
throws org.olap4j.OlapException
getOlapSchemas in interface org.olap4j.OlapConnectionorg.olap4j.OlapExceptionpublic void setCatalog(String catalogName) throws org.olap4j.OlapException
setCatalog in interface ConnectionsetCatalog in interface org.olap4j.OlapConnectionorg.olap4j.OlapExceptionpublic String getCatalog() throws org.olap4j.OlapException
getCatalog in interface ConnectiongetCatalog in interface org.olap4j.OlapConnectionorg.olap4j.OlapExceptionpublic org.olap4j.metadata.Catalog getOlapCatalog()
throws org.olap4j.OlapException
getOlapCatalog in interface org.olap4j.OlapConnectionorg.olap4j.OlapExceptionpublic org.olap4j.metadata.NamedList<org.olap4j.metadata.Catalog> getOlapCatalogs()
throws org.olap4j.OlapException
getOlapCatalogs in interface org.olap4j.OlapConnectionorg.olap4j.OlapExceptionpublic void setDatabase(String databaseName) throws org.olap4j.OlapException
setDatabase in interface org.olap4j.OlapConnectionorg.olap4j.OlapExceptionpublic String getDatabase() throws org.olap4j.OlapException
getDatabase in interface org.olap4j.OlapConnectionorg.olap4j.OlapExceptionpublic org.olap4j.metadata.Database getOlapDatabase()
throws org.olap4j.OlapException
getOlapDatabase in interface org.olap4j.OlapConnectionorg.olap4j.OlapExceptionpublic org.olap4j.metadata.NamedList<org.olap4j.metadata.Database> getOlapDatabases()
throws org.olap4j.OlapException
getOlapDatabases in interface org.olap4j.OlapConnectionorg.olap4j.OlapExceptionpublic void setTransactionIsolation(int level)
throws SQLException
setTransactionIsolation in interface ConnectionSQLExceptionpublic int getTransactionIsolation()
throws SQLException
getTransactionIsolation in interface ConnectionSQLExceptionpublic SQLWarning getWarnings() throws SQLException
getWarnings in interface ConnectionSQLExceptionpublic void clearWarnings()
throws SQLException
clearWarnings in interface ConnectionSQLExceptionpublic Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException
createStatement in interface ConnectionSQLExceptionpublic PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
prepareStatement in interface ConnectionSQLExceptionpublic CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
prepareCall in interface ConnectionSQLExceptionpublic Map<String,Class<?>> getTypeMap() throws SQLException
getTypeMap in interface ConnectionSQLExceptionpublic void setTypeMap(Map<String,Class<?>> map) throws SQLException
setTypeMap in interface ConnectionSQLExceptionpublic void setHoldability(int holdability)
throws SQLException
setHoldability in interface ConnectionSQLExceptionpublic int getHoldability()
throws SQLException
getHoldability in interface ConnectionSQLExceptionpublic Savepoint setSavepoint() throws SQLException
setSavepoint in interface ConnectionSQLExceptionpublic Savepoint setSavepoint(String name) throws SQLException
setSavepoint in interface ConnectionSQLExceptionpublic void rollback(Savepoint savepoint) throws SQLException
rollback in interface ConnectionSQLExceptionpublic void releaseSavepoint(Savepoint savepoint) throws SQLException
releaseSavepoint in interface ConnectionSQLExceptionpublic Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
createStatement in interface ConnectionSQLExceptionpublic PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
prepareStatement in interface ConnectionSQLExceptionpublic CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
prepareCall in interface ConnectionSQLExceptionpublic PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException
prepareStatement in interface ConnectionSQLExceptionpublic PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException
prepareStatement in interface ConnectionSQLExceptionpublic PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException
prepareStatement in interface ConnectionSQLExceptionpublic <T> T unwrap(Class<T> iface) throws SQLException
unwrap in interface Wrapperunwrap in interface org.olap4j.OlapWrapperSQLExceptionpublic boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor in interface WrapperisWrapperFor in interface org.olap4j.OlapWrapperSQLExceptionpublic org.olap4j.PreparedOlapStatement prepareOlapStatement(String mdx) throws org.olap4j.OlapException
prepareOlapStatement in interface org.olap4j.OlapConnectionorg.olap4j.OlapExceptionpublic org.olap4j.mdx.parser.MdxParserFactory getParserFactory()
getParserFactory in interface org.olap4j.OlapConnectionpublic void setLocale(Locale locale)
setLocale in interface org.olap4j.OlapConnectionpublic Locale getLocale()
getLocale in interface org.olap4j.OlapConnectionpublic void setRoleName(String roleName) throws org.olap4j.OlapException
setRoleName in interface org.olap4j.OlapConnectionorg.olap4j.OlapExceptionpublic void setRoleNames(List<String> roleNames) throws org.olap4j.OlapException
Set the active role(s) in this connection based on a list of role names.
The list may be not be empty. Each role name must be not-null and the name of a valid role for the current user.
This method is not part of the olap4j-1.x API. It may be included
in olap4j-2.0. If you want to call this method on a
OlapConnection, use unwrap(java.lang.Class<T>) to get the underlying
Mondrian connection.
roleNames - List of role namesorg.olap4j.OlapExceptiongetRoleNames()public String getRoleName()
getRoleName in interface org.olap4j.OlapConnectionpublic List<String> getRoleNames()
This method is not part of the olap4j-1.x API. It may be included
in olap4j-2.0. If you want to call this method on a
OlapConnection, use unwrap(java.lang.Class<T>) to get the underlying
Mondrian connection.
public List<String> getAvailableRoleNames() throws org.olap4j.OlapException
getAvailableRoleNames in interface org.olap4j.OlapConnectionorg.olap4j.OlapExceptionpublic void setPreferList(boolean preferList)
Copyright © 2019 Hitachi Vantara. All rights reserved.