pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.util.entity
Class AbstractNamedEntity

java.lang.Object
  extended by org.torweg.pulse.util.entity.AbstractBasicEntity
      extended by 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

Constructor Summary
AbstractNamedEntity()
           
 
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 org.torweg.pulse.util.entity.AbstractBasicEntity
compareTo, equals, getFullQualifiedClassNameJAXB, getId, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractNamedEntity

public AbstractNamedEntity()
Method Detail

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()