net.sourceforge.domian.entity
Class AbstractRandomIntegerEntity
java.lang.Object
net.sourceforge.domian.entity.AbstractEntity
net.sourceforge.domian.entity.AbstractRandomIntegerEntity
- All Implemented Interfaces:
- Entity
public abstract class AbstractRandomIntegerEntity
- 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 just a random Integer
.
This class is suitable for test entities with the need for simple, read-friendly entity IDs.
Do not use this class in production environments!
- Since:
- 0.4.1
- Author:
- Eirik Torske
Field Summary |
protected java.lang.Integer |
entityId
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
entityId
protected final java.lang.Integer entityId
AbstractRandomIntegerEntity
public AbstractRandomIntegerEntity()
getEntityId
public final java.lang.Integer getEntityId()
Copyright © 2006-2010. All Rights Reserved.