Package de.bsvrz.ars.ars.persistence
Class KeyValProps
java.lang.Object
de.bsvrz.ars.ars.persistence.KeyValProps
- Direct Known Subclasses:
ContainerHdr,StartupProperties
Klasse zum Lesen/Schreiben von Key/Value-Paaren. Die Values haben stets feste Länge..
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intLänge eines Boolschen Werts bei textueller Repraesentation mit '0' und '1'.protected static final longprotected static final longprotected static final longprotected static final longstatic final intstatic final intstatic final intstatic final intprotected static final StringDelimiter für Parameter im Container-Header.protected static final StringTextuelle Repraesentationdes boolsches Kennzeichen für 'Falsch'.protected final Propertiesprotected static final StringTextuelle Repraesentation des boolsches Kennzeichen für 'Wahr'. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()getValAsBool(KeyValParam chp) getValAsInt(KeyValParam chp) getValAsLong(KeyValParam chp) voidsetDefaultVal(KeyValParam chp) voidsetVal(KeyValParam chp, boolean val) voidsetVal(KeyValParam chp, long val) voidsetVal(KeyValParam chp, String val)
-
Field Details
-
properties
-
BYTES4_STR_LEN
public static final int BYTES4_STR_LEN- See Also:
-
BYTES5_STR_LEN
public static final int BYTES5_STR_LEN- See Also:
-
BYTES6_STR_LEN
public static final int BYTES6_STR_LEN- See Also:
-
BYTES8_STR_LEN
public static final int BYTES8_STR_LEN- See Also:
-
BOOL_STR_LEN
public static final int BOOL_STR_LENLänge eines Boolschen Werts bei textueller Repraesentation mit '0' und '1'.- See Also:
-
BYTE4_MAXVAL
protected static final long BYTE4_MAXVAL- See Also:
-
BYTE5_MAXVAL
protected static final long BYTE5_MAXVAL- See Also:
-
BYTE6_MAXVAL
protected static final long BYTE6_MAXVAL- See Also:
-
BYTE8_MAXVAL
protected static final long BYTE8_MAXVAL- See Also:
-
TRUE
Textuelle Repraesentation des boolsches Kennzeichen für 'Wahr'.- See Also:
-
FALSE
Textuelle Repraesentationdes boolsches Kennzeichen für 'Falsch'.- See Also:
-
CH_DELIM
Delimiter für Parameter im Container-Header.- See Also:
-
-
Constructor Details
-
KeyValProps
public KeyValProps()
-
-
Method Details
-
clear
public void clear() -
setVal
- Throws:
PersistenceException
-
setVal
- Throws:
PersistenceException
-
setVal
- Throws:
PersistenceException
-
setDefaultVal
-
getValAsString
-
getValAsLong
- Throws:
PersistenceException
-
getValAsBool
- Throws:
PersistenceException
-
getValAsInt
- Throws:
PersistenceException
-