Last update: 2011-06-23

org.proteios.core.data
Class DiskUsageData

java.lang.Object
  extended by org.proteios.core.data.BasicData
      extended by org.proteios.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-09 08:48:11 +0200 (Thu, 09 Apr 2009) $
Hibernate: class
table="`DiskUsage`" lazy="true"

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 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 setLocation(int location)
           
 void setQuotaType(QuotaTypeData quotaType)
           
 void setUser(UserData user)
           
 
Methods inherited from class org.proteios.core.data.BasicData
equals, getId, getVersion, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DiskUsageData

public DiskUsageData()
Creates a new DiskUsageData.

Method Detail

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)

Last update: 2011-06-23