|
||||||||||
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. |
void |
close()
Closes this IDataSource . |
AbstractConnection |
getConnection()
Returns the AbstractConnection to the server IStorage object. |
static MetaData |
getGlobalMetaData(AbstractConnection pConnection,
java.lang.String pKey)
Returns the column meta data from the global client cache. |
MetaData |
getMetaData(java.lang.String pKey)
Returns the column meta data from the client cache. |
MetaDataCacheOption |
getMetaDataCacheOption()
Gets the metadata cache option from the connection. |
static RemoteDataSource.MetaDataCacheRole |
getMetaDataCacheRole()
Gets whether the global or the local cache is used. |
void |
open()
Opens this IDataSource so that it can be used. |
static void |
putGlobalMetaData(AbstractConnection pConnection,
java.lang.String pKey,
MetaData pMetaData)
Puts the column meta data to the global client cache. |
void |
putMetaData(java.lang.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, eventDataBookAdded, eventDataBookRemoved, finalize, getDataBook, 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
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 IDataSource
open
in class MemDataSource
ModelException
- if there was an error during opening.IDataSource.close()
,
IDataSource.isOpen()
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 IDataSource
close
in class MemDataSource
IDataSource.isOpen()
,
IDataSource.open()
public AbstractConnection getConnection()
public void setConnection(AbstractConnection pConnection)
pConnection
- the AbstractConnection to setpublic MetaData getMetaData(java.lang.String pKey)
pKey
- is the name of the meta data object
MetaData
from the client cachepublic void putMetaData(java.lang.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, java.lang.String pKey)
pConnection
- the connection associated with cached metadatapKey
- is the name of the meta data object
MetaData
from the client cachepublic static void putGlobalMetaData(AbstractConnection pConnection, java.lang.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 enabledpublic MetaDataCacheOption getMetaDataCacheOption()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |