|
||||||||||
| 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(java.lang.String pWritebackTable,
ServerMetaData pServerMetaData,
java.lang.Object[] pDeleteDataRow)
Deletes the specified row. |
java.util.List<java.lang.Object[]> |
fetch(ServerMetaData pServerMetaData,
java.lang.String pBeforeQueryColumns,
java.lang.String[] pQueryColumns,
java.lang.String pFromClause,
ICondition pFilter,
java.lang.String pWhereClause,
java.lang.String pAfterWhereClause,
SortDefinition pSort,
int pFromRow,
int pMinimumRowCount,
boolean pAllowLazyFetch)
Returns the List of fetched rows (as List of Object[]) for the specified query tables and parameters. |
java.lang.Object[] |
insert(java.lang.String pWritebackTable,
ServerMetaData pServerMetaData,
java.lang.Object[] pNewDataRow)
Returns the newly inserted row from the write back table. |
void |
lockRow(java.lang.String pWritebackTable,
ServerMetaData pServerMetaData,
ICondition pPKFilter)
It locks the specified row in the storage. |
java.lang.Object[] |
update(java.lang.String pWritebackTable,
ServerMetaData pServerMetaData,
java.lang.Object[] pOldDataRow,
java.lang.Object[] pNewDataRow)
Return the updated row. |
| Method Detail |
|---|
java.util.List<java.lang.Object[]> fetch(ServerMetaData pServerMetaData,
java.lang.String pBeforeQueryColumns,
java.lang.String[] pQueryColumns,
java.lang.String pFromClause,
ICondition pFilter,
java.lang.String pWhereClause,
java.lang.String pAfterWhereClause,
SortDefinition pSort,
int pFromRow,
int pMinimumRowCount,
boolean pAllowLazyFetch)
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.pAllowLazyFetch - if lazy fetch should be allowed.
DataSourceException - if the fetch fails.
void lockRow(java.lang.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 storage
java.lang.Object[] insert(java.lang.String pWritebackTable,
ServerMetaData pServerMetaData,
java.lang.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 table
java.lang.Object[] update(java.lang.String pWritebackTable,
ServerMetaData pServerMetaData,
java.lang.Object[] pOldDataRow,
java.lang.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(java.lang.String pWritebackTable,
ServerMetaData pServerMetaData,
java.lang.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 | |||||||||