public class PentahoConnectionFactory extends Object
Constructor and Description |
---|
PentahoConnectionFactory() |
Modifier and Type | Method and Description |
---|---|
static org.pentaho.commons.connection.IPentahoConnection |
getConnection(String datasourceType,
IPentahoSession session,
ILogger logger) |
static org.pentaho.commons.connection.IPentahoConnection |
getConnection(String datasourceType,
Properties properties,
IPentahoSession session,
ILogger logger) |
static org.pentaho.commons.connection.IPentahoConnection |
getConnection(String datasourceType,
String connectStr,
IPentahoSession session,
ILogger logger) |
static org.pentaho.commons.connection.IPentahoConnection |
getConnection(String datasourceType,
String driver,
String location,
String userName,
String password,
IPentahoSession session,
ILogger logger) |
public static org.pentaho.commons.connection.IPentahoConnection getConnection(String datasourceType, IPentahoSession session, ILogger logger)
datasourceType
- valid type is defined as SQL_DATASOURCE or MDX_DATASOURCEpublic static org.pentaho.commons.connection.IPentahoConnection getConnection(String datasourceType, String connectStr, IPentahoSession session, ILogger logger)
datasourceType
- valid type is defined as SQL_DATASOURCE or MDX_DATASOURCEconnectStr
- - In the case of SQL_DATASOURCE, the name of the JNDI connection to use. Or in the case of
MDX_DATASOURCE a properly formatted connection String.public static org.pentaho.commons.connection.IPentahoConnection getConnection(String datasourceType, String driver, String location, String userName, String password, IPentahoSession session, ILogger logger)
datasourceType
- valid types are defined as SQL_DATASOURCE, MDX_DATASOURCE and XML_DATASOURCElocation
- - A string specfic to the location and type of datasource. For an SQL instance it would be the URL
string required by the implementing driver.userName
- password
- public static org.pentaho.commons.connection.IPentahoConnection getConnection(String datasourceType, Properties properties, IPentahoSession session, ILogger logger)
datasourceType
- properties
- can be nullsession
- can be nulllogger
- Copyright © 2017 Hitachi Vantara. All rights reserved.