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

java.lang.Object
  extended by com.informatica.powercenter.sdk.mapfwk.core.TransformationContext

public class TransformationContext
extends java.lang.Object

Context class for transformations. This class binds the InputSet, OutputSet along with the Transformation object.


Field Summary
 java.util.Vector vGroupSet
          Collection of GroupSet objects
 
Constructor Summary
TransformationContext(InputSet inputSetObj)
          Initialize the object with InputSet
TransformationContext(RowSet rowSet)
          Initialize the object with RowSet
TransformationContext(java.util.Vector vInputSetOGroupSet)
          Initialize the object with collection of InputSet/GroupSet objects
 
Method Summary
 Transformation createTransform(int type)
          Get a transformation object for a given TransformationContext object and type
 Transformation createTransform(int type, java.lang.String transformName)
          Get a transformation object for a given TransformationContext object and type
 Transformation createTransform(int type, java.lang.String transformName, InputSet masterInputSet)
          Get a transformation object for a given TransformationContext object type and master input set
 Transformation createTransform(int type, java.lang.String transformName, RowSet groupFieldSet)
          Get a transformation object for a given TransformationContext object type and group fields set
 Transformation createTransform(int type, java.lang.String transformName, SourceTarget srcObj)
          Get a transformation object for a given TransformationContext object type and Source
 Transformation createTransform(int type, java.lang.String transformName, java.lang.String instName)
          Get a transformation object for a given TransformationContext object and type
 Transformation createTransform(int type, java.lang.String transformName, java.lang.String instName, InputSet masterInputSet)
          Get a transformation object for a given TransformationContext object type and master input set
 Transformation createTransform(int type, java.lang.String transformName, java.lang.String instName, RowSet groupFieldSet)
          Get a transformation object for a given TransformationContext object type and group fields set
 Transformation createTransform(int type, java.lang.String transformName, java.lang.String instName, SourceTarget srcObj)
          Get a transformation object for a given TransformationContext object type and Source
 RowSet getGroupRowSet()
          Set the RowSet of Transformation group
 java.util.Vector getInputSet()
          Return the collection of InputSet objects
 Source getLookupSource()
          Get the Lookup Source object
 SourceTarget getLookupSrcTgt()
           
 Target getLookupTarget()
          Get the Lookup Source object
 Transformation getTransformObj()
          Get the Transformation object
 void setGroupRowSet(RowSet groupRowSet)
          Get the RowSet of Transformation group
 void setInputSet(java.util.Vector inSet)
          Set the collection of InputSet objects
 void setLookupSrcTgt(SourceTarget srcTgt)
           
protected  void UpdatePortDef(InputSet inSet, int type, java.lang.String instName)
          Update the PortDef with a InputSet, type and transformation instance name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vGroupSet

public java.util.Vector vGroupSet
Collection of GroupSet objects

Constructor Detail

TransformationContext

public TransformationContext(InputSet inputSetObj)
Initialize the object with InputSet

Parameters:
inputSetObj - InputSet object

TransformationContext

public TransformationContext(RowSet rowSet)
Initialize the object with RowSet

Parameters:
rowSet - RowSet object

TransformationContext

public TransformationContext(java.util.Vector vInputSetOGroupSet)
Initialize the object with collection of InputSet/GroupSet objects

Parameters:
vInputSetOGroupSet - InputSet/GroupSet object collection
Method Detail

createTransform

public Transformation createTransform(int type)
                               throws InvalidTransformationException
Get a transformation object for a given TransformationContext object and type

Parameters:
type - transformation type
Throws:
InvalidTransformationException - exception

createTransform

public Transformation createTransform(int type,
                                      java.lang.String transformName)
                               throws InvalidTransformationException
Get a transformation object for a given TransformationContext object and type

Parameters:
type - transformation type
transformName - transformation name
Throws:
InvalidTransformationException - exception

createTransform

public Transformation createTransform(int type,
                                      java.lang.String transformName,
                                      java.lang.String instName)
                               throws InvalidTransformationException
Get a transformation object for a given TransformationContext object and type

Parameters:
type -
transformName -
instName -
Returns:
Throws:
InvalidTransformationException

createTransform

public Transformation createTransform(int type,
                                      java.lang.String transformName,
                                      SourceTarget srcObj)
                               throws InvalidTransformationException
Get a transformation object for a given TransformationContext object type and Source

Parameters:
type - transformation type
transformName - transformation name
srcObj - Source object
Throws:
InvalidTransformationException - exception

createTransform

public Transformation createTransform(int type,
                                      java.lang.String transformName,
                                      java.lang.String instName,
                                      SourceTarget srcObj)
Get a transformation object for a given TransformationContext object type and Source

Parameters:
type -
transformName -
instName -
srcObj -
Returns:

createTransform

public Transformation createTransform(int type,
                                      java.lang.String transformName,
                                      InputSet masterInputSet)
                               throws InvalidTransformationException
Get a transformation object for a given TransformationContext object type and master input set

Parameters:
type - transformation type
transformName - transformation name
masterInputSet - master input set
Throws:
InvalidTransformationException - exception

createTransform

public Transformation createTransform(int type,
                                      java.lang.String transformName,
                                      java.lang.String instName,
                                      InputSet masterInputSet)
                               throws InvalidTransformationException
Get a transformation object for a given TransformationContext object type and master input set

Parameters:
type -
transformName -
instName -
masterInputSet -
Returns:
Throws:
InvalidTransformationException

createTransform

public Transformation createTransform(int type,
                                      java.lang.String transformName,
                                      RowSet groupFieldSet)
                               throws InvalidTransformationException
Get a transformation object for a given TransformationContext object type and group fields set

Parameters:
type - transformation type
transformName - transformation name
groupFieldSet - group fields of RowSet
Throws:
InvalidTransformationException - exception

createTransform

public Transformation createTransform(int type,
                                      java.lang.String transformName,
                                      java.lang.String instName,
                                      RowSet groupFieldSet)
                               throws InvalidTransformationException
Get a transformation object for a given TransformationContext object type and group fields set

Parameters:
type -
transformName -
instName -
groupFieldSet -
Returns:
Throws:
InvalidTransformationException

getInputSet

public java.util.Vector getInputSet()
Return the collection of InputSet objects

Returns:
Returns the m_objInputSets.

setInputSet

public void setInputSet(java.util.Vector inSet)
Set the collection of InputSet objects


getLookupSource

public Source getLookupSource()
Get the Lookup Source object

Returns:
Source object

getLookupTarget

public Target getLookupTarget()
Get the Lookup Source object

Returns:
Target object

getGroupRowSet

public RowSet getGroupRowSet()
Set the RowSet of Transformation group

Returns:
Returns the RowSet

setGroupRowSet

public void setGroupRowSet(RowSet groupRowSet)
Get the RowSet of Transformation group

Parameters:
groupRowSet - RowSet obejct

getTransformObj

public Transformation getTransformObj()
Get the Transformation object

Returns:
Transformation object

UpdatePortDef

protected void UpdatePortDef(InputSet inSet,
                             int type,
                             java.lang.String instName)
Update the PortDef with a InputSet, type and transformation instance name

Parameters:
inSet - InputSet object
type - transformation type
instName - transformation instance name

getLookupSrcTgt

public SourceTarget getLookupSrcTgt()
Returns:
sourceTarget object

setLookupSrcTgt

public void setLookupSrcTgt(SourceTarget srcTgt)
Parameters:
srcTgt -