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 persistentPropertyJPA-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 booleanequals(Object o)StringgetActualString()byte[]getBlob()If thisPropertycontains BLOB data, this data is being returned.StringgetClob()If thisPropertycontains CLOB data, this data is being returned.StringgetDefaultString()Returns the defaultString-value of thisProperty.StringgetDescription()Returns the description of thisProperty.StringgetId()Returns the id.@NotNull(message="{validation.notNull}") @Size(min=3,max=255,message="{validation.string.min.max}") StringgetName()Returns the name of thisProperty, as used inProperties.getXXX(String).Property.TypegetType()Returns the type of this propertyDategetVersion()Returns the version.inthashCode()booleanisMandatory()-
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:PropertyReturns the name of thisProperty, as used inProperties.getXXX(String).
-
isMandatory
public boolean isMandatory()
- Specified by:
isMandatoryin interfaceProperty- Overrides:
isMandatoryin classSimpleProperty
-
getId
public String getId()
Description copied from interface:IdentifiableReturns the id.- Specified by:
getIdin interfaceIdentifiable<String>- Overrides:
getIdin classSimpleProperty- Returns:
- the id
-
getVersion
public Date getVersion()
Description copied from interface:VersionableReturns the version.- Specified by:
getVersionin interfaceVersionable<Date>- Overrides:
getVersionin classSimpleProperty- Returns:
- the version
-
getActualString
public String getActualString()
- Overrides:
getActualStringin classSimpleProperty
-
getDefaultString
public String getDefaultString()
Description copied from interface:PropertyReturns the defaultString-value of thisProperty.- Specified by:
getDefaultStringin interfaceProperty- Overrides:
getDefaultStringin classSimpleProperty- Returns:
- the default
String-value
-
getDescription
public String getDescription()
Description copied from interface:PropertyReturns the description of thisProperty.- Specified by:
getDescriptionin interfaceNameable- Specified by:
getDescriptionin interfaceProperty- Overrides:
getDescriptionin classSimpleProperty- Returns:
- the description
-
getBlob
public byte[] getBlob()
Description copied from interface:PropertyIf thisPropertycontains BLOB data, this data is being returned.- Specified by:
getBlobin interfaceProperty- Overrides:
getBlobin classSimpleProperty- Returns:
- the BLOB data, (may be
null) - See Also:
Properties.getBlob(String)
-
getClob
public String getClob()
Description copied from interface:PropertyIf thisPropertycontains CLOB data, this data is being returned.- Specified by:
getClobin interfaceProperty- Overrides:
getClobin 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:PropertyReturns the type of this property- Specified by:
getTypein interfaceProperty- Overrides:
getTypein classSimpleProperty- Returns:
- the type
-
-