com.sap.sl.sdk.authoring.connection
Interface ConnectionService


public interface ConnectionService

Defines the connection services.

You create a ConnectionService instance by using SlContext.getService(Class).


Method Summary
 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.
 

Method Detail

testConnection

IStatus testConnection(Connection connection,
                       boolean localTest)
Tests the connection.

Only the local test is available. If the localTest parameter is false, an exception is raised.

Only the following connections can be tested:

If the connection parameter has an other type, an exception is raised.

Parameters:
connection - The connection to test
localTest - 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.
Returns:
An IStatus object
Since:
14.0.5

changeDriver

void changeDriver(RelationalConnection relationalConnection,
                  java.lang.String dbms,
                  java.lang.String networkLayer)
Changes the driver of a relational connection.

Parameters:
relationalConnection - The relational connection whose driver will be changed
dbms - 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.

Since:
14.0.5

changeDriver

void changeDriver(OlapConnection olapConnection,
                  java.lang.String dbms,
                  java.lang.String networkLayer)
Changes the driver of an OLAP connection.

Parameters:
olapConnection - The OLAP connection whose driver will be changed
dbms - 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.

Since:
14.0.5


© Copyright 2016 SAP SE or an SAP affiliate company. All rights reserved.