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