Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

br.usp.ime.xpusp.om
Class BaseDepartment  view BaseDepartment download BaseDepartment.java

java.lang.Object
  extended byBaseObject
      extended bybr.usp.ime.xpusp.om.BaseDepartment
All Implemented Interfaces:
org.apache.turbine.om.Retrievable
Direct Known Subclasses:
Department

public abstract class BaseDepartment
extends 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 Department


Field Summary
private  boolean alreadyInSave
           
private  Source aSource
           
private  Unit aUnit
           
private  StringKey code
          the value for the code field
protected  java.util.Vector collCourses
          Collection to store aggregation of collCourses
protected  java.util.Vector collDefaultCapabilitys
          Collection to store aggregation of collDefaultCapabilitys
protected  java.util.Vector collDisciplines
          Collection to store aggregation of collDisciplines
protected  java.util.Vector collProfessors
          Collection to store aggregation of collProfessors
private  Criteria lastCoursesCriteria
          The criteria used to select the current contents of collCourses
private  Criteria lastDefaultCapabilitysCriteria
          The criteria used to select the current contents of collDefaultCapabilitys
private  Criteria lastDisciplinesCriteria
          The criteria used to select the current contents of collDisciplines
private  Criteria lastProfessorsCriteria
          The criteria used to select the current contents of collProfessors
private  java.lang.String name
          the value for the name field
private  NumberKey source_id
          the value for the source_id field
private  NumberKey unit_id
          the value for the unit_id field
 
Constructor Summary
BaseDepartment()
           
 
Method Summary
 void addCourse(Course l)
          Method called to associate a Course object to this object through the Course foreign key attribute
 void addDefaultCapability(DefaultCapability l)
          Method called to associate a DefaultCapability object to this object through the DefaultCapability foreign key attribute
 void addDiscipline(Discipline l)
          Method called to associate a Discipline object to this object through the Discipline foreign key attribute
 void addProfessor(Professor l)
          Method called to associate a Professor object to this object through the Professor foreign key attribute
 Department copy()
          Makes a copy of this object.
 StringKey getCode()
          Get the Code
 java.util.Vector getCourses()
          If this collection has already been initialized, returns the collection.
 java.util.Vector getCourses(Criteria criteria)
          If this collection has already been initialized with an identical criteria, it returns the collection.
protected  java.util.Vector getCoursesJoinSource(Criteria criteria)
          If this collection has already been initialized with an identical criteria, it returns the collection.
protected  java.util.Vector getCoursesJoinUnit(Criteria criteria)
          If this collection has already been initialized with an identical criteria, it returns the collection.
 java.util.Vector getDefaultCapabilitys()
          If this collection has already been initialized, returns the collection.
 java.util.Vector getDefaultCapabilitys(Criteria criteria)
          If this collection has already been initialized with an identical criteria, it returns the collection.
