com.sibvisions.rad.persist
Class StorageDataBook

java.lang.Object
  extended by com.sibvisions.rad.model.mem.DataRow
      extended by com.sibvisions.rad.model.mem.ChangeableDataRow
          extended by com.sibvisions.rad.model.mem.MemDataBook
              extended by com.sibvisions.rad.model.remote.RemoteDataBook
                  extended by com.sibvisions.rad.persist.StorageDataBook
All Implemented Interfaces:
Serializable, Comparable<IDataRow>, IChangeableDataRow, IDataBook, IDataPage, IDataRow, INamedObject

public class StorageDataBook
extends RemoteDataBook

The StorageDataBook is a RemoteDataBook directly connected to an IStorage.

See Also:
Serialized Form

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, rowInstance1, rowInstance2
 
Fields inherited from class com.sibvisions.rad.model.mem.ChangeableDataRow
DELETING, DETAILS_CHANGED, INSERTING, INTERNAL_OFFSET, 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.
 
Method Summary
 void close()
          Closes the IDataBook.
 IStorage getStorageImpl()
          Gets the configured storage implementation.
 void open()
          Opens the IDataBook.
 void setDataSource(IDataSource pDataSource)
          Sets the IDataSource for this IDataBook.
 void setName(String pName)
          Set the name of the IDataBook.
 void setStorageImpl(IStorage pStorage)
          Sets the storage implementation which should be used to access data.
 
Methods inherited from class com.sibvisions.rad.model.remote.RemoteDataBook
createDataPage, executeDelete, executeInsert, executeLockAndRefetch, executeRefresh, executeUpdate, getBlockFetchColumnNames, getConnection, getDataSource, getFetchColumnIndexes, getFetchedRowsForBlock, getMasterColumnIndexesForBlock, getMetaDataColumnNames, isCachingStorage, isDataPageRefetchPossible, isMemFilter, isMemSort, isMetaDataCacheEnabled, isWritebackEnabled, setBlockFetchColumnNames, setFetchedRowsForBlock, setMemFilter, setMemSort, setMetaDataCacheEnabled, setWritebackEnabled
 
Methods inherited from class com.sibvisions.rad.model.mem.MemDataBook
addControl, addDetailDataBook, cancelEditingControls, clear, clearFilterSortInMemDataPages, createAndCacheDataPage, delete, deleteAllDataRows, eventAfterColumnSelected, eventAfterDeleted, eventAfterDeleting, eventAfterInserted, eventAfterInserting, eventAfterReload, eventAfterRestore, eventAfterRowSelected, eventAfterUpdated, eventAfterUpdating, eventBeforeColumnSelected, eventBeforeDeleted, eventBeforeDeleting, eventBeforeInserted, eventBeforeInserting, eventBeforeReload, eventBeforeRestore, eventBeforeRowSelected, eventBeforeUpdated, eventBeforeUpdating, fetchAll, finalize, getAdditionalDataRow, getChangedDataRows, getDataBook, getDataPage, getDataPage, getDataPage, getDataPage, getDataPageWithRootRow, getDataRow, getDetailDataBooks, getEstimatedRowCount, getFilter, getMasterDataRow, getMasterReference, getName, getOnlyIUDChangedDataRows, getOriginalRow, getReadAhead, getRootReference, getRowCount, getRowDefinition, getRowIndex, getSelectedColumn, getSelectedDataPageRow, getSelectedRow, getSelectionMode, getSort, getTreePath, getUID, getValue, getValues, getWritebackIsolationLevel, hasChanges, hasDataPage, hasDataPage, insert, invokeTreeCancelEditingControls, invokeTreeSaveEditingControls, isAdditionalDataRowVisible, isAllFetched, isDeleteAllowed, isDeleteCascade, isDeleteEnabled, isDeleting, isDetailChanged, isInsertAllowed, isInsertEnabled, isInserting, isLockAndRefetchEnabled, isOpen, isOutOfSync, isReadOnly, isSelfJoined, isUpdateAllowed, isUpdateEnabled, isUpdating, isWritableColumnChanged, notifyDetailChanged, notifyMasterChanged, notifyRepaintControls, reload, reload, reloadDataPage, reloadIntern, removeDataPage, removeDetailDataBook, restoreAllRows, restoreDataPage, restoreSelectedRow, saveAllRows, saveDataPage, saveEditingControls, saveSelectedRow, searchNext, searchNext, searchPrevious, searchPrevious, setAdditionalDataRowVisible, setDeleteCascade, setDeleteEnabled, setFilter, setInsertEnabled, setLockAndRefetchEnabled, setMasterReference, setReadAhead, setReadOnly, setReadOnlyWithoutSave, setRootReference, setRowDefinition, setSelectedColumn, setSelectedDataPageRow, setSelectedRow, setSelectedRowInternal, setSelectionMode, setSort, setTreePath, setUpdateEnabled, setValue, setValues, setWritebackIsolationLevel, store, toString, update
 
Methods inherited from class com.sibvisions.rad.model.mem.ChangeableDataRow
restore, setDeleting, setDetailChanged, setInserting, setUID, setUpdating, setValueIntern
 
Methods inherited from class com.sibvisions.rad.model.mem.DataRow
compareTo, compareTo, createDataRow, createEmptyRow, equals, equals, eventValuesChanged, eventValuesChanged, getControls, getValue, getValueAsString, getValuesAsString, 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.IDataRow
compareTo, createDataRow, createEmptyRow, equals, eventValuesChanged, eventValuesChanged, getControls, getValue, getValueAsString, getValuesAsString, removeControl
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

StorageDataBook

public StorageDataBook()
Creates a new instance of StorageDataBook.


StorageDataBook

public StorageDataBook(IStorage pStorage)
Creates a new instance of StorageDataBook for the given storage.

Parameters:
pStorage - the storage
Method Detail

open

public void open()
          throws ModelException
Opens the IDataBook. AbstractStorage oriented implementations should open the storage (DB, XML, File) and load the Meta data/defaulting the RowDefinition.

Specified by:
open in interface IDataBook
Overrides:
open in class RemoteDataBook
Throws:
ModelException - if the IDataBook couldn't be opened, because of empty storage unit name, empty IDataSource, missing RowDefinition or failed DataPage creation

close

public void close()
Closes the IDataBook. AbstractStorage oriented implementations should close the storage (DB, XML, file).

Specified by:
close in interface IDataBook
Overrides:
close in class RemoteDataBook

setName

public void setName(String pName)
Set the name of the IDataBook.

Specified by:
setName in interface IDataBook
Specified by:
setName in interface INamedObject
Overrides:
setName in class MemDataBook
Parameters:
pName - IDataBook name

setDataSource

public void setDataSource(IDataSource pDataSource)
Sets the IDataSource for this IDataBook.
The IDataSource defines the access to the storage like DB, XML, ...

Specified by:
setDataSource in interface IDataBook
Overrides:
setDataSource in class RemoteDataBook
Parameters:
pDataSource - the IDataSource to use for load/save data
See Also:
IDataSource

setStorageImpl

public void setStorageImpl(IStorage pStorage)
Sets the storage implementation which should be used to access data.

Parameters:
pStorage - the storage

getStorageImpl

public IStorage getStorageImpl()
Gets the configured storage implementation.

Returns:
the storage


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.