Package net.sf.basedb.core.data
Class DiskUsageData
java.lang.Object
net.sf.basedb.core.data.BasicData
net.sf.basedb.core.data.DiskUsageData
- All Implemented Interfaces:
IdentifiableData
public class DiskUsageData extends BasicData
This class holds information about a users and/or groups disk usage.
- Version:
- 2.0
- Author:
- enell
- See Also:
DiskUsage
, Developer documentation: Quota and disk usage- Last modified
- $Date: 2011-10-21 13:15:41 +0200 (fr, 21 okt 2011) $
- Hibernate: class
- table="`DiskUsage`" lazy="true"
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DiskUsageData()
Creates a new DiskUsageData. -
Method Summary
Modifier and Type Method Description long
getBytes()
Get the number of bytes theDiskConsumable
item is using.GroupData
getGroup()
Get theGroupData
that owns theDiskConsumable
item.int
getItemType()
Get the item type this annotation set is associated with.int
getLocation()
Get the location of theDiskConsumable
item.QuotaTypeData
getQuotaType()
Get theQuotaTypeData
for this DiskUsageData.UserData
getUser()
Get the user that owns theDiskConsumable
item.void
setBytes(long bytes)
void
setGroup(GroupData group)
void
setItemType(int itemType)
void
setLocation(int location)
void
setQuotaType(QuotaTypeData quotaType)
void
setUser(UserData user)
Methods inherited from class net.sf.basedb.core.data.BasicData
equals, getId, getVersion, hashCode, setId, setVersion, toString
-
Field Details
-
itemType
private int itemType -
location
private int location -
bytes
private long bytes -
quotaType
-
group
-
user
-
-
Constructor Details
-
DiskUsageData
public DiskUsageData()Creates a new DiskUsageData.
-
-
Method Details
-
getItemType
public int getItemType()Get the item type this annotation set is associated with.- Since:
- 2.2
- Hibernate: property
- column="`item_type`" type="int" not-null="true" update="false"
-
setItemType
public void setItemType(int itemType) -
getLocation
public int getLocation()Get the location of theDiskConsumable
item.- See Also:
Location
- Hibernate: property
- column="`location`" type="int" not-null="true"
-
setLocation
public void setLocation(int location) -
getBytes
public long getBytes()Get the number of bytes theDiskConsumable
item is using.- Hibernate: property
- column="`bytes`" type="long" not-null="true"
-
setBytes
public void setBytes(long bytes) -
getQuotaType
Get theQuotaTypeData
for this DiskUsageData.- Hibernate: many-to-one
- column="`quotatype_id`" not-null="true" outer-join="false"
-
setQuotaType
-
getGroup
Get theGroupData
that owns theDiskConsumable
item.- Hibernate: many-to-one
- column="`group_id`" not-null="false" outer-join="false"
-
setGroup
-
getUser
Get the user that owns theDiskConsumable
item.- Hibernate: many-to-one
- column="`user_id`" not-null="true" outer-join="false"
-
setUser
-