use of org.pentaho.database.model.DatabaseConnection in project data-access by pentaho.
the class TestDataSourceResource method createConnectionObject.
private static IDatabaseConnection createConnectionObject() {
IDatabaseConnection connection = new DatabaseConnection();
connection.setAccessType(DatabaseAccessType.NATIVE);
// connection.setDriverClass("org.hsqldb.jdbcDriver");
// connection.setUrl("jdbc:hsqldb:hsql://localhost:9001/sampledata");
connection.setUsername("pentaho_user");
connection.setPassword("password");
connection.setName(CONNECTION_NAME);
return connection;
}
Aggregations