Package mc.core.model.base
Class EntityParameter
java.lang.Object
mc.core.model.base.EntityParameter
- All Implemented Interfaces:
Serializable,IBaseEntity,ICoreEntity
entity to store additional properties in form of key/value pairs for any complex entity. generic feature, that can be
used by core system functionality, or customer specific extensions. a higher level of logic must define suitable keys
and how to read and store them.
keys must be unique for one complex entity. a unique constraint enforces that on the db level. program logic should make sure to not create a key for any CE twice, to avoid db erorr messages.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptiondefault constructorEntityParameter(String key, String value, ComplexEntity complexEntity) constructor with members -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonggetId()getKey()getValue()inthashCode()voidsetComplexEntity(ComplexEntity complexEntity) voidsetId(long id) voidvoidtoString()
-
Constructor Details
-
EntityParameter
public EntityParameter()default constructor -
EntityParameter
constructor with members- Parameters:
complexEntity- complex entity this parameter belongs to, must not be nullkey- unique key of parameter, must not be nullvalue- of parameter
-
-
Method Details
-
getId
public long getId()- Specified by:
getIdin interfaceIBaseEntity
-
setId
public void setId(long id) - Specified by:
setIdin interfaceIBaseEntity
-
getKey
-
setKey
-
getValue
-
setValue
-
getComplexEntity
-
setComplexEntity
-
equals
-
hashCode
public int hashCode() -
toString
-