Package de.xima.fc.entities
Class FormTemplate
java.lang.Object
de.xima.cmn.dao.model.AEntity<Long>
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>
,de.xima.cmn.dao.interfaces.ILockableEntity<Long>
,IDescriptionProviding
,IFileProviding<FormTemplateFile,
,FormTemplateFileData> ILockingVersionProviding
,IMandantDependent
,INameProviding
,ITransferable
,ITransferableEntity
,ITransferableLockableEntity
,IUUIDEntity
,Serializable
,Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
@Entity
public class FormTemplate
extends AClientDependentEntity
implements IFileProviding<FormTemplateFile,FormTemplateFileData>, IDescriptionProviding, INameProviding, IUUIDEntity
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class de.xima.fc.entities.AClientDependentEntity
COL_CLIENTID, mandant
Fields inherited from class de.xima.fc.entities.AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersion
Fields inherited from class de.xima.fc.entities.AbstractEntity
COL_ID, id
Fields inherited from interface de.xima.fc.entities.interfaces.IDescriptionProviding
ATTR_BESCHREIBUNG, COL_DESCRIPTION
Fields inherited from interface de.xima.cmn.dao.interfaces.IEntity
ATTR_ID
Fields inherited from interface de.xima.fc.entities.interfaces.IFileProviding
ATTR_DATEI, ATTR_FILE
Fields inherited from interface de.xima.cmn.dao.interfaces.ILockableEntity
ATTR_LOCKINGVERSION
Fields inherited from interface de.xima.fc.entities.interfaces.IMandantDependent
ATTR_MANDANT, COL_CLIENT_ID
Fields inherited from interface de.xima.fc.entities.interfaces.INameProviding
COL_NAME
Fields inherited from interface de.xima.fc.entities.interfaces.ITransferableEntity
IMPORT_ID, INVALID_ID
Fields inherited from interface de.xima.fc.entities.interfaces.IUUIDEntity
ATTR_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, TYPE_NAME_UUID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTag
(FormTemplateTag tag) getId()
getName()
getScope()
getTags()
getUUID()
void
Updates who changed this tag most recently and when they changed it.void
removeTag
(FormTemplateTag tag) void
setClassname
(String classname) void
setDescription
(String description) void
setFileEntity
(FormTemplateFile fileEntity) void
!!!void
void
setScope
(EFormTemplateScope scope) void
setTags
(List<FormTemplateTag> tags) This method should only be used by Hibernate.void
void
setUUIDObject
(UUID uuid) Methods inherited from class de.xima.fc.entities.AClientDependentEntity
getMandant, setMandant
Methods inherited from class de.xima.fc.entities.AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion, toString
Methods inherited from class de.xima.fc.entities.AbstractEntity
asIntValue, isPersisted, setId
Methods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface de.xima.cmn.dao.interfaces.IEntity
isPersisted
Methods inherited from interface de.xima.fc.entities.interfaces.IFileProviding
getDatei, setDatei
-
Field Details
-
ATTR_NAME
- See Also:
-
ATTR_DESCRIPTION
- See Also:
-
ATTR_TAGS
- See Also:
-
ATTR_CLASSNAME
- See Also:
-
ATTR_SCOPE
- See Also:
-
COL_UUID
- See Also:
-
-
Constructor Details
-
FormTemplate
public FormTemplate()
-
-
Method Details
-
getId
- Specified by:
getId
in interfacede.xima.cmn.dao.interfaces.IEntity<Long>
-
setId
Description copied from class:AbstractEntity
!!!WARNING: Currently values biggerInteger.MAX_VALUE
or lower thenInteger.MIN_VALUE
will be altered to null!!!- Specified by:
setId
in interfacede.xima.cmn.dao.interfaces.IEntity<Long>
- Overrides:
setId
in classAbstractEntity
- Parameters:
id
-Long
the database-id to set
-
getUUID
- Specified by:
getUUID
in interfaceIUUIDEntity
- Returns:
- UUID (Universal Unique Identifier) that identifies this type of entity. Usually is unique within a
context, e.g.
Mandant
,Projekt
, ...
-
setUUID
- Specified by:
setUUID
in interfaceIUUIDEntity
-
getUUIDObject
- Specified by:
getUUIDObject
in interfaceIUUIDEntity
-
setUUIDObject
-
getClassname
-
setClassname
-
getDescription
- Specified by:
getDescription
in interfaceIDescriptionProviding
- Returns:
- A human-readable description for this object.
-
setDescription
-
getScope
-
setScope
-
getName
- Specified by:
getName
in interfaceINameProviding
- Returns:
- The name of this object.
-
setName
-
getTags
-
setTags
This method should only be used by Hibernate. To add tags or remove tags, useaddTag(FormTemplateTag)
,removeTag(FormTemplateTag)
. These methods take care of keeping the template lists for the tags synced.- Parameters:
tags
- List of tags to set
-
getFileEntity
- Specified by:
getFileEntity
in interfaceIFileProviding<FormTemplateFile,
FormTemplateFileData>
-
setFileEntity
- Specified by:
setFileEntity
in interfaceIFileProviding<FormTemplateFile,
FormTemplateFileData>
-
addTag
- Parameters:
tag
- Tag to be added to this template.
-
removeTag
- Parameters:
tag
- Tag to be removed to this template.
-
getBeschreibung
- Specified by:
getBeschreibung
in interfaceIDescriptionProviding
-
nowEdited
Updates who changed this tag most recently and when they changed it. Uses the current server date.- Parameters:
editor
- Name of the user who made the change.
-