Class UserDefinedJavaClassMeta
- java.lang.Object
- 
- org.pentaho.di.trans.step.BaseStepMeta
- 
- org.pentaho.di.trans.steps.userdefinedjavaclass.UserDefinedJavaClassMeta
 
 
- 
- All Implemented Interfaces:
- Cloneable,- StepAttributesInterface,- StepMetaInterface
 
 public class UserDefinedJavaClassMeta extends BaseStepMeta implements StepMetaInterface 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classUserDefinedJavaClassMeta.ElementNamesstatic classUserDefinedJavaClassMeta.FieldInfo
 - 
Field SummaryFields Modifier and Type Field Description Class<TransformClassBase>cookedTransformClassList<Exception>cookErrors- 
Fields inherited from class org.pentaho.di.trans.step.BaseStepMetaattributes, databases, log, loggingObject, parentStepMeta, repository, STEP_ATTRIBUTES_FILE
 
- 
 - 
Constructor SummaryConstructors Constructor Description UserDefinedJavaClassMeta()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheck(List<org.pentaho.di.core.CheckResultInterface> remarks, TransMeta transMeta, StepMeta stepinfo, org.pentaho.di.core.row.RowMetaInterface prev, String[] input, String[] output, org.pentaho.di.core.row.RowMetaInterface info, org.pentaho.di.core.variables.VariableSpace space, Repository repository, org.pentaho.metastore.api.IMetaStore metaStore)Checks the settings of this step and puts the findings in a remarks List.Objectclone()Make an exact copy of this step, make sure to explicitly copy Collections etc.voidcookClasses()booleanexcludeFromRowLayoutVerification()This method is added to exclude certain steps from layout checking.List<UserDefinedJavaClassDef>getDefinitions()List<UserDefinedJavaClassMeta.FieldInfo>getFieldInfo()voidgetFields(org.pentaho.di.core.row.RowMetaInterface row, String originStepname, org.pentaho.di.core.row.RowMetaInterface[] info, StepMeta nextStep, org.pentaho.di.core.variables.VariableSpace space, Repository repository, org.pentaho.metastore.api.IMetaStore metaStore)Gets the fields.List<InfoStepDefinition>getInfoStepDefinitions()StepInterfacegetStep(StepMeta stepMeta, StepDataInterface stepDataInterface, int cnr, TransMeta transMeta, Trans trans)Get the executing step, needed by Trans to launch a step.StepDataInterfacegetStepData()Get a new instance of the appropriate data class.StepIOMetaInterfacegetStepIOMeta()Returns the Input/Output metadata for this step.List<TargetStepDefinition>getTargetStepDefinitions()List<UsageParameter>getUsageParameters()StringgetXML()Produces the XML string that describes this step's information.booleanisClearingResultFields()voidloadXML(Node stepnode, List<org.pentaho.di.core.database.DatabaseMeta> databases, org.pentaho.metastore.api.IMetaStore metaStore)Load the values for this step from an XML NodeTransformClassBasenewChildInstance(UserDefinedJavaClass parent, UserDefinedJavaClassMeta meta, UserDefinedJavaClassData data)protected List<UserDefinedJavaClassDef>orderDefinitions(List<UserDefinedJavaClassDef> definitions)This method oders the classes by sorting all the normal classes by alphabetic order and then sorting all the transaction classes by alphabetical order.voidreadRep(Repository rep, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.repository.ObjectId id_step, List<org.pentaho.di.core.database.DatabaseMeta> databases)Read the steps information from a Kettle repositoryvoidreplaceDefinitions(List<UserDefinedJavaClassDef> definitions)voidreplaceFields(List<UserDefinedJavaClassMeta.FieldInfo> fields)voidsaveRep(Repository rep, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.repository.ObjectId id_transformation, org.pentaho.di.repository.ObjectId id_step)Save the steps data into a Kettle repositoryvoidsearchInfoAndTargetSteps(List<StepMeta> steps)Change step names into step objects to allow them to be name-changed etc.voidsetClearingResultFields(boolean clearingResultFields)voidsetDefault()Set default valuesvoidsetFieldInfo(List<UserDefinedJavaClassMeta.FieldInfo> fields)voidsetInfoStepDefinitions(List<InfoStepDefinition> infoStepDefinitions)voidsetTargetStepDefinitions(List<TargetStepDefinition> targetStepDefinitions)voidsetUsageParameters(List<UsageParameter> usageParameters)booleansupportsErrorHandling()- 
Methods inherited from class org.pentaho.di.trans.step.BaseStepMetaanalyseImpact, analyseImpact, cancelQueries, check, check, createEntry, excludeFromCopyDistributeVerification, exportResources, exportResources, extractStepMetadataEntries, findAttribute, findParent, findParentEntry, getActiveReferencedObjectDescription, getDescription, getDialogClassName, getFields, getLog, getLogChannelId, getName, getObjectCopy, getObjectId, getObjectRevision, getObjectType, getOptionalStreams, getParent, getParentStepMeta, getReferencedObjectDescriptions, getRepCode, getRepositoryDirectory, getRequiredFields, getRequiredFields, getResourceDependencies, getSQLStatements, getSQLStatements, getStepInjectionMetadataEntries, getStepIOMeta, getStepMetaInjectionInterface, getSupportedTransformationTypes, getTableFields, getTooltip, getUsedArguments, getUsedDatabaseConnections, getUsedLibraries, getXmlCode, handleStreamSelection, hasChanged, hasRepositoryReferences, isBasic, isDebug, isDetailed, isReferencedObjectEnabled, isRowLevel, loadReferencedObject, loadReferencedObject, loadStepAttributes, loadXML, loadXML, logBasic, logBasic, logDebug, logDebug, logDetailed, logDetailed, logError, logError, logError, logMinimal, logMinimal, logRowlevel, logRowlevel, lookupRepositoryReferences, readRep, readRep, resetStepIoMeta, saveRep, setChanged, setChanged, setParentStepMeta, setStepIOMeta
 - 
