Package org.pentaho.platform.api.data

Examples of org.pentaho.platform.api.data.IDBDatasourceService


    // Marc - BISERVER-2004
    //
    if ( !useNewDatasourceService ) {
      return new JndiDatasourceService();
    } else {
      IDBDatasourceService datasourceService = PentahoSystem.getObjectFactory().get( IDBDatasourceService.class, null );
      return datasourceService;
    }
  }
View Full Code Here


      if ( quartzProps == null ) {
        result = false;
      } else {
        String dsName = quartzProps.getProperty( "org.quartz.dataSource.myDS.jndiURL" ); //$NON-NLS-1$
        if ( dsName != null ) {
          IDBDatasourceService datasourceService = getQuartzDatasourceService( session );
          String boundDsName = datasourceService.getDSBoundName( dsName );

          if ( boundDsName != null ) {
            quartzProps.setProperty( "org.quartz.dataSource.myDS.jndiURL", boundDsName ); //$NON-NLS-1$
          }

          DataSource ds = datasourceService.getDataSource( dsName );
          result = verifyQuartzIsConfigured( ds );
        }
        QuartzScheduler scheduler = (QuartzScheduler) PentahoSystem.get( IScheduler.class, "IScheduler2", null ); //$NON-NLS-1$
        if ( logger.isDebugEnabled() ) {
          logger.debug( "Quartz configured with properties" ); //$NON-NLS-1$
View Full Code Here

    // Marc - BISERVER-2004
    //
    if ( !useNewDatasourceService ) {
      return new JndiDatasourceService();
    } else {
      IDBDatasourceService datasourceService =
          PentahoSystem.getObjectFactory().get( IDBDatasourceService.class, session );
      return datasourceService;
    }
  }
View Full Code Here

      String dataSourceName = properties.get( RolapConnectionProperties.DataSource.name() );

      mapPlatformRolesToMondrianRoles( properties );

      if ( dataSourceName != null ) {
        IDBDatasourceService datasourceService =
          PentahoSystem.getObjectFactory().get( IDBDatasourceService.class, null );
        DataSource dataSourceImpl = datasourceService.getDataSource( dataSourceName );
        if ( dataSourceImpl != null ) {
          properties.remove( RolapConnectionProperties.DataSource.name() );
          nativeConnection = DriverManager.getConnection( properties, null, dataSourceImpl );
        } else {
          nativeConnection = DriverManager.getConnection( properties, null );
View Full Code Here

TOP

Related Classes of org.pentaho.platform.api.data.IDBDatasourceService

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.