|
||||||||||
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. |
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
IDataSource
so that it can be used. Only an open
IDataSource
can be used.
Implementing classes should perform their set up work here.
open
in interface IDataSource
ModelException
- if there was an error during opening.IDataSource.close()
,
IDataSource.isOpen()
public boolean isOpen()
IDataSource
is open.
Only an open IDataSource
is a usable IDataSource
.
isOpen
in interface IDataSource
true
if this IDataSource
is open.IDataSource.open()
public void close()
IDataSource
. A closed IDataSource
can no
longer be used, however it can always be reopened
.
Implementing classes should perform their clean up work here. It closes the IDataSource and all its IDataBooks.
close
in interface IDataSource
IDataSource.isOpen()
,
IDataSource.open()
public void saveAllDataBooks() throws ModelException
added
IDataBook
s by invoking IDataBook.saveAllRows()
.
saveAllDataBooks
in interface IDataSource
ModelException
- if the changes could not be saved.IDataSource.reloadAllDataBooks()
,
IDataSource.restoreAllDataBooks()
,
IDataBook.saveAllRows()
public void reloadAllDataBooks() throws ModelException
added
IDataBook
s by
invoking IDataBook.reload()
.
reloadAllDataBooks
in interface IDataSource
ModelException
- if the IDataBook
s could not be reloaded.IDataSource.restoreAllDataBooks()
,
IDataSource.saveAllDataBooks()
,
IDataBook.reload()
public void restoreAllDataBooks()
added
IDataBook
s by
invoking IDataBook.restoreAllRows()
.
restoreAllDataBooks
in interface IDataSource
IDataSource.reloadAllDataBooks()
,
IDataSource.saveAllDataBooks()
,
IDataBook.restoreAllRows()
public void addDataBook(IDataBook pDataBook)
IDataBook
.
addDataBook
in interface IDataSource
pDataBook
- the IDataBook
to add.public void removeDataBook(IDataBook pDataBook)
IDataBook
.
removeDataBook
in interface IDataSource
pDataBook
- the given IDataBook
to remove.public IDataBook[] getDataBooks()
IDataBook
s which have been added to this
IDataSource
.
getDataBooks
in interface IDataSource
IDataBook
s which have been added to this
IDataSource
.public IDataBook getDataBook(java.lang.String pName)
IDataBook
with the given name.
getDataBook
in interface IDataSource
pName
- the name of the IDataBook
to get.
IDataBook
with the given name, null
if none was found.public void setWritebackIsolationLevel(IDataBook.WriteBackIsolationLevel pIsolationLevel)
IDataBook.WriteBackIsolationLevel
for all
added
IDataBook
s.
The default IDataBook.WriteBackIsolationLevel
is
IDataBook.WriteBackIsolationLevel.DATA_ROW
.
setWritebackIsolationLevel
in interface IDataSource
pIsolationLevel
- the default IDataBook.WriteBackIsolationLevel
for
all added
IDataBook
s.IDataSource.getWritebackIsolationLevel()
public IDataBook.WriteBackIsolationLevel getWritebackIsolationLevel()
IDataBook.WriteBackIsolationLevel
for all
added
IDataBook
s.
The default IDataBook.WriteBackIsolationLevel
is
IDataBook.WriteBackIsolationLevel.DATA_ROW
.
getWritebackIsolationLevel
in interface IDataSource
IDataBook.WriteBackIsolationLevel
for all
added
IDataBook
s.IDataSource.setWritebackIsolationLevel(IDataBook.WriteBackIsolationLevel)
public DataSourceHandler eventDataBookAdded()
DataSourceHandler
for databook added event.
This event is fired if an IDataBook
has been
added
.
eventDataBookAdded
in interface IDataSource
DataSourceHandler
for databook added event.public DataSourceHandler eventDataBookRemoved()
DataSourceHandler
for databook removed event.
This event is fired if an IDataBook
has been
removed
.
eventDataBookRemoved
in interface IDataSource
DataSourceHandler
for databook removed event.protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |