Package cz.diribet.aqdef
Class KKeyMetadata
- java.lang.Object
-
- cz.diribet.aqdef.KKeyMetadata
-
- All Implemented Interfaces:
Serializable
public final class KKeyMetadata extends Object implements Serializable
Contains metadata of aKKey.This class is immutable and therefore thread-safe.
- Author:
- Vlastimil Dolejs
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKKeyMetadata.KKeyMetadataBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KKeyMetadata.KKeyMetadataBuilderbuilder()booleanequals(Object obj)StringgetColumnName()Returns name of the DB column in the Q-DAS database where this K-key is stored.IKKeyValueConverter<?>getConverter()Returns converter that can be used to convert the value of this K-key from and to the textual representation of AQDEF format.Class<?>getDataType()Returns datatype of this K-key.IntegergetLength()Returns the maximum length of the content of this K-key as defined in AQDEF format documentation.inthashCode()booleanisRespectsCharacteristicDecimalSettings()Whether this K-key contains value that should respect decimal settings of the characteristic.booleanisSaveToDb()Whether this K-key is stored in Q-DAS database.static KKeyMetadataof(String columnName, Class<?> dataType)static KKeyMetadataof(String columnName, Class<?> dataType, boolean saveToDb)static KKeyMetadataof(String columnName, Class<?> dataType, Integer length)static KKeyMetadataof(String columnName, Class<?> dataType, Integer length, boolean saveToDb)StringtoString()
-
-
-
Method Detail
-
builder
public static KKeyMetadata.KKeyMetadataBuilder builder()
-
of
public static KKeyMetadata of(String columnName, Class<?> dataType)
-
of
public static KKeyMetadata of(String columnName, Class<?> dataType, boolean saveToDb)
-
of
public static KKeyMetadata of(String columnName, Class<?> dataType, Integer length)
-
of
public static KKeyMetadata of(String columnName, Class<?> dataType, Integer length, boolean saveToDb)
-
getLength
public Integer getLength()
Returns the maximum length of the content of this K-key as defined in AQDEF format documentation.- Returns:
-
getColumnName
public String getColumnName()
Returns name of the DB column in the Q-DAS database where this K-key is stored.- Returns:
-
getDataType
public Class<?> getDataType()
Returns datatype of this K-key.- Returns:
-
getConverter
public IKKeyValueConverter<?> getConverter()
Returns converter that can be used to convert the value of this K-key from and to the textual representation of AQDEF format.- Returns:
-
isSaveToDb
public boolean isSaveToDb()
Whether this K-key is stored in Q-DAS database.- Returns:
-
isRespectsCharacteristicDecimalSettings
public boolean isRespectsCharacteristicDecimalSettings()
Whether this K-key contains value that should respect decimal settings of the characteristic. These value are measured value and its limits.- Returns:
-
-