public class PersistenzUeberDaV extends java.lang.Object implements PersistenzModul, de.bsvrz.dav.daf.main.ClientReceiverInterface, de.bsvrz.dav.daf.main.ClientSenderInterface
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
ASP_LESE_PARAM
Aspekt zum Lesen von Parametern.
|
private static java.lang.String |
ASP_SCHREIBE_PARAM
Aspekt zum Schreiben von Parametern.
|
private static java.lang.String |
ATG_WERTETABELLE
Attributgruppe der Wertetabelle.
|
private static java.lang.String |
ATL_KEY_VALUE_ENTRY
Datenverteiler-Feldname Schlüssel-Wert-Eintrag.
|
private static java.lang.String |
ATT_KEY
Datenverteiler-Feldname Schlüssel.
|
private static java.lang.String |
ATT_VALUE
Datenverteiler-Feldname Wert.
|
private KonfigurationsModul |
config
Referenz auf Konfigurationsmodul.
|
private de.bsvrz.dav.daf.main.ClientDavInterface |
davConnection
Datenverteiler-Verbindung.
|
private boolean |
isInitialized
Speichert korrekte Initialisierung.
|
private static java.lang.String |
KEY_PERSISTENZ_OBJEKT
Schlüssel für Angabe des Datenverteiler-Objekts, an welches die Persistenz gehängt wird.
|
private java.util.Map<java.lang.String,java.lang.String> |
keyValueStore
Lokale Speicherung der Wertetabelle.
|
private static de.bsvrz.sys.funclib.debug.Debug |
LOGGER
Logging.
|
private java.lang.String |
logPrefix
Präfix für Log-Ausgaben.
|
private static long |
MAX_WAIT
Maximale Wartezeit auf positive Sendesteuerung (in Millisekunden).
|
private de.bsvrz.dav.daf.main.config.SystemObject |
persistenzObjekt
Datenverteiler-Objekt, an dem die Persistenz hängt.
|
| Constructor and Description |
|---|
PersistenzUeberDaV(de.bsvrz.dav.daf.main.ClientDavInterface davConnection,
KonfigurationsModul config)
Konstruktor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dataRequest(de.bsvrz.dav.daf.main.config.SystemObject arg0,
de.bsvrz.dav.daf.main.DataDescription arg1,
byte arg2) |
java.lang.String |
getContext()
Liefert die Bezeichnung des Konfigurationskontexts zurück.
|
<T extends java.io.Serializable> |
getData(java.lang.String key,
java.lang.Class<T> classx)
Allgemeine Methode zum Abruf von Konfigurationsdaten.
|
java.lang.Integer |
getInteger(java.lang.String key)
Rückgabe eines Konfigurationsdatum als Integer.
|
java.lang.String |
getString(java.lang.String key)
Rückgabe eines Konfigurationsdatum als String.
|
boolean |
hasData(java.lang.String key)
Prüft, ob zu einem gegebenen Schlüssel ein Konfigurationsdatum existiert.
|
boolean |
isRequestSupported(de.bsvrz.dav.daf.main.config.SystemObject arg0,
de.bsvrz.dav.daf.main.DataDescription arg1) |
<T extends java.io.Serializable> |
putData(java.lang.String key,
T value)
Persistentes Speichern eines Werts unter einem Schlüssel.
|
void |
update(de.bsvrz.dav.daf.main.ResultData[] resultDataArray) |
private static final java.lang.String ATT_VALUE
private static final java.lang.String ATT_KEY
private static final java.lang.String ATL_KEY_VALUE_ENTRY
private static final java.lang.String ASP_SCHREIBE_PARAM
private static final java.lang.String ASP_LESE_PARAM
private static final java.lang.String ATG_WERTETABELLE
private static final java.lang.String KEY_PERSISTENZ_OBJEKT
private static final long MAX_WAIT
private de.bsvrz.dav.daf.main.ClientDavInterface davConnection
private KonfigurationsModul config
private java.lang.String logPrefix
private boolean isInitialized
private de.bsvrz.dav.daf.main.config.SystemObject persistenzObjekt
private java.util.Map<java.lang.String,java.lang.String> keyValueStore
private static final de.bsvrz.sys.funclib.debug.Debug LOGGER
public PersistenzUeberDaV(de.bsvrz.dav.daf.main.ClientDavInterface davConnection,
KonfigurationsModul config)
davConnection - Datenverteiler-Verbindungconfig - Referenz auf Konfigurationsmodulpublic java.lang.String getContext()
KonfigurationsModulgetContext in interface KonfigurationsModulpublic <T extends java.io.Serializable> T getData(java.lang.String key,
java.lang.Class<T> classx)
throws javax.activation.UnsupportedDataTypeException,
java.io.NotActiveException
KonfigurationsModulgetData in interface KonfigurationsModulT - Typ des Wertskey - Schlüsselclassx - Typ des Wertsjavax.activation.UnsupportedDataTypeException - Konvertierung in geforderten Datentyp nicht implementiertjava.io.NotActiveException - Auf die Konfigurationsdaten kann allgemein nicht zugegriffen werden.public java.lang.String getString(java.lang.String key)
KonfigurationsModulgetString in interface KonfigurationsModulkey - Schlüsselpublic java.lang.Integer getInteger(java.lang.String key)
KonfigurationsModulgetInteger in interface KonfigurationsModulkey - Schlüsselpublic <T extends java.io.Serializable> void putData(java.lang.String key,
T value)
PersistenzModulputData in interface PersistenzModulT - Klasse des Wertskey - Schlüsselvalue - Wertpublic boolean hasData(java.lang.String key)
KonfigurationsModulhasData in interface KonfigurationsModulkey - Schlüsselpublic void update(de.bsvrz.dav.daf.main.ResultData[] resultDataArray)
update in interface de.bsvrz.dav.daf.main.ClientReceiverInterfacepublic void dataRequest(de.bsvrz.dav.daf.main.config.SystemObject arg0,
de.bsvrz.dav.daf.main.DataDescription arg1,
byte arg2)
dataRequest in interface de.bsvrz.dav.daf.main.ClientSenderInterfacepublic boolean isRequestSupported(de.bsvrz.dav.daf.main.config.SystemObject arg0,
de.bsvrz.dav.daf.main.DataDescription arg1)
isRequestSupported in interface de.bsvrz.dav.daf.main.ClientSenderInterface