com.informatica.powercenter.sdk.mapfwk.core
Class MappletTransformation

java.lang.Object
  extended by com.informatica.powercenter.sdk.mapfwk.core.Table
      extended by com.informatica.powercenter.sdk.mapfwk.core.Transformation
          extended by com.informatica.powercenter.sdk.mapfwk.core.MappletTransformation
All Implemented Interfaces:
Transform

public class MappletTransformation
extends Transformation

This class enables the usage of a Mapplet in a transformation. It extends the Transformation to provide this functionality. The mapplet definition should be specified as GroupSet, one for InputGroup and one for OutputGroup. The TransformHelper class can be used to create this Transformation.

 GroupSet inSet; // create input groups;
 GroupSet outSet; // create output groups;
 Vector v = new Vector();
 v.add( inSet );
 v.add( outSet );
 helper.mapplet( v, TransformationConstants.MAPPLET, "TestMapplet" );
 


Field Summary
 
Fields inherited from class com.informatica.powercenter.sdk.mapfwk.core.Transformation
m_templateID, m_templateName, m_transformFieldAttr, sessionTransformInst
 
Fields inherited from class com.informatica.powercenter.sdk.mapfwk.core.Table
m_bReusable, m_readOnly
 
Constructor Summary
MappletTransformation()
          Default constructor
MappletTransformation(java.lang.String name, java.lang.String busName, java.lang.String desc, java.lang.String instName)
          Initialize the object using name, business name, description and instance name
MappletTransformation(java.lang.String name, java.lang.String busName, java.lang.String desc, java.lang.String instName, java.util.Vector vGroupSets)
          rjain created during mapplet extension Initialize the object using name, business name, description and instance name, vGroupSet and transformation type
 
Method Summary
 OutputSet apply()
          Apply the transformation
protected  OutputSet genOutputSet(java.util.Vector inputSet)
          Generate the OutputSet for a given Vector of InputSet
 
Methods inherited from class com.informatica.powercenter.sdk.mapfwk.core.Transformation
add, addInitProp, defaultDuplicateNameRemovalSchema, getGroupSet, getInitProps, getMapping, getOutFields, getOutputSet, getProperties, getSessionTransformInstanceKeySet, getSessionTransformInstanceProperty, getTemplateID, getTemplateName, getTransContext, getTransformationFieldAttr, getTransformationType, getTransformGroup, setGroupSet, setGroupSet, setMapping, setOutFields, setOutputSet, setReusable, setSessionTransformInstanceProperty, setTemplateIDAndName, setTransContext, setTransformationFieldAttr, setTransformationType, setTransformGroup, standardizeString
 
Methods inherited from class com.informatica.powercenter.sdk.mapfwk.core.Table
addField, addMetaExtension, getBusinessName, getDescription, getField, getFields, getInstanceName, getMetaExtensions, getName, getReferencedField, isReadOnly, isReusable, removeField, removeMetaExtension, setBusinessName, setDescription, setFields, setInstanceName, setMetaExtensions, setMetaExtensionValue, setName, setReadOnly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappletTransformation

public MappletTransformation()
Default constructor


MappletTransformation

public MappletTransformation(java.lang.String name,
                             java.lang.String busName,
                             java.lang.String desc,
                             java.lang.String instName)
Initialize the object using name, business name, description and instance name

Parameters:
name - Name of the transformation
busName - Business name of the transformation
desc - Description
instName - Instance name of the transformation

MappletTransformation

public MappletTransformation(java.lang.String name,
                             java.lang.String busName,
                             java.lang.String desc,
                             java.lang.String instName,
                             java.util.Vector vGroupSets)
                      throws InvalidTransformationException
rjain created during mapplet extension Initialize the object using name, business name, description and instance name, vGroupSet and transformation type

Parameters:
name -
busName -
desc -
instName -
vGroupSets -
transformationType -
Throws:
java.lang.Exception
InvalidTransformationException
Method Detail

apply

public OutputSet apply()
                throws InvalidTransformationException
Apply the transformation

Returns:
OutputSet object
Throws:
InvalidTransformationException - exception

genOutputSet

protected OutputSet genOutputSet(java.util.Vector inputSet)
Description copied from class: Transformation
Generate the OutputSet for a given Vector of InputSet

Overrides:
genOutputSet in class Transformation
Returns:
OutputSet object