DatabaseConnection connection = new DatabaseConnection();
connection.setAccessType( DatabaseAccessType.NATIVE );
connection.setDatabaseName( "SampleData" );
connection.setDatabasePort( "9001" );
DatabaseType type = new DatabaseType();
type.setName( "Hypersonic" );
type.setShortName( "HYPERSONIC" );
connection.setDatabaseType( type );
connection.setHostname( "localhost" );
connection.setUsername( "pentaho_user" );
connection.setPassword( "password" );
connection.setMaximumPoolSize( 20 );