org.liquidsite.core.data
Class DomainSizePeer

java.lang.Object
  extended byorg.liquidsite.core.data.AbstractPeer
      extended byorg.liquidsite.core.data.DomainSizePeer

public class DomainSizePeer
extends AbstractPeer

A domain size database peer. This class contains static methods that handles all accesses to the domain size query.


Method Summary
static java.util.ArrayList doSelectByDomain(DataSource src, java.lang.String domain)
          Calculates the aggregate size in the database of all attributes in a domain.
protected  AbstractData getDataObject()
          Returns a new instance of the data object.
 
Methods inherited from class org.liquidsite.core.data.AbstractPeer
count, delete, insert, select, selectList, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

doSelectByDomain

public static java.util.ArrayList doSelectByDomain(DataSource src,
                                                   java.lang.String domain)
                                            throws DataObjectException
Calculates the aggregate size in the database of all attributes in a domain.

Parameters:
src - the data source to use
domain - the domain name
Returns:
the size in bytes of all the attributes in the domain
Throws:
DataObjectException - if the data source couldn't be accessed properly

getDataObject

protected AbstractData getDataObject()
Returns a new instance of the data object.

Specified by:
getDataObject in class AbstractPeer
Returns:
a new instance of the data object