org.openprivacy.reptile.om
Class ChannelPeer

java.lang.Object
  |
  +--org.apache.turbine.om.peer.BasePeer
        |
        +--org.openprivacy.reptile.om.BaseChannelPeer
              |
              +--org.openprivacy.reptile.om.ChannelPeer

public class ChannelPeer
extends BaseChannelPeer

The skeleton for this class was autogenerated by Torque on: [Mon Nov 26 01:04:40 PST 2001] You should add additional methods to this class to meet the application requirements. This class will only be generated as long as it does not already exist in the output directory.


Field Summary
static int CHANNEL_INITIALIZED
           
static int CHANNEL_SUBSCRIBED
           
static int CHANNEL_UNINITIALIZED
           
static int CHANNEL_UNSUBSCRIBED
           
 
Fields inherited from class org.openprivacy.reptile.om.BaseChannelPeer
CATEGORY_FK, CLASS_DEFAULT, CLASSNAME_DEFAULT, CONTENT_TYPE, COPYRIGHT, CREATOR, DATE_FOUND, DESCRIPTION, ID, IMAGE_FK, INDEXED, INITIALIZED, LAST_UPDATED, LOCATION, numColumns, PUBLISHER, SITE, SOURCE, SUBSCRIBED, TABLE_NAME, TITLE
 
Fields inherited from class org.apache.turbine.om.peer.BasePeer
DEFAULT_MAP_BUILDER, IGNORE_CASE, ORDER_BY
 
Constructor Summary
ChannelPeer()
           
 
Method Summary
static Channel getChannelByLocation(java.lang.String location)
          Get a channel by it's location return null if one wasn't found.
static int getCount()
          Get the number of channels in this peer.
static Channel getDefaultSubscription()
          Get the default subscription.
static Channel[] getSubscriptions()
          Get all channel that are SUBSCRIBED
static Channel[] getSubscriptionsByCategory(Category category)
          Return all subscriptions within the given channel.
static void markChannelRead(java.lang.String location)
          Mark all articles within the given channel, read..
static void markChannelUnread(java.lang.String location)
          Mark all articles within the given channel, read..
static void registerChannel(ContentFeed feed)
          Update a specific channel with a new content feed.
static Channel[] searchByDescription(java.lang.String query)
          Search for and find channels by their description.
static Channel[] searchByTitle(java.lang.String query)
          Search for and find channels by their title.
static Channel[] searchByTitleAndDescription(java.lang.String query)
          Search within the peers by title and description.
static void updateChannel(java.lang.String location, java.lang.String site, java.lang.String contentType, java.lang.String title, java.lang.String description)
          Update the title and description in the given location.
 
Methods inherited from class org.openprivacy.reptile.om.BaseChannelPeer
addSelectColumns, buildCriteria, doDelete, doDelete, doDelete, doDelete, doInsert, doInsert, doInsert, doInsert, doSelect, doSelect, doSelectJoinCategory, doSelectJoinImage, doSelectVillageRecords, doSelectVillageRecords, doUpdate, doUpdate, doUpdate, doUpdate, getMapBuilder, getOMClass, getTableMap, populateObject, populateObjects, resultSet2Objects, retrieveByPK, retrieveByPK, row2Object
 
Methods inherited from class org.apache.turbine.om.peer.BasePeer
beginTransaction, commitTransaction, createPreparedStatement, createQueryString, deleteAll, deleteAll, doPSSelect, doPSSelect, doUpdate, doUpdate, executeQuery, executeQuery, executeQuery, executeQuery, executeQuery, executeQuery, executeStatement, executeStatement, executeStatement, getMapBuilder, getSelectResults, getSelectResults, getSelectResults, getSelectResults, handleMultiple, handleMultipleRecords, hashtableToByteArray, initColumnNames, initCriteriaKeys, initTableColumns, initTableSchema, initTableSchema, rollBackTransaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHANNEL_UNINITIALIZED

public static final int CHANNEL_UNINITIALIZED
See Also:
Constant Field Values

CHANNEL_INITIALIZED

public static final int CHANNEL_INITIALIZED
See Also:
Constant Field Values

CHANNEL_UNSUBSCRIBED

public static final int CHANNEL_UNSUBSCRIBED
See Also:
Constant Field Values

CHANNEL_SUBSCRIBED

public static final int CHANNEL_SUBSCRIBED
See Also:
Constant Field Values
Constructor Detail

ChannelPeer

public ChannelPeer()
Method Detail

getChannelByLocation

public static Channel getChannelByLocation(java.lang.String location)
                                    throws java.lang.Exception
Get a channel by it's location return null if one wasn't found.

java.lang.Exception

getSubscriptionsByCategory

public static Channel[] getSubscriptionsByCategory(Category category)
                                            throws java.lang.Exception
Return all subscriptions within the given channel.

java.lang.Exception

registerChannel

public static void registerChannel(ContentFeed feed)
                            throws java.lang.Exception
Update a specific channel with a new content feed. This make SURE that we don't already have this entry and if it does we just update it.

java.lang.Exception

updateChannel

public static void updateChannel(java.lang.String location,
                                 java.lang.String site,
                                 java.lang.String contentType,
                                 java.lang.String title,
                                 java.lang.String description)
                          throws java.lang.Exception
Update the title and description in the given location.

java.lang.Exception

getCount

public static int getCount()
                    throws java.lang.Exception
Get the number of channels in this peer.

java.lang.Exception

searchByTitle

public static Channel[] searchByTitle(java.lang.String query)
                               throws java.lang.Exception
Search for and find channels by their title.

java.lang.Exception

searchByDescription

public static Channel[] searchByDescription(java.lang.String query)
                                     throws java.lang.Exception
Search for and find channels by their description.

java.lang.Exception

searchByTitleAndDescription

public static Channel[] searchByTitleAndDescription(java.lang.String query)
                                             throws java.lang.Exception
Search within the peers by title and description.

java.lang.Exception

getSubscriptions

public static Channel[] getSubscriptions()
                                  throws java.lang.Exception
Get all channel that are SUBSCRIBED

java.lang.Exception

markChannelRead

public static void markChannelRead(java.lang.String location)
                            throws java.lang.Exception
Mark all articles within the given channel, read..

java.lang.Exception

markChannelUnread

public static void markChannelUnread(java.lang.String location)
                              throws java.lang.Exception
Mark all articles within the given channel, read..

java.lang.Exception

getDefaultSubscription

public static Channel getDefaultSubscription()
Get the default subscription. This is usually the first subscription on the