org.liquidsite.core.data
Class DomainAttributePeer

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

public class DomainAttributePeer
extends AbstractPeer

A domain attribute database peer. This class contains static methods that handles all accesses to the LS_DOMAIN_ATTRIBUTE table.


Method Summary
static void doDeleteDomain(DataSource src, java.lang.String domain)
          Deletes all domain attributes in a domain from the data source.
static void doInsert(DataSource src, DomainAttributeData data)
          Inserts a new domain attribute into the data source.
static java.util.ArrayList doSelectByDomain(DataSource src, java.lang.String domain)
          Returns a list of all domain attributes in a specified 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
Returns a list of all domain attributes in a specified domain.

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

doInsert

public static void doInsert(DataSource src,
                            DomainAttributeData data)
                     throws DataObjectException
Inserts a new domain attribute into the data source.

Parameters:
src - the data source to use
data - the domain attribute data object
Throws:
DataObjectException - if the data source couldn't be accessed properly

doDeleteDomain

public static void doDeleteDomain(DataSource src,
                                  java.lang.String domain)
                           throws DataObjectException
Deletes all domain attributes in a domain from the data source.

Parameters:
src - the data source to use
domain - the domain name
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