2.17.2: 2011-06-17

net.sf.basedb.core.data
Class DiskUsageData

java.lang.Object
  extended by net.sf.basedb.core.data.BasicData
      extended by 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, Quota overview
Last modified
$Date: 2009-04-06 14:52:39 +0200 (Mon, 06 Apr 2009) $
Hibernate: class
table="`DiskUsage`" lazy="true"

Field Summary
private  long bytes
           
private  GroupData group
           
private  int itemType
           
private  int location
           
private  QuotaTypeData quotaType
           
private  UserData user
           
 
Constructor Summary
DiskUsageData()
          Creates a new DiskUsageData.
 
Method Summary
 long getBytes()
          Get the number of bytes the DiskConsumable item is using.
 GroupData getGroup()
          Get the GroupData that owns the DiskConsumable item.
 int getItemType()
          Get the item type this annotation set is associated with.
 int getLocation()
          Get the location of the DiskConsumable item.
 QuotaTypeData getQuotaType()
          Get the QuotaTypeData for this DiskUsageData.
 UserData getUser()
          Get the user that owns the DiskConsumable 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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

itemType

private int itemType

location

private int location

bytes

private long bytes

quotaType

private QuotaTypeData quotaType

group

private GroupData group

user

private UserData user
Constructor Detail

DiskUsageData

public DiskUsageData()
Creates a new DiskUsageData.

Method Detail

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 the DiskConsumable 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 the DiskConsumable item is using.

Hibernate: property
column="`bytes`" type="long" not-null="true"

setBytes

public void setBytes(long bytes)

getQuotaType

public QuotaTypeData getQuotaType()
Get the QuotaTypeData for this DiskUsageData.

Hibernate: many-to-one
column="`quotatype_id`" not-null="true" outer-join="false"

setQuotaType

public void setQuotaType(QuotaTypeData quotaType)

getGroup

public GroupData getGroup()
Get the GroupData that owns the DiskConsumable item.

Hibernate: many-to-one
column="`group_id`" not-null="false" outer-join="false"

setGroup

public void setGroup(GroupData group)

getUser

public UserData getUser()
Get the user that owns the DiskConsumable item.

Hibernate: many-to-one
column="`user_id`" not-null="true" outer-join="false"

setUser

public void setUser(UserData user)

2.17.2: 2011-06-17