com.ibm.di.config.base
Class PropertyStoreConfigImpl

java.lang.Object
  extended by com.ibm.di.config.base.BaseConfigurationImpl
      extended by com.ibm.di.config.base.PropertyStoreConfigImpl
All Implemented Interfaces:
BaseConfiguration, MetamergeConfigChangeListener, PropertyStoreConfig, Serializable

public class PropertyStoreConfigImpl
extends BaseConfigurationImpl
implements PropertyStoreConfig

Implements the configuration for a single Property Store.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ibm.di.config.base.BaseConfigurationImpl
NAME
 
Fields inherited from interface com.ibm.di.config.interfaces.BaseConfiguration
CHILD_PATH_SEPARATOR, DISABLE_EXTPROPS, DISABLE_INHERITANCE, INHERIT_NONE, INHERIT_PARENT, ONE_LEVEL, RECURSIVE, RECURSIVE_ONELEVEL, RECURSIVE_SUBTREE, SEARCH_EXACTCASE, SEARCH_ONELEVEL, SEARCH_PARAMNAME, SEARCH_PARAMNAME_RE, SEARCH_PROPERTY, SEARCH_REGEX, SEARCH_SUBSTRING, SUBTREE
 
Constructor Summary
PropertyStoreConfigImpl()
           
PropertyStoreConfigImpl(Object config)
           
 
Method Summary
 int getCacheTimeout()
          Returns the cache timeout for in-memory properties (0 == never cache)
 Object getClone()
          Return self clone
 RawConnectorConfig getConnectionConfig()
          Connector driver parameters
 boolean getInitialLoad()
          Returns true if the property data store is read into memory on creation
 String getKeyAttribute()
          Returns the attribute name used as key in the connector
 String getNameFilters()
          Property name filters
 ParserConfig getParserConfig()
          Associated Parser configuration
 boolean getReadOnly()
          Returns true if store is read-only
 String getValueAttribute()
          Returns the attribute name used as value in the connector
 void init()
          Called after internal data structure is set.
 void setCacheTimeout(int timeout)
          Sets the timeout in seconds before a property is considered stale.
 void setDisplayString(String name)
          Used by the Config Editor to set the name that should be displayed for this PropertyStoreConfig
 void setInitialLoad(boolean load)
          Sets the initial load flag (true to load data source into memory)
 void setKeyAttribute(String attrname)
          Sets the attribute name to use as property key in the connector
 void setNameFilters(String filters)
          Property name filters
 void setReadOnly(boolean readonly)
          Returns true if store is read-only
 void setValueAttribute(String attrname)
          Sets the attribute name to use for the value in the connector
 String toString()
          Answers a string containing the name of the config.
 
Methods inherited from class com.ibm.di.config.base.BaseConfigurationImpl
addListener, configurationChanged, deepClone, detachFromParent, expandPropertyValue, expandPropertyValue, flatten, fromEntry, getBooleanParameter, getChild, getChildForPath, getChildNames, getData, getDataIterator, getDebug, getDebug, getDebugBreak, getEnabled, getFlags, getInheritsFrom, getInheritsFromRef, getIntegerParameter, getKeys, getLogEnabled, getLongName, getMetamergeConfig, getModified, getName, getNamespace, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParameter, getParameter, getParameter, getParameterPropertySource, getParameterPropertySourceFromValue, getParameterRaw, getParent, getParentName, getPath, getReferences, getResHash, getScript, getScriptEngine, getShortName, getStringParameter, getSubstitutionMap, getUseConfigListeners, getUseListeners, getUserComment, hasParameter, isExpression, isParameterLocal, nameForChild, notifyChange, notifyChange, notifyChange, performNotifyChange, reattachToParent, removeListener, removeParameter, search, search, setBooleanParameter, setChild, setData, setDebug, setDebugBreak, setEnabled, setFlags, setInheritsFrom, setInheritsFromRef, setIntegerParameter, setLogEnabled, setMetamergeConfig, setModified, setName, setName, setNullBehavior, setNullBehaviorValue, setNullDefinition, setNullDefinitionValue, setParameter, setParameter, setParameterPropertySource, setParent, setProtectedParameter, setScript, setScriptEngine, setStringParameter, setSubstitutionMap, setupInheritanceChain, setUseConfigListeners, setUseListeners, setUserComment, size, toEntry, updateInheritsFrom, willExpandProps, willFlatten, willUseInherited
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.di.config.interfaces.BaseConfiguration
addListener, detachFromParent, flatten, fromEntry, getBooleanParameter, getChild, getChildForPath, getChildNames, getData, getDataIterator, getDebug, getDebug, getDebugBreak, getEnabled, getFlags, getInheritsFrom, getInheritsFromRef, getIntegerParameter, getKeys, getLogEnabled, getMetamergeConfig, getModified, getName, getNamespace, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParameter, getParameter, getParameter, getParameterPropertySource, getParameterRaw, getParent, getPath, getReferences, getScript, getScriptEngine, getShortName, getStringParameter, getSubstitutionMap, getUseListeners, getUserComment, hasParameter, isExpression, isParameterLocal, nameForChild, notifyChange, notifyChange, notifyChange, reattachToParent, removeListener, removeParameter, search, search, setBooleanParameter, setChild, setData, setDebug, setDebugBreak, setEnabled, setFlags, setInheritsFrom, setInheritsFromRef, setIntegerParameter, setLogEnabled, setMetamergeConfig, setModified, setName, setName, setNullBehavior, setNullBehaviorValue, setNullDefinition, setNullDefinitionValue, setParameter, setParameter, setParameterPropertySource, setParent, setProtectedParameter, setScript, setScriptEngine, setStringParameter, setSubstitutionMap, setupInheritanceChain, setUseListeners, setUserComment, size, toEntry, updateInheritsFrom, willFlatten
 

