org.pentaho.platform.plugin.action.pentahometadata
Class MQLRelationalDataComponent
java.lang.Object
org.pentaho.platform.engine.core.system.PentahoBase
org.pentaho.platform.engine.services.PentahoMessenger
org.pentaho.platform.engine.services.solution.ComponentBase
org.pentaho.platform.plugin.action.sql.SQLBaseComponent
org.pentaho.platform.plugin.action.sql.SQLLookupRule
org.pentaho.platform.plugin.action.pentahometadata.MQLRelationalDataComponent
- All Implemented Interfaces:
- Serializable, IDataComponent, IPreparedComponent, IAuditable, IComponent, ILogger, IParameterResolver
public class MQLRelationalDataComponent
- extends SQLLookupRule
- See Also:
- Serialized Form
Fields inherited from interface org.pentaho.platform.api.engine.ILogger |
ACTIVITY_LOG, DEBUG, ERROR, FATAL, INFO, INSTANCE_LOG, SESSION_LOG, SOLUTION_LOG, TRACE, UNKNOWN, WARN |
Fields inherited from interface org.pentaho.platform.api.engine.ILogger |
ACTIVITY_LOG, DEBUG, ERROR, FATAL, INFO, INSTANCE_LOG, SESSION_LOG, SOLUTION_LOG, TRACE, UNKNOWN, WARN |
Methods inherited from class org.pentaho.platform.plugin.action.sql.SQLBaseComponent |
dispose, done, doQuery, executePrepared, getDatasourceConnection, getQueryTimeout, getResultSet, init, resolveParameter, setQueryTimeout, shareConnection |
Methods inherited from class org.pentaho.platform.engine.services.solution.ComponentBase |
createFeedbackParameter, createFeedbackParameter, createNewInstance, execute, getActionDefinition, getActionName, getActionTitle, getComponentDefinition, getComponentDefinition, getId, getInitFailMessage, getInitOk, getInstanceId, getLogId, getObjectName, getProcessId, getResourceAsString, getRuntimeContext, getSession, inputMissingError, outputMissingError, promptNeeded, promptNow, resourceComponentSettingError, resourceMissingError, setActionDefinition, setActionName, setComponentDefinition, setComponentDefinitionMap, setInstanceId, setProcessId, setRuntimeContext, setSession, validate |
Methods inherited from class org.pentaho.platform.engine.services.PentahoMessenger |
debug, debug, error, error, fatal, fatal, getMessages, getUserString, info, info, setMessages, trace, trace, warn, warn |
Methods inherited from interface org.pentaho.platform.api.engine.IComponent |
execute, getActionDefinition, getActionName, getComponentDefinition, getInstanceId, getMessages, getProcessId, getRuntimeContext, getSession, setActionDefinition, setActionName, setComponentDefinition, setComponentDefinitionMap, setInstanceId, setMessages, setProcessId, setRuntimeContext, setSession, validate |
Methods inherited from interface org.pentaho.platform.api.engine.ILogger |
debug, debug, error, error, fatal, fatal, getLoggingLevel, info, info, setLoggingLevel, trace, trace, warn, warn |
Methods inherited from interface org.pentaho.platform.api.engine.IComponent |
execute, getActionDefinition, getActionName, getComponentDefinition, getInstanceId, getMessages, getProcessId, getRuntimeContext, getSession, setActionDefinition, setActionName, setComponentDefinition, setComponentDefinitionMap, setInstanceId, setMessages, setProcessId, setRuntimeContext, setSession, validate |
Methods inherited from interface org.pentaho.platform.api.engine.ILogger |
debug, debug, error, error, fatal, fatal, getLoggingLevel, info, info, setLoggingLevel, trace, trace, warn, warn |
MQLRelationalDataComponent
public MQLRelationalDataComponent()
getMqlQuery
public MQLQuery getMqlQuery()
getLogger
public Log getLogger()
- Overrides:
getLogger
in class SQLLookupRule
validateAction
public boolean validateAction()
- Description copied from class:
SQLBaseComponent
- validates the action. checks to verify inputs are available to execute
- verify query is available
- verify connection is available, via jndi, connection string, or prepared component
- verify output is specified
- Overrides:
validateAction
in class SQLBaseComponent
getQuery
public String getQuery()
- makes the necessary calls to generate the SQL query based on the MQL XML provided.
- Overrides:
getQuery
in class SQLBaseComponent
- Returns:
- sql
executeAction
public boolean executeAction()
- Description copied from class:
SQLBaseComponent
- determines state of component, and executes accordingly.
various inputs that impact the state include:
live - returns a live result set vs. an in memory copy
transform - transform a result set based on additional inputs
prepared_component - if available, use existing connection from prepared component
max_rows - sets the number of rows that should be returned in result sets
The specified output also impacts the state of the execution. If prepared_component is defined
as an output, setup the query but delay execution.