com.informatica.powercenter.sdk.mapfwk.core
Class ConnectionProperties
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<java.lang.Object,java.lang.Object>
java.util.Properties
com.informatica.powercenter.sdk.mapfwk.core.ConnectionProperties
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,java.lang.Object>
public class ConnectionProperties
- extends java.util.Properties
Represents properties of source or target connection.
This is used in ConnectionInfo
object
Following is a code example of using ConnectionProperties
while working with a flat file source
// create a connection info object for flat file source
ConnectionInfo ffConn = new ConnectionInfo( SourceTargetTypes.FLATFILE_TYPE );
// gets the connection properties for flat file
ConnectionProperties ffConnProp = ffConn.getConnProps();
// set the connection properties for flat file
ffConnProp.setProperty(ConnectionPropsConstants.FLATFILE_DELIMITERS,";");
ffConnProp.setProperty(ConnectionPropsConstants.DATETIME_FORMAT,"A 21 yyyy/mm/dd hh24:mi:ss");
ffConnProp.setProperty(ConnectionPropsConstants.FLATFILE_QUOTE_CHARACTER,"DOUBLE");
ffConnProp.setProperty(ConnectionPropsConstants.SOURCE_FILENAME,"employee.txt");
// create a flat file source using this connection info
Source src = new Source( "Employee", "Employee", "This is a flat file source Employee", "Employee", ffConn);
// get the connection info from flat file source
ConnectionInfo ffConnReturned = src.getConnInfo();
// get the connection properties from flat file source connection
ConnectionProperties ffConnPropReturned = ffConnReturned.getConnProps();
- See Also:
ConnectionInfo
,
ConnectionInfo.getConnProps()
,
Serialized Form
Fields inherited from class java.util.Properties |
defaults |
Method Summary |
void |
init(int connType)
Initialize the connection properties for a connection type |
Methods inherited from class java.util.Properties |
getProperty, getProperty, list, list, load, loadFromXML, propertyNames, save, setProperty, store, storeToXML, storeToXML |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
ConnectionProperties
public ConnectionProperties()
- Default constructor
ConnectionProperties
public ConnectionProperties(int connType)
- Constructor. Creates connection properties for the given connection type
Connection type should be one of the constants defined in
SourceTargetTypes
- Parameters:
connType
- connection type
init
public void init(int connType)
- Initialize the connection properties for a connection type
Connection type should be one of the constants defined in
SourceTargetTypes
- Parameters:
connType
- connection type