|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.model.mem.MemDataSource
com.sibvisions.rad.model.remote.RemoteDataSource
public class RemoteDataSource
The RemoteDataSource is a remote DataSource for all RemoteDataBook's,
which uses a connection to the server to forward the storage operation to server objects.
RemoteDataBook,
MemDataSource| Nested Class Summary | |
|---|---|
static class |
RemoteDataSource.MetaDataCacheRole
The meta data cache roles. |
| Constructor Summary | |
|---|---|
RemoteDataSource()
It constructs a new RemoteDataSource. |
|
RemoteDataSource(AbstractConnection pConnection)
It constructs a new RemoteDataSource with the given AbstractConnection. |
|
| Method Summary | |
|---|---|
static void |
clearGlobalMetaData()
Clears the complete meta data cache. |
static void |
clearGlobalMetaData(AbstractConnection pConnection)
Clears the meta data cache for the given application. |
void |
clearMetaData()
Clears the local meta data cache. |
AbstractConnection |
getConnection()
Returns the AbstractConnection to the server IStorage object. |
static MetaData |
getGlobalMetaData(AbstractConnection pConnection,
String pKey)
Returns the column meta data from the global client cache. |
MetaData |
getMetaData(String pKey)
Returns the column meta data from the client cache. |
static RemoteDataSource.MetaDataCacheRole |
getMetaDataCacheRole()
Gets whether the global or the local cache is used. |
void |
open()
It opens the IDataSource. |
static void |
putGlobalMetaData(AbstractConnection pConnection,
String pKey,
MetaData pMetaData)
Puts the column meta data to the global client cache. |
void |
putMetaData(String pKey,
MetaData pMetaData)
Puts the column meta data to the client cache. |
void |
setConnection(AbstractConnection pConnection)
Sets the AbstractConnection to the server IStorage object. |
static void |
setMetaDataCacheRole(RemoteDataSource.MetaDataCacheRole pCacheRole)
Sets the global meta data cache role. |
| Methods inherited from class com.sibvisions.rad.model.mem.MemDataSource |
|---|
addDataBook, close, finalize, getDataBooks, getWritebackIsolationLevel, isOpen, reloadAllDataBooks, removeDataBook, restoreAllDataBooks, saveAllDataBooks, setWritebackIsolationLevel, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteDataSource()
public RemoteDataSource(AbstractConnection pConnection)
pConnection - the AbstractConnection to use for the communication to the server.| Method Detail |
|---|
public void open()
throws ModelException
open in interface IDataSourceopen in class MemDataSourceModelException - if the open dosn't work out.public AbstractConnection getConnection()
public void setConnection(AbstractConnection pConnection)
pConnection - the AbstractConnection to setpublic MetaData getMetaData(String pKey)
pKey - is the name of the meta data object
MetaData from the client cache
public void putMetaData(String pKey,
MetaData pMetaData)
pKey - is the name of the meta data objectpMetaData - the MetaData to cachepublic void clearMetaData()
public static MetaData getGlobalMetaData(AbstractConnection pConnection,
String pKey)
pConnection - the connection associated with cached metadatapKey - is the name of the meta data object
MetaData from the client cache
public static void putGlobalMetaData(AbstractConnection pConnection,
String pKey,
MetaData pMetaData)
pConnection - the connection associated with cached metadatapKey - is the name of the meta data objectpMetaData - the MetaData to cachepublic static void clearGlobalMetaData()
public static void clearGlobalMetaData(AbstractConnection pConnection)
pConnection - the connection associated with cached metadatapublic static void setMetaDataCacheRole(RemoteDataSource.MetaDataCacheRole pCacheRole)
pCacheRole - the cache role to usepublic static RemoteDataSource.MetaDataCacheRole getMetaDataCacheRole()
true means that the global cache is enabled
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||