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

java.lang.Object
  extended by com.informatica.powercenter.sdk.mapfwk.core.TransformField
All Implemented Interfaces:
OutputField
Direct Known Subclasses:
SQLField

public class TransformField
extends java.lang.Object
implements OutputField

Class to represent an output field in a transformation.


Field Summary
 
Fields inherited from interface com.informatica.powercenter.sdk.mapfwk.core.OutputField
DATATYPE_FLAG_NOTPRESERVE, DATATYPE_FLAG_PRESERVE, EXPRTYPE_GENERAL, EXPRTYPE_GROUPBY, EXPRTYPE_JOINER, EXPRTYPE_RANKPORT, FIELDTYPE_SOURCE, FIELDTYPE_TARGET, FIELDTYPE_TRANSFORM, STR_TYPE_DYN_LOOKUP, STR_TYPE_INPUT, STR_TYPE_INPUT_MASTER, STR_TYPE_INPUT_OUTPUT, STR_TYPE_INPUT_OUTPUT_RETURN, STR_TYPE_JOINER_DETAIL, STR_TYPE_JOINER_MASTER, STR_TYPE_LOOKUP, STR_TYPE_LOOKUP_OUTPUT, STR_TYPE_OUTPUT, STR_TYPE_OUTPUT_DEFAULT, STR_TYPE_RETURN_OUTPUT, STR_TYPE_VARIABLE, TYPE_DYN_LOOKUP, TYPE_INPUT, TYPE_INPUT_MASTER, TYPE_INPUT_OUTPUT, TYPE_INPUT_OUTPUT_RETURN, TYPE_JOINER_DETAIL, TYPE_JOINER_MASTER, TYPE_LOOKUP, TYPE_LOOKUP_OUTPUT, TYPE_OUTPUT, TYPE_OUTPUT_DEFAULT, TYPE_RETURN_OUTPUT, TYPE_VARIABLE
 
Constructor Summary
TransformField()
          Default Constructor
TransformField(Field obj, int portType)
          Constructor with Field object and port type
TransformField(Field obj, java.lang.String exp)
          Constructor with field object
TransformField(java.lang.String exprForField)
          Initialize the object with expression for creating the field The expression should be in the format: = For example: string(120,0) fullName=(firstName || lastName)
TransformField(java.lang.String outputPortName, java.lang.String outputDataType, java.lang.String outputPrecision, java.lang.String outputScale, java.lang.String expression)
          Initialize the object with the output port name, output data type, output precision, output scale and expression
 
