org.pentaho.platform.plugin.action.sql
Class SQLExecute
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.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
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, 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 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 |
SQLExecute
public SQLExecute()
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)