|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.informatica.powercenter.sdk.mapfwk.core.Table com.informatica.powercenter.sdk.mapfwk.core.Transformation
public abstract class Transformation
Base class for all transformations that implement Transform
interface.
Field Summary | |
---|---|
protected java.lang.Integer |
m_templateID
template id for custom transformations |
protected java.lang.String |
m_templateName
template name for custom transformations |
protected java.util.Vector |
m_transformFieldAttr
Transformation attributes |
protected java.util.Properties |
sessionTransformInst
Session transform instance property |
Fields inherited from class com.informatica.powercenter.sdk.mapfwk.core.Table |
---|
m_bReusable, m_readOnly |
Constructor Summary | |
---|---|
Transformation()
Default constructor |
|
Transformation(int transformType)
Constructor with transformation type |
|
Transformation(java.lang.String name,
java.lang.String busName,
java.lang.String desc,
java.lang.String instName,
int type)
Initialize the object with name, business name, description and instance name |
Method Summary | |
---|---|
void |
add(OutputField field)
Add a output field for this transformation |
void |
addInitProp(InitProp initProp)
This methos adds an initprop object to the initprop vector |
static java.lang.String |
defaultDuplicateNameRemovalSchema(java.lang.String str,
java.util.Properties nameMapping)
Returns a new name which is unique. |
protected OutputSet |
genOutputSet(java.util.Vector inputSet)
Generate the OutputSet for a given Vector
of InputSet |
java.util.Vector |
getGroupSet()
Get the vector of Group objects |
java.util.Vector |
getInitProps()
This method returns the vector of initprop objects |
Mapping |
getMapping()
Get the mapping object |
java.util.Vector |
getOutFields()
Return the Vector of OutputField objects |
OutputSet |
getOutputSet()
Get the OutputSet object |
TransformationProperties |
getProperties()
Get the appropriate properties object |
java.util.Enumeration |
getSessionTransformInstanceKeySet()
Returns an enumeration of all the propertyNames that have been set as the session transform instance property. |
java.lang.String |
getSessionTransformInstanceProperty(java.lang.String propertyName)
Get the session transform instance property. |
java.lang.Integer |
getTemplateID()
This method returns the template ID |
java.lang.String |
getTemplateName()
This method returns the template Name |
TransformationContext |
getTransContext()
Get the transformation context object |
java.util.Vector |
getTransformationFieldAttr()
returns the TransformationFieldAttrDefinition |
int |
getTransformationType()
Return the transformation type |
java.util.Vector |
getTransformGroup()
Get the vector of TransformGroup objects |
void |
setGroupSet(GroupSet groupSet)
|
void |
setGroupSet(java.util.Vector groupSet)
Set the vector groupSet objects |
void |
setMapping(Mapping mapping)
This method sets the mapping |
void |
setOutFields(java.util.Vector outFields)
Set the Vector of OutputField objects |
void |
setOutputSet(OutputSet rowSet)
Set the RowSet object |
void |
setReusable(boolean trueFalse)
Set reusable |
void |
setSessionTransformInstanceProperty(java.lang.String propertyName,
java.lang.String propertyValue)
Set the session instance property. |
void |
setTemplateIDAndName(java.lang.Integer id,
java.lang.String name)
This method sets the template ID and template name |
void |
setTransContext(TransformationContext transContext)
Set the transformation context |
void |
setTransformationFieldAttr(java.util.Vector transFieldAttr)
sets the TransformationFieldAttrDefinition |
void |
setTransformationType(int txType)
Set the transformation type |
void |
setTransformGroup(java.util.Vector transformGroup)
Set the vector of TransformGroup objects |
static java.lang.String |
standardizeString(java.lang.String str)
Get the standardised string which is supported by PowerCenter |
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 |
Methods inherited from interface com.informatica.powercenter.sdk.mapfwk.core.Transform |
---|
apply |
Field Detail |
---|
protected java.lang.Integer m_templateID
protected java.lang.String m_templateName
protected java.util.Vector m_transformFieldAttr
protected java.util.Properties sessionTransformInst
Constructor Detail |
---|
public Transformation()
public Transformation(int transformType)
transformType
- Transformation Typepublic Transformation(java.lang.String name, java.lang.String busName, java.lang.String desc, java.lang.String instName, int type)
name
- name of the tablebusName
- business namedesc
- descriptiontype
- transformation typeinstName
- instance nameMethod Detail |
---|
public java.lang.String getSessionTransformInstanceProperty(java.lang.String propertyName)
propertyName
- Property name
public void setSessionTransformInstanceProperty(java.lang.String propertyName, java.lang.String propertyValue)
propertyName
- The property name to be setpropertyValue
- The value of the propertypublic java.util.Enumeration getSessionTransformInstanceKeySet()
public int getTransformationType()
getTransformationType
in interface Transform
public void setTransformationType(int txType)
txType
- The transformation type to set.TransformationConstants
public OutputSet getOutputSet()
getOutputSet
in interface Transform
public void setOutputSet(OutputSet rowSet)
rowSet
- The RowSet to set.public TransformationContext getTransContext()
public void setReusable(boolean trueFalse)
setReusable
in class Table
trueFalse
- - flag to set reusabilitypublic Mapping getMapping()
public void setMapping(Mapping mapping)
mapping
- public void setTransContext(TransformationContext transContext)
transContext
- The Transformation Context to set.public void add(OutputField field)
add
in interface Transform
field
- OutputField objectpublic java.util.Vector getOutFields()
Vector
of OutputField
objects
public void setOutFields(java.util.Vector outFields)
Vector
of OutputField
objects
outFields
- The collection to set.public java.util.Vector getGroupSet()
public void setGroupSet(java.util.Vector groupSet)
groupSet
- Collection of GroupSet objectspublic void setGroupSet(GroupSet groupSet)
public TransformationProperties getProperties()
getProperties
in interface Transform
TransformationProperties
objectpublic java.util.Vector getTransformGroup()
public void setTransformGroup(java.util.Vector transformGroup)
transformGroup
- vector of TransformGroup objectsprotected OutputSet genOutputSet(java.util.Vector inputSet)
OutputSet
for a given Vector
of InputSet
public void addInitProp(InitProp initProp)
initProp
- public java.util.Vector getInitProps()
public void setTemplateIDAndName(java.lang.Integer id, java.lang.String name)
id
- TEmplate id of the custom transformationname
- template name of the transformationpublic java.lang.Integer getTemplateID()
public java.lang.String getTemplateName()
public java.util.Vector getTransformationFieldAttr()
public void setTransformationFieldAttr(java.util.Vector transFieldAttr)
transFieldAttr
- sets the TransformationFieldAttrDefinitionpublic static java.lang.String standardizeString(java.lang.String str)
str
- String to be standardized
public static java.lang.String defaultDuplicateNameRemovalSchema(java.lang.String str, java.util.Properties nameMapping)
str
- String to be renamed in case of duplicatenameMapping
- For handling cases of generating unique names for multiple fields. This should contain a
mapping between all the strings and standardized strings generated so far. If the standardized string vaue
is present in the nameMapping a numeral is attached to the end of "_". For standardizing a single string,
pass null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |