XPUSP - Home

br.usp.ime.xpusp.om
Class BaseSource

java.lang.Object
  |
  +--org.apache.turbine.om.BaseObject
        |
        +--br.usp.ime.xpusp.om.BaseSource
All Implemented Interfaces:
org.apache.turbine.om.Persistent, org.apache.turbine.om.Retrievable, java.io.Serializable
Direct Known Subclasses:
Source

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

This class was autogenerated by Torque. You should not use this class directly. It should not even be extended all references should be to Source

See Also:
Serialized Form

Field Summary
private  boolean alreadyInSave
           
protected  java.util.Vector collCourses
          Collection to store aggregation of collCourses
protected  java.util.Vector collDepartments
          Collection to store aggregation of collDepartments
protected  java.util.Vector collDisciplines
          Collection to store aggregation of collDisciplines
protected  java.util.Vector collUnits
          Collection to store aggregation of collUnits
private  org.apache.turbine.util.db.Criteria lastCoursesCriteria
          The criteria used to select the current contents of collCourses
private  org.apache.turbine.util.db.Criteria lastDepartmentsCriteria
          The criteria used to select the current contents of collDepartments
private  org.apache.turbine.util.db.Criteria lastDisciplinesCriteria
          The criteria used to select the current contents of collDisciplines
private  org.apache.turbine.util.db.Criteria lastUnitsCriteria
          The criteria used to select the current contents of collUnits
private  java.lang.String name
          the value for the name field
private  org.apache.turbine.om.NumberKey source_id
          the value for the source_id field
 
Fields inherited from class org.apache.turbine.om.BaseObject
errMsg, is_new, modified, NEW_ID, primaryKey
 
Constructor Summary
BaseSource()
           
 
Method Summary
 void addCourse(Course l)
          Method called to associate a Course object to this object through the Course foreign key attribute
 void addDepartment(Department l)
          Method called to associate a Department object to this object through the Department foreign key attribute
 void addDiscipline(Discipline l)
          Method called to associate a Discipline object to this object through the Discipline foreign key attribute
 void addUnit(Unit l)
          Method called to associate a Unit object to this object through the Unit foreign key attribute
 Source copy()
          Makes a copy of this object.
 java.util.Vector getCourses()
          If this collection has already been initialized, returns the collection.
 java.util.Vector getCourses(org.apache.turbine.util.db.Criteria criteria)
          If this collection has already been initialized with an identical criteria, it returns the collection.
protected  java.util.Vector getCoursesJoinDepartment(org.apache.turbine.util.db.Criteria criteria)
          If this collection has already been initialized with an identical criteria, it returns the collection.
protected  java.util.Vector getCoursesJoinUnit(org.apache.turbine.util.db.Criteria criteria)
          If this collection has already been initialized with an identical criteria, it returns the collection.
 java.util.Vector getDepartments()
          If this collection has already been initialized, returns the collection.
 java.util.Vector getDepartments(org.apache.turbine.util.db.Criteria criteria)
          If this collection has already been initialized with an identical criteria, it returns the collection.
protected  java.util.Vector getDepartmentsJoinUnit(org.apache.turbine.util.db.Criteria criteria)
          If this collection has already been initialized with an identical criteria, it returns the collection.
 java.util.Vector getDisciplines()
          If this collection has already been initialized, returns the collection.
 java.util.Vector getDisciplines(org.apache.turbine.util.db.Criteria criteria)
          If this collection has already been initialized with an identical criteria, it returns the collection.
protected  java.util.Vector getDisciplinesJoinDepartment(org.apache.turbine.util.db.Criteria criteria)
          If this collection has already been initialized with an identical criteria, it returns the collection.
protected  java.util.Vector getDisciplinesJoinDisciplineType(org.apache.turbine.util.db.Criteria criteria)
          If this collection has already been initialized with an identical criteria, it returns the collection.
 java.lang.String getName()
          Get the Name
 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.
 org.apache.turbine.om.NumberKey getSourceId()
          Get the SourceId
 java.util.Vector getUnits()
          If this collection has already been initialized, returns the collection.
 java.util.Vector getUnits(org.apache.turbine.util.db.Criteria criteria)
          If this collection has already been initialized with an identical criteria, it returns the collection.
