Package org.cyclos.entities.users
Class Record
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.BaseEntity
-
- org.cyclos.entities.users.Record
-
- All Implemented Interfaces:
Cloneable,HasNetwork,ProcessableForDataTranslation,EntityWithCustomValues<RecordCustomField,RecordCustomFieldPossibleValueCategory,RecordCustomFieldPossibleValue,RecordCustomFieldValue>,IEntity
- Direct Known Subclasses:
SystemRecord,UserRecord
@Entity public abstract class Record extends BaseEntity implements EntityWithCustomValues<RecordCustomField,RecordCustomFieldPossibleValueCategory,RecordCustomFieldPossibleValue,RecordCustomFieldValue>
Stores a value for a record, given its type
-
-
Constructor Summary
Constructors Constructor Description Record()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description UsergetCreatedBy()DategetCreationDate()Class<RecordCustomField>getCustomFieldClass()Returns custom field the class on this entityClass<RecordCustomFieldValue>getCustomFieldValueClass()Returns the class for storing custom field valuesSet<RecordCustomFieldValue>getCustomValues()Returns all custom field valuesDategetLastModifiedDate()UsergetModifiedBy()abstract RecordTypeNaturegetNature()NetworkgetNetwork()Returns the network this entity belongs toRecordTypegetType()voidsetCreatedBy(User createdBy)voidsetCreationDate(Date creationDate)voidsetCustomValues(Set<RecordCustomFieldValue> customValues)voidsetLastModifiedDate(Date lastModifiedDate)voidsetModifiedBy(User modifiedBy)voidsetType(RecordType type)-
Methods inherited from class org.cyclos.entities.BaseEntity
getDataTranslationType, getVersion
-
Methods inherited from class org.cyclos.entities.NetworkedEntity
isGlobal
-
Methods inherited from class org.cyclos.entities.SimpleEntity
clone, equals, getId, hashCode, id, ids, isPersistent, isTransient, setId, toShortString, toString, uniqueIds, uniqueIds
-
-
-
-
Method Detail
-
getCreatedBy
public User getCreatedBy()
-
getCreationDate
public Date getCreationDate()
-
getCustomFieldClass
public Class<RecordCustomField> getCustomFieldClass()
Description copied from interface:EntityWithCustomValuesReturns custom field the class on this entity
-
getCustomFieldValueClass
public Class<RecordCustomFieldValue> getCustomFieldValueClass()
Description copied from interface:EntityWithCustomValuesReturns the class for storing custom field values
-
getCustomValues
public Set<RecordCustomFieldValue> getCustomValues()
Description copied from interface:EntityWithCustomValuesReturns all custom field values- Specified by:
getCustomValuesin interfaceEntityWithCustomValues<RecordCustomField,RecordCustomFieldPossibleValueCategory,RecordCustomFieldPossibleValue,RecordCustomFieldValue>
-
getLastModifiedDate
public Date getLastModifiedDate()
-
getModifiedBy
public User getModifiedBy()
-
getNature
public abstract RecordTypeNature getNature()
-
getNetwork
public Network getNetwork()
Description copied from interface:HasNetworkReturns the network this entity belongs to- Specified by:
getNetworkin interfaceHasNetwork
-
getType
public RecordType getType()
-
setCreatedBy
public void setCreatedBy(User createdBy)
-
setCreationDate
public void setCreationDate(Date creationDate)
-
setCustomValues
public void setCustomValues(Set<RecordCustomFieldValue> customValues)
-
setLastModifiedDate
public void setLastModifiedDate(Date lastModifiedDate)
-
setModifiedBy
public void setModifiedBy(User modifiedBy)
-
setType
public void setType(RecordType type)
-
-