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

java.lang.Object
  extended by com.informatica.powercenter.sdk.mapfwk.core.Table
      extended by com.informatica.powercenter.sdk.mapfwk.core.SourceTarget
Direct Known Subclasses:
Source, Target

public abstract class SourceTarget
extends Table

This is the abstract base class for Source and Target objects.


Field Summary
 
Fields inherited from class com.informatica.powercenter.sdk.mapfwk.core.Table
m_bReusable, m_readOnly
 
Constructor Summary
SourceTarget(java.lang.String name, java.lang.String busName, java.lang.String desc, java.lang.String instName, ConnectionInfo connInfo)
          Initialize the SourceTarget object with name, business name, description, instance name and ConnectionInfo
SourceTarget(java.lang.String name, java.lang.String busName, java.lang.String desc, java.lang.String instName, java.util.Vector connInfos)
          Initialize the SourceTarget object with name, business name, description, instance name and a collection of ConnectionInfo objects
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares the specified object with this SourceTarget for equality.
 java.lang.String getConflictResolution()
           
 ConnectionInfo getConnInfo()
          Get the connection info
 java.util.Vector getConnInfos()
          Get the collection of connection info objects
 java.lang.String getDatabaseSubtype()
          Get the database subtype
 Modifier getModifier()
          Returns the source/target modifier
 java.util.Properties getProps()
          Get the source properties
 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.
 void modify()
          This method modifies the fields depending on the source/target type.
 void modify(Modifier modifier)
          This method modifies the fields depending on the source/target type and given modifier.
 void setConflictResolution(java.lang.String conflictResolution)
          Sets the conflict resolution
 void setConnInfo(ConnectionInfo connInfo)
          Set the connection info
 void setConnInfos(java.util.Vector connInfoVec)
          Set the collection of connection info objects
 void setDatabaseSubtype(java.lang.String m_databaseSubtype)
          Sets the database subtype
 void setFields(java.util.Vector fields)
          This method sets the fields and validates after adding.
 void setModifier(Modifier modifier)
          Sets the source/target modifier
 void setProps(java.util.Properties props)
          Sets the source properties
 void setReadOnly(boolean readOnly)
          Set the readonly flag
 void setSessionTransformInstanceProperty(java.lang.String propertyName, java.lang.String propertyValue)
          Set the session instance property.
 java.lang.String toString()
          Return a String representation of this object.
 
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, setInstanceName, setMetaExtensions, setMetaExtensionValue, setName, setReusable
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SourceTarget

public SourceTarget(java.lang.String name,
                    java.lang.String busName,
                    java.lang.String desc,
                    java.lang.String instName,
                    ConnectionInfo connInfo)
Initialize the SourceTarget object with name, business name, description, instance name and ConnectionInfo

Parameters:
name - name of the table
busName - business name
desc - description
instName - instance name
connInfo - ConnectionInfo object

SourceTarget

public SourceTarget(java.lang.String name,
                    java.lang.String busName,
                    java.lang.String desc,
                    java.lang.String instName,
                    java.util.Vector connInfos)
Initialize the SourceTarget object with name, business name, description, instance name and a collection of ConnectionInfo objects

Parameters:
name -
busName -
desc -
instName -
connInfos -
Method Detail

getSessionTransformInstanceProperty

public java.lang.String getSessionTransformInstanceProperty(java.lang.String propertyName)
Get the session transform instance property. No validation is done. It is left to the user to make sure only valid properties are set.

Parameters:
propertyName - Property name
Returns:
String The property value if set, else returns null.

setSessionTransformInstanceProperty

public void setSessionTransformInstanceProperty(java.lang.String propertyName,
                                                java.lang.String propertyValue)
Set the session instance property.

Parameters:
propertyName - The property name to be set
propertyValue - The value of the property

getSessionTransformInstanceKeySet

public java.util.Enumeration getSessionTransformInstanceKeySet()
Returns an enumeration of all the propertyNames that have been set as the session transform instance property.

Returns:
Enumeration

equals

public boolean equals(java.lang.Object obj)
Compares the specified object with this SourceTarget for equality. Returns true if and only if the specified Object is also a Source and has the same name

Overrides:
equals in class java.lang.Object
Parameters:
obj - object to be compared for equality

getConnInfo

public ConnectionInfo getConnInfo()
Get the connection info

Returns:
ConnectionInfo Returns the connection info.

getConnInfos

public java.util.Vector getConnInfos()
Get the collection of connection info objects

Returns:
Vector

setConnInfos

public void setConnInfos(java.util.Vector connInfoVec)
Set the collection of connection info objects

Parameters:
connInfoVec -

setConnInfo

public void setConnInfo(ConnectionInfo connInfo)
Set the connection info

Parameters:
connInfo - The ConnectionInfo to set.

setFields

public void setFields(java.util.Vector fields)
This method sets the fields and validates after adding.

Overrides:
setFields in class Table
Parameters:
fields - The fields to set.

modify

public void modify()
This method modifies the fields depending on the source/target type.


modify

public void modify(Modifier modifier)
This method modifies the fields depending on the source/target type and given modifier.

Parameters:
modifier -

toString

public java.lang.String toString()
Return a String representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
String value

getModifier

public Modifier getModifier()
Returns the source/target modifier

Returns:
Modifier

setModifier

public void setModifier(Modifier modifier)
Sets the source/target modifier

Parameters:
modifier -

getConflictResolution

public java.lang.String getConflictResolution()
Returns:
Returns the conflictResolution.

setConflictResolution

public void setConflictResolution(java.lang.String conflictResolution)
Sets the conflict resolution

Parameters:
conflictResolution - The conflictResolution to set.

setReadOnly

public void setReadOnly(boolean readOnly)
Set the readonly flag

Overrides:
setReadOnly in class Table
Parameters:
readOnly - the readonly flag

setDatabaseSubtype

public void setDatabaseSubtype(java.lang.String m_databaseSubtype)
Sets the database subtype

Parameters:
m_databaseSubtype - The database subtype to be set

getDatabaseSubtype

public java.lang.String getDatabaseSubtype()
Get the database subtype

Returns:
String

getProps

public java.util.Properties getProps()
Get the source properties

Returns:
Properties

setProps

public void setProps(java.util.Properties props)
Sets the source properties

Parameters:
props - The source properties to be set