public abstract class MDXBaseComponent
extends org.pentaho.platform.engine.services.solution.ComponentBase
implements org.pentaho.platform.api.data.IDataComponent, org.pentaho.platform.api.data.IPreparedComponent
| Modifier and Type | Field and Description |
|---|---|
static String |
FORMATTED_CELL_VALUES |
COMPONENT_EXECUTE_FAIL, debug, MISSING_SESSION, UNKNOWN_COMPONENT_IDEMPTYLOGID, loggingLevel, LOGID_MASK1, LOGID_MASK2, LOGID_SEPARATOR| Constructor and Description |
|---|
MDXBaseComponent() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
applyInputsToFormat(String format) |
void |
dispose()
if the owner, dispose of the connection
|
void |
done() |
protected boolean |
executeAction() |
org.pentaho.commons.connection.IPentahoResultSet |
executePrepared(Map preparedParams)
executes a prepared method that returns a result set executePrepared looks up any "PREPARELATER" params in the
preparedParams map.
|
protected org.pentaho.commons.connection.IPentahoConnection |
getConnection() |
protected org.pentaho.commons.connection.IPentahoConnection |
getConnectionOrig() |
org.pentaho.commons.connection.IPentahoConnection |
getDatasourceConnection()
attempt to aquire a connection.
|
abstract org.apache.commons.logging.Log |
getLogger() |
org.pentaho.commons.connection.IPentahoResultSet |
getResultSet() |
boolean |
init() |
protected boolean |
prepareQuery(String rawQuery)
called when in prepared-component mode, this method populates the preparedQuery string and preparedParameters
object.
|
protected boolean |
runQuery(org.pentaho.commons.connection.IPentahoConnection localConnection,
String rawQuery) |
protected void |
setConnection(org.pentaho.commons.connection.IPentahoConnection connection) |
protected void |
setOutputValue(String outputName,
Object value) |
org.pentaho.commons.connection.IPentahoConnection |
shareConnection()
return this class's connection.
|
protected boolean |
validateAction() |
abstract boolean |
validateSystemSettings() |
protected void |
waitFor(int millis) |
addTempParameter, addTempParameterObject, audit, createFeedbackParameter, createFeedbackParameter, createFeedbackParameter, createFeedbackParameter, createFeedbackParameter, createFeedbackParameter, createFeedbackParameter, createNewInstance, execute, feedbackAllowed, getActionDefinition, getActionName, getActionTitle, getComponentDefinition, getComponentDefinition, getContentOutputItem, getDefaultOutputStream, getFeedbackOutputStream, getId, getInitFailMessage, getInitOk, getInputBooleanValue, getInputLongValue, getInputNames, getInputParameter, getInputStream, getInputStringValue, getInputStringValue, getInputValue, getInstanceId, getLogId, getObjectName, getOutputContentItem, getOutputContentItem, getOutputItem, getOutputItem, getOutputNames, getOutputPreference, getProcessId, getResource, getResourceAsString, getResourceDataSource, getResourceInputStream, getResourceNames, getRuntimeContext, getSession, getSetting, getSolutionName, getSolutionPath, getStringSetting, inputMissingError, isDefinedInput, isDefinedOutput, isDefinedResource, isPromptPending, outputMissingError, promptNeeded, promptNow, resolveParameter, resourceComponentSettingError, resourceMissingError, saveSetting, setActionDefinition, setActionName, setComponentDefinition, setComponentDefinitionMap, setFeedbackMimeType, setInstanceId, setOutputMimeType, setOutputMimeType, setProcessId, setRuntimeContext, setSession, validatedebug, debug, error, error, error, fatal, fatal, getMessages, getUserString, info, info, setMessages, trace, trace, warn, warngenLogIdFromInfo, genLogIdFromInfo, genLogIdFromSession, getLoggingLevel, setLoggingLevel, setLogIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, getActionDefinition, getActionName, getComponentDefinition, getInstanceId, getMessages, getProcessId, getRuntimeContext, getSession, setActionDefinition, setActionName, setComponentDefinition, setComponentDefinitionMap, setInstanceId, setMessages, setProcessId, setRuntimeContext, setSession, validatepublic static final String FORMATTED_CELL_VALUES
public abstract boolean validateSystemSettings()
validateSystemSettings in class org.pentaho.platform.engine.services.solution.ComponentBasepublic abstract org.apache.commons.logging.Log getLogger()
getLogger in class org.pentaho.platform.engine.core.system.PentahoBasepublic org.pentaho.commons.connection.IPentahoResultSet getResultSet()
getResultSet in interface org.pentaho.platform.api.data.IDataComponentprotected boolean validateAction()
validateAction in class org.pentaho.platform.engine.services.solution.ComponentBasepublic void done()
done in interface org.pentaho.platform.api.engine.IComponentdone in class org.pentaho.platform.engine.services.solution.ComponentBaseprotected boolean executeAction()
executeAction in class org.pentaho.platform.engine.services.solution.ComponentBaseprotected boolean prepareQuery(String rawQuery)
rawQuery - public void dispose()
dispose in interface org.pentaho.commons.connection.IDisposabledispose in interface org.pentaho.platform.api.data.IDataComponentdispose in interface org.pentaho.platform.api.data.IPreparedComponentpublic org.pentaho.commons.connection.IPentahoConnection shareConnection()
shareConnection in interface org.pentaho.platform.api.data.IPreparedComponentpublic org.pentaho.commons.connection.IPentahoResultSet executePrepared(Map preparedParams)
executePrepared in interface org.pentaho.platform.api.data.IPreparedComponentpreparedParams - a map of possible parameters.protected boolean runQuery(org.pentaho.commons.connection.IPentahoConnection localConnection,
String rawQuery)
public org.pentaho.commons.connection.IPentahoConnection getDatasourceConnection()
protected void waitFor(int millis)
protected org.pentaho.commons.connection.IPentahoConnection getConnection()
protected org.pentaho.commons.connection.IPentahoConnection getConnectionOrig()
public boolean init()
init in interface org.pentaho.platform.api.engine.IComponentinit in class org.pentaho.platform.engine.services.solution.ComponentBaseprotected void setOutputValue(String outputName, Object value)
setOutputValue in class org.pentaho.platform.engine.services.solution.ComponentBaseprotected void setConnection(org.pentaho.commons.connection.IPentahoConnection connection)
Copyright © 2018 Hitachi Vantara. All rights reserved.