org.pentaho.platform.plugin.action.sql
Class SQLExecute

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.sql.SQLExecute
All Implemented Interfaces:
Serializable, org.pentaho.commons.connection.IDisposable, IDataComponent, IPreparedComponent, IAuditable, IComponent, ILogger, IParameterResolver

public class SQLExecute
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.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
SQLExecute()
           
 
Method Summary
 void addErrorCode(org.pentaho.commons.connection.memory.MemoryResultSet affectedRowsResultSet, SQLException e, String failMsg)
           
 org.apache.commons.logging.Log getLogger()
           
static String removeLineTerminators(String inputStr)
           
 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, getMaxRows, getQuery, getQueryTimeout, getReadOnly, getResultSet, init, resolveParameter, setMaxRows, setQueryTimeout, setReadOnly, 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, 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
 

Constructor Detail

SQLExecute

public SQLExecute()
Method Detail

getLogger

public org.apache.commons.logging.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

addErrorCode

public void addErrorCode(org.pentaho.commons.connection.memory.MemoryResultSet affectedRowsResultSet,
                         SQLException e,
                         String failMsg)

removeLineTerminators

public static String removeLineTerminators(String inputStr)