|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface TDIProperties
Local server API interface to TDIProperties. Wrapper API to expose the functionality available from com.ibm.di.config.interface.TDIProperties
TDIProperties| 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. |
TDIPropertyStore |
getDefaultStore()
Returns the default property store. |
TDIPropertyStore |
getPasswordStore()
Returns the password store. |
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. |
TDIPropertyStore |
getPropertyStore(java.lang.String name)
Returns the named property store. |
java.lang.String[] |
getPropertyStoreKeys(java.lang.String propertyStoreName)
Returns an array containing all the property keys in the named property store. |
java.util.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. |
boolean |
isPropertyEncrypted(java.lang.String propertyStoreName,
java.lang.String key)
Returns whether specified property is encrypted or not. |
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. |
void |
setDefaultStore(TDIPropertyStore defaultStore)
Sets the default property store. |
void |
setPasswordStore(TDIPropertyStore passwordStore)
Sets the password store. |
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 the property in the named property store. |
void |
setProperty(java.lang.String propertyStoreName,
java.lang.String key,
java.lang.Object value,
boolean protect)
Sets the property in the named property store. |
java.lang.String |
trimKey(java.lang.String key)
Trims the key from a given string. |
| Method Detail |
|---|
void commit()
throws java.lang.Exception
java.lang.Exception - if Runtime or Security exception occurs
java.lang.Object getProperty(java.lang.String key)
throws java.lang.Exception
key - The property name
java.lang.Exception - if Runtime or Security exception occurs
TDIPropertyStore setProperty(java.lang.String key,
java.lang.Object value)
throws java.lang.Exception
key - The property namevalue - The new property value
TDIPropertyStore to which the key/value pair
was written
java.lang.Exception - if Runtime or Security exception occurs
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)
TDIPropertyStore to which the key/value pair
was written
java.lang.Exception - if Runtime or Security exception occurs
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 namevalue - The new property value
java.lang.Exception - if Runtime or Security exception occurs
void setProperty(java.lang.String propertyStoreName,
java.lang.String key,
java.lang.Object value,
boolean protect)
throws java.lang.Exception
propertyStoreName - The name of the property storekey - The property namevalue - The new property valueprotect - True if value should be protected (driver dependent)
java.lang.Exception - if Runtime or Security exception occurs
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 - if Runtime or Security exception occurs
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 - if Runtime or Security exception occurs
java.lang.String[] getPropertyStoreKeys(java.lang.String propertyStoreName)
throws java.lang.Exception
propertyStoreName - The name of the property store
java.lang.Exception - if Runtime or Security exception occurs
java.util.List getPropertyStoreNames()
throws java.lang.Exception
java.lang.Exception - if Runtime or Security exception occurs
TDIPropertyStore getDefaultStore()
throws java.lang.Exception
java.lang.Exception - if Runtime or Security exception occurs
TDIPropertyStore getPasswordStore()
throws java.lang.Exception
java.lang.Exception - if Runtime or Security exception occurs
TDIPropertyStore getPropertyStore(java.lang.String name)
throws java.lang.Exception
name - the name of the property store
TDIPropertyStore with specified name
java.lang.Exception - if Runtime or Security exception occurs
boolean isPropertyEncrypted(java.lang.String propertyStoreName,
java.lang.String key)
throws java.lang.Exception
propertyStoreName - The name of the property storekey - The property value
true if this property is encrypted;
false otherwise
java.lang.Exception
void addPropertyStore(PropertyStoreConfig config)
throws java.lang.Exception
config - The property store configuration
java.lang.Exception - if Runtime or Security exception occurs
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 - if Runtime or Security exception occurs
void removePropertyStore(java.lang.String propertyStoreName)
throws java.lang.Exception
propertyStoreName - The name of the property store
java.lang.Exception - if Runtime or Security exception occurs
void setDefaultStore(TDIPropertyStore defaultStore)
throws java.lang.Exception
defaultStore - the new default property store
java.lang.Exception - if Runtime or Security exception occurs
void setPasswordStore(TDIPropertyStore passwordStore)
throws java.lang.Exception
passwordStore - the new password store
java.lang.Exception - if Runtime or Security exception occurs
java.lang.String trimKey(java.lang.String key)
throws java.lang.Exception
trimKey("greeting:Hello, world!") will return
the following string: "Hello, world!".
key - a string representing key:value pair
java.lang.Exception - if Runtime or Security exception occurs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||