net.sourceforge.domian.entity
Class AbstractUUIDEntity

java.lang.Object
  extended by net.sourceforge.domian.entity.AbstractEntity
      extended by 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
           
 
Fields inherited from class net.sourceforge.domian.entity.AbstractEntity
timeOfCreation, version
 
Constructor Summary
AbstractUUIDEntity()
           
 
Method Summary
 java.util.UUID getEntityId()
           
 
Methods inherited from class net.sourceforge.domian.entity.AbstractEntity
doWarnLog, equals, getTimeOfCreation, getVersion, hashCode, isEntity, isValueObject, setVersion, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

entityId

protected final java.util.UUID entityId
Constructor Detail

AbstractUUIDEntity

public AbstractUUIDEntity()
Method Detail

getEntityId

public final java.util.UUID getEntityId()


Copyright © 2006-2010. All Rights Reserved.