Package org.appng.core.domain
Class PropertyImpl
- java.lang.Object
-
- org.appng.api.model.SimpleProperty
-
- org.appng.core.domain.PropertyImpl
-
- All Implemented Interfaces:
Serializable
,Comparable<Property>
,Identifiable<String>
,Nameable
,Named<String>
,Property
,Versionable<Date>
,Auditable<String>
@Entity public class PropertyImpl extends SimpleProperty implements Property, Auditable<String>, Comparable<Property>
A persistentProperty
JPA-Entity
.- Author:
- Matthias Müller
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.appng.api.model.Property
Property.Type
-
-
Constructor Summary
Constructors Constructor Description PropertyImpl()
PropertyImpl(String name, String value)
PropertyImpl(String name, String value, String defaultValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getActualString()
byte[]
getBlob()
If thisProperty
contains BLOB data, this data is being returned.String
getClob()
If thisProperty
contains CLOB data, this data is being returned.String
getDefaultString()
Returns the defaultString
-value of thisProperty
.String
getDescription()
Returns the description of thisProperty
.String
getId()
Returns the id.@NotNull(message="{validation.notNull}") @Size(min=3,max=255,message="{validation.string.min.max}") String
getName()
Returns the name of thisProperty
, as used inProperties.getXXX(String)
.Property.Type
getType()
Returns the type of this propertyDate
getVersion()
Returns the version.int
hashCode()
boolean
isMandatory()
-
Methods inherited from class org.appng.api.model.SimpleProperty
compareTo, determineType, getBoolean, getChangedValue, getDouble, getFloat, getInteger, getString, getValue, setActualString, setBlob, setClob, setDefaultString, setDescription, setId, setMandatory, setName, setString, setType, setValue, setVersion, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.appng.core.domain.Auditable
getAuditName
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface org.appng.api.model.Property
getBoolean, getDouble, getFloat, getInteger, getString
-
-
-
-
Method Detail
-
getName
@NotNull(message="{validation.notNull}") @Size(min=3, max=255, message="{validation.string.min.max}") public @NotNull(message="{validation.notNull}") @Size(min=3,max=255,message="{validation.string.min.max}") String getName()
Description copied from interface:Property
Returns the name of thisProperty
, as used inProperties.getXXX(String)
.
-
isMandatory
public boolean isMandatory()
- Specified by:
isMandatory
in interfaceProperty
- Overrides:
isMandatory
in classSimpleProperty
-
getId
public String getId()
Description copied from interface:Identifiable
Returns the id.- Specified by:
getId
in interfaceIdentifiable<String>
- Overrides:
getId
in classSimpleProperty
- Returns:
- the id
-
getVersion
public Date getVersion()
Description copied from interface:Versionable
Returns the version.- Specified by:
getVersion
in interfaceVersionable<Date>
- Overrides:
getVersion
in classSimpleProperty
- Returns:
- the version
-
getActualString
public String getActualString()
- Overrides:
getActualString
in classSimpleProperty
-
getDefaultString
public String getDefaultString()
Description copied from interface:Property
Returns the defaultString
-value of thisProperty
.- Specified by:
getDefaultString
in interfaceProperty
- Overrides:
getDefaultString
in classSimpleProperty
- Returns:
- the default
String
-value
-
getDescription
public String getDescription()
Description copied from interface:Property
Returns the description of thisProperty
.- Specified by:
getDescription
in interfaceNameable
- Specified by:
getDescription
in interfaceProperty
- Overrides:
getDescription
in classSimpleProperty
- Returns:
- the description
-
getBlob
public byte[] getBlob()
Description copied from interface:Property
If thisProperty
contains BLOB data, this data is being returned.- Specified by:
getBlob
in interfaceProperty
- Overrides:
getBlob
in classSimpleProperty
- Returns:
- the BLOB data, (may be
null
) - See Also:
Properties.getBlob(String)
-
getClob
public String getClob()
Description copied from interface:Property
If thisProperty
contains CLOB data, this data is being returned.- Specified by:
getClob
in interfaceProperty
- Overrides:
getClob
in classSimpleProperty
- Returns:
- the CLOB data, (may be
null
) - See Also:
Properties.getClob(String)
,Properties.getClob(String, String)
-
getType
public Property.Type getType()
Description copied from interface:Property
Returns the type of this property- Specified by:
getType
in interfaceProperty
- Overrides:
getType
in classSimpleProperty
- Returns:
- the type
-
-