Method Summary
 int getDataTypeFlag()
          Get the datatype flag
 java.lang.String getExpr()
          Return the expression
 java.lang.String getExpressionType()
          Get the expression type
 Field getField()
          Get the Field object
 java.lang.String getGroupName()
          Get the group name
 java.lang.String getIgnoreInComp()
          get if ignore in comparison
 java.lang.String getIgnoreNullInp()
          get if ignore null inp
 int getPortType()
          Return the parameter type
 java.lang.String getRefFieldName()
          get the reference field name
 java.lang.String getSortDirection()
          returns the sort direction
 java.lang.String getSortKey()
          Returns true if this field is a sort Key
 boolean isReadOnly()
          Get the readonly flag
 void setDataTypeFlag(int dataTypeFlag)
          Set the datatype flag
 void setExpr(java.lang.String expr)
          Set the expression
 void setExpressionType(java.lang.String expr)
          Set the expression type
 void setField(Field field)
          Set the field object
 void setGroupName(java.lang.String groupName)
          Set the group name
 void setIgnoreInComp(java.lang.String ignoreInComp)
          Set ignore in comparison
 void setIgnoreNullInp(java.lang.String ignoreNullInp)
          Set ignore null inp
 void setPortType(int portType)
          Set the parameter type
 void setReadOnly(boolean readOnly)
          Set the readonly flag
 void setRefFieldName(java.lang.String fieldName)
          Set the reference field name
 void setSortDirection(java.lang.String direction)
           
 void setSortKey(java.lang.String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformField

public TransformField()
Default Constructor


TransformField

public TransformField(Field obj,
                      java.lang.String exp)
Constructor with field object


TransformField

public TransformField(Field obj,
                      int portType)
Constructor with Field object and port type

Parameters:
obj - Field object
portType - port type

TransformField

public TransformField(java.lang.String exprForField)
Initialize the object with expression for creating the field The expression should be in the format: = For example: string(120,0) fullName=(firstName || lastName)


TransformField

public TransformField(java.lang.String outputPortName,
                      java.lang.String outputDataType,
                      java.lang.String outputPrecision,
                      java.lang.String outputScale,
                      java.lang.String expression)
Initialize the object with the output port name, output data type, output precision, output scale and expression

Parameters:
outputPortName - output port name
outputDataType - output data type
outputPrecision - output precision
outputScale - output scale
expression - expression as specified in the PowerCenter expression editor
Method Detail

getField

public Field getField()
Get the Field object

Specified by:
getField in interface OutputField
Returns:
Returns the Field object

setField

public void setField(Field field)
Set the field object

Parameters:
field - The field to set.

getExpressionType

public java.lang.String getExpressionType()
Description copied from interface: OutputField
Get the expression type

Specified by:
getExpressionType in interface OutputField
Returns:
String expression type

setExpressionType

public void setExpressionType(java.lang.String expr)
Description copied from interface: OutputField
Set the expression type

Specified by:
setExpressionType in interface OutputField
Parameters:
expr - Expression type

getPortType

public int getPortType()
Description copied from interface: OutputField
Return the parameter type

Specified by:
getPortType in interface OutputField
Returns:
parameter type as an integer

setPortType

public void setPortType(int portType)
Description copied from interface: OutputField
Set the parameter type

Specified by:
setPortType in interface OutputField
Parameters:
portType - parameter type as an int value

getExpr

public java.lang.String getExpr()
Description copied from interface: OutputField
Return the expression

Specified by:
getExpr in interface OutputField
Returns:
Returns the expression as a String

setExpr

public void setExpr(java.lang.String expr)
Description copied from interface: OutputField
Set the expression

Specified by:
setExpr in interface OutputField
Parameters:
expr - The expression to set as a String

getDataTypeFlag

public int getDataTypeFlag()
Get the datatype flag

Specified by:
getDataTypeFlag in interface OutputField
Returns:
Returns the datatype flag

setDataTypeFlag

public void setDataTypeFlag(int dataTypeFlag)
Set the datatype flag

Specified by:
setDataTypeFlag in interface OutputField
Parameters:
dataTypeFlag - the datatype flag

getGroupName

public java.lang.String getGroupName()
Description copied from interface: OutputField
Get the group name

Specified by:
getGroupName in interface OutputField
Returns:
Returns the group name

setGroupName

public void setGroupName(java.lang.String groupName)
Description copied from interface: OutputField
Set the group name

Specified by:
setGroupName in interface OutputField
Parameters:
groupName - the group name as a String

getSortDirection

public java.lang.String getSortDirection()
Description copied from interface: OutputField
returns the sort direction

Specified by:
getSortDirection in interface OutputField
Returns:
String

getSortKey

public java.lang.String getSortKey()
Description copied from interface: OutputField
Returns true if this field is a sort Key

Specified by:
getSortKey in interface OutputField
Returns:
boolean

setSortDirection

public void setSortDirection(java.lang.String direction)
Specified by:
setSortDirection in interface OutputField

setSortKey

public void setSortKey(java.lang.String key)
Specified by:
setSortKey in interface OutputField

getRefFieldName

public java.lang.String getRefFieldName()
Description copied from interface: OutputField
get the reference field name

Specified by:
getRefFieldName in interface OutputField
Returns:
Returns the reference field name

setRefFieldName

public void setRefFieldName(java.lang.String fieldName)
Description copied from interface: OutputField
Set the reference field name

Specified by:
setRefFieldName in interface OutputField
Parameters:
fieldName - reference field name

isReadOnly

public boolean isReadOnly()
Get the readonly flag

Specified by:
isReadOnly in interface OutputField
Returns:
Returns the readonly flag

setReadOnly

public void setReadOnly(boolean readOnly)
Set the readonly flag

Specified by:
setReadOnly in interface OutputField
Parameters:
readOnly - the readonly flag

getIgnoreInComp

public java.lang.String getIgnoreInComp()
Description copied from interface: OutputField
get if ignore in comparison

Specified by:
getIgnoreInComp in interface OutputField
Returns:
boolean

getIgnoreNullInp

public java.lang.String getIgnoreNullInp()
Description copied from interface: OutputField
get if ignore null inp

Specified by:
getIgnoreNullInp in interface OutputField
Returns:
boolean

setIgnoreInComp

public void setIgnoreInComp(java.lang.String ignoreInComp)
Description copied from interface: OutputField
Set ignore in comparison

Specified by:
setIgnoreInComp in interface OutputField

setIgnoreNullInp

public void setIgnoreNullInp(java.lang.String ignoreNullInp)
Description copied from interface: OutputField
Set ignore null inp

Specified by:
setIgnoreNullInp in interface OutputField