|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IStorage
The IStorage
defines the methods to access any kind of table
oriented storage: e.g. a database, XML file, ...
Method Summary | |
---|---|
void |
delete(Object[] pDeleteDataRow)
Deletes the specified row from the storage. |
List<Object[]> |
fetch(ICondition pFilter,
SortDefinition pSort,
int pFromRow,
int pMinimumRowCount)
Returns the requested rows as List[Object[]] . |
int |
getEstimatedRowCount(ICondition pFilter)
Returns the number of rows in this AbstractStorage from the storage. |
MetaData |
getMetaData()
Returns the meta data for this AbstractStorage from the storage as MetaData . |
Object[] |
insert(Object[] pDataRow)
Returns the newly inserted row for this IStorage. |
Object[] |
refetchRow(Object[] pDataRow)
It refetchs the specified row and returns it as Object[] from the storage. |
Object[] |
update(Object[] pOldDataRow,
Object[] pNewDataRow)
Return the updated row as Object[] . |
Method Detail |
---|
MetaData getMetaData() throws DataSourceException
MetaData
.
MetaData
.
DataSourceException
- if an Exception
occur during getting the meta data from the storage.int getEstimatedRowCount(ICondition pFilter) throws DataSourceException
ICondition
to count the rows.
pFilter
- the ICondition
to use.
DataSourceException
- if an Exception
occur during interacting with the storage.List<Object[]> fetch(ICondition pFilter, SortDefinition pSort, int pFromRow, int pMinimumRowCount) throws DataSourceException
List[Object[]]
. Optimization can also return
more then the minimum row count. If possible all in a certain time.
pFilter
- the ICondition
to use.pSort
- the SortDefinition
to use.pFromRow
- the from row index to request from storage.pMinimumRowCount
- the minimum row count to request, beginning from the pFromRow.
List[Object[]]
.
DataSourceException
- if an Exception
occur during interacting with the storage.Object[] refetchRow(Object[] pDataRow) throws DataSourceException
Object[]
from the storage.
pDataRow
- the specified row as Object[]
.
Object[]
.
DataSourceException
- if an Exception
occur during interacting with the storage.Object[] insert(Object[] pDataRow) throws DataSourceException
pDataRow
- the new row as Object[]
to insert.
DataSourceException
- if an Exception
occur during insert the row to the storageObject[] update(Object[] pOldDataRow, Object[] pNewDataRow) throws DataSourceException
Object[]
.
pOldDataRow
- the old row as Object[]
pNewDataRow
- the new row as Object[]
to update
Object[]
.
DataSourceException
- if an Exception
occur during updating the row.void delete(Object[] pDeleteDataRow) throws DataSourceException
pDeleteDataRow
- the row as Object[]
to delete.
DataSourceException
- if an Exception
occur during deleting the row or
if the storage isn't opened or the PrimaryKey is wrong and more/less
then one row is deleted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |