Package de.esoco.data.storage
Schnittstelle StorageAdapter
- Alle bekannten Implementierungsklassen:
AbstractStorageAdapter
public interface StorageAdapter
The interface for storage adapters that perform storage access based on data
elements.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungList
<de.esoco.lib.model.ColumnDefinition> Returns the definitions of the columns of the storage query.An optional operation that returns the current query criteria of this instance.QueryResultElement
<de.esoco.lib.model.DataModel<String>> performQuery
(StringDataElement queryParams) Must be implemented by subclasses to perform a query.
-
Methodendetails
-
getColumns
List<de.esoco.lib.model.ColumnDefinition> getColumns()Returns the definitions of the columns of the storage query.- Gibt zurück:
- A list of column definitions (may be NULL)
-
getCurrentQueryCriteria
Object getCurrentQueryCriteria()An optional operation that returns the current query criteria of this instance. The result of this method may only be valid after a call toperformQuery(StringDataElement)
. What kind of object is returned depends on the implementation.- Gibt zurück:
- The current query predicate or NULL if no query has been executed yet
-
performQuery
QueryResultElement<de.esoco.lib.model.DataModel<String>> performQuery(StringDataElement queryParams) throws Exception Must be implemented by subclasses to perform a query. The query parameters data element must contain the mandatory query properties fromStorageProperties
.- Parameter:
queryParams
- A data element containing the query parameters- Gibt zurück:
- A query result data element
- Löst aus:
Exception
- If executing the query fails
-