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 Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class de.xima.fc.entities.AClientDependentEntity
COL_CLIENTID, mandantFields inherited from class de.xima.fc.entities.AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersionFields inherited from class de.xima.fc.entities.AbstractEntity
COL_ID, idFields inherited from interface de.xima.fc.entities.interfaces.IDescriptionProviding
ATTR_BESCHREIBUNG, COL_DESCRIPTIONFields inherited from interface de.xima.cmn.dao.interfaces.IEntity
ATTR_IDFields inherited from interface de.xima.fc.entities.interfaces.IFileProviding
ATTR_DATEI, ATTR_FILEFields inherited from interface de.xima.cmn.dao.interfaces.ILockableEntity
ATTR_LOCKINGVERSIONFields inherited from interface de.xima.fc.entities.interfaces.IMandantDependent
ATTR_MANDANT, COL_CLIENT_IDFields inherited from interface de.xima.fc.entities.interfaces.INameProviding
COL_NAMEFields inherited from interface de.xima.fc.entities.interfaces.ITransferableEntity
IMPORT_ID, INVALID_IDFields 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 TypeMethodDescriptionvoidaddTag(FormTemplateTag tag) getId()getName()getScope()getTags()getUUID()voidUpdates who changed this tag most recently and when they changed it.voidremoveTag(FormTemplateTag tag) voidsetClassname(String classname) voidsetDescription(String description) voidsetFileEntity(FormTemplateFile fileEntity) void!!!voidvoidsetScope(EFormTemplateScope scope) voidsetTags(List<FormTemplateTag> tags) This method should only be used by Hibernate.voidvoidsetUUIDObject(UUID uuid) Methods inherited from class de.xima.fc.entities.AClientDependentEntity
getMandant, setMandantMethods inherited from class de.xima.fc.entities.AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion, toStringMethods inherited from class de.xima.fc.entities.AbstractEntity
asIntValue, isPersisted, setIdMethods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface de.xima.cmn.dao.interfaces.IEntity
isPersistedMethods 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:
getIdin interfacede.xima.cmn.dao.interfaces.IEntity<Long>
-
setId
Description copied from class:AbstractEntity!!!WARNING: Currently values biggerInteger.MAX_VALUEor lower thenInteger.MIN_VALUEwill be altered to null!!!- Specified by:
setIdin interfacede.xima.cmn.dao.interfaces.IEntity<Long>- Overrides:
setIdin classAbstractEntity- Parameters:
id-Longthe database-id to set
-
getUUID
- Specified by:
getUUIDin 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:
setUUIDin interfaceIUUIDEntity
-
getUUIDObject
- Specified by:
getUUIDObjectin interfaceIUUIDEntity
-
setUUIDObject
-
getClassname
-
setClassname
-
getDescription
- Specified by:
getDescriptionin interfaceIDescriptionProviding- Returns:
- A human-readable description for this object.
-
setDescription
-
getScope
-
setScope
-
getName
- Specified by:
getNamein 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:
getFileEntityin interfaceIFileProviding<FormTemplateFile,FormTemplateFileData>
-
setFileEntity
- Specified by:
setFileEntityin 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:
getBeschreibungin 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.
-