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:
 - Serialized Form
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringATTR_CLASSNAMEstatic StringATTR_DESCRIPTIONstatic StringATTR_NAMEstatic StringATTR_SCOPEstatic StringATTR_TAGSstatic StringCOL_UUID- 
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.fc.entities.interfaces.IFileProviding
ATTR_DATEI, ATTR_FILE 
- 
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 Constructor Description FormTemplate() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTag(FormTemplateTag tag)StringgetBeschreibung()StringgetClassname()StringgetDescription()FormTemplateFilegetFileEntity()LonggetId()StringgetName()EFormTemplateScopegetScope()List<FormTemplateTag>getTags()StringgetUUID()UUIDgetUUIDObject()voidnowEdited(String editor)Updates who changed this tag most recently and when they changed it.voidremoveTag(FormTemplateTag tag)voidsetClassname(String classname)voidsetDescription(String description)voidsetFileEntity(FormTemplateFile fileEntity)voidsetId(Long id)!!!WARNING: Currently values biggerInteger.MAX_VALUEor lower thenInteger.MIN_VALUEwill be altered to null!!!voidsetName(String name)voidsetScope(EFormTemplateScope scope)voidsetTags(List<FormTemplateTag> tags)This method should only be used by Hibernate.voidsetUUID(String uuid)voidsetUUIDObject(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.fc.entities.interfaces.IFileProviding
getDatei, setDatei 
 - 
 
 - 
 
- 
- 
Field Detail
- 
ATTR_NAME
public static final String ATTR_NAME
- See Also:
 - Constant Field Values
 
 
- 
ATTR_DESCRIPTION
public static final String ATTR_DESCRIPTION
- See Also:
 - Constant Field Values
 
 
- 
ATTR_TAGS
public static final String ATTR_TAGS
- See Also:
 - Constant Field Values
 
 
- 
ATTR_CLASSNAME
public static final String ATTR_CLASSNAME
- See Also:
 - Constant Field Values
 
 
- 
ATTR_SCOPE
public static final String ATTR_SCOPE
- See Also:
 - Constant Field Values
 
 
- 
COL_UUID
public static final String COL_UUID
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
setId
public void setId(Long id)
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
public String 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
public void setUUID(String uuid)
- Specified by:
 setUUIDin interfaceIUUIDEntity
 
- 
getUUIDObject
public UUID getUUIDObject()
- Specified by:
 getUUIDObjectin interfaceIUUIDEntity
 
- 
setUUIDObject
public void setUUIDObject(UUID uuid)
 
- 
getClassname
public String getClassname()
 
- 
setClassname
public void setClassname(String classname)
 
- 
getDescription
public String getDescription()
- Specified by:
 getDescriptionin interfaceIDescriptionProviding- Returns:
 - A human-readable description for this object.
 
 
- 
setDescription
public void setDescription(String description)
 
- 
getScope
public EFormTemplateScope getScope()
 
- 
setScope
public void setScope(EFormTemplateScope scope)
 
- 
getName
public String getName()
- Specified by:
 getNamein interfaceINameProviding- Returns:
 - The name of this object.
 
 
- 
setName
public void setName(String name)
 
- 
getTags
public List<FormTemplateTag> getTags()
 
- 
setTags
public void setTags(List<FormTemplateTag> tags)
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
public FormTemplateFile getFileEntity()
- Specified by:
 getFileEntityin interfaceIFileProviding<FormTemplateFile,FormTemplateFileData>
 
- 
setFileEntity
public void setFileEntity(FormTemplateFile fileEntity)
- Specified by:
 setFileEntityin interfaceIFileProviding<FormTemplateFile,FormTemplateFileData>
 
- 
addTag
public void addTag(FormTemplateTag tag)
- Parameters:
 tag- Tag to be added to this template.
 
- 
removeTag
public void removeTag(FormTemplateTag tag)
- Parameters:
 tag- Tag to be removed to this template.
 
- 
getBeschreibung
public String getBeschreibung()
- Specified by:
 getBeschreibungin interfaceIDescriptionProviding
 
- 
nowEdited
public void nowEdited(String editor)
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.
 
 - 
 
 -