Class PmdConnectionProvider

    • Constructor Detail

      • PmdConnectionProvider

        public PmdConnectionProvider()
    • Method Detail

      • createStream

        protected InputStream createStream​(org.pentaho.reporting.libraries.resourceloader.ResourceManager manager,
                                           org.pentaho.reporting.libraries.resourceloader.ResourceKey contextKey,
                                           String xmiFile)
                                    throws org.pentaho.reporting.libraries.resourceloader.ResourceException
        Throws:
        org.pentaho.reporting.libraries.resourceloader.ResourceException
      • getMetadataDomainRepository

        public org.pentaho.metadata.repository.IMetadataDomainRepository getMetadataDomainRepository​(String domainId,
                                                                                                     org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager,
                                                                                                     org.pentaho.reporting.libraries.resourceloader.ResourceKey contextKey,
                                                                                                     String xmiFile)
                                                                                              throws org.pentaho.reporting.engine.classic.core.ReportDataFactoryException
        Specified by:
        getMetadataDomainRepository in interface IPmdConnectionProvider
        Throws:
        org.pentaho.reporting.engine.classic.core.ReportDataFactoryException
      • createConnection

        public Connection createConnection​(org.pentaho.di.core.database.DatabaseMeta databaseMeta,
                                           String username,
                                           String password)
                                    throws org.pentaho.reporting.engine.classic.core.ReportDataFactoryException
        Specified by:
        createConnection in interface IPmdConnectionProvider
        Throws:
        org.pentaho.reporting.engine.classic.core.ReportDataFactoryException
      • executeQuery

        public TableModel executeQuery​(org.pentaho.metadata.query.model.Query query,
                                       org.pentaho.reporting.engine.classic.core.DataRow parameters)
                                throws org.pentaho.reporting.engine.classic.core.ReportDataFactoryException
        Description copied from interface: IPmdConnectionProvider
        This brokers execution of a query to the connection provider, it is used for non-SQL based Pentaho Metadata datasources
        Specified by:
        executeQuery in interface IPmdConnectionProvider
        Throws:
        org.pentaho.reporting.engine.classic.core.ReportDataFactoryException