2.17.2: 2011-06-17

net.sf.basedb.core
Class ItemProxy

java.lang.Object
  extended by 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) $

Field Summary
private  int id
           
private  Item type
           
 
Constructor Summary
ItemProxy(int id, Item type)
           
 
Method Summary
 int compareTo(ItemProxy o)
           
 boolean equals(Object o)
          Check if this item is equal to another item.
 int getId()
           
 BasicItem getItem(DbControl dc)
           
 Item getType()
           
 int hashCode()
          The hash code is calculated from the Item.getValue() and the id.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

type

private final Item type

id

private final int id
Constructor Detail

ItemProxy

public ItemProxy(int id,
                 Item type)
Method Detail

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

2.17.2: 2011-06-17