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

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.GenericTransformation
All Implemented Interfaces:
Transform

public class GenericTransformation
extends Transformation

Author:
sramamoo

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
GenericTransformation()
           
GenericTransformation(java.lang.String name, java.lang.String busName, java.lang.String desc, java.lang.String instName, java.lang.String transformationType)
          Initialize the object with name, business name, description and instance name
GenericTransformation(java.lang.String name, java.lang.String busName, java.lang.String desc, java.lang.String instName, java.lang.String transformationType, java.util.Vector vInputOrGroupSets, java.util.Vector vTransformFields, TransformationProperties props)
          This constructor needs to be used for creating a generic transformation
 
Method Summary
 OutputSet apply()
          Apply the Transformation.
 java.lang.String getGenericTransformationType()
           
static int getTransformationId(java.lang.String transformationType)
          Return id of the transformation for a corresponding type
static java.lang.String getTransformationType(int transformationId)
          Return type of the transformation for the corresponding type
static void registerTransformationType(java.lang.String transformationType)
           
 void setTransformationType(java.lang.String transformationType)
           
 
Methods inherited from class com.informatica.powercenter.sdk.mapfwk.core.Transformation
add, addInitProp, defaultDuplicateNameRemovalSchema, genOutputSet, 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

GenericTransformation

public GenericTransformation()

GenericTransformation

public GenericTransformation(java.lang.String name,
                             java.lang.String busName,
                             java.lang.String desc,
                             java.lang.String instName,
                             java.lang.String transformationType)
                      throws InvalidTransformationException
Initialize the object with name, business name, description and instance name

Parameters:
name - name of the table
busName - business name
desc - description
instName - instance name
Throws:
InvalidTransformationException

GenericTransformation

public GenericTransformation(java.lang.String name,
                             java.lang.String busName,
                             java.lang.String desc,
                             java.lang.String instName,
                             java.lang.String transformationType,
                             java.util.Vector vInputOrGroupSets,
                             java.util.Vector vTransformFields,
                             TransformationProperties props)
                      throws InvalidTransformationException
This constructor needs to be used for creating a generic transformation

Parameters:
name -
busName -
desc -
instName -
transformationType: - Type of the transformation
vInputOrGroupSets: - this could be either input set or group set which will be treated as an input to transformation
vTransformFields: - new fields will be added to the tranformation
props - properties
Throws:
InvalidTransformationException
Method Detail

registerTransformationType

public static void registerTransformationType(java.lang.String transformationType)
Parameters:
transformationType -

getTransformationType

public static java.lang.String getTransformationType(int transformationId)
Return type of the transformation for the corresponding type

Parameters:
transformationId -
Returns:

getTransformationId

public static int getTransformationId(java.lang.String transformationType)
Return id of the transformation for a corresponding type

Parameters:
transformationName -
Returns:

getGenericTransformationType

public java.lang.String getGenericTransformationType()

apply

public OutputSet apply()
                throws InvalidTransformationException
Description copied from interface: Transform
Apply the Transformation.

Returns:
OutputSet object
Throws:
InvalidTransformationException - exception

setTransformationType

public void setTransformationType(java.lang.String transformationType)
Parameters:
transformationType - the transformationType to set