org.openprivacy.reptile.om
Class BaseImage

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

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

This class was autogenerated by Torque on: [Thu Feb 14 00:17:16 PST 2002] You should not use this class directly. It should not even be extended all references should be to Image

See Also:
Serialized Form

Field Summary
protected  java.util.Vector collChannels
          Collection to store aggregation of collChannels
 
Fields inherited from class org.apache.turbine.om.BaseObject
NEW_ID
 
Constructor Summary
BaseImage()
           
 
Method Summary
 void addChannel(Channel l)
          Method called to associate a Channel object to this object through the Channel foreign key attribute
 Image 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.util.Vector getChannels()
          If this collection has already been initialized, returns the collection.
 java.util.Vector getChannels(org.apache.turbine.util.db.Criteria criteria)
          If this collection has already been initialized with an identical criteria, it returns the collection.
static java.util.List getFieldNames()
          Generate a list of field names.
 int getHeight()
          Get the Height
 org.apache.turbine.om.NumberKey getId()
          Get the Id
 java.lang.String getLocation()
          Get the Location
 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.
 int getWidth()
          Get the Width
protected  void initChannels()
          Temporary storage of collChannels 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 setChannel(java.lang.String v)
          Set the value of Channel
 void setHeight(int v)
          Set the value of Height
 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 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 setQueryKey(java.lang.String key)
          set an id that differentiates this object from others of its class.
 void setWidth(int v)
          Set the value of Width
 
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

collChannels

protected java.util.Vector collChannels
Collection to store aggregation of collChannels
Constructor Detail

BaseImage

public BaseImage()
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

setId

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

getChannel

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

setChannel

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

getLocation

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

setLocation

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

getWidth

public int getWidth()
Get the Width
Returns:
int

setWidth

public void setWidth(int v)
Set the value of Width

getHeight

public int getHeight()
Get the Height
Returns:
int

setHeight

public void setHeight(int v)
Set the value of Height

initChannels

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

addChannel

public void addChannel(Channel l)
                throws java.lang.Exception
Method called to associate a Channel object to this object through the Channel foreign key attribute
Parameters:
Channel - l

getChannels

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

getChannels

public java.util.Vector getChannels(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 Image has previously been saved, it will retrieve related Channels from storage. If this Image is new, it will return an empty collection or the current collection, the criteria is ignored on a new object.

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.
Overrides:
save in class org.apache.turbine.om.BaseObject

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.

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

setPrimaryKey

public void setPrimaryKey(org.apache.turbine.om.ObjectKey id)
                   throws java.lang.Exception
Set the PrimaryKey using ObjectKey.
Overrides:
setPrimaryKey in class org.apache.turbine.om.BaseObject
Parameters:
ObjectKey - id

setPrimaryKey

public void setPrimaryKey(java.lang.String key)
                   throws java.lang.Exception
Set the PrimaryKey using a String.
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.
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

copy

public Image 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.