public class QuotaIndex extends Object implements Serializable
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.Modifier and Type | Field and Description |
---|---|
private int |
location |
private QuotaTypeData |
quotaType |
private static long |
serialVersionUID |
Constructor and Description |
---|
QuotaIndex() |
QuotaIndex(QuotaTypeData quotaType,
int location) |
Modifier and Type | Method and Description |
---|---|
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.
|
private void |
readObject(ObjectInputStream ois) |
(package private) void |
setLocation(int location) |
(package private) void |
setQuotaType(QuotaTypeData quotaType) |
private void |
writeObject(ObjectOutputStream ois) |
private static final long serialVersionUID
private int location
private transient QuotaTypeData quotaType
QuotaIndex()
public QuotaIndex(QuotaTypeData quotaType, int location)
public int getLocation()
void setLocation(int location)
public QuotaTypeData getQuotaType()
void setQuotaType(QuotaTypeData quotaType)
public boolean equals(Object o)
QuotaIndex
object. They are equal if both have the same quotatype id and location.public int hashCode()
private void readObject(ObjectInputStream ois) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream ois) throws IOException
IOException