Package org.cyclos.entities
Class NamedEntity
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.BaseEntity
-
- org.cyclos.entities.NamedEntity
-
- All Implemented Interfaces:
Cloneable,Comparable<NamedEntity>,HasNetwork,ProcessableForProxying,IEntity,INamedEntity
- Direct Known Subclasses:
AccessClient,AdDeliveryMethod,AdInterest,BaseContactInfo,BasicAd,ConfigurationEntity,CustomSvgIcon,Document,ExtensionPoint,OperatorGroup,OrderableEntity,Phone,Pin,StoredFile,SystemReportPreferences,Theme,TrustedDevice
@MappedSuperclass public abstract class NamedEntity extends BaseEntity implements Comparable<NamedEntity>, INamedEntity
Base class for all entities containing a persistent name. It implementsComparableby name.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Constructor Summary
Constructors Constructor Description NamedEntity()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(NamedEntity o)StringgetName()static List<String>getNames(Collection<? extends NamedEntity> namedEntities)Returns the names of all the given entitiesvoidsetName(String name)StringtoShortString()StringtoString()-
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
equals, getId, hashCode, id, ids, isPersistent, isTransient, register, setId, uniqueIds, uniqueIds
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.entities.HasNetwork
getNetwork
-
Methods inherited from interface org.cyclos.entities.ProcessableForProxying
getProxyClass
-
-
-
-
Method Detail
-
getNames
public static List<String> getNames(Collection<? extends NamedEntity> namedEntities)
Returns the names of all the given entities
-
compareTo
public int compareTo(NamedEntity o)
- Specified by:
compareToin interfaceComparable<NamedEntity>
-
getName
public String getName()
- Specified by:
getNamein interfaceINamedEntity
-
setName
public void setName(String name)
- Specified by:
setNamein interfaceINamedEntity
-
toShortString
public String toShortString()
- Overrides:
toShortStringin classSimpleEntity
-
toString
public String toString()
- Overrides:
toStringin classSimpleEntity
-
-