org.liquidsite.core.data
Class ConfigurationPeer

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

public class ConfigurationPeer
extends AbstractPeer

A configuration database peer. This class contains static methods that handles all accesses to the LS_CONFIGURATION table.


Method Summary
static void doDeleteAll(DataSource src)
          Deletes all configuration data objects from the data source.
static void doInsert(DataSource src, ConfigurationData data)
          Inserts a new configuration data object into the data source.
static java.util.ArrayList doSelectAll(DataSource src)
          Returns a list of all configuration data object in the data source.
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

doSelectAll

public static java.util.ArrayList doSelectAll(DataSource src)
                                       throws DataObjectException
Returns a list of all configuration data object in the data source.

Parameters:
src - the data source to use
Returns:
a list of all configuration data objects
Throws:
DataObjectException - if the data source couldn't be accessed properly

doInsert

public static void doInsert(DataSource src,
                            ConfigurationData data)
                     throws DataObjectException
Inserts a new configuration data object into the data source.

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

doDeleteAll

public static void doDeleteAll(DataSource src)
                        throws DataObjectException
Deletes all configuration data objects from the data source.

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