|
||||||||||
| 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(java.lang.Object[] pDeleteDataRow)
Deletes the specified row from the storage. |
java.util.List<java.lang.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. |
java.lang.Object[] |
insert(java.lang.Object[] pDataRow)
Returns the newly inserted row for this IStorage. |
java.lang.Object[] |
refetchRow(java.lang.Object[] pDataRow)
It refetchs the specified row and returns it as Object[] from the storage. |
java.lang.Object[] |
update(java.lang.Object[] pOldDataRow,
java.lang.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.
java.util.List<java.lang.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.
java.lang.Object[] refetchRow(java.lang.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.
java.lang.Object[] insert(java.lang.Object[] pDataRow)
throws DataSourceException
pDataRow - the new row as Object[] to insert.
DataSourceException - if an Exception occur during insert the row to the storage
java.lang.Object[] update(java.lang.Object[] pOldDataRow,
java.lang.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(java.lang.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 | |||||||||