public class CacheProvider extends Object implements IDBBackend
| Constructor and Description |
|---|
CacheProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
createTable(Row aRow)
back end should create a new table.
|
void |
deleteAllRows(Row aRow)
must be overwritten by derived class to support deletion of
all entities (Means whole table of one entity type!)
|
void |
deleteRows(List<Row> lRows)
must be overwritten by derived class to support delete operation.
|
String |
getAllRows(Row aMeta,
String sNextToken,
List<Row> lResults)
must be overwritten by derived class to support get-all operation.
|
void |
getRowById(Row aRow)
must be overwritten by derived class to support get-by-id operation.
|
void |
insertRows(List<Row> lRows)
must be overwritten by derived class to support insert operation.
|
String |
queryRows(Row aMetaRow,
String sNextToken,
List<Row> lResults,
IDBBackendQuery iQuery)
must be overwritten by derived class to support generic queries.
|
void |
removeTable(Row aRow)
back end should remove an existing table.
|
void |
setEntityMetaInfoProvider(EntityMetaInfoProvider aProvider)
Set the meta information provider to this implementation.
|
void |
updateRows(List<Row> lRows)
must be overwritten by derived class to support update operation.
|
public void setEntityMetaInfoProvider(EntityMetaInfoProvider aProvider) throws Exception
IDBBackendsetEntityMetaInfoProvider in interface IDBBackendaProvider - [IN]
the meta information provider.Exceptionpublic void createTable(Row aRow) throws Exception
IDBBackendcreateTable in interface IDBBackendaRow - [IN]
describe the structure of the table more in detail.Exceptionpublic void removeTable(Row aRow) throws Exception
IDBBackendremoveTable in interface IDBBackendaRow - [IN]
describe the structure of the table more in detail.Exceptionpublic void insertRows(List<Row> lRows) throws Exception
IDBBackendinsertRows in interface IDBBackendlRows - [IN]
contains all information about the new rows.
(meta info and values)Exception - in case operation failed (by any reason).public void updateRows(List<Row> lRows) throws Exception
IDBBackendupdateRows in interface IDBBackendlRows - [IN]
contains all information about all rows for updating.
(meta info and values)Exception - in case operation failed (by any reason).public void deleteRows(List<Row> lRows) throws Exception
IDBBackenddeleteRows in interface IDBBackendlRows - [IN]
contains all information about all rows to be deleted.
(meta info and values)Exception - in case operation failed (by any reason).public void deleteAllRows(Row aRow) throws Exception
IDBBackenddeleteAllRows in interface IDBBackendaRow - [IN]
describe the table (one row of it) more in detail.Exception - in case operation failed (by any reason).public void getRowById(Row aRow) throws Exception
IDBBackendgetRowById in interface IDBBackendaRow - [IN/OUT]
contains all information about the queried entity.
(meta info and id)
return row filled with all values retrieved from DB.Exception - in case operation failed (by any reason).public String getAllRows(Row aMeta, String sNextToken, List<Row> lResults) throws Exception
IDBBackendgetAllRows in interface IDBBackendaMeta - [IN]
describe the table (one row of it) more in detail.sNextToken - [IN]
points to the last iterator of last query where this query
should start.
It depends from the real back end implementation how such token
is generated and used.lResults - [OUT]
here we have to fill in our results.
Was cleared already outside. We have to add something here only .-)Exception - in case operation failed (by any reason).public String queryRows(Row aMetaRow, String sNextToken, List<Row> lResults, IDBBackendQuery iQuery) throws Exception
IDBBackendqueryRows in interface IDBBackendaMetaRow - [IN]
describe the table (one row of it) more in detail.sNextToken - [IN]
points to the last iterator of last query where this query
should start.
It depends from the real back end implementation how such token
is generated and used.lResults - [OUT]
here we have to fill in our results.
Was cleared already outside. We have to add something here only .-)iQuery - [IN]
the query itself.Exception - in case operation failed (by any reason).Copyright © 2016 as-development.net. All rights reserved.