org.torweg.pulse.util.entity
Class AbstractNamedEntity
java.lang.Object
org.torweg.pulse.util.entity.AbstractBasicEntity
org.torweg.pulse.util.entity.AbstractNamedEntity
- All Implemented Interfaces:
- java.io.Serializable, INamed
- Direct Known Subclasses:
- AbstractNamableEntity, AbstractRegexVersioned, AbstractVersion, VirtualFile
@MappedSuperclass
public class AbstractNamedEntity
- extends AbstractBasicEntity
- implements INamed
a very basic abstract entity containing a name field with a protected setter
only.
Subclasses depending on a unique name (e.g.
User) can declare the constraint via
@Table(uniqueConstraints = { @UniqueConstraint(columnNames = "name") }).
- Version:
- $Revision: 1408 $
- Author:
- Thomas Weber
- See Also:
- Serialized Form
|
Method Summary |
java.lang.String |
getName()
returns the name of the entity. |
protected void |
setName(java.lang.String n)
sets the name of the entity. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
AbstractNamedEntity
public AbstractNamedEntity()
setName
protected void setName(java.lang.String n)
- sets the name of the entity.
- Parameters:
n - the name to set- See Also:
INameable.setName(java.lang.String)
getName
public final java.lang.String getName()
- returns the name of the entity.
- Specified by:
getName in interface INamed
- Returns:
- the name
- See Also:
INamed.getName()