|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.di.config.interfaces.TDIPropertyStore
public class TDIPropertyStore
Represents a property store
| Field Summary | |
|---|---|
static Log |
logger
This is the logger object used by this class and other configuration drivers. |
static java.lang.String |
PROTECT_VAL_PREFIX
|
| Constructor Summary | |
|---|---|
TDIPropertyStore()
|
|
TDIPropertyStore(PropertyStoreConfig psc)
Constructor for the TDIPropertyStore object |
|
TDIPropertyStore(PropertyStoreConfig psc,
TDIProperties context)
Constructor for the TDIPropertyStore object |
|
| Method Summary | |
|---|---|
boolean |
accepts(java.lang.String propertyName)
Returns true if we accept this propertyname. |
boolean |
canDelete()
Returns true if the connector supports Delete mode and is not readonly |
boolean |
canIterate()
Returns true if the connector supports Iterator mode |
boolean |
canRead()
Returns true if the connector supports Lookup mode |
boolean |
canWrite()
Returns true if the connector supports Update mode and is not readonly |
void |
commit()
Flushes changes to target system |
java.util.Iterator |
entries()
Returns an Iterator over all property Entries |
RawConnectorConfig |
getConnectionConfig()
Return the config for the underlying Connector. |
java.lang.Exception |
getException()
Returns the last Exception thrown by the connector while iterating |
java.lang.String |
getName()
Gets the short name of this TDIPropertyStore |
java.lang.Object |
getProperty(java.lang.String key)
Returns the named property |
Entry |
getPropertyEntry(java.lang.String key)
Returns the Entry object for a key. |
boolean |
hasNext()
Returns true if the Iterator has more values. |
void |
initialize(TDIProperties context)
Initializes data structures. |
boolean |
isModified()
Returns true if the properties have been modified, but not saved yet |
java.util.Iterator |
keys()
Returns an Iterator over all property keys |
void |
log(java.lang.String msg)
Logs a message. |
void |
logerror(java.lang.String msg,
java.lang.Exception err)
Logs an error message. |
java.lang.Object |
next()
Return the next value from an Iterator. |
void |
reconnect()
Reinitializes the connector. |
void |
reload()
Reloads the information from the connector into a local cache. |
void |
remove()
Dummy method to implement Iterator. |
void |
removeProperty(java.lang.String key)
Removes a named property. |
void |
setModified(boolean modified)
Sets the modified flag. |
void |
setProperty(Entry entry)
Sets a named property to the given value. |
void |
setProperty(java.lang.String key,
java.lang.Object value)
Sets the named property to the given value |
void |
setProperty(java.lang.String key,
java.lang.Object value,
boolean protect)
Sets the named property to the given value, with optional protection |
boolean |
supportsMode(java.lang.String mode)
Returns true if the connector supports this mode |
void |
terminate()
Terminates the connector |
java.util.Iterator |
values()
Returns an Iterator over all property values |
| 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 PROTECT_VAL_PREFIX
| Constructor Detail |
|---|
public TDIPropertyStore()
public TDIPropertyStore(PropertyStoreConfig psc)
throws java.lang.Exception
psc - Configuration of the property store
java.lang.Exception - if the operation does not succeed
public TDIPropertyStore(PropertyStoreConfig psc,
TDIProperties context)
throws java.lang.Exception
psc - The PropertyStoreConfigcontext - The TDIProperties context
java.lang.Exception| Method Detail |
|---|
public void initialize(TDIProperties context)
throws java.lang.Exception
context - The TDIProperties context. Not used.
java.lang.Exception - If any problem occurs during loading or initializing the
connector.public void log(java.lang.String msg)
msg - The message to log
public void logerror(java.lang.String msg,
java.lang.Exception err)
msg - The message to logerr - The Exceptionpublic void reload()
public void reconnect()
throws java.lang.Exception
java.lang.Exception - If there is any problem with initializing the connector
public void terminate()
throws java.lang.Exception
java.lang.Exception - If there is a problem with terminating the connector
public void commit()
throws java.lang.Exception
java.lang.Exceptionpublic boolean canIterate()
public boolean canWrite()
public boolean canDelete()
public boolean canRead()
public boolean accepts(java.lang.String propertyName)
propertyName - Property name to check
public java.lang.String getName()
public boolean supportsMode(java.lang.String mode)
mode - The mode to check
public java.lang.Object getProperty(java.lang.String key)
throws java.lang.Exception
key - The property name to find
java.lang.Exception - Any Exception thrown by the connector
public Entry getPropertyEntry(java.lang.String key)
throws java.lang.Exception
key - The name of the attribute to find
java.lang.Exception - Any Exception thrown by the connector
public void setProperty(java.lang.String key,
java.lang.Object value)
throws java.lang.Exception
key - The name of the propertyvalue - The new property value, null means delete
java.lang.Exception - If key is missing, or any Exception thrown by the
connector
public void setProperty(java.lang.String key,
java.lang.Object value,
boolean protect)
throws java.lang.Exception
key - The name of the propertyvalue - The new property value, null means deleteprotect - True if the value should be protected (encrypted)
java.lang.Exception - If key is missing, or any Exception thrown by the
connector
public void setProperty(Entry entry)
throws java.lang.Exception
entry - The Entry object containing property name and value
java.lang.Exception - If key is missing, or any Exception thrown by the connector
public void removeProperty(java.lang.String key)
throws java.lang.Exception
key - The name of the property to remove
java.lang.Exception - If key is missing, or the Property store is readonly, or any
Exception thrown by the connectorpublic java.util.Iterator keys()
public java.util.Iterator values()
public java.util.Iterator entries()
public boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorpublic void remove()
remove in interface java.util.Iteratorpublic java.lang.Exception getException()
public boolean isModified()
public void setModified(boolean modified)
public RawConnectorConfig getConnectionConfig()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||