org.openprivacy.reptile.om
Class BaseChannel

java.lang.Object
  |
  +--org.apache.turbine.om.BaseObject
        |
        +--org.openprivacy.reptile.om.BaseChannel
All Implemented Interfaces:
org.apache.turbine.om.Persistent, org.apache.turbine.om.Retrievable, java.io.Serializable
Direct Known Subclasses:
Channel

public abstract class BaseChannel
extends org.apache.turbine.om.BaseObject
implements org.apache.turbine.om.Retrievable

This class was autogenerated by Torque on: [Mon Jul 01 17:54:11 PDT 2002] You should not use this class directly. It should not even be extended all references should be to Channel

See Also:
Serialized Form

Field Summary
protected  java.util.Vector collMonitors
          Collection to store aggregation of collMonitors
 
Fields inherited from class org.apache.turbine.om.BaseObject
NEW_ID
 
Constructor Summary
BaseChannel()
           
 
Method Summary
 void addMonitor(Monitor l)
          Method called to associate a Monitor object to this object through the Monitor foreign key attribute
 Channel copy()
          Makes a copy of this object.
 java.lang.Object getByName(java.lang.String name)
          Retrieves a field from the object by name passed in as a String.
 java.lang.Object getByPeerName(java.lang.String name)
          Retrieves a field from the object by name passed in as a String.
 java.lang.Object getByPosition(int pos)
          Retrieves a field from the object by Position as specified in the xml schema.
 Category getCategory()
           
 org.apache.turbine.om.NumberKey getCategoryFk()
          Get the CategoryFk
 java.lang.String getContentType()
          Get the ContentType
 java.lang.String getCopyright()
          Get the Copyright
 java.lang.String getCreator()
          Get the Creator
 long getDateFound()
          Get the DateFound
 java.lang.String getDescription()
          Get the Description
static java.util.List getFieldNames()
          Generate a list of field names.
 org.apache.turbine.om.NumberKey getId()
          Get the Id
 Image getImage()
           
 org.apache.turbine.om.NumberKey getImageFk()
          Get the ImageFk
 int getIndexed()
          Get the Indexed
 int getInitialized()
          Get the Initialized
 long getLastUpdated()
          Get the LastUpdated
 java.lang.String getLocation()
          Get the Location
 java.util.Vector getMonitors()
          If this collection has already been initialized, returns the collection.
 java.util.Vector getMonitors(org.apache.turbine.util.db.Criteria criteria)
          If this collection has already been initialized with an identical criteria, it returns the collection.
 org.apache.turbine.om.ObjectKey getPrimaryKey()
          returns an id that differentiates this object from others of its class.
 java.lang.String getPublisher()
          Get the Publisher
 java.lang.String getQueryKey()
          get an id that differentiates this object from others of its class.
 java.lang.String getSite()
          Get the Site
 java.lang.String getSource()
          Get the Source
 int getSubscribed()
          Get the Subscribed
 java.lang.String getTitle()
          Get the Title
protected  void initMonitors()
          Temporary storage of collMonitors to save a possible db hit in the event objects are add to the collection, but the complete collection is never requested.
 void save()
          Stores the object in the database.
 void save(org.apache.turbine.util.db.pool.DBConnection dbCon)
          Stores the object in the database.
 void save(java.lang.String dbName)
          Stores the object in the database.
 void setCategory(Category v)
          Declares an association between this object and a Category object
 void setCategoryFk(org.apache.turbine.om.NumberKey v)
          Set the value of CategoryFk
 void setCategoryFk(java.lang.String v)
          Set the value of CategoryFk as a string.
 void setCategoryKey(org.apache.turbine.om.ObjectKey key)
          Provides convenient way to set a relationship based on a ObjectKey.
 void setContentType(java.lang.String v)
          Set the value of ContentType
 void setCopyright(java.lang.String v)
          Set the value of Copyright
 void setCreator(java.lang.String v)
          Set the value of Creator
 void setDateFound(long v)
          Set the value of DateFound
 void setDescription(java.lang.String v)
          Set the value of Description
 void setId(org.apache.turbine.om.NumberKey v)
          Set the value of Id
 void setId(java.lang.String v)
          Set the value of Id as a string.
 void setImage(Image v)
          Declares an association between this object and a Image object
 void setImageFk(org.apache.turbine.om.NumberKey v)
          Set the value of ImageFk
 void setImageFk(java.lang.String v)
          Set the value of ImageFk as a string.
 void setImageKey(org.apache.turbine.om.ObjectKey key)
          Provides convenient way to set a relationship based on a ObjectKey.
 void setIndexed(int v)
          Set the value of Indexed
 void setInitialized(int v)
          Set the value of Initialized
 void setLastUpdated(long v)
          Set the value of LastUpdated
 void setLocation(java.lang.String v)
          Set the value of Location
 void setPrimaryKey(org.apache.turbine.om.ObjectKey id)
          Set the PrimaryKey using ObjectKey.
 void setPrimaryKey(java.lang.String key)
          Set the PrimaryKey using a String.
 void setPublisher(java.lang.String v)
          Set the value of Publisher
 void setQueryKey(java.lang.String key)
          set an id that differentiates this object from others of its class.
 void setSite(java.lang.String v)
          Set the value of Site
 void setSource(java.lang.String v)
          Set the value of Source
 void setSubscribed(int v)
          Set the value of Subscribed
 void setTitle(java.lang.String v)
          Set the value of Title
 
