|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.di.api.local.impl.TDIPropertiesImpl
public class TDIPropertiesImpl
Wrapper API to expose the functionality available from com.ibm.di.config.interfaces.TDIProperties.
| Constructor Summary | |
|---|---|
TDIPropertiesImpl(TDIProperties aTDIProperties,
SessionImpl aSession)
Constructor |
|
| 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. |
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. |
TDIPropertyStore |
getPropertyStore(String name)
Returns the named property store. |
String[] |
getPropertyStoreKeys(String propertyStoreName)
Returns an array containing 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. |
boolean |
isPropertyEncrypted(String propertyStoreName,
String key)
Returns whether specified property is encrypted or not. |
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)
Sets the default property store. |
void |
setPasswordStore(TDIPropertyStore passwordStore)
Sets the password store. |
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 the property in the named property store. |
void |
setProperty(String propertyStoreName,
String key,
Object value,
boolean protect)
Sets the property in the named property store. |
String |
trimKey(String key)
Trims the key from a given string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TDIPropertiesImpl(TDIProperties aTDIProperties,
SessionImpl aSession)
throws DIException
aTDIProperties - aSession -
DIException| Method Detail |
|---|
public void commit()
throws Exception
commit in interface TDIPropertiesException - if Runtime or Security exception occurs
public Object getProperty(String key)
throws Exception
getProperty in interface TDIPropertieskey - The property name
Exception - if Runtime or Security exception occurs
public TDIPropertyStore setProperty(String key,
Object value)
throws Exception
setProperty in interface TDIPropertieskey - The property namevalue - The new property value
TDIPropertyStore to which the key/value pair
was written
Exception - if Runtime or Security exception occurs
public TDIPropertyStore setProperty(String key,
Object value,
boolean protect)
throws Exception
setProperty in interface TDIPropertieskey - The property namevalue - The new property valueprotect - True if value should be protected (driver dependent)
TDIPropertyStore to which the key/value pair
was written
Exception - if Runtime or Security exception occurs
public void removeProperty(String propertyStoreName,
String key)
throws Exception
removeProperty in interface TDIPropertiespropertyStoreName - The name of the property storekey - The property to delete
Exception - if Runtime or Security exception occurs
public Object getProperty(String propertyStoreName,
String key)
throws Exception
getProperty in interface TDIPropertiespropertyStoreName - The name of the property storekey - The property value
Exception - if Runtime or Security exception occurs
public void setProperty(String propertyStoreName,
String key,
Object value)
throws Exception
setProperty in interface TDIPropertiespropertyStoreName - The name of the property storekey - The property namevalue - The new property value
Exception - if Runtime or Security exception occurs
public String[] getPropertyStoreKeys(String propertyStoreName)
throws Exception
getPropertyStoreKeys in interface TDIPropertiespropertyStoreName - The name of the property store
Exception - if Runtime or Security exception occurs
public void addPropertyStore(PropertyStoreConfig config)
throws Exception
addPropertyStore in interface TDIPropertiesconfig - The property store configuration
Exception - if Runtime or Security exception occurs
public void insertPropertyStore(PropertyStoreConfig config,
int atIndex)
throws Exception
insertPropertyStore in interface TDIPropertiesconfig - The property store configurationatIndex - The position where the new connector is placed (-1 = END, 0 =
First)
Exception - if Runtime or Security exception occurs
public void removePropertyStore(String propertyStoreName)
throws Exception
removePropertyStore in interface TDIPropertiespropertyStoreName - The name of the property store
Exception - if Runtime or Security exception occurs
public List getPropertyStoreNames()
throws Exception
getPropertyStoreNames in interface TDIPropertiesException - if Runtime or Security exception occurs
public TDIPropertyStore getDefaultStore()
throws Exception
getDefaultStore in interface TDIPropertiesException - if Runtime or Security exception occurs
public void setDefaultStore(TDIPropertyStore defaultStore)
throws Exception
setDefaultStore in interface TDIPropertiesdefaultStore - the new default property store
Exception - if Runtime or Security exception occurs
public TDIPropertyStore getPasswordStore()
throws Exception
getPasswordStore in interface TDIPropertiesException - if Runtime or Security exception occurs
public void setPasswordStore(TDIPropertyStore passwordStore)
throws Exception
setPasswordStore in interface TDIPropertiespasswordStore - the new password store
Exception - if Runtime or Security exception occurs
public TDIPropertyStore getPropertyStore(String name)
throws Exception
getPropertyStore in interface TDIPropertiesname - the name of the property store
TDIPropertyStore with specified name
Exception - if Runtime or Security exception occurs
public String trimKey(String key)
throws Exception
trimKey("greeting:Hello, world!") will return
the following string: "Hello, world!".
trimKey in interface TDIPropertieskey - a string representing key:value pair
Exception - if Runtime or Security exception occurs
public void setProperty(String propertyStoreName,
String key,
Object value,
boolean protect)
throws Exception
setProperty in interface TDIPropertiespropertyStoreName - The name of the property storekey - The property namevalue - The new property valueprotect - True if value should be protected (driver dependent)
Exception - if Runtime or Security exception occurs
public boolean isPropertyEncrypted(String propertyStoreName,
String key)
throws Exception
isPropertyEncrypted in interface TDIPropertiespropertyStoreName - The name of the property storekey - The property value
true if this property is encrypted;
false otherwise
Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||