Package org.cyclos.model
Class NamedEntityDTO
- java.lang.Object
-
- org.cyclos.model.Bean
-
- org.cyclos.model.EntityModel
-
- org.cyclos.model.EntityDTO
-
- org.cyclos.model.NamedEntityDTO
-
- All Implemented Interfaces:
Serializable,Comparable<NamedEntityDTO>,IEntity,INamedEntity
- Direct Known Subclasses:
AccessClientDTO,AdDeliveryMethodDTO,AdInterestDTO,BasicAdDTO,BasicUserDTO,ConfigurationEntityDTO,ContentItemDTO,CustomScheduledTaskDTO,CustomScriptDTO,DocumentDTO,ExtensionPointDTO,MobilePageDTO,OperatorGroupDTO,PhoneDTO,PinDTO,SystemReportPreferencesDTO,ThemeDTO,TrustedDeviceDTO
public abstract class NamedEntityDTO extends EntityDTO implements Comparable<NamedEntityDTO>, INamedEntity
Base class for all entities containing aPropertyrepresenting its name. It implementsComparableby name.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Property<String,NamedEntityDTO>NAME-
Fields inherited from class org.cyclos.model.EntityModel
ID
-
-
Constructor Summary
Constructors Constructor Description NamedEntityDTO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(NamedEntityDTO o)protected List<Property<?,?>>doGetProperties()StringgetName()voidsetName(String name)StringtoString()-
Methods inherited from class org.cyclos.model.EntityDTO
getVersion, isPersistent, isTransient, setVersion
-
Methods inherited from class org.cyclos.model.EntityModel
equals, getId, hashCode, setId
-
Methods inherited from class org.cyclos.model.Bean
addPropertyChangeListener, addPropertyChangeListener, attributeNames, changes, className, clearAttributes, copyPropertiesTo, dataAccessor, firePropertyChange, get, getAttribute, initDataAccessor, properties, property, propertyMap, removeAttribute, removePropertyChangeListener, removePropertyChangeListener, set, set, setAttribute, setWithPropagationId
-
-
-
-
Field Detail
-
NAME
public static final Property<String,NamedEntityDTO> NAME
-
-
Method Detail
-
compareTo
public int compareTo(NamedEntityDTO o)
- Specified by:
compareToin interfaceComparable<NamedEntityDTO>
-
getName
public String getName()
- Specified by:
getNamein interfaceINamedEntity
-
setName
public void setName(String name)
- Specified by:
setNamein interfaceINamedEntity
-
toString
public String toString()
- Overrides:
toStringin classEntityModel
-
doGetProperties
protected List<Property<?,?>> doGetProperties()
- Overrides:
doGetPropertiesin classEntityDTO
-
-