org.openprivacy.reptile.om
Class BaseArticle

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

public abstract class BaseArticle
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 Article

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.turbine.om.BaseObject
NEW_ID
 
Constructor Summary
BaseArticle()
           
 
Method Summary
 Article 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.
 java.lang.String getChannel()
          Get the Channel
 java.lang.String getCopyright()
          Get the Copyright
 long getDateFound()
          Get the DateFound
 java.lang.String getDcCreator()
          Get the DcCreator
 java.lang.String getDcSubject()
          Get the DcSubject
 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
 long getLastUpdated()
          Get the LastUpdated
 java.lang.String getLocation()
          Get the Location
 int getMarkedRead()
          Get the MarkedRead
 org.apache.turbine.om.ObjectKey getPrimaryKey()
          returns an id that differentiates this object from others of its class.
 java.lang.String getQueryKey()
          get an id that differentiates this object from others of its class.
 java.lang.String getTitle()
          Get the Title
 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 setChannel(java.lang.String v)
          Set the value of Channel
 void setCopyright(java.lang.String v)
          Set the value of Copyright
 void setDateFound(long v)
          Set the value of DateFound
 void setDcCreator(java.lang.String v)
          Set the value of DcCreator
 void setDcSubject(java.lang.String v)
          Set the value of DcSubject
 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 setLastUpdated(long v)
          Set the value of LastUpdated
 void setLocation(java.lang.String v)
          Set the value of Location
 void setMarkedRead(int v)
          Set the value of MarkedRead
 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 setQueryKey(java.lang.String key)
          set an id that differentiates this object from others of its class.
 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
 

Constructor Detail

BaseArticle

public BaseArticle()
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)
Set the value of Id


setId

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


getLocation

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

Returns:
String

setLocation

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


getChannel

public java.lang.String getChannel()
Get the Channel

Returns:
String

setChannel

public void setChannel(java.lang.String v)
Set the value of Channel


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


getCopyright

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

Returns:
String

setCopyright

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


getDcCreator

public java.lang.String getDcCreator()
Get the DcCreator

Returns:
String

setDcCreator

public void setDcCreator(java.lang.String v)
Set the value of DcCreator


getDcSubject

public java.lang.String getDcSubject()
Get the DcSubject

Returns:
String

setDcSubject

public void setDcSubject(java.lang.String v)
Set the value of DcSubject


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


getMarkedRead

public int getMarkedRead()
Get the MarkedRead

Returns:
int

setMarkedRead

public void setMarkedRead(int v)
Set the value of MarkedRead


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)
Set the PrimaryKey using ObjectKey.

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

setPrimaryKey

public void setPrimaryKey(java.lang.String key)
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

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 Article 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