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
-
-
Constructor Summary
Constructors Constructor Description MetadataQueryComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
execute()
protected Object
getParameterValue(org.pentaho.metadata.query.model.Parameter parameter)
org.pentaho.commons.connection.IPentahoResultSet
getResultSet()
void
setInputs(Map<String,Object> inputs)
void
setLive(boolean live)
void
setLogSql(boolean logSql)
void
setMaxRows(Integer maxRows)
void
setQuery(String query)
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()
-
-
-
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()
-
-