org.pentaho.platform.plugin.action.pentahometadata
Class MQLRelationalDataComponent

java.lang.Object
  extended by org.pentaho.platform.engine.core.system.PentahoBase
      extended by org.pentaho.platform.engine.services.PentahoMessenger
          extended by org.pentaho.platform.engine.services.solution.ComponentBase
              extended by org.pentaho.platform.plugin.action.sql.SQLBaseComponent
                  extended by org.pentaho.platform.plugin.action.sql.SQLLookupRule
                      extended by 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

Field Summary
 
Fields inherited from class org.pentaho.platform.plugin.action.sql.SQLBaseComponent
PREPARE_PARAMETER_PREFIX
 
Fields inherited from class org.pentaho.platform.engine.services.solution.ComponentBase
COMPONENT_EXECUTE_FAIL, MISSING_SESSION
 
Fields inherited from class org.pentaho.platform.engine.core.system.PentahoBase
EMPTYLOGID, LOGID_MASK1, LOGID_MASK2, LOGID_SEPARATOR
 
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.data.IPreparedComponent
PREPARE_LATER_INTER_PREFIX, PREPARE_LATER_PLACEHOLDER, PREPARE_LATER_PREFIX, PREPARED_COMPONENT_NAME, PREPARED_OUTPUT_TYPE
 
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
 
Constructor Summary
MQLRelationalDataComponent()
           
 
Method Summary
 boolean executeAction()
          determines state of component, and executes accordingly.
 Log getLogger()
           
 MQLQuery getMqlQuery()
           
 String getQuery()
          makes the necessary calls to generate the SQL query based on the MQL XML provided.
 boolean validateAction()
          validates the action.
 
Methods inherited from class org.pentaho.platform.plugin.action.sql.SQLLookupRule
getResultOutputName, validateSystemSettings
 
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 class org.pentaho.platform.engine.core.system.PentahoBase
genLogIdFromInfo, genLogIdFromInfo, genLogIdFromSession, getLoggingLevel, setLoggingLevel, setLogId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
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.IAuditable
getId, getObjectName
 
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.IAuditable
getId, getObjectName
 
Methods inherited from interface org.pentaho.platform.api.engine.ILogger
debug, debug, error, error, fatal, fatal, getLoggingLevel, info, info, setLoggingLevel, trace, trace, warn, warn
 

Constructor Detail

MQLRelationalDataComponent

public MQLRelationalDataComponent()
Method Detail

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.