Cloneable, Comparable<Entity>, SerializableAbstractEntity, Component, Configuration, CustomField, CustomFieldValue, ImportDataModel, Issue, IssueActivity, IssueAttachment, IssueField, IssueHistory, IssueRelation, Language, NameValuePair, Notification, Permission, Project, ProjectScript, Report, SystemConfiguration, User, UserPreferences, Version, WorkflowScriptpublic interface Entity extends Serializable, Cloneable, Comparable<Entity>
A database entity always has an Integer surrogate key
(system ID). It must also be Serializable and Cloneable.
A database entity class must also fulfill the following requirements, that cannot be expressed by a Java interface :
AbstractEntity| Modifier and Type | Method | Description |
|---|---|---|
Date |
getCreateDate() |
|
Integer |
getId() |
Returns the system ID.
|
Date |
getLastModifiedDate() |
|
boolean |
isNew() |
|
void |
setCreateDate(Date date) |
|
void |
setId(Integer id) |
Sets this entity's system ID.
|
void |
setLastModifiedDate(Date date) |
compareToInteger getId()
void setId(Integer id)
id - ID > 0 for persistent entities,
null for transient onesvoid setLastModifiedDate(Date date)
Date getLastModifiedDate()
void setCreateDate(Date date)
Date getCreateDate()
boolean isNew()
Copyright © 2002–2022 itracker. All rights reserved.