Package org.pentaho.metadata.model

Examples of org.pentaho.metadata.model.SqlDataSource


  }

  public Domain getJdbcDomain() {
    Domain domain = getBasicDomain();
    SqlDataSource dataSource = ( (SqlPhysicalModel) domain.getPhysicalModels().get( 0 ) ).getDatasource();
    dataSource.setType( DataSourceType.NATIVE );
    dataSource.setDatabaseName( "file:test-src/solution/system/data/sampledata" );
    dataSource.setUsername( "pentaho_user" );
    dataSource.setPort( "-1" );
    dataSource.setPassword( "password" );
    domain.setId( "JDBCDOMAIN" );
    return domain;
  }
View Full Code Here


  }

  public Domain getBasicDomain() {

    SqlPhysicalModel model = new SqlPhysicalModel();
    SqlDataSource dataSource = new SqlDataSource();
    dataSource.setDatabaseName( "SampleData" );
    dataSource.setDialectType( "HYPERSONIC" );
    dataSource.setType( DataSourceType.JNDI );

    model.setDatasource( dataSource );
    SqlPhysicalTable table = new SqlPhysicalTable( model );
    table.setId( "PT1" );
    model.getPhysicalTables().add( table );
View Full Code Here

TOP

Related Classes of org.pentaho.metadata.model.SqlDataSource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.