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
This class holds information about a users and/or groups disk usage.
- Version:
- 2.0
- Author:
- enell
- See Also:
- Last modified
- $Date: 2011-10-21 13:15:41 +0200 (fr, 21 okt 2011) $
- Hibernate: class
- table="`DiskUsage`" lazy="true"
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getBytes()
Get the number of bytes theDiskConsumable
item is using.getGroup()
Get theGroupData
that owns theDiskConsumable
item.int
Get the item type this annotation set is associated with.int
Get the location of theDiskConsumable
item.Get theQuotaTypeData
for this DiskUsageData.getUser()
Get the user that owns theDiskConsumable
item.void
setBytes
(long bytes) void
void
setItemType
(int itemType) void
setLocation
(int location) void
setQuotaType
(QuotaTypeData quotaType) void
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:
- 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
-