protected  java.util.Vector getDefaultCapabilitysJoinDiscipline(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(Criteria criteria)
          If this collection has already been initialized with an identical criteria, it returns the collection.
protected  java.util.Vector getDisciplinesJoinDisciplineType(Criteria criteria)
          If this collection has already been initialized with an identical criteria, it returns the collection.
protected  java.util.Vector getDisciplinesJoinSource(Criteria criteria)
          If this collection has already been initialized with an identical criteria, it returns the collection.
 java.lang.String getName()
          Get the Name
 ObjectKey getPrimaryKey()
          returns an id that differentiates this object from others of its class.
 java.util.Vector getProfessors()
          If this collection has already been initialized, returns the collection.
 java.util.Vector getProfessors(Criteria criteria)
          If this collection has already been initialized with an identical criteria, it returns the collection.
 java.lang.String getQueryKey()
          get an id that differentiates this object from others of its class.
 Source getSource()
           
 NumberKey getSourceId()
          Get the SourceId
 Unit getUnit()
           
 NumberKey getUnitId()
          Get the UnitId
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 initDefaultCapabilitys()
          Temporary storage of collDefaultCapabilitys 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 initProfessors()
          Temporary storage of collProfessors 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(java.lang.String dbName)
          Stores the object in the database.
 void setCode(StringKey v)
          Set the value of Code
 void setName(java.lang.String v)
          Set the value of Name
 void setPrimaryKey(ObjectKey code)
          Set the PrimaryKey using ObjectKey.
 void setQueryKey(java.lang.String key)
          set an id that differentiates this object from others of its class.
 void setSource(Source v)
          Declares an association between this object and a Source object
 void setSourceId(NumberKey v)
          Set the value of SourceId
 void setSourceKey(ObjectKey key)
          Provides convenient way to set a relationship based on a ObjectKey.
 void setUnit(Unit v)
          Declares an association between this object and a Unit object
 void setUnitId(NumberKey v)
          Set the value of UnitId
 void setUnitKey(ObjectKey key)
          Provides convenient way to set a relationship based on a ObjectKey.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code

private StringKey code
the value for the code field


name

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


unit_id

private NumberKey unit_id
the value for the unit_id field


source_id

private NumberKey source_id
the value for the source_id field


aUnit

private Unit aUnit

aSource

private Source aSource

collDefaultCapabilitys

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


lastDefaultCapabilitysCriteria

private Criteria lastDefaultCapabilitysCriteria
The criteria used to select the current contents of collDefaultCapabilitys


collDisciplines

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


lastDisciplinesCriteria

private 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 Criteria lastCoursesCriteria
The criteria used to select the current contents of collCourses


collProfessors

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


lastProfessorsCriteria

private Criteria lastProfessorsCriteria
The criteria used to select the current contents of collProfessors


alreadyInSave

private boolean alreadyInSave
Constructor Detail

BaseDepartment

public BaseDepartment()
Method Detail

getCode

public StringKey getCode()
Get the Code


setCode

public void setCode(StringKey v)
             throws java.lang.Exception
Set the value of Code


getName

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


setName

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


getUnitId

public NumberKey getUnitId()
Get the UnitId


setUnitId

public void setUnitId(NumberKey v)
               throws java.lang.Exception
Set the value of UnitId


getSourceId

public NumberKey getSourceId()
Get the SourceId


setSourceId

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


setUnit

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


getUnit

public Unit getUnit()
             throws java.lang.Exception

setUnitKey

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


setSource

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


getSource

public Source getSource()
                 throws java.lang.Exception

setSourceKey

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


initDefaultCapabilitys

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


addDefaultCapability

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


getDefaultCapabilitys

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


getDefaultCapabilitys

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


getDefaultCapabilitysJoinDiscipline

protected java.util.Vector getDefaultCapabilitysJoinDiscipline(Criteria criteria)
                                                        throws java.lang.Exception
If this collection has already been initialized with an identical criteria, it returns the collection. Otherwise if this Department is new, it will return an empty collection; or if this Department has previously been saved, it will retrieve related DefaultCapabilitys 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


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(Criteria criteria)
                                throws java.lang.Exception
If this collection has already been initialized with an identical criteria, it returns the collection. Otherwise if this Department has previously been saved, it will retrieve related Disciplines from storage. If this Department is new, it will return an empty collection or the current collection, the criteria is ignored on a new object.


getDisciplinesJoinSource

protected java.util.Vector getDisciplinesJoinSource(Criteria criteria)
                                             throws java.lang.Exception
If this collection has already been initialized with an identical criteria, it returns the collection. Otherwise if this Department is new, it will return an empty collection; or if this Department has previously been saved, it will retrieve related Disciplines from storage.


getDisciplinesJoinDisciplineType

protected java.util.Vector getDisciplinesJoinDisciplineType(Criteria criteria)
                                                     throws java.lang.Exception
If this collection has already been initialized with an identical criteria, it returns the collection. Otherwise if this Department is new, it will return an empty collection; or if this Department 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


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(Criteria criteria)
                            throws java.lang.Exception
If this collection has already been initialized with an identical criteria, it returns the collection. Otherwise if this Department has previously been saved, it will retrieve related Courses from storage. If this Department is new, it will return an empty collection or the current collection, the criteria is ignored on a new object.


getCoursesJoinSource

protected java.util.Vector getCoursesJoinSource(Criteria criteria)
                                         throws java.lang.Exception
If this collection has already been initialized with an identical criteria, it returns the collection. Otherwise if this Department is new, it will return an empty collection; or if this Department has previously been saved, it will retrieve related Courses from storage.


getCoursesJoinUnit

protected java.util.Vector getCoursesJoinUnit(Criteria criteria)
                                       throws java.lang.Exception
If this collection has already been initialized with an identical criteria, it returns the collection. Otherwise if this Department is new, it will return an empty collection; or if this Department has previously been saved, it will retrieve related Courses from storage.


initProfessors

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


addProfessor

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


getProfessors

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


getProfessors

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


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.


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.


setPrimaryKey

public void setPrimaryKey(ObjectKey code)
                   throws java.lang.Exception
Set the PrimaryKey using ObjectKey.


getPrimaryKey

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


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 Department 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.