public abstract class HQLBaseComponent
extends org.pentaho.platform.engine.services.solution.ComponentBase
implements org.pentaho.platform.api.data.IPreparedComponent
COMPONENT_EXECUTE_FAIL, debug, MISSING_SESSION, UNKNOWN_COMPONENT_ID
EMPTYLOGID, loggingLevel, LOGID_MASK1, LOGID_MASK2, LOGID_SEPARATOR
Constructor and Description |
---|
HQLBaseComponent() |
Modifier and Type | Method and Description |
---|---|
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(File hbmCfgFile,
String[] classNames) |
abstract org.apache.commons.logging.Log |
getLogger() |
abstract String |
getResultOutputName() |
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 conn,
String[] classNames,
String query) |
org.pentaho.commons.connection.IPentahoConnection |
shareConnection()
return this class's connection.
|
protected boolean |
validateAction() |
abstract boolean |
validateSystemSettings() |
addTempParameter, addTempParameterObject, applyInputsToFormat, 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, setOutputValue, setProcessId, setRuntimeContext, setSession, validate
debug, debug, error, error, error, fatal, fatal, getMessages, getUserString, info, info, setMessages, trace, trace, warn, warn
genLogIdFromInfo, genLogIdFromInfo, genLogIdFromSession, getLoggingLevel, setLoggingLevel, setLogId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, getActionDefinition, getActionName, getComponentDefinition, getInstanceId, getMessages, getProcessId, getRuntimeContext, getSession, setActionDefinition, setActionName, setComponentDefinition, setComponentDefinitionMap, setInstanceId, setMessages, setProcessId, setRuntimeContext, setSession, validate
public abstract boolean validateSystemSettings()
validateSystemSettings
in class org.pentaho.platform.engine.services.solution.ComponentBase
public abstract String getResultOutputName()
public abstract org.apache.commons.logging.Log getLogger()
getLogger
in class org.pentaho.platform.engine.core.system.PentahoBase
public org.pentaho.commons.connection.IPentahoResultSet getResultSet()
protected boolean validateAction()
validateAction
in class org.pentaho.platform.engine.services.solution.ComponentBase
public void done()
done
in interface org.pentaho.platform.api.engine.IComponent
done
in class org.pentaho.platform.engine.services.solution.ComponentBase
protected boolean executeAction()
executeAction
in class org.pentaho.platform.engine.services.solution.ComponentBase
protected boolean prepareQuery(String rawQuery)
rawQuery
- public org.pentaho.commons.connection.IPentahoResultSet executePrepared(Map preparedParams)
executePrepared
in interface org.pentaho.platform.api.data.IPreparedComponent
preparedParams
- a map of possible parameters.protected boolean runQuery(org.pentaho.commons.connection.IPentahoConnection conn, String[] classNames, String query)
public void dispose()
dispose
in interface org.pentaho.commons.connection.IDisposable
dispose
in interface org.pentaho.platform.api.data.IPreparedComponent
protected org.pentaho.commons.connection.IPentahoConnection getConnection(File hbmCfgFile, String[] classNames)
public org.pentaho.commons.connection.IPentahoConnection shareConnection()
shareConnection
in interface org.pentaho.platform.api.data.IPreparedComponent
public boolean init()
init
in interface org.pentaho.platform.api.engine.IComponent
init
in class org.pentaho.platform.engine.services.solution.ComponentBase
Copyright © 2021 Hitachi Vantara. All rights reserved.