protected  void initCourses()
          Temporary storage of collCourses to save a possible db hit in the event objects are add to the collection, but the complete collection is never requested.
protected  void initDepartments()
          Temporary storage of collDepartments to save a possible db hit in the event objects are add to the collection, but the complete collection is never requested.
protected  void initDisciplines()
          Temporary storage of collDisciplines to save a possible db hit in the event objects are add to the collection, but the complete collection is never requested.
protected  void initUnits()
          Temporary storage of collUnits 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 setName(java.lang.String v)
          Set the value of Name
 void setPrimaryKey(org.apache.turbine.om.ObjectKey source_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 setSourceId(org.apache.turbine.om.NumberKey v)
          Set the value of SourceId
 void setSourceId(java.lang.String v)
          Set the value of SourceId as a string.
 
Methods inherited from class org.apache.turbine.om.BaseObject
, equals, equals, getByName, getByPeerName, getByPosition, 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, registerNatives, toString, wait, wait, wait
 

Field Detail

source_id

private org.apache.turbine.om.NumberKey source_id
the value for the source_id field

name

private java.lang.String name
the value for the name field

collUnits

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

lastUnitsCriteria

private org.apache.turbine.util.db.Criteria lastUnitsCriteria
The criteria used to select the current contents of collUnits

collDepartments

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

lastDepartmentsCriteria

private org.apache.turbine.util.db.Criteria lastDepartmentsCriteria
The criteria used to select the current contents of collDepartments

collDisciplines

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

lastDisciplinesCriteria

private org.apache.turbine.util.db.Criteria lastDisciplinesCriteria
The criteria used to select the current contents of collDisciplines

collCourses

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

lastCoursesCriteria

private org.apache.turbine.util.db.Criteria lastCoursesCriteria
The criteria used to select the current contents of collCourses

alreadyInSave

private boolean alreadyInSave
Constructor Detail

BaseSource

public BaseSource()
Method Detail

getSourceId

public org.apache.turbine.om.NumberKey getSourceId()
Get the SourceId
Returns:
NumberKey

setSourceId

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

setSourceId

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

getName

public java.lang.String getName()
Get the Name
Returns:
String

setName

public void setName(java.lang.String v)
Set the value of Name

initUnits

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

addUnit

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

getUnits

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

getUnits

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

initDepartments

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

addDepartment

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

getDepartments

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

getDepartments

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

getDepartmentsJoinUnit

protected java.util.Vector getDepartmentsJoinUnit(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 Source is new, it will return an empty collection; or if this Source has previously been saved, it will retrieve related Departments from storage.

initDisciplines

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

addDiscipline

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

getDisciplines

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

getDisciplines

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

getDisciplinesJoinDepartment

protected java.util.Vector getDisciplinesJoinDepartment(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 Source is new, it will return an empty collection; or if this Source has previously been saved, it will retrieve related Disciplines from storage.

getDisciplinesJoinDisciplineType

protected java.util.Vector getDisciplinesJoinDisciplineType(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 Source is new, it will return an empty collection; or if this Source has previously been saved, it will retrieve related Disciplines from storage.

initCourses

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

addCourse

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

getCourses

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

getCourses

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

getCoursesJoinDepartment

protected java.util.Vector getCoursesJoinDepartment(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 Source is new, it will return an empty collection; or if this Source has previously been saved, it will retrieve related Courses from storage.

getCoursesJoinUnit

protected java.util.Vector getCoursesJoinUnit(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 Source is new, it will return an empty collection; or if this Source has previously been saved, it will retrieve related Courses from storage.

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 source_id)
                   throws java.lang.Exception
Set the PrimaryKey using ObjectKey.
Overrides:
setPrimaryKey in class org.apache.turbine.om.BaseObject
Parameters:
ObjectKey - source_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 Source 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.

XPUSP - Home