Class MetadataQueryComponent
java.lang.Object
org.pentaho.platform.plugin.action.pentahometadata.MetadataQueryComponent
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute()protected ObjectgetParameterValue(org.pentaho.metadata.query.model.Parameter parameter) org.pentaho.commons.connection.IPentahoResultSetvoidvoidsetLive(boolean live) voidsetLogSql(boolean logSql) voidsetMaxRows(Integer maxRows) voidvoidsetQueryModelXmlHelper(String xmlHelperClass) voidsetQueryObject(org.pentaho.metadata.query.model.Query queryObject) Sets the query to be executed.voidsetReadOnly(Boolean readOnly) This sets the read only property in the Hitachi Vantara SQLConnection APIvoidsetTimeout(Integer timeout) voidsetUseForwardOnlyResultSet(boolean useForwardOnlyResultSet) booleanvalidate()
-
Constructor Details
-
MetadataQueryComponent
public MetadataQueryComponent()
-
-
Method Details
-
setInputs
-
setLogSql
public void setLogSql(boolean logSql) -
setQuery
-
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
-
setTimeout
-
setLive
public void setLive(boolean live) -
setReadOnly
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
-
execute
public boolean execute() -
getParameterValue
-
validate
public boolean validate() -
getResultSet
public org.pentaho.commons.connection.IPentahoResultSet getResultSet()
-