Package org.pentaho.platform.api.data
Interface IPreparedComponent
- All Superinterfaces:
 IAuditable,IComponent,org.pentaho.commons.connection.IDisposable,ILogger
The prepared component interface extends component, allowing components to go into a prepared state vs. execute
 state. These components may place themselves as an output parameter, and then be used later in the
 action-sequence for execution of prepared statements / etc.
- Author:
 - Will Gorman
 - See Also:
 - 
MDXBaseComponentSQLBaseComponentIPentahoResultSet
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringthis is an intermediate term used when resolving parameters in the executePrepared callstatic final StringA placeholder for template strings and potential prepared lists, so template fields can be replaced on the fly vs.static final Stringthis term may appear when resolving parameters "{PREPARELATER:PARAM_NAME}"static final StringThe name of the output.static final StringThe type of the output.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 - 
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Disposes of resources held by the prepared componentorg.pentaho.commons.connection.IPentahoResultSetexecutePrepared(Map preparedParams) executes a prepared method that returns a result set executePrepared looks up any "PREPARELATER" params in the preparedParams map.org.pentaho.commons.connection.IPentahoConnectionexposes the connection object for others to use.Methods inherited from interface org.pentaho.platform.api.engine.IAuditable
getId, getObjectNameMethods inherited from interface org.pentaho.platform.api.engine.IComponent
done, execute, getActionDefinition, getActionName, getComponentDefinition, getInstanceId, getMessages, getProcessId, getRuntimeContext, getSession, init, setActionDefinition, setActionName, setComponentDefinition, setComponentDefinitionMap, setInstanceId, setMessages, setProcessId, setRuntimeContext, setSession, validate 
- 
Field Details
- 
PREPARE_LATER_PREFIX
this term may appear when resolving parameters "{PREPARELATER:PARAM_NAME}"- See Also:
 
 - 
PREPARE_LATER_INTER_PREFIX
this is an intermediate term used when resolving parameters in the executePrepared call- See Also:
 
 - 
PREPARED_COMPONENT_NAME
The name of the output. If this appears as an output of an IPreparedComponent the component should alter its behavior and go into prepared mode.- See Also:
 
 - 
PREPARED_OUTPUT_TYPE
The type of the output. If this appears in an output of an IPreparedComponent the component should alter its behavior and go into prepared mode.- See Also:
 
 - 
PREPARE_LATER_PLACEHOLDER
A placeholder for template strings and potential prepared lists, so template fields can be replaced on the fly vs. during initial setup of a prepared statement- See Also:
 
 
 - 
 - 
Method Details
- 
executePrepared
executes a prepared method that returns a result set executePrepared looks up any "PREPARELATER" params in the preparedParams map.- Parameters:
 preparedParams- a map of possible parameters.- Returns:
 - result set
 
 - 
dispose
void dispose()Disposes of resources held by the prepared component- Specified by:
 disposein interfaceorg.pentaho.commons.connection.IDisposable
 
 -