|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDBAccess
The IDBAccess
defines the methods to access any kind of table
oriented storage: e.g. a database, XML file, ...
It extends the IDataSource interface with the table oriented storage modification methods.
IDataPage
,
IDataBook
Method Summary | |
---|---|
void |
delete(String pWritebackTable,
ServerMetaData pServerMetaData,
Object[] pDeleteDataRow)
Deletes the specified row. |
List<Object[]> |
fetch(ServerMetaData pServerMetaData,
String pBeforeQueryColumns,
String[] pQueryColumns,
String pFromClause,
ICondition pFilter,
String pWhereClause,
String pAfterWhereClause,
SortDefinition pSort,
int pFromRow,
int pMinimumRowCount)
Returns the List of fetched rows (as List of Object[]) for the specified query tables and parameters. |
Object[] |
insert(String pWritebackTable,
ServerMetaData pServerMetaData,
Object[] pNewDataRow)
Returns the newly inserted row from the write back table. |
void |
lockRow(String pWritebackTable,
ServerMetaData pServerMetaData,
ICondition pPKFilter)
It locks the specified row in the storage. |
Object[] |
update(String pWritebackTable,
ServerMetaData pServerMetaData,
Object[] pOldDataRow,
Object[] pNewDataRow)
Return the updated row. |
Method Detail |
---|
List<Object[]> fetch(ServerMetaData pServerMetaData, String pBeforeQueryColumns, String[] pQueryColumns, String pFromClause, ICondition pFilter, String pWhereClause, String pAfterWhereClause, SortDefinition pSort, int pFromRow, int pMinimumRowCount) throws DataSourceException
pBeforeQueryColumns
- the before query columnspQueryColumns
- the query columnspFromClause
- the from clause with query tables and join definitionspFilter
- the filter to usepWhereClause
- the last where condition in querypAfterWhereClause
- the after where clause in querypSort
- the sort order to usepFromRow
- the row index from to fetchpMinimumRowCount
- the minimum count row to fetchpServerMetaData
- the MetaDataColumn array to use.
DataSourceException
- if the fetch fails.void lockRow(String pWritebackTable, ServerMetaData pServerMetaData, ICondition pPKFilter) throws DataSourceException
pWritebackTable
- the storage unit to usepPKFilter
- the PrimaryKey in as an ICondition
to identify the row to lockpServerMetaData
- the MetaDataColumn array to use.
DataSourceException
- if an Exception
occur during interacting with the storageObject[] insert(String pWritebackTable, ServerMetaData pServerMetaData, Object[] pNewDataRow) throws DataSourceException
pWritebackTable
- the write back table to use.pServerMetaData
- the meta data to use.pNewDataRow
- the new values Object[] to insert.
DataSourceException
- if an Exception
occur during insert the row to the tableObject[] update(String pWritebackTable, ServerMetaData pServerMetaData, Object[] pOldDataRow, Object[] pNewDataRow) throws DataSourceException
pWritebackTable
- the write back table to use.pServerMetaData
- the meta data to use.pOldDataRow
- the old values of the rowpNewDataRow
- the new values of the row
DataSourceException
- if an Exception
occur during update.void delete(String pWritebackTable, ServerMetaData pServerMetaData, Object[] pDeleteDataRow) throws DataSourceException
pWritebackTable
- the write back table to use.pServerMetaData
- the meta data to use.pDeleteDataRow
- the row to delete.
DataSourceException
- if an Exception
occur during delete.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |