net.sourceforge.domian.entity
Class AbstractUUIDEntity
java.lang.Object
net.sourceforge.domian.entity.AbstractEntity
net.sourceforge.domian.entity.AbstractUUIDEntity
- All Implemented Interfaces:
- Entity
- Direct Known Subclasses:
- AbstractLoggingUUIDEntity
public abstract class AbstractUUIDEntity
- extends AbstractEntity
Abstract class for entity objects, ensuring a final, unique, non-null
entity ID from the moment they are created.
The entity ID provided by this class is a 128 bits version-4 UUID.
- Since:
- 0.4.1
- Author:
- Eirik Torske
- See Also:
- UUID
Field Summary |
protected java.util.UUID |
entityId
|
Method Summary |
java.util.UUID |
getEntityId()
An entity object should at all time have a final, unique, non-null entity ID. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
entityId
protected final java.util.UUID entityId
AbstractUUIDEntity
public AbstractUUIDEntity()
getEntityId
public final java.util.UUID getEntityId()
- Description copied from interface:
Entity
- An entity object should at all time have a final, unique, non-null entity ID.
- Returns:
- the entity ID
Copyright © 2006-2010. All Rights Reserved.