org.pentaho.platform.dataaccess.datasource.wizard.service.impl.utils
Class DatasourceInMemoryServiceHelper

java.lang.Object
  extended by org.pentaho.platform.dataaccess.datasource.wizard.service.impl.utils.DatasourceInMemoryServiceHelper

public class DatasourceInMemoryServiceHelper
extends Object


Constructor Summary
DatasourceInMemoryServiceHelper()
           
 
Method Summary
static SQLConnection getConnection(String connectionName)
           
static List<List<String>> getCsvDataSample(String fileLocation, boolean headerPresent, String delimiter, String enclosure, int rowLimit)
           
static Connection getDataSourceConnection(String connectionName)
          NOTE: caller is responsible for closing connection
static SerializedResultSet getSerializeableResultSet(String connectionName, String query, int rowLimit, IPentahoSession session)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatasourceInMemoryServiceHelper

public DatasourceInMemoryServiceHelper()
Method Detail

getDataSourceConnection

public static Connection getDataSourceConnection(String connectionName)
                                          throws DatasourceServiceException
NOTE: caller is responsible for closing connection

Parameters:
ds -
Returns:
Throws:
DatasourceServiceException

getConnection

public static SQLConnection getConnection(String connectionName)
                                   throws DatasourceServiceException
Throws:
DatasourceServiceException

getSerializeableResultSet

public static SerializedResultSet getSerializeableResultSet(String connectionName,
                                                            String query,
                                                            int rowLimit,
                                                            IPentahoSession session)
                                                     throws DatasourceServiceException
Throws:
DatasourceServiceException

getCsvDataSample

public static List<List<String>> getCsvDataSample(String fileLocation,
                                                  boolean headerPresent,
                                                  String delimiter,
                                                  String enclosure,
                                                  int rowLimit)