org.pentaho.platform.plugin.action.pentahometadata
Class MetadataQueryComponent
java.lang.Object
org.pentaho.platform.plugin.action.pentahometadata.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
DEFAULT_RELATIVE_UPLOAD_FILE_PATH
public static final String DEFAULT_RELATIVE_UPLOAD_FILE_PATH
MetadataQueryComponent
public MetadataQueryComponent()
setInputs
public void setInputs(Map<String,Object> inputs)
setLogSql
public void setLogSql(boolean logSql)
setQuery
public void setQuery(String query)
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 Pentaho SQLConnection API
- Parameters:
readOnly
- true if read only
setUseForwardOnlyResultSet
public void setUseForwardOnlyResultSet(boolean useForwardOnlyResultSet)
setQueryModelXmlHelper
public void setQueryModelXmlHelper(String xmlHelperClass)
setQueryModelSqlGenerator
public void setQueryModelSqlGenerator(String sqlGeneratorClass)
setForceDbDialect
public void setForceDbDialect(boolean forceDbDialect)
execute
public boolean execute()
validate
public boolean validate()
getResultSet
public org.pentaho.commons.connection.IPentahoResultSet getResultSet()