public interface ConnectionService
You create a ConnectionService instance by using
SlContext.getService(Class).
| Modifier and Type | Method and Description |
|---|---|
void |
changeDriver(OlapConnection olapConnection,
java.lang.String dbms,
java.lang.String networkLayer)
Changes the driver of an OLAP connection.
|
void |
changeDriver(RelationalConnection relationalConnection,
java.lang.String dbms,
java.lang.String networkLayer)
Changes the driver of a relational connection.
|
IStatus |
testConnection(Connection connection,
boolean localTest)
Tests the connection.
|
IStatus testConnection(Connection connection, boolean localTest)
Only the local test is available. If the localTest parameter is false, an exception is
raised.
Only the following connections can be tested:
If theconnection parameter has an other type, an exception is raised.
connection - The connection to testlocalTest - true means that the test uses the database drivers from the local machine.
false will mean that the test
uses database drivers deployed on the CMS server attached to the context but this is not implemented
yet. See CmsSessionService.IStatus objectvoid changeDriver(RelationalConnection relationalConnection, java.lang.String dbms, java.lang.String networkLayer)
relationalConnection - The relational connection whose driver will be changeddbms - The underlying database of the connection
For example, set the parameter value to MS SQL Server 2008 to create a connection to the
MS SQL Server 2008 database. See the Semantic Layer SDK Java Developer Guide for more
information.
networkLayer - The underlying network layer of the connection
For example, set the parameter value to JDBC Drivers to create a JDBC connection. See the
Semantic Layer SDK Java Developer Guide for more information.
void changeDriver(OlapConnection olapConnection, java.lang.String dbms, java.lang.String networkLayer)
olapConnection - The OLAP connection whose driver will be changeddbms - The underlying database of the connection
For example, set the parameter value to Microsoft Analysis Services 2008 to create a
connection to the Microsoft Analysis Services 2008 database. See the Semantic Layer SDK Java
Developer Guide for more information.
networkLayer - The underlying network layer of the connection
For example, set the parameter value to XMLA to create an XMLA connection. See the
Semantic Layer SDK Java Developer Guide for more information.