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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
execute()
protected Object
getParameterValue
(org.pentaho.metadata.query.model.Parameter parameter) org.pentaho.commons.connection.IPentahoResultSet
void
void
setLive
(boolean live) void
setLogSql
(boolean logSql) void
setMaxRows
(Integer maxRows) void
void
setQueryModelXmlHelper
(String xmlHelperClass) void
setQueryObject
(org.pentaho.metadata.query.model.Query queryObject) Sets the query to be executed.void
setReadOnly
(Boolean readOnly) This sets the read only property in the Hitachi Vantara SQLConnection APIvoid
setTimeout
(Integer timeout) void
setUseForwardOnlyResultSet
(boolean useForwardOnlyResultSet) boolean
validate()
-
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()
-