Methods inherited from class org.apache.turbine.om.BaseObject
equals, equals, getPrimaryKeyAsBigDecimal, getPrimaryKeyAsInt, getPrimaryKeyAsLong, getPrimaryKeyAsString, hashCode, isModified, isNew, resetModified, setModified, setNew, setPrimaryKey, setPrimaryKey, setPrimaryKey
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

collMonitors

protected java.util.Vector collMonitors
Collection to store aggregation of collMonitors

Constructor Detail

BaseChannel

public BaseChannel()
Method Detail

getId

public org.apache.turbine.om.NumberKey getId()
Get the Id

Returns:
NumberKey

setId

public void setId(org.apache.turbine.om.NumberKey v)
           throws java.lang.Exception
Set the value of Id

java.lang.Exception

setId

public void setId(java.lang.String v)
           throws java.lang.Exception
Set the value of Id as a string.

java.lang.Exception

getLocation

public java.lang.String getLocation()
Get the Location

Returns:
String

setLocation

public void setLocation(java.lang.String v)
Set the value of Location


getSite

public java.lang.String getSite()
Get the Site

Returns:
String

setSite

public void setSite(java.lang.String v)
Set the value of Site


getContentType

public java.lang.String getContentType()
Get the ContentType

Returns:
String

setContentType

public void setContentType(java.lang.String v)
Set the value of ContentType


getTitle

public java.lang.String getTitle()
Get the Title

Returns:
String

setTitle

public void setTitle(java.lang.String v)
Set the value of Title


getDescription

public java.lang.String getDescription()
Get the Description

Returns:
String

setDescription

public void setDescription(java.lang.String v)
Set the value of Description


getImageFk

public org.apache.turbine.om.NumberKey getImageFk()
Get the ImageFk

Returns:
NumberKey

setImageFk

public void setImageFk(org.apache.turbine.om.NumberKey v)
                throws java.lang.Exception
Set the value of ImageFk

java.lang.Exception

setImageFk

public void setImageFk(java.lang.String v)
                throws java.lang.Exception
Set the value of ImageFk as a string.

java.lang.Exception

getSource

public java.lang.String getSource()
Get the Source

Returns:
String

setSource

public void setSource(java.lang.String v)
Set the value of Source


getDateFound

public long getDateFound()
Get the DateFound

Returns:
long

setDateFound

public void setDateFound(long v)
Set the value of DateFound


getLastUpdated

public long getLastUpdated()
Get the LastUpdated

Returns:
long

setLastUpdated

public void setLastUpdated(long v)
Set the value of LastUpdated


getCopyright

public java.lang.String getCopyright()
Get the Copyright

Returns:
String

setCopyright

public void setCopyright(java.lang.String v)
Set the value of Copyright


getCategoryFk

public org.apache.turbine.om.NumberKey getCategoryFk()
Get the CategoryFk

Returns:
NumberKey

setCategoryFk

public void setCategoryFk(org.apache.turbine.om.NumberKey v)
                   throws java.lang.Exception
Set the value of CategoryFk

java.lang.Exception

setCategoryFk

public void setCategoryFk(java.lang.String v)
                   throws java.lang.Exception
Set the value of CategoryFk as a string.

java.lang.Exception

getSubscribed

public int getSubscribed()
Get the Subscribed

Returns:
int

setSubscribed

public void setSubscribed(int v)
Set the value of Subscribed


getIndexed

public int getIndexed()
Get the Indexed

Returns:
int

setIndexed

public void setIndexed(int v)
Set the value of Indexed


getInitialized

public int getInitialized()
Get the Initialized

Returns:
int

setInitialized

public void setInitialized(int v)
Set the value of Initialized


getPublisher

public java.lang.String getPublisher()
Get the Publisher

Returns:
String

setPublisher

public void setPublisher(java.lang.String v)
Set the value of Publisher


getCreator

public java.lang.String getCreator()
Get the Creator

Returns:
String

setCreator

public void setCreator(java.lang.String v)
Set the value of Creator


setImage

public void setImage(Image v)
              throws java.lang.Exception
Declares an association between this object and a Image object

java.lang.Exception

getImage

public Image getImage()
               throws java.lang.Exception
java.lang.Exception