Methods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.pentaho.di.trans.step.StepMetaInterfaceanalyseImpact, analyseImpact, cancelQueries, check, cleanAfterHopFromRemove, cleanAfterHopFromRemove, cleanAfterHopToRemove, excludeFromCopyDistributeVerification, exportResources, exportResources, extractStepMetadataEntries, fetchTransMeta, getActiveReferencedObjectDescription, getDialogClassName, getFields, getOptionalStreams, getParentStepMeta, getReferencedObjectDescriptions, getRequiredFields, getResourceDependencies, getSQLStatements, getSQLStatements, getStepMetaInjectionInterface, getSupportedTransformationTypes, getTableFields, getUsedArguments, getUsedDatabaseConnections, getUsedLibraries, handleStreamSelection, hasChanged, hasRepositoryReferences, isReferencedObjectEnabled, loadReferencedObject, loadXML, lookupRepositoryReferences, passDataToServletOutput, readRep, resetStepIoMeta, saveRep, setChanged, setParentStepMeta
 
- 
 
- 
- 
- 
Field Detail- 
cookedTransformClasspublic Class<TransformClassBase> cookedTransformClass 
 
- 
 - 
Method Detail- 
cookClassespublic void cookClasses() 
 - 
newChildInstancepublic TransformClassBase newChildInstance(UserDefinedJavaClass parent, UserDefinedJavaClassMeta meta, UserDefinedJavaClassData data) 
 - 
getFieldInfopublic List<UserDefinedJavaClassMeta.FieldInfo> getFieldInfo() 
 - 
setFieldInfopublic void setFieldInfo(List<UserDefinedJavaClassMeta.FieldInfo> fields) 
 - 
replaceFieldspublic void replaceFields(List<UserDefinedJavaClassMeta.FieldInfo> fields) 
 - 
getDefinitionspublic List<UserDefinedJavaClassDef> getDefinitions() 
 - 
orderDefinitionsprotected List<UserDefinedJavaClassDef> orderDefinitions(List<UserDefinedJavaClassDef> definitions) This method oders the classes by sorting all the normal classes by alphabetic order and then sorting all the transaction classes by alphabetical order. This makes the resolution of classes deterministic by type and then by class name.- Parameters:
- definitions- - Unorder list of user defined classes
- Returns:
- - Ordered list of user defined classes
 
 - 
replaceDefinitionspublic void replaceDefinitions(List<UserDefinedJavaClassDef> definitions) 
 - 
