|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.config.interfaces.TDIProperties
public class TDIProperties
This class provides access to the property stores defined for a specific configuration instance.
Field Summary | |
---|---|
static java.lang.String |
KEY_ATTRIBUTE
|
static Log |
logger
This is the logger object used by this class and other configuration drivers. |
static java.lang.String |
PROTECT_ATTRIBUTE
|
static java.lang.String |
VALUE_ATTRIBUTE
|
Constructor Summary | |
---|---|
TDIProperties()
|
|
TDIProperties(MetamergeConfig mc)
TDIProperties constructor to create instance for a specified Config. |
|
TDIProperties(MetamergeConfig mc,
boolean initStores)
|
Method Summary | |
---|---|
void |
addPropertyStore(PropertyStoreConfig config)
Adds a property store to the end of the list of TDI-P's list of property stores. |
void |
commit()
Does a commit on all property stores |
void |
debug(java.lang.String msg)
|
TDIPropertyStore |
getDefaultStore()
|
MetamergeConfig |
getMetamergeConfig()
Returns the MetamergeConfig to which this object belongs. |
TDIPropertyStore |
getPasswordStore()
|
java.lang.Object |
getProperty(java.lang.String key)
Gets the property value from the property store chosen by TDIProperties. |
java.lang.Object |
getProperty(java.lang.String propertyStoreName,
java.lang.String key)
Returns the property value from the named property store. |
Entry |
getPropertyEntry(java.lang.String key)
Returns the Entry object for a key - this is the same call as getProperty(key) only the Entry object is returned for the property. |
TDIPropertyStore |
getPropertyStore(java.lang.String name)
|
java.util.Iterator<java.lang.String> |
getPropertyStoreKeys(java.lang.String propertyStoreName)
Returns an Iterator for all the property keys in the named property store. |
java.util.List<java.lang.String> |
getPropertyStoreNames()
Returns a list of property store names in use by TDI-P. |
int |
indexOf(java.lang.String name)
Returns the index for a named property store |
void |
initStores()
|
void |
insertPropertyStore(PropertyStoreConfig config,
int atIndex)
Inserts a connector interface at the given index. |
void |
logerror(java.lang.String msg)
|
void |
removeProperty(java.lang.String propertyStoreName,
java.lang.String key)
Removes a property in the named property store. |
void |
removePropertyStore(java.lang.String propertyStoreName)
Removes a property store from TDI-P. |
protected java.util.List<TDIPropertyStore> |
selectStore(java.lang.String key,
boolean read)
Returns the preferred store for a property key |
protected TDIProperties |
selectTDIProperties(java.lang.String key,
TDIProperties defaultProps)
Returns the TDIProperties object associated with the key. |
void |
setDefaultStore(TDIPropertyStore defaultStore)
|
void |
setPasswordStore(TDIPropertyStore passwordStore)
|
TDIPropertyStore |
setProperty(java.lang.String key,
java.lang.Object value)
Sets the property in the property store chosen by TDIProperties. |
TDIPropertyStore |
setProperty(java.lang.String key,
java.lang.Object value,
boolean protect)
Sets the property in the property store chosen by TDIProperties. |
void |
setProperty(java.lang.String propertyStoreName,
java.lang.String key,
java.lang.Object value)
Sets a property in the named property store. |
java.lang.String |
trimKey(java.lang.String key)
|
void |
warn(java.lang.String msg)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Log logger
public static final java.lang.String KEY_ATTRIBUTE
public static final java.lang.String VALUE_ATTRIBUTE
public static final java.lang.String PROTECT_ATTRIBUTE
Constructor Detail |
---|
public TDIProperties()
public TDIProperties(MetamergeConfig mc) throws java.lang.Exception
mc
-
java.lang.Exception
public TDIProperties(MetamergeConfig mc, boolean initStores) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public MetamergeConfig getMetamergeConfig()
public void initStores()
public void debug(java.lang.String msg)
public void warn(java.lang.String msg)
public void logerror(java.lang.String msg)
public void commit() throws java.lang.Exception
java.lang.Exception
public java.lang.Object getProperty(java.lang.String key) throws java.lang.Exception
key
- The property name
java.lang.Exception
- Runtime or security exceptionpublic TDIPropertyStore setProperty(java.lang.String key, java.lang.Object value) throws java.lang.Exception
key
- The property namevalue
- The new property value
java.lang.Exception
- Runtime or security exceptionpublic TDIPropertyStore setProperty(java.lang.String key, java.lang.Object value, boolean protect) throws java.lang.Exception
key
- The property namevalue
- The new property valueprotect
- True if value should be protected (driver dependent)
java.lang.Exception
- Runtime or security exceptionpublic void removeProperty(java.lang.String propertyStoreName, java.lang.String key) throws java.lang.Exception
propertyStoreName
- The name of the property storekey
- The property to delete
java.lang.Exception
public java.lang.Object getProperty(java.lang.String propertyStoreName, java.lang.String key) throws java.lang.Exception
propertyStoreName
- The name of the property storekey
- The property value
java.lang.Exception
- Runtime or security exceptionpublic void setProperty(java.lang.String propertyStoreName, java.lang.String key, java.lang.Object value) throws java.lang.Exception
propertyStoreName
- The name of the property storekey
- The property valuevalue
- The new property value
java.lang.Exception
- Runtime or security exceptionpublic Entry getPropertyEntry(java.lang.String key) throws java.lang.Exception
java.lang.Exception
public java.util.Iterator<java.lang.String> getPropertyStoreKeys(java.lang.String propertyStoreName) throws java.lang.Exception
propertyStoreName
- The name of the property store
java.lang.Exception
- Runtime or security exceptionpublic void addPropertyStore(PropertyStoreConfig config) throws java.lang.Exception
config
- The property store configuration
java.lang.Exception
- Runtime or security exceptionpublic void insertPropertyStore(PropertyStoreConfig config, int atIndex) throws java.lang.Exception
config
- The property store configurationatIndex
- The position where the new connector is placed (-1 = END, 0 =
First)
java.lang.Exception
- Runtime or security exceptionpublic void removePropertyStore(java.lang.String propertyStoreName) throws java.lang.Exception
propertyStoreName
- The name of the property store
java.lang.Exception
- Runtime or security exceptionpublic java.util.List<java.lang.String> getPropertyStoreNames()
public int indexOf(java.lang.String name)
name
- Name of property store
protected java.util.List<TDIPropertyStore> selectStore(java.lang.String key, boolean read)
public TDIPropertyStore getDefaultStore()
public void setDefaultStore(TDIPropertyStore defaultStore)
public TDIPropertyStore getPasswordStore()
public void setPasswordStore(TDIPropertyStore passwordStore)
public TDIPropertyStore getPropertyStore(java.lang.String name)
public java.lang.String trimKey(java.lang.String key)
protected TDIProperties selectTDIProperties(java.lang.String key, TDIProperties defaultProps)
key
- defaultProps
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |