|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sibvisions.rad.model.mem.DataRow
com.sibvisions.rad.model.mem.ChangeableDataRow
com.sibvisions.rad.model.mem.MemDataBook
com.sibvisions.rad.model.remote.RemoteDataBook
com.sibvisions.rad.persist.StorageDataBook
public class StorageDataBook
The StorageDataBook
is a RemoteDataBook
directly connected to an IStorage.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface javax.rad.model.IDataBook |
---|
IDataBook.SelectionMode, IDataBook.WriteBackIsolationLevel |
Field Summary |
---|
Fields inherited from class com.sibvisions.rad.model.mem.MemDataBook |
---|
bMemFilter, bMemSort, rootDataBook, rowInstance1, rowInstance2 |
Fields inherited from class com.sibvisions.rad.model.mem.ChangeableDataRow |
---|
DELETING, DETAILS_CHANGED, dpDataPage, INSERTING, INTERNAL_OFFSET, iRowIndex, UPDATING, WRITABLE_COLUMN_CHANGED |
Fields inherited from class com.sibvisions.rad.model.mem.DataRow |
---|
oaStorage, rdRowDefinition |
Constructor Summary | |
---|---|
StorageDataBook()
Creates a new instance of StorageDataBook . |
|
StorageDataBook(IStorage pStorage)
Creates a new instance of StorageDataBook for the given storage. |
|
StorageDataBook(StorageDataBook pBook,
IStorage pStorage)
Creates a new instance of StorageDataBook for the given storage. |
Method Summary | |
---|---|
void |
close()
Closes this IDataBook . |
IStorage |
getStorageImpl()
Gets the configured storage implementation. |
void |
open()
Opens this IDataBook . |
void |
setDataSource(IDataSource pDataSource)
Sets the IDataSource to use, which allows the IDataBook
to retrieve and set data. |
void |
setName(java.lang.String pName)
Sets the name to use. |
void |
setStorageImpl(IStorage pStorage)
Sets the storage implementation which should be used to access data. |
Methods inherited from class com.sibvisions.rad.model.mem.ChangeableDataRow |
---|
getOriginalRow, restore, setDeleting, setDetailChanged, setInserting, setUID, setUpdating, setValueIntern |
Methods inherited from class com.sibvisions.rad.model.mem.DataRow |
---|
compareTo, compareTo, createEmptyDataRow, createEmptyRow, equals, equals, eventValuesChanged, eventValuesChanged, getControls, getValueAsString, getValuesAsString, hasControls, hashCode, invokeCancelEditingControls, invokeRepaintListeners, invokeSaveEditingControls, removeControl, setDefaultValues, setValuesIntern |
Methods inherited from class java.lang.Object |
---|
clone, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.rad.model.IChangeableDataRow |
---|
getOriginalRow |
Methods inherited from interface javax.rad.model.IDataRow |
---|
compareTo, createEmptyDataRow, createEmptyRow, equals, eventValuesChanged, eventValuesChanged, getControls, getValueAsString, getValuesAsString, removeControl |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Constructor Detail |
---|
public StorageDataBook()
StorageDataBook
.
public StorageDataBook(IStorage pStorage)
StorageDataBook
for the given storage.
pStorage
- the storagepublic StorageDataBook(StorageDataBook pBook, IStorage pStorage)
StorageDataBook
for the given storage.
pBook
- the configuration to use or null
to use a new configurationpStorage
- the storageMethod Detail |
---|
public void open() throws ModelException
IDataBook
.
"Open" means that all actions are performed which are needed to deliver
data to the user, an IDataBook
that is open can be used for
querying and changing data.
Implementations should perform all needed set up work in this method (like reading metadata from the storage).
open
in interface IDataBook
open
in class RemoteDataBook
ModelException
- if there is no name
set, or if
there is no column in the row
definition
, or if there is no IDataBook.getDataSource()
set.public void close()
IDataBook
.
A closed IDataBook
has the same state as an not
open
IDataBook
. It can't be used to
query or change data, but it can be reopened
.
Implementations should performs all clean up in this method and the (cached) data can be discarded at this point.
close
in interface IDataBook
close
in class RemoteDataBook
public void setName(java.lang.String pName)
The name can only be set if the IDataBook
is not already
open
.
setName
in interface IDataBook
setName
in interface INamedObject
setName
in class MemDataBook
pName
- the name to use.IDataBook.getName()
public void setDataSource(IDataSource pDataSource)
IDataSource
to use, which allows the IDataBook
to retrieve and set data.
The IDataSource
can only be set if the IDataBook
is not
already open
.
setDataSource
in interface IDataBook
setDataSource
in class RemoteDataBook
pDataSource
- the IDataSource
to use.IDataBook.getDataSource()
,
IDataSource
public void setStorageImpl(IStorage pStorage)
pStorage
- the storage
java.lang.IllegalArgumentException
- if storage is nullpublic IStorage getStorageImpl()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |