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

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

public class PowerCenterCompatibilityFactory
extends java.lang.Object

Author:
sramamoo PowerCenterCompatibilityFactory is used to set the compatibility of JMF. This is a singleton class and hence the version set reflects to all instances of the repository. That is, it would not be possible to recreate 2 instances, each running on different compatibility versions. Further, this would not be a thread-safe operation. If 2 threads use and set the version to different versions, the one last set would be used. It would also not be possible to set one compatibility version while retrieving from the repository, change the compatibility version and save it back to the repository. However, it is possible to set the compatibility version and retrieve objects from the repository and save the changes back into the repository. That is, for E.g., a 8.1.1 compatible mapping can be converted to 8.5 compatible form by setting the compatibility version to 8.5, importing the mapping into JMF and saving in back into the repository.
Note that by default, factory provides 8.5 compatibility. It can be changed to 8.1.1 compatibility by using {@link #setCompatibilityVersion) function

Method Summary
static PowerCenterCompatibilityFactory getInstance()
          Get an instance of PowerCenterCompatibilityFactory
 PowerCenterCompatibility getPowerCenterCompatibilityInstance()
          Get the PowerCenterCompatibility instance corresponding to the compatibility version set.
 void setCompatibilityVersion(int major, int minor, int patch)
          Initialise the factory with the version that is to be supported.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setCompatibilityVersion

public void setCompatibilityVersion(int major,
                                    int minor,
                                    int patch)
Initialise the factory with the version that is to be supported. For e.g. for 8.1.1 compatibility, major will be 8, minor will be 1 and patch will be 1.

Parameters:
major - major version number
minor - minor version number
patch - patch number

getPowerCenterCompatibilityInstance

public PowerCenterCompatibility getPowerCenterCompatibilityInstance()
Get the PowerCenterCompatibility instance corresponding to the compatibility version set. Default PowerCenterCompatibility instance is PowerCenter811Compatibility

Returns:
PowerCenterCompatibility

getInstance

public static PowerCenterCompatibilityFactory getInstance()
Get an instance of PowerCenterCompatibilityFactory

Returns:
PowerCenterCompatibilityFactory