setImageKey

public void setImageKey(org.apache.turbine.om.ObjectKey key)
                 throws java.lang.Exception
Provides convenient way to set a relationship based on a ObjectKey. e.g. bar.setFooKey(foo.getPrimaryKey())

java.lang.Exception

setCategory

public void setCategory(Category v)
                 throws java.lang.Exception
Declares an association between this object and a Category object

java.lang.Exception

getCategory

public Category getCategory()
                     throws java.lang.Exception
java.lang.Exception

setCategoryKey

public void setCategoryKey(org.apache.turbine.om.ObjectKey key)
                    throws java.lang.Exception
Provides convenient way to set a relationship based on a ObjectKey. e.g. bar.setFooKey(foo.getPrimaryKey())

java.lang.Exception

initMonitors

protected void initMonitors()
Temporary storage of collMonitors to save a possible db hit in the event objects are add to the collection, but the complete collection is never requested.


addMonitor

public void addMonitor(Monitor l)
                throws java.lang.Exception
Method called to associate a Monitor object to this object through the Monitor foreign key attribute

java.lang.Exception

getMonitors

public java.util.Vector getMonitors()
                             throws java.lang.Exception
If this collection has already been initialized, returns the collection. Otherwise returns the results of getMonitors(new Criteria())

java.lang.Exception

getMonitors

public java.util.Vector getMonitors(org.apache.turbine.util.db.Criteria criteria)
                             throws java.lang.Exception
If this collection has already been initialized with an identical criteria, it returns the collection. Otherwise if this Channel has previously been saved, it will retrieve related Monitors from storage. If this Channel is new, it will return an empty collection or the current collection, the criteria is ignored on a new object.

java.lang.Exception

getFieldNames

public static java.util.List getFieldNames()
Generate a list of field names.


getByName

public java.lang.Object getByName(java.lang.String name)
Retrieves a field from the object by name passed in as a String.

Overrides:
getByName in class org.apache.turbine.om.BaseObject

getByPeerName

public java.lang.Object getByPeerName(java.lang.String name)
Retrieves a field from the object by name passed in as a String. The String must be one of the static Strings defined in this Class' Peer.

Overrides:
getByPeerName in class org.apache.turbine.om.BaseObject

getByPosition

public java.lang.Object getByPosition(int pos)
Retrieves a field from the object by Position as specified in the xml schema. Zero-based.

Overrides:
getByPosition in class org.apache.turbine.om.BaseObject

save

public void save()
          throws java.lang.Exception
Stores the object in the database. If the object is new, it inserts it; otherwise an update is performed.

Specified by:
save in interface org.apache.turbine.om.Persistent
Overrides:
save in class org.apache.turbine.om.BaseObject
java.lang.Exception

save

public void save(java.lang.String dbName)
          throws java.lang.Exception
Stores the object in the database. If the object is new, it inserts it; otherwise an update is performed.

java.lang.Exception

save

public void save(org.apache.turbine.util.db.pool.DBConnection dbCon)
          throws java.lang.Exception
Stores the object in the database. If the object is new, it inserts it; otherwise an update is performed. This method is meant to be used as part of a transaction, otherwise use the save() method and the connection details will be handled internally

java.lang.Exception

setPrimaryKey

public void setPrimaryKey(org.apache.turbine.om.ObjectKey id)
                   throws java.lang.Exception
Set the PrimaryKey using ObjectKey.

Specified by:
setPrimaryKey in interface org.apache.turbine.om.Persistent
Overrides:
setPrimaryKey in class org.apache.turbine.om.BaseObject
java.lang.Exception

setPrimaryKey

public void setPrimaryKey(java.lang.String key)
                   throws java.lang.Exception
Set the PrimaryKey using a String.

Specified by:
setPrimaryKey in interface org.apache.turbine.om.Persistent
Overrides:
setPrimaryKey in class org.apache.turbine.om.BaseObject
java.lang.Exception

getPrimaryKey

public org.apache.turbine.om.ObjectKey getPrimaryKey()
returns an id that differentiates this object from others of its class.

Specified by:
getPrimaryKey in interface org.apache.turbine.om.Persistent
Overrides:
getPrimaryKey in class org.apache.turbine.om.BaseObject

getQueryKey

public java.lang.String getQueryKey()
get an id that differentiates this object from others of its class.

Specified by:
getQueryKey in interface org.apache.turbine.om.Retrievable

setQueryKey

public void setQueryKey(java.lang.String key)
                 throws java.lang.Exception
set an id that differentiates this object from others of its class.

Specified by:
setQueryKey in interface org.apache.turbine.om.Retrievable
java.lang.Exception

copy

public Channel copy()
             throws java.lang.Exception
Makes a copy of this object. It creates a new object filling in the simple attributes. It then fills all the association collections and sets the related objects to isNew=true.

java.lang.Exception