com.ibm.di.config.xml
Class ConnectorFactory
java.lang.Object
com.ibm.di.config.xml.Factories
com.ibm.di.config.xml.ConnectorFactory
public class ConnectorFactory
- extends Factories
Read/write ConnectorConfig
and children elements in XML format.
Fields inherited from class com.ibm.di.config.xml.Factories |
classMap, implMap, INHERIT_TAG, logger, MOD_TS_TAG, NAME_ATTRIBUTE, NAME_TAG, NULLBEHAVIOR, NULLBEHAVIORVALUE, NULLDEFINITION, NULLDEFINITIONVALUE, PARAMETER_TAG, parent, USER_COMMENT_ATTRIBUTE, VALUE_ATTRIBUTE |
Method Summary |
void |
build(BaseConfiguration config,
org.w3c.dom.Element elem)
Generate a XML element from a configuration object. |
void |
getAttributeMap(org.w3c.dom.Element elem,
AttributeMapConfig amc)
|
void |
getAttributeMapItem(org.w3c.dom.Element elem,
AttributeMapConfig amc)
|
void |
getAttributeMapItem(org.w3c.dom.Element elem,
AttributeMapItem ami)
|
void |
getAttributeMaps(org.w3c.dom.Element elem,
ConnectorConfig config)
|
void |
getDeltaSettings(org.w3c.dom.Element elem,
DeltaConfig dc)
|
void |
getLinkCriteria(LinkCriteriaConfig lcc,
org.w3c.dom.Element elem)
|
void |
getLinkCriteriaItems(LinkCriteriaConfig lcc,
org.w3c.dom.Element elem)
|
void |
getPoolDefConfig(org.w3c.dom.Element elem,
PoolDefConfig poolConfig)
|
void |
getPoolInstanceConfig(org.w3c.dom.Element elem,
PoolInstanceConfig poolConfig)
|
void |
getSchemas(org.w3c.dom.Element elem,
ConnectorConfig config)
|
void |
parse(BaseConfiguration config,
org.w3c.dom.Element elem)
Parse a XML element into a configuration object. |
void |
setAttributeMap(AttributeMapConfig amc,
org.w3c.dom.Element elem)
|
void |
setAttributeMapItems(AttributeMapConfig amc,
org.w3c.dom.Element e)
|
void |
setAttributeMaps(org.w3c.dom.Element elem,
ConnectorConfig cc)
|
void |
setDeltaSettings(org.w3c.dom.Element elem,
DeltaConfig dc)
|
void |
setLinkCriteria(LinkCriteriaConfig lcc,
org.w3c.dom.Element elem)
|
void |
setLinkCriteriaItems(LinkCriteriaConfig lcc,
org.w3c.dom.Element elem)
|
void |
setPoolDefConfig(org.w3c.dom.Element elem,
PoolDefConfig poolConfig)
|
void |
setPoolInstanceConfig(org.w3c.dom.Element elem,
PoolInstanceConfig poolConfig)
|
void |
setSchemas(org.w3c.dom.Element elem,
ConnectorConfig cc)
|
Methods inherited from class com.ibm.di.config.xml.Factories |
debug, dump, getBaseName, getClassTag, getFactory, getImpl, getInheritsFrom, getNodeText, getNodeTextByName, getParameter, getParameters, getSingleElement, isDebugMode, logmsg, setBaseName, setInheritsFrom, setParameter, setParameters, setSingleElement, setSingleElement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONNECTOR_TAG
public static final java.lang.String CONNECTOR_TAG
- See Also:
- Constant Field Values
MODE
public static final java.lang.String MODE
- See Also:
- Constant Field Values
STATE
public static final java.lang.String STATE
- See Also:
- Constant Field Values
SCRIPT
public static final java.lang.String SCRIPT
- See Also:
- Constant Field Values
INIT_OPTION
public static final java.lang.String INIT_OPTION
- See Also:
- Constant Field Values
COMPUTE_CHANGES
public static final java.lang.String COMPUTE_CHANGES
- See Also:
- Constant Field Values
SKIP_LOOKUP
public static final java.lang.String SKIP_LOOKUP
- See Also:
- Constant Field Values
LINK_CRITERIA
public static final java.lang.String LINK_CRITERIA
- See Also:
- Constant Field Values
LINK_CRITERIA_ITEM
public static final java.lang.String LINK_CRITERIA_ITEM
- See Also:
- Constant Field Values
LINK_CRITERIA_MODE
public static final java.lang.String LINK_CRITERIA_MODE
- See Also:
- Constant Field Values
LINK_CRITERIA_OR
public static final java.lang.String LINK_CRITERIA_OR
- See Also:
- Constant Field Values
LINK_CRITERIA_SCRIPT
public static final java.lang.String LINK_CRITERIA_SCRIPT
- See Also:
- Constant Field Values
LCI_ATTRIBUTE
public static final java.lang.String LCI_ATTRIBUTE
- See Also:
- Constant Field Values
LCI_OPERAND
public static final java.lang.String LCI_OPERAND
- See Also:
- Constant Field Values
LCI_VALUE
public static final java.lang.String LCI_VALUE
- See Also:
- Constant Field Values
LCI_KEY
public static final java.lang.String LCI_KEY
- See Also:
- Constant Field Values
ATTRIBUTE_MAP
public static final java.lang.String ATTRIBUTE_MAP
- See Also:
- Constant Field Values
ATTRIBUTE_MAP_ITEM
public static final java.lang.String ATTRIBUTE_MAP_ITEM
- See Also:
- Constant Field Values
AMI_NAME
public static final java.lang.String AMI_NAME
- See Also:
- Constant Field Values
AMI_TYPE
public static final java.lang.String AMI_TYPE
- See Also:
- Constant Field Values
AMI_SCRIPT
public static final java.lang.String AMI_SCRIPT
- See Also:
- Constant Field Values
AMI_ADD
public static final java.lang.String AMI_ADD
- See Also:
- Constant Field Values
AMI_MODIFY
public static final java.lang.String AMI_MODIFY
- See Also:
- Constant Field Values
AMI_SIMPLE
public static final java.lang.String AMI_SIMPLE
- See Also:
- Constant Field Values
AMI_ENABLED
public static final java.lang.String AMI_ENABLED
- See Also:
- Constant Field Values
AMI_SUBST_TEMPLATE
public static final java.lang.String AMI_SUBST_TEMPLATE
- See Also:
- Constant Field Values
CONFIGURATION
public static final java.lang.String CONFIGURATION
- See Also:
- Constant Field Values
HOOKS
public static final java.lang.String HOOKS
- See Also:
- Constant Field Values
HOOK
public static final java.lang.String HOOK
- See Also:
- Constant Field Values
DELTA_SETTINGS
public static final java.lang.String DELTA_SETTINGS
- See Also:
- Constant Field Values
DELTA_ENABLED
public static final java.lang.String DELTA_ENABLED
- See Also:
- Constant Field Values
DELTA_ATTRIBUTE
public static final java.lang.String DELTA_ATTRIBUTE
- See Also:
- Constant Field Values
DELTA_FILEPATH
public static final java.lang.String DELTA_FILEPATH
- See Also:
- Constant Field Values
DELTA_READ_DELETED
public static final java.lang.String DELTA_READ_DELETED
- See Also:
- Constant Field Values
DELTA_REMOVE_DELETED
public static final java.lang.String DELTA_REMOVE_DELETED
- See Also:
- Constant Field Values
DELTA_RETURN_UNCHANGED
public static final java.lang.String DELTA_RETURN_UNCHANGED
- See Also:
- Constant Field Values
DELTA_WHEN_TO_COMMIT
public static final java.lang.String DELTA_WHEN_TO_COMMIT
- See Also:
- Constant Field Values
DELTA_ROW_LOCKING
public static final java.lang.String DELTA_ROW_LOCKING
- See Also:
- Constant Field Values
DELTA_ATTRIBUTE_LIST
public static final java.lang.String DELTA_ATTRIBUTE_LIST
- See Also:
- Constant Field Values
DELTA_CHANGE_DETECTION_MODE
public static final java.lang.String DELTA_CHANGE_DETECTION_MODE
- See Also:
- Constant Field Values
DELTA_DRIVER
public static final java.lang.String DELTA_DRIVER
- See Also:
- Constant Field Values
DELTA_LEVEL
public static final java.lang.String DELTA_LEVEL
- See Also:
- Constant Field Values
DELTA_BEHAVIOR
public static final java.lang.String DELTA_BEHAVIOR
- See Also:
- Constant Field Values
DELTA_STRICT
public static final java.lang.String DELTA_STRICT
- See Also:
- Constant Field Values
DELTA_FAST_ALGORITHM
public static final java.lang.String DELTA_FAST_ALGORITHM
- See Also:
- Constant Field Values
DELTA_DUPLICATE_KEYS
public static final java.lang.String DELTA_DUPLICATE_KEYS
- See Also:
- Constant Field Values
POOL_DEF
public static final java.lang.String POOL_DEF
- See Also:
- Constant Field Values
POOL_DEF_ENABLED
public static final java.lang.String POOL_DEF_ENABLED
- See Also:
- Constant Field Values
POOL_DEF_MIN_SIZE
public static final java.lang.String POOL_DEF_MIN_SIZE
- See Also:
- Constant Field Values
POOL_DEF_MAX_SIZE
public static final java.lang.String POOL_DEF_MAX_SIZE
- See Also:
- Constant Field Values
POOL_DEF_PURGE_INTERVAL
public static final java.lang.String POOL_DEF_PURGE_INTERVAL
- See Also:
- Constant Field Values
POOL_DEF_INITIALIZE_ATTEMPTS
public static final java.lang.String POOL_DEF_INITIALIZE_ATTEMPTS
- See Also:
- Constant Field Values
POOL_DEF_INITIALIZE_SLEEP_INTERVAL
public static final java.lang.String POOL_DEF_INITIALIZE_SLEEP_INTERVAL
- See Also:
- Constant Field Values
POOL_INSTANCE
public static final java.lang.String POOL_INSTANCE
- See Also:
- Constant Field Values
POOL_INSTANCE_ENABLED
public static final java.lang.String POOL_INSTANCE_ENABLED
- See Also:
- Constant Field Values
POOL_INSTANCE_EXHAUSTED_BEHAVIOR
public static final java.lang.String POOL_INSTANCE_EXHAUSTED_BEHAVIOR
- See Also:
- Constant Field Values
OPS_CARRIER
public static final java.lang.String OPS_CARRIER
- See Also:
- Constant Field Values
OPS_CARRIER_PROP
public static final java.lang.String OPS_CARRIER_PROP
- See Also:
- Constant Field Values
LOOKUP_LIMIT
public static final java.lang.String LOOKUP_LIMIT
- See Also:
- Constant Field Values
SUPPORTED_MODES
public static final java.lang.String SUPPORTED_MODES
- See Also:
- Constant Field Values
ConnectorFactory
public ConnectorFactory()
parse
public void parse(BaseConfiguration config,
org.w3c.dom.Element elem)
throws java.lang.Exception
- Parse a XML element into a configuration object.
- Overrides:
parse
in class Factories
- Parameters:
config
- an instance of the BaseConfiguration
class which
internal parameters will get set based on the information from
the provided XML Element.elem
- this is a part of the XML tree that represents the
BaseConfiguration
object.
- Throws:
java.lang.Exception
- in case the configuration object the provided XML element
represents is not recognized.
getLinkCriteria
public void getLinkCriteria(LinkCriteriaConfig lcc,
org.w3c.dom.Element elem)
throws java.lang.Exception
- Throws:
java.lang.Exception
getLinkCriteriaItems
public void getLinkCriteriaItems(LinkCriteriaConfig lcc,
org.w3c.dom.Element elem)
throws java.lang.Exception
- Throws:
java.lang.Exception
getSchemas
public void getSchemas(org.w3c.dom.Element elem,
ConnectorConfig config)
throws java.lang.Exception
- Throws:
java.lang.Exception
getAttributeMaps
public void getAttributeMaps(org.w3c.dom.Element elem,
ConnectorConfig config)
throws java.lang.Exception
- Throws:
java.lang.Exception
getAttributeMapItem
public void getAttributeMapItem(org.w3c.dom.Element elem,
AttributeMapConfig amc)
throws java.lang.Exception
- Throws:
java.lang.Exception
getAttributeMap
public void getAttributeMap(org.w3c.dom.Element elem,
AttributeMapConfig amc)
throws java.lang.Exception
- Throws:
java.lang.Exception
getAttributeMapItem
public void getAttributeMapItem(org.w3c.dom.Element elem,
AttributeMapItem ami)
throws java.lang.Exception
- Throws:
java.lang.Exception
getDeltaSettings
public void getDeltaSettings(org.w3c.dom.Element elem,
DeltaConfig dc)
throws java.lang.Exception
- Throws:
java.lang.Exception
build
public void build(BaseConfiguration config,
org.w3c.dom.Element elem)
throws java.lang.Exception
- Generate a XML element from a configuration object.
- Overrides:
build
in class Factories
- Parameters:
config
- an instance of the BaseConfiguration
class which
internal parameters will be represented as a XML sub-tree.elem
- this is the part of the XML tree where the config object's XML
representation will be attached to.
- Throws:
java.lang.Exception
- in case the tag name of the provided XML element is not
recognized as a valid name which is used for configuration
object representation as a XML.
setSchemas
public void setSchemas(org.w3c.dom.Element elem,
ConnectorConfig cc)
throws java.lang.Exception
- Throws:
java.lang.Exception
setAttributeMaps
public void setAttributeMaps(org.w3c.dom.Element elem,
ConnectorConfig cc)
throws java.lang.Exception
- Throws:
java.lang.Exception
setAttributeMap
public void setAttributeMap(AttributeMapConfig amc,
org.w3c.dom.Element elem)
throws java.lang.Exception
- Throws:
java.lang.Exception
setAttributeMapItems
public void setAttributeMapItems(AttributeMapConfig amc,
org.w3c.dom.Element e)
throws java.lang.Exception
- Throws:
java.lang.Exception
setLinkCriteria
public void setLinkCriteria(LinkCriteriaConfig lcc,
org.w3c.dom.Element elem)
throws java.lang.Exception
- Throws:
java.lang.Exception
setLinkCriteriaItems
public void setLinkCriteriaItems(LinkCriteriaConfig lcc,
org.w3c.dom.Element elem)
throws java.lang.Exception
- Throws:
java.lang.Exception
setDeltaSettings
public void setDeltaSettings(org.w3c.dom.Element elem,
DeltaConfig dc)
throws java.lang.Exception
- Throws:
java.lang.Exception
getPoolDefConfig
public void getPoolDefConfig(org.w3c.dom.Element elem,
PoolDefConfig poolConfig)
throws java.lang.Exception
- Throws:
java.lang.Exception
setPoolDefConfig
public void setPoolDefConfig(org.w3c.dom.Element elem,
PoolDefConfig poolConfig)
throws java.lang.Exception
- Throws:
java.lang.Exception
getPoolInstanceConfig
public void getPoolInstanceConfig(org.w3c.dom.Element elem,
PoolInstanceConfig poolConfig)
throws java.lang.Exception
- Throws:
java.lang.Exception
setPoolInstanceConfig
public void setPoolInstanceConfig(org.w3c.dom.Element elem,
PoolInstanceConfig poolConfig)
throws java.lang.Exception
- Throws:
java.lang.Exception