public interface IDatasource
IListDatasource
implementations manage the access to data models
within the application. Details of the data model itself must not be known to
the objects using it. To access the data, an expression is used to identify
the requested object. For the same expression, the same object must be
returned. An expression is any String that the IListDatasource
implementation can use to uniquely identify the requested object.Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getExpressionValue(java.lang.String expression)
This method is used to retrieve an object from the data model using an
expression.
An expression can be any String an IDatasource implementation
uses to reference an object. |
void |
setExpressionValue(java.lang.String expression,
java.lang.Object value)
This method is used to update an object in the data model.
An expression can be any String an IDatasource implementation
uses to reference an object. |
java.lang.Object getExpressionValue(java.lang.String expression) throws java.lang.Exception
IDatasource
implementation
uses to reference an object.expression
- String that references an object in the data modelnull
if there was
no objectjava.lang.Exception
- if an error occured evaluating the given expressionvoid setExpressionValue(java.lang.String expression, java.lang.Object value) throws java.lang.Exception
IDatasource
implementation
uses to reference an object.expression
- String that references an object in the data modelvalue
- new object value for the given expressionjava.lang.Exception
- if an error occured evaluating the given expression