org.starhope.appius.util
Class UniqueID
java.lang.Object
org.starhope.appius.util.UniqueID
public class UniqueID
- extends Object
This is a little class'let just for bundling up unique ID's for the
cache.
- Author:
- brpocock
Field Summary |
(package private) long |
id
The database ID value, which is defined to must be an unique key
(primary key, ideally) |
(package private) Class<? extends BaseDatum> |
klass
The class of object being cached; since e.g. |
Constructor Summary |
UniqueID(Class<? extends BaseDatum> klass,
long id)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
long id
- The database ID value, which is defined to must be an unique key
(primary key, ideally)
klass
Class<? extends BaseDatum> klass
- The class of object being cached; since e.g. there can be an user
with ID 1 and also an Avatar with ID 1
UniqueID
public UniqueID(Class<? extends BaseDatum> klass,
long id)
- Parameters:
klass
- The class of object for which this ID is uniqueid
- The database ID value