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

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

public class UnconnectedLookup
extends Transformation

This class implements the UnConnected Lookup transformation. It extends the base Transformation class to provide this functionality. For Further details see Transformation Guide.

The code snippet for this Transformation is

  
           //create an Unconnected Lookup Transformation using the constructor given below: 
           Vector inputFld = ...; // collection of input fields
           SourceTarget srcTgt = ...; //SourceTarget object
           Field returnPort = ...; // the return port object
           Mapping mapping = ...; // mapping to which the transform should be added
           TransformationProperties props = ...; // properties
           String condition = ...; // the transaction control condition           
           UnconnectedLookup uncLkpTrans = new UnconnectedLookup
                               ( "UncLkpTrans", "UncLkpTrans", 
                                 "This is an Unconnected lookup Transformation", Vector inputFld,
  returnPort, srcTgt, mapping, props, condition );
           
           //apply the transformation
           OutputSet outputSet = uncLkpTrans.apply();
           
           //get the first rowset as Unconnected lookup always returns a RowSet
           RowSet outRowSet = (RowSet)outputSet.getRowSets().get(0); 
   
 


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
UnconnectedLookup(java.lang.String name, java.lang.String bussName, java.lang.String desc, java.util.Vector inputFld, Field returnPort, SourceTarget srcTgt)
          constructor for unconnected lookup
UnconnectedLookup(java.lang.String name, java.lang.String bussName, java.lang.String desc, java.util.Vector inputFld, Field returnPort, SourceTarget srcTgt, Mapping mapping, TransformationProperties properties, java.lang.String condition)
           
UnconnectedLookup(java.lang.String name, java.lang.String bussName, java.util.Vector inputFld, Field returnPort, SourceTarget srcTgt)
          constructor for unconnected lookup
UnconnectedLookup(java.lang.String name, java.util.Vector lkpFields, Field returnPort, java.util.Vector inputFld, SourceTarget srcTgt)
          constructor for unconnected lookup
 
Method Summary
 OutputSet apply()
          This method is required to apply the lookup transformation.
 void setPortType(Field field, int portType)
          Sets the portType for a given field
 void setPortType(java.lang.String fieldName, int portType)
          Sets the port type for a given field
 
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

UnconnectedLookup

public UnconnectedLookup(java.lang.String name,
                         java.lang.String bussName,
                         java.util.Vector inputFld,
                         Field returnPort,
                         SourceTarget srcTgt)
constructor for unconnected lookup

Parameters:
name -
bussName -
inputFld - which is a vector of lookup fields
returnPort - return port for unconnected transformation
srcTgt -

UnconnectedLookup

public UnconnectedLookup(java.lang.String name,
                         java.util.Vector lkpFields,
                         Field returnPort,
                         java.util.Vector inputFld,
                         SourceTarget srcTgt)
constructor for unconnected lookup

Parameters:
name - name of transformation
lkpFields - lookup fields
returnPort - return port for unconnected transformation
inputFld -
srcTgt -

UnconnectedLookup

public UnconnectedLookup(java.lang.String name,
                         java.lang.String bussName,
                         java.lang.String desc,
                         java.util.Vector inputFld,
                         Field returnPort,
                         SourceTarget srcTgt)
constructor for unconnected lookup

Parameters:
name - name of transformation
bussName - business name of transformation
desc - description
inputFld - which is a vector of lookup fields
returnPort - return port for unconnected transformation
srcTgt -

UnconnectedLookup

public UnconnectedLookup(java.lang.String name,
                         java.lang.String bussName,
                         java.lang.String desc,
                         java.util.Vector inputFld,
                         Field returnPort,
                         SourceTarget srcTgt,
                         Mapping mapping,
                         TransformationProperties properties,
                         java.lang.String condition)
Method Detail

setPortType

public void setPortType(Field field,
                        int portType)
Sets the portType for a given field

Parameters:
field -
portType -

setPortType

public void setPortType(java.lang.String fieldName,
                        int portType)
Sets the port type for a given field

Parameters:
fieldName -
portType -

apply

public OutputSet apply()
This method is required to apply the lookup transformation.

Returns:
OutputSet object