public abstract class XQueryBaseComponent extends ComponentBase implements org.pentaho.platform.api.data.IPreparedComponent
| Modifier and Type | Field and Description |
|---|---|
protected org.pentaho.commons.connection.IPentahoConnection |
connection
reference to connection object
|
protected boolean |
connectionOwner
keeps track of ownership of connection
|
COMPONENT_EXECUTE_FAIL, debug, MISSING_SESSION, UNKNOWN_COMPONENT_IDEMPTYLOGID, loggingLevel, LOGID_MASK1, LOGID_MASK2, LOGID_SEPARATOR| Constructor and Description |
|---|
XQueryBaseComponent() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createTempXMLFile(String xmlString) |
void |
dispose()
disposes of the connection this is called by the runtime context if the object is used as an iprepared component
|
void |
done() |
protected boolean |
executeAction() |
org.pentaho.commons.connection.IPentahoResultSet |
executePrepared(Map preparedParams)
implements the IPreparedComponent executePrepared, which allows other components to execute the prepared
statement.
|
protected org.pentaho.commons.connection.IPentahoConnection |
getConnection() |
abstract org.apache.commons.logging.Log |
getLogger() |
int |
getMaxRows() |
org.pentaho.commons.connection.IPentahoResultSet |
getResultSet() |
boolean |
init() |
protected boolean |
prepareFinalQuery(String rawQuery,
String[] columnTypes) |
protected boolean |
retrieveColumnTypes()
Determines if the action should attempt to retrieve the columns types
|
protected boolean |
runFinalQuery(org.pentaho.commons.connection.IPentahoConnection localConnection,
String rawQuery,
String[] columnTypes) |
protected boolean |
runQuery(org.pentaho.commons.connection.IPentahoConnection localConnection,
String rawQuery) |
void |
setMaxRows(int value) |
org.pentaho.commons.connection.IPentahoConnection |
shareConnection()
implements IPreparedComponents shareConnection, allowing other xquery components to access the 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, 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, validateprotected org.pentaho.commons.connection.IPentahoConnection connection
protected boolean connectionOwner
public abstract boolean validateSystemSettings()
validateSystemSettings in class ComponentBasepublic abstract org.apache.commons.logging.Log getLogger()
getLogger in class PentahoBasepublic org.pentaho.commons.connection.IPentahoResultSet getResultSet()
protected boolean validateAction()
validateAction in class ComponentBasepublic void done()
done in interface org.pentaho.platform.api.engine.IComponentdone in class ComponentBaseprotected boolean executeAction()
executeAction in class ComponentBaseprotected boolean runQuery(org.pentaho.commons.connection.IPentahoConnection localConnection,
String rawQuery)
protected boolean runFinalQuery(org.pentaho.commons.connection.IPentahoConnection localConnection,
String rawQuery,
String[] columnTypes)
protected org.pentaho.commons.connection.IPentahoConnection getConnection()
public boolean init()
init in interface org.pentaho.platform.api.engine.IComponentinit in class ComponentBasepublic 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 - lookup for prepared parametersprotected boolean retrieveColumnTypes()
public int getMaxRows()
public void setMaxRows(int value)
public void dispose()
dispose in interface org.pentaho.commons.connection.IDisposabledispose in interface org.pentaho.platform.api.data.IPreparedComponentCopyright © 2018 Hitachi Vantara. All rights reserved.