Constructor Detail

PropertyStoreConfigImpl

public PropertyStoreConfigImpl()

PropertyStoreConfigImpl

public PropertyStoreConfigImpl(Object config)
Method Detail

init

public void init()
          throws Exception
Description copied from class: BaseConfigurationImpl
Called after internal data structure is set.

Specified by:
init in interface BaseConfiguration
Overrides:
init in class BaseConfigurationImpl
Throws:
Exception - if the initialization fails.

getConnectionConfig

public RawConnectorConfig getConnectionConfig()
Connector driver parameters

Specified by:
getConnectionConfig in interface PropertyStoreConfig
Returns:
The connectionConfig value

getParserConfig

public ParserConfig getParserConfig()
Associated Parser configuration

Specified by:
getParserConfig in interface PropertyStoreConfig
Returns:
The parserConfig value

getNameFilters

public String getNameFilters()
Property name filters

Specified by:
getNameFilters in interface PropertyStoreConfig

setNameFilters

public void setNameFilters(String filters)
Property name filters

Specified by:
setNameFilters in interface PropertyStoreConfig

getReadOnly

public boolean getReadOnly()
Returns true if store is read-only

Specified by:
getReadOnly in interface PropertyStoreConfig

setReadOnly

public void setReadOnly(boolean readonly)
Returns true if store is read-only

Specified by:
setReadOnly in interface PropertyStoreConfig

getKeyAttribute

public String getKeyAttribute()
Returns the attribute name used as key in the connector

Specified by:
getKeyAttribute in interface PropertyStoreConfig

setKeyAttribute

public void setKeyAttribute(String attrname)
Sets the attribute name to use as property key in the connector

Specified by:
setKeyAttribute in interface PropertyStoreConfig

getValueAttribute

public String getValueAttribute()
Returns the attribute name used as value in the connector

Specified by:
getValueAttribute in interface PropertyStoreConfig

setValueAttribute

public void setValueAttribute(String attrname)
Sets the attribute name to use for the value in the connector

Specified by:
setValueAttribute in interface PropertyStoreConfig

getCacheTimeout

public int getCacheTimeout()
Returns the cache timeout for in-memory properties (0 == never cache)

Specified by:
getCacheTimeout in interface PropertyStoreConfig

setCacheTimeout

public void setCacheTimeout(int timeout)
Sets the timeout in seconds before a property is considered stale.

Specified by:
setCacheTimeout in interface PropertyStoreConfig

getInitialLoad

public boolean getInitialLoad()
Returns true if the property data store is read into memory on creation

Specified by:
getInitialLoad in interface PropertyStoreConfig

setInitialLoad

public void setInitialLoad(boolean load)
Sets the initial load flag (true to load data source into memory)

Specified by:
setInitialLoad in interface PropertyStoreConfig

getClone

public Object getClone()
                throws Exception
Return self clone

Specified by:
getClone in interface BaseConfiguration
Overrides:
getClone in class BaseConfigurationImpl
Returns:
a cloned version of this object.
Throws:
Exception

setDisplayString

public void setDisplayString(String name)
Used by the Config Editor to set the name that should be displayed for this PropertyStoreConfig


toString

public String toString()
Description copied from class: BaseConfigurationImpl
Answers a string containing the name of the config.

Overrides:
toString in class BaseConfigurationImpl
Returns:
a printable representation of the name