Interface ICustomAttributesEntity
- All Superinterfaces:
ICustomAttributeProviding
- All Known Implementing Classes:
ClientFormTheme, Mandant, Projekt, Textbaustein, Vorgang
Interface for entities that store custom attributes, i.e. key-value pairs that can be used to store additional
information. The stored data depends on the entity.
- Since:
- 8.3.0
- Author:
- XIMA MEDIA GmbH
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringJPA attribute name for theICustomAttributeProviding.getCustomAttributes()field.static final StringDatabase column name for the name of one of theICustomAttributeProviding.getCustomAttributes().static final StringDatabase column name for the value of one of theICustomAttributeProviding.getCustomAttributes(). -
Method Summary
Modifier and TypeMethodDescriptiondefault voidRemoves the attribute with the given key. if present.default voidsetCustomAttribute(String key, String value) Sets the value of the attribute with the given key to the given value.default voidsetCustomAttributeBoolean(String key, boolean value) Sets the value of the attribute with the given key to the given boolean value.default voidsetCustomAttributeDouble(String key, double value) Sets the value of the attribute with the given key to the given double value.default voidsetCustomAttributeEnum(String key, Enum<?> value) Sets the value of the attribute with the given key to the given enum constant.default voidsetCustomAttributeInt(String key, int value) Sets the value of the attribute with the given key to the given int value.default voidsetCustomAttributeJSONArray(String key, com.alibaba.fastjson.JSONArray value) Sets the value of the attribute with the given key to the given JSON array.default voidsetCustomAttributeJSONObject(String key, com.alibaba.fastjson.JSONObject value) Sets the value of the attribute with the given key to the given JSON object.default voidsetCustomAttributeLong(String key, long value) Sets the value of the attribute with the given key to the given long value.voidsetCustomAttributes(Map<String, String> customAttributes) Sets the map of custom attributes that may be used to store additional information.default voidsetCustomAttributeString(String key, String value) Sets the value of the attribute with the given key to the given string value.default voidsetCustomAttributeUuid(String key, UUID value) Sets the value of the attribute with the given key to the given UUID value.Methods inherited from interface ICustomAttributeProviding
getCustomAttribute, getCustomAttributeAs, getCustomAttributeAs, getCustomAttributeBoolean, getCustomAttributeDouble, getCustomAttributeDouble, getCustomAttributeEnum, getCustomAttributeEnum, getCustomAttributeInt, getCustomAttributeInt, getCustomAttributeJsonArray, getCustomAttributeJsonObject, getCustomAttributeLong, getCustomAttributeLong, getCustomAttributes, getCustomAttributeString, getCustomAttributeString, getCustomAttributeUuid
-
Field Details
-
ATTR_CUSTOM_ATTRIBUTES
JPA attribute name for theICustomAttributeProviding.getCustomAttributes()field.- See Also:
-
COL_CUSTOM_ATTRIBUTE_NAME
Database column name for the name of one of theICustomAttributeProviding.getCustomAttributes().- See Also:
-
COL_CUSTOM_ATTRIBUTE_VALUE
Database column name for the value of one of theICustomAttributeProviding.getCustomAttributes().- See Also:
-
-
Method Details
-
removeCustomAttribute
Removes the attribute with the given key. if present.- Parameters:
key- Name of the attribute to remove.
-
setCustomAttribute
-
setCustomAttributeBoolean
Sets the value of the attribute with the given key to the given boolean value.- Parameters:
key- Name of the attribute.value- New attribute value to set.
-
setCustomAttributeDouble
Sets the value of the attribute with the given key to the given double value.- Parameters:
key- Name of the attribute.value- New attribute value to set.
-
setCustomAttributeEnum
-
setCustomAttributeInt
Sets the value of the attribute with the given key to the given int value.- Parameters:
key- Name of the attribute.value- New attribute value to set.
-
setCustomAttributeJSONArray
Sets the value of the attribute with the given key to the given JSON array.- Parameters:
key- Name of the attribute.value- New attribute value to set. Passing null will remove the attribute.
-
setCustomAttributeJSONObject
Sets the value of the attribute with the given key to the given JSON object.- Parameters:
key- Name of the attribute.value- New attribute value to set. Passing null will remove the attribute.
-
setCustomAttributeLong
Sets the value of the attribute with the given key to the given long value.- Parameters:
key- Name of the attribute.value- New attribute value to set.
-
setCustomAttributeString
-
setCustomAttributeUuid
-
setCustomAttributes
-