Last update: 2011-06-23

org.proteios.core.data
Class QuotaIndex

java.lang.Object
  extended by org.proteios.core.data.QuotaIndex
All Implemented Interfaces:
Serializable

public class QuotaIndex
extends Object
implements Serializable

This is a helper class for the QuotaData item to help with the Hibernate mapping between quota and quota type/location/max bytes. This class holds quota type/location pairs used as keys in the QuotaData.getQuotaValues() map.

Version:
2.0
Author:
enell
See Also:
Quota overview, Serialized Form
Last modified
$Date: 2009-04-09 08:48:11 +0200 (Thu, 09 Apr 2009) $

Constructor Summary
QuotaIndex(QuotaTypeData quotaType, int location)
           
 
Method Summary
 boolean equals(Object o)
          Check if this object is equal to another QuotaIndex object.
 int getLocation()
           
 QuotaTypeData getQuotaType()
           
 int hashCode()
          Calculate the hash code for the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuotaIndex

public QuotaIndex(QuotaTypeData quotaType,
                  int location)
Method Detail

getLocation

public int getLocation()
Hibernate: property
column="`location`" type="int"

getQuotaType

public QuotaTypeData getQuotaType()
Hibernate: many-to-one
column="`quotaType_id`" outer-join="false"

equals

public boolean equals(Object o)
Check if this object is equal to another QuotaIndex object. They are equal if both have the same quotatype id and location.

Overrides:
equals in class Object

hashCode

public int hashCode()
Calculate the hash code for the object.

Overrides:
hashCode in class Object

Last update: 2011-06-23