|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.model.mem.MemDataSource
public class MemDataSource
The MemDataSource is a base class for all DataSources.
It handle the store operations for all changes made in the IDataBook's.
It knows the write back isolation level, which handles when a
DataSource has to save implicit during manipulation operations.
MemDataBook,
MemDataPage| Constructor Summary | |
|---|---|
MemDataSource()
Creates a MemDataSource. |
|
| Method Summary | |
|---|---|
void |
addDataBook(IDataBook pDataBook)
Register a IDataBook at the IDataSource. |
void |
close()
It closes the IDataSource and all its IDataBooks. |
protected void |
finalize()
|
IDataBook[] |
getDataBooks()
Returns all registered IDataBooks 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. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MemDataSource()
| Method Detail |
|---|
public void open()
throws ModelException
open in interface IDataSourceModelException - if the open dosn't work out.public boolean isOpen()
isOpen in interface IDataSourcepublic void close()
close in interface IDataSource
public void saveAllDataBooks()
throws ModelException
IDataBook's to the IDataSource. IDataBook
storeAllRows().
saveAllDataBooks in interface IDataSourceModelException - if not all changes could be stored in the IDataBook
public void reloadAllDataBooks()
throws ModelException
IDataBook's till last storeAllDataBooks() call.
The recommended way to do this, is to call on every IDataBook
restoreAllRows().
reloadAllDataBooks in interface IDataSourceModelException - if not all changes could be restored in the IDataBookpublic void restoreAllDataBooks()
IDataBook's till last storeAllDataBooks() call.
restoreAllDataBooks in interface IDataSourcepublic void addDataBook(IDataBook pDataBook)
IDataBook at the IDataSource.
addDataBook in interface IDataSourcepDataBook - the new IDataBook to registerpublic void removeDataBook(IDataBook pDataBook)
IDataBook at the IDataSource.
removeDataBook in interface IDataSourcepDataBook - the IDataBook to unregisterpublic IDataBook[] getDataBooks()
IDataBooks from the IDataSource.
getDataBooks in interface IDataSourceIDataBooks from the IDataSource.public void setWritebackIsolationLevel(IDataBook.WriteBackIsolationLevel pIsolationLevel)
IDataSource needs to write back the data to the storage.DATA_ROW.
setWritebackIsolationLevel in interface IDataSourcepIsolationLevel - the new write back isolation level.IDataBook.WriteBackIsolationLevelpublic IDataBook.WriteBackIsolationLevel getWritebackIsolationLevel()
getWritebackIsolationLevel in interface IDataSource
protected void finalize()
throws Throwable
finalize in class ObjectThrowablepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||