net.sf.basedb.core
Class ItemProxy
java.lang.Object
net.sf.basedb.core.ItemProxy
- All Implemented Interfaces:
- Comparable<ItemProxy>
public class ItemProxy
- extends Object
- implements Comparable<ItemProxy>
- Version:
- 2.2
- Author:
- nicklas
- Last modified
- $Date: 2008-09-11 22:11:02 +0200 (Thu, 11 Sep 2008) $
type
private final Item type
id
private final int id
ItemProxy
public ItemProxy(int id,
Item type)
compareTo
public int compareTo(ItemProxy o)
- Specified by:
compareTo
in interface Comparable<ItemProxy>
toString
public String toString()
- Overrides:
toString
in class Object
equals
public final boolean equals(Object o)
- Check if this item is equal to another item. They are considered
to be equal if they are of the same type and have the same id.
- Overrides:
equals
in class Object
hashCode
public final int hashCode()
- The hash code is calculated from the
Item.getValue()
and the id.
- Overrides:
hashCode
in class Object
getId
public int getId()
getType
public Item getType()
getItem
public BasicItem getItem(DbControl dc)
throws PermissionDeniedException,
ItemNotFoundException,
BaseException
- Throws:
PermissionDeniedException
ItemNotFoundException
BaseException