public interface DataAccess
| Modifier and Type | Interface and Description |
|---|---|
static class |
DataAccess.OnChangeNotSupportedException
Exeption thrown if
DataAccess does not support on-change notifications. |
static interface |
DataAccess.ValueChangeListener
Value change listener interface.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addValueChangeListener(DataAccess.ValueChangeListener listener)
Add value change listener.
|
java.lang.Object |
get(CompletionHolder completionHolder)
Retrieve value or throw
AcsJExcption in case of failure. |
boolean |
initializeValue()
Flag indicating if property should initialize value (to default value) when initializing.
|
void |
removeValueChangeListener(DataAccess.ValueChangeListener listener)
Remove value change listener.
|
void |
set(java.lang.Object value,
CompletionHolder completion)
Set value or throw
AcsJExcption in case of failure. |
void addValueChangeListener(DataAccess.ValueChangeListener listener) throws DataAccess.OnChangeNotSupportedException
listener - listener to be notified on every value change.NotSupportedException - throws id this DataAccess does not support
on-change notifications - exeptions provides recommended pool time
property.DataAccess.OnChangeNotSupportedExceptionNotSupportedExceptionvoid removeValueChangeListener(DataAccess.ValueChangeListener listener)
listener - listener to be removed.java.lang.Object get(CompletionHolder completionHolder)
throws AcsJException
AcsJExcption in case of failure.completionHolder - completion holder. If completionHolder.value
is left to null (by this method), caller is responsible to
create a no-error completion with current timestamp later.
Use alma.ACS.jbaci.CompletionUtil class to generate no-error completion.null.ACS - exception if case of failure.AcsJExceptionCompletionUtil.generateNoErrorCompletion()boolean initializeValue()
void set(java.lang.Object value,
CompletionHolder completion)
throws AcsJException
AcsJExcption in case of failure.value - value to be set, non-null.completionHolder - completion holder. If completionHolder.value
is left to null (by this method), caller is responsible to
create a no-error completion with current timestamp later.
Use alma.ACS.jbaci.CompletionUtil class to generate no-error completion.ACS - exception if case of failure.AcsJException