| 
||||||||||
| 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 IDataSourceModelException - 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 IDataSourcetrue 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 IDataSourceIDataSource.isOpen(), 
IDataSource.open()
public void saveAllDataBooks()
                      throws ModelException
added
 IDataBooks by invoking IDataBook.saveAllRows().
saveAllDataBooks in interface IDataSourceModelException - if the changes could not be saved.IDataSource.reloadAllDataBooks(), 
IDataSource.restoreAllDataBooks(), 
IDataBook.saveAllRows()
public void reloadAllDataBooks()
                        throws ModelException
added IDataBooks by
 invoking IDataBook.reload().
reloadAllDataBooks in interface IDataSourceModelException - if the IDataBooks could not be reloaded.IDataSource.restoreAllDataBooks(), 
IDataSource.saveAllDataBooks(), 
IDataBook.reload()public void restoreAllDataBooks()
added IDataBooks by
 invoking IDataBook.restoreAllRows().
restoreAllDataBooks in interface IDataSourceIDataSource.reloadAllDataBooks(), 
IDataSource.saveAllDataBooks(), 
IDataBook.restoreAllRows()public void addDataBook(IDataBook pDataBook)
IDataBook.
addDataBook in interface IDataSourcepDataBook - the IDataBook to add.public void removeDataBook(IDataBook pDataBook)
IDataBook.
removeDataBook in interface IDataSourcepDataBook - the given IDataBook to remove.public IDataBook[] getDataBooks()
IDataBooks which have been added to this
 IDataSource.
getDataBooks in interface IDataSourceIDataBooks which have been added to this
         IDataSource.public IDataBook getDataBook(java.lang.String pName)
IDataBook with the given name.
getDataBook in interface IDataSourcepName - 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 IDataBooks.
 
 The default IDataBook.WriteBackIsolationLevel is
 IDataBook.WriteBackIsolationLevel.DATA_ROW.
setWritebackIsolationLevel in interface IDataSourcepIsolationLevel - the default IDataBook.WriteBackIsolationLevel for
            all added IDataBooks.IDataSource.getWritebackIsolationLevel()public IDataBook.WriteBackIsolationLevel getWritebackIsolationLevel()
IDataBook.WriteBackIsolationLevel for all
 added IDataBooks.
 
 The default IDataBook.WriteBackIsolationLevel is
 IDataBook.WriteBackIsolationLevel.DATA_ROW.
getWritebackIsolationLevel in interface IDataSourceIDataBook.WriteBackIsolationLevel for all
         added IDataBooks.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 IDataSourceDataSourceHandler 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 IDataSourceDataSourceHandler for databook removed event.
protected void finalize()
                 throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic 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 | |||||||||