loadXMLpublic void loadXML(Node stepnode, List<org.pentaho.di.core.database.DatabaseMeta> databases, org.pentaho.metastore.api.IMetaStore metaStore) throws org.pentaho.di.core.exception.KettleXMLException Description copied from interface:StepMetaInterfaceLoad the values for this step from an XML Node- Specified by:
- loadXMLin interface- StepMetaInterface
- Overrides:
- loadXMLin class- BaseStepMeta
- Parameters:
- stepnode- the Node to get the info from
- databases- The available list of databases to reference to
- metaStore- the metastore to optionally load external reference metadata from
- Throws:
- org.pentaho.di.core.exception.KettleXMLException- When an unexpected XML error occurred. (malformed etc.)
 
 - 
clonepublic Object clone() Description copied from interface:StepMetaInterfaceMake an exact copy of this step, make sure to explicitly copy Collections etc.- Specified by:
- clonein interface- StepMetaInterface
- Overrides:
- clonein class- BaseStepMeta
- Returns:
- an exact copy of this step
 
 - 
setDefaultpublic void setDefault() Description copied from interface:StepMetaInterfaceSet default values- Specified by:
- setDefaultin interface- StepMetaInterface
 
 - 
getStepIOMetapublic StepIOMetaInterface getStepIOMeta() Description copied from interface:StepMetaInterfaceReturns the Input/Output metadata for this step.- Specified by:
- getStepIOMetain interface- StepMetaInterface
- Overrides:
- getStepIOMetain class- BaseStepMeta
 
 - 
searchInfoAndTargetStepspublic void searchInfoAndTargetSteps(List<StepMeta> steps) Description copied from class:BaseStepMetaChange step names into step objects to allow them to be name-changed etc.- Specified by:
- searchInfoAndTargetStepsin interface- StepMetaInterface
- Overrides:
- searchInfoAndTargetStepsin class- BaseStepMeta
- Parameters:
- steps- the steps to reference
 
 - 
getFieldspublic void getFields(org.pentaho.di.core.row.RowMetaInterface row, String originStepname, org.pentaho.di.core.row.RowMetaInterface[] info, StepMeta nextStep, org.pentaho.di.core.variables.VariableSpace space, Repository repository, org.pentaho.metastore.api.IMetaStore metaStore) throws org.pentaho.di.core.exception.KettleStepExceptionDescription copied from class:BaseStepMetaGets the fields.- Specified by:
- getFieldsin interface- StepMetaInterface
- Overrides:
- getFieldsin class- BaseStepMeta
- Parameters:
- row- the input row meta that is modified in this method to reflect the output row metadata of the step
- originStepname- Name of the step to use as input for the origin field in the values
- info- Fields used as extra lookup information
- nextStep- the next step that is targeted
- space- the space The variable space to use to replace variables
- repository- the repository to use to load Kettle metadata objects impacting the output fields
- metaStore- the MetaStore to use to load additional external data or metadata impacting the output fields
- Throws:
- org.pentaho.di.core.exception.KettleStepException- the kettle step exception
 
 - 
getXMLpublic String getXML() Description copied from class:BaseStepMetaProduces the XML string that describes this step's information.- Specified by:
- getXMLin interface- StepMetaInterface
- Overrides:
- getXMLin class- BaseStepMeta
- Returns:
- String containing the XML describing this step.
 
 - 
readReppublic void readRep(Repository rep, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.repository.ObjectId id_step, List<org.pentaho.di.core.database.DatabaseMeta> databases) throws org.pentaho.di.core.exception.KettleException Description copied from interface:StepMetaInterfaceRead the steps information from a Kettle repository- Specified by:
- readRepin interface- StepMetaInterface
- Overrides:
- readRepin class- BaseStepMeta
- Parameters:
- rep- The repository to read from
- metaStore- The MetaStore to read external information from
- id_step- The step ID
- databases- The databases to reference
- Throws:
- org.pentaho.di.core.exception.KettleException- When an unexpected error occurred (database, network, etc)
 
 - 
saveReppublic void saveRep(Repository rep, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.repository.ObjectId id_transformation, org.pentaho.di.repository.ObjectId id_step) throws org.pentaho.di.core.exception.KettleException Description copied from interface:StepMetaInterfaceSave the steps data into a Kettle repository- Specified by:
- saveRepin interface- StepMetaInterface
- Overrides:
- saveRepin class- BaseStepMeta
- Parameters:
- rep- The Kettle repository to save to
- metaStore- the metaStore to optionally write to
- id_transformation- The transformation ID
- id_step- The step ID
- Throws:
- org.pentaho.di.core.exception.KettleException- When an unexpected error occurred (database, network, etc)
 
 - 
checkpublic void check(List<org.pentaho.di.core.CheckResultInterface> remarks, TransMeta transMeta, StepMeta stepinfo, org.pentaho.di.core.row.RowMetaInterface prev, String[] input, String[] output, org.pentaho.di.core.row.RowMetaInterface info, org.pentaho.di.core.variables.VariableSpace space, Repository repository, org.pentaho.metastore.api.IMetaStore metaStore) Description copied from interface:StepMetaInterfaceChecks the settings of this step and puts the findings in a remarks List.- Specified by:
- checkin interface- StepMetaInterface
- Overrides:
- checkin class- BaseStepMeta
- Parameters:
- remarks- The list to put the remarks in @see org.pentaho.di.core.CheckResult
- stepinfo- The stepMeta to help checking
- prev- The fields coming from the previous step
- input- The input step names
- output- The output step names
- info- The fields that are used as information by the step
- space- the variable space to resolve variable expressions with
- repository- the repository to use to load Kettle metadata objects impacting the output fields
- metaStore- the MetaStore to use to load additional external data or metadata impacting the output fields
 
 - 
getSteppublic StepInterface getStep(StepMeta stepMeta, StepDataInterface stepDataInterface, int cnr, TransMeta transMeta, Trans trans) Description copied from interface:StepMetaInterfaceGet the executing step, needed by Trans to launch a step.- Specified by:
- getStepin interface- StepMetaInterface
- Parameters:
- stepMeta- The step info
- stepDataInterface- the step data interface linked to this step. Here the step can store temporary data, database connections, etc.
- cnr- The copy nr to get
- transMeta- The transformation info
- trans- The launching transformation
 
 - 
getStepDatapublic StepDataInterface getStepData() Description copied from interface:StepMetaInterfaceGet a new instance of the appropriate data class. This data class implements the StepDataInterface. It basically contains the persisting data that needs to live on, even if a worker thread is terminated.- Specified by:
- getStepDatain interface- StepMetaInterface
- Returns:
- The appropriate StepDataInterface class.
 
 - 
supportsErrorHandlingpublic boolean supportsErrorHandling() - Specified by:
- supportsErrorHandlingin interface- StepMetaInterface
- Overrides:
- supportsErrorHandlingin class- BaseStepMeta
- Returns:
- true if this step supports error "reporting" on rows: the ability to send rows to a certain target step.
 
 - 
isClearingResultFieldspublic boolean isClearingResultFields() - Returns:
- the clearingResultFields
 
 - 
setClearingResultFieldspublic void setClearingResultFields(boolean clearingResultFields) - Parameters:
- clearingResultFields- the clearingResultFields to set
 
 - 
getInfoStepDefinitionspublic List<InfoStepDefinition> getInfoStepDefinitions() - Returns:
- the infoStepDefinitions
 
 - 
setInfoStepDefinitionspublic void setInfoStepDefinitions(List<InfoStepDefinition> infoStepDefinitions) - Parameters:
- infoStepDefinitions- the infoStepDefinitions to set
 
 - 
getTargetStepDefinitionspublic List<TargetStepDefinition> getTargetStepDefinitions() - Returns:
- the targetStepDefinitions
 
 - 
setTargetStepDefinitionspublic void setTargetStepDefinitions(List<TargetStepDefinition> targetStepDefinitions) - Parameters:
- targetStepDefinitions- the targetStepDefinitions to set
 
 - 
excludeFromRowLayoutVerificationpublic boolean excludeFromRowLayoutVerification() Description copied from class:BaseStepMetaThis method is added to exclude certain steps from layout checking.- Specified by:
- excludeFromRowLayoutVerificationin interface- StepMetaInterface
- Overrides:
- excludeFromRowLayoutVerificationin class- BaseStepMeta
 
 - 
getUsageParameterspublic List<UsageParameter> getUsageParameters() - Returns:
- the usageParameters
 
 - 
setUsageParameterspublic void setUsageParameters(List<UsageParameter> usageParameters) - Parameters:
- usageParameters- the usageParameters to set
 
 
- 
 
-