|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDataSource
The IDataSource
defines the methods to access any kind of table
oriented IDataSource: e.g. a database, XML file, ...
Its used in the IDataPage/IDataBook
to read and save data from/to the IDataSource.
IDataPage
,
IDataBook
Method Summary | |
---|---|
void |
addDataBook(IDataBook pDataBook)
Register a IDataBook at the IDataSource . |
void |
close()
It closes the IDataSource and all its IDataBooks. |
IDataBook[] |
getDataBooks()
Returns all registered IDataBook s from the IDataSource . |
IDataBook.WriteBackIsolationLevel |
getWritebackIsolationLevel()
Returns the current write back isolation level. |
boolean |
isOpen()
Returns if the IDataSource is open. |
void |
open()
It opens the IDataSource. |
void |
reloadAllDataBooks()
It removes all changes from all IDataBook 's till last storeAllDataBooks() call. |
void |
removeDataBook(IDataBook pDataBook)
Unregister a IDataBook at the IDataSource . |
void |
restoreAllDataBooks()
It removes all changes from all IDataBook 's till last storeAllDataBooks() call. |
void |
saveAllDataBooks()
It saves all changes from all IDataBook 's to the IDataSource. |
void |
setWritebackIsolationLevel(IDataBook.WriteBackIsolationLevel pIsolationLevel)
Sets when the IDataSource needs to write back the data to the storage. |
Method Detail |
---|
void open() throws ModelException
ModelException
- if the open dosn't work out.boolean isOpen()
void close()
void saveAllDataBooks() throws ModelException
IDataBook
's to the IDataSource. IDataBook
storeAllRows().
ModelException
- if not all changes could be stored in the IDataBook
void reloadAllDataBooks() throws ModelException
IDataBook
's till last storeAllDataBooks() call.
The recommended way to do this, is to call on every IDataBook
restoreAllRows().
ModelException
- if not all changes could be restored in the IDataBook
void restoreAllDataBooks() throws ModelException
IDataBook
's till last storeAllDataBooks() call.
ModelException
- if not all changes could be restored in the IDataBook
void addDataBook(IDataBook pDataBook)
IDataBook
at the IDataSource
.
pDataBook
- the new IDataBook
to registervoid removeDataBook(IDataBook pDataBook)
IDataBook
at the IDataSource
.
pDataBook
- the IDataBook
to unregisterIDataBook[] getDataBooks()
IDataBook
s from the IDataSource
.
IDataBook
s from the IDataSource
.void setWritebackIsolationLevel(IDataBook.WriteBackIsolationLevel pIsolationLevel)
IDataSource
needs to write back the data to the storage.DATA_ROW
.
pIsolationLevel
- the new write back isolation level.IDataBook.WriteBackIsolationLevel
IDataBook.WriteBackIsolationLevel getWritebackIsolationLevel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |