|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.di.store.PropertyStore
public class PropertyStore
| Field Summary | |
|---|---|
static java.lang.String |
TABLE_PREFIX
|
| Constructor Summary | |
|---|---|
PropertyStore(java.lang.String identifier)
Initializes this object with a connection to the property store table named name. |
|
| Method Summary | |
|---|---|
void |
closeStore()
Closes all resources open by this object. |
java.lang.Object |
getProperty(java.lang.String key)
Returns a value in the property store. |
java.util.List<java.lang.String> |
keys()
Returns an Enumeration of the keys in the store. |
java.lang.Object |
removeProperty(java.lang.String key)
Removes a value in the property store. |
java.lang.Object |
setProperty(java.lang.String key,
java.lang.Object obj)
Adds or updates a value in the property store. |
void |
updateProperty(java.lang.String key,
java.lang.Object obj,
boolean createIfMissing)
Update property value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TABLE_PREFIX
| Constructor Detail |
|---|
public PropertyStore(java.lang.String identifier)
throws java.lang.Exception
identifier - The table name
java.lang.Exception| Method Detail |
|---|
public void closeStore()
throws java.lang.Exception
java.lang.Exception
public java.lang.Object setProperty(java.lang.String key,
java.lang.Object obj)
throws java.lang.Exception
key - The unique identifierobj - The value
java.lang.Exception
public void updateProperty(java.lang.String key,
java.lang.Object obj,
boolean createIfMissing)
throws java.lang.Exception
setProperty(String, Object) in cases
where it is much more likely for the property to exist.
key - The unique identifierobj - The valuecreateIfMissing - If true and the property is missing, it will be created.
java.lang.Exception - If the value is null or an error occurs in the underlying
store.
public java.lang.Object getProperty(java.lang.String key)
throws java.lang.Exception
key - The unique identifier
java.lang.Exception
public java.lang.Object removeProperty(java.lang.String key)
throws java.lang.Exception
key - The unique identifier to remove.
java.lang.Exception
public java.util.List<java.lang.String> keys()
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||