Class MetadataQueryComponent


  • public class MetadataQueryComponent
    extends Object
    This is the BI Platform Pojo Component for Pentaho Metadata Queries. It currently supports executing the inline etl and sql physical models. TODO: We should eventually move the copy and pasted code that executes the SQL into a pojo SQL Component.
    Author:
    Will Gorman
    • Constructor Detail

      • MetadataQueryComponent

        public MetadataQueryComponent()
    • Method Detail

      • setLogSql

        public void setLogSql​(boolean logSql)
      • setQuery

        public void setQuery​(String query)
      • setQueryObject

        public void setQueryObject​(org.pentaho.metadata.query.model.Query queryObject)
        Sets the query to be executed. This is a query model that will be executed in preference to a string-based query.
        Parameters:
        queryObject -
      • setMaxRows

        public void setMaxRows​(Integer maxRows)
      • setTimeout

        public void setTimeout​(Integer timeout)
      • setLive

        public void setLive​(boolean live)
      • setReadOnly

        public void setReadOnly​(Boolean readOnly)
        This sets the read only property in the Hitachi Vantara SQLConnection API
        Parameters:
        readOnly - true if read only
      • setUseForwardOnlyResultSet

        public void setUseForwardOnlyResultSet​(boolean useForwardOnlyResultSet)
      • setQueryModelXmlHelper

        public void setQueryModelXmlHelper​(String xmlHelperClass)
      • execute

        public boolean execute()
      • getParameterValue

        protected Object getParameterValue​(org.pentaho.metadata.query.model.Parameter parameter)
      • validate

        public boolean validate()
      • getResultSet

        public org.pentaho.commons.connection.IPentahoResultSet getResultSet()