|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sibvisions.rad.persist.AbstractStorage
com.sibvisions.rad.persist.AbstractCachedStorage
com.sibvisions.rad.persist.AbstractMemStorage
com.sibvisions.rad.persist.MemDataBookStorage
public class MemDataBookStorage
The MemDataBookStorage
is a simple AbstractMemStorage
without specific insert/update/delete
implementation. All calls are forwarded to the external MemDataBook
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sibvisions.rad.persist.AbstractStorage |
---|
AbstractStorage.AllFetchedList<E> |
Constructor Summary | |
---|---|
MemDataBookStorage(MemDataBook pBook)
Creates a new instance of MemDataBookStorage . |
Method Summary | |
---|---|
void |
delete(DataBookEvent pEvent)
Deletes an existing row. |
RowDefinition |
getRowDefinition()
Returns the row definition for the internal MemDataBook . |
void |
insert(DataBookEvent pEvent)
Inserts a new row. |
void |
loadData(MemDataBook pBook,
ICondition pFilter)
Loads the relevant data into the internal data book. |
void |
update(DataBookEvent pEvent)
Updates an existing row. |
Methods inherited from class com.sibvisions.rad.persist.AbstractCachedStorage |
---|
clearMetaData, clearMetaData, getMetaData, getMetaData, getMetaDataCacheGroups, getMetaDataCacheOption, getMetaDataFromCache, getMetaDataFromCache, isGlobalMetaDataCacheEnabled, isMetaDataCacheEnabled, putMetaDataToCache, removeMetaData, setGlobalMetaDataCacheEnabled, setMetaDataCacheOption |
Methods inherited from class com.sibvisions.rad.persist.AbstractStorage |
---|
createBean, createCSV, createCSV, createCSV, createEmptyBean, createPOJO, createPOJO, debug, delete, delete, error, eventAfterDelete, eventAfterInsert, eventAfterUpdate, eventBeforeDelete, eventBeforeInsert, eventBeforeUpdate, eventCalculateRow, eventInsteadOfDelete, eventInsteadOfInsert, eventInsteadOfUpdate, fetch, fetch, fetch, fetchBean, fetchBean, getAndInitBeanType, getBeanConverter, getName, getPropertyNameForColumn, hasInsteadOfDeleteEventHandler, hasInsteadOfInsertEventHandler, hasInsteadOfUpdateEventHandler, info, insert, insert, isLogEnabled, isRefetch, refetch, refetchRow, setName, setPropertyNameForColumn, setRefetch, update, update, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.rad.persist.IStorage |
---|
delete, fetch, insert, refetchRow, update |
Constructor Detail |
---|
public MemDataBookStorage(MemDataBook pBook)
MemDataBookStorage
.
pBook
- the data bookMethod Detail |
---|
public final RowDefinition getRowDefinition() throws ModelException
MemDataBook
. The row definition will
be used to create and cache the meta data. The ColumnView
will be used to detect
the column which will be used for meta data creation.
getRowDefinition
in class AbstractMemStorage
ModelException
- if the row definition can not be createdpublic void loadData(MemDataBook pBook, ICondition pFilter) throws ModelException
loadData
in class AbstractMemStorage
pBook
- the internal data bookpFilter
- the filter
ModelException
- if an error occurs during fillingpublic void insert(DataBookEvent pEvent) throws ModelException
insert
in class AbstractMemStorage
pEvent
- the data book event
ModelException
- if an insert error occurspublic void update(DataBookEvent pEvent) throws ModelException
update
in class AbstractMemStorage
pEvent
- the data book event
ModelException
- if an update error occurspublic void delete(DataBookEvent pEvent) throws ModelException
delete
in class AbstractMemStorage
pEvent
- the data book event
ModelException
- if a delete error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |