XPUSP - Home

br.usp.ime.xpusp.om
Class BaseProfessor

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

public abstract class BaseProfessor
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 Professor

See Also:
Serialized Form

Field Summary
private  Department aDepartment
           
private  boolean alreadyInSave
           
protected  java.util.Vector collProfessorCapables
          Collection to store aggregation of collProfessorCapables
protected  java.util.Vector collProfessorChoices
          Collection to store aggregation of collProfessorChoices
protected  java.util.Vector collProfessorPeriods
          Collection to store aggregation of collProfessorPeriods
protected  java.util.Vector collSchedules
          Collection to store aggregation of collSchedules
protected  java.util.Vector collXpuspUsers
          Collection to store aggregation of collXpuspUsers
private  org.apache.turbine.om.StringKey department_code
          the value for the department_code field
private  int free_semester
          the value for the free_semester field
private  org.apache.turbine.util.db.Criteria lastProfessorCapablesCriteria
          The criteria used to select the current contents of collProfessorCapables
private  org.apache.turbine.util.db.Criteria lastProfessorChoicesCriteria
          The criteria used to select the current contents of collProfessorChoices
private  org.apache.turbine.util.db.Criteria lastProfessorPeriodsCriteria
          The criteria used to select the current contents of collProfessorPeriods
private  org.apache.turbine.util.db.Criteria lastSchedulesCriteria
          The criteria used to select the current contents of collSchedules
private  org.apache.turbine.util.db.Criteria lastXpuspUsersCriteria
          The criteria used to select the current contents of collXpuspUsers
private  org.apache.turbine.om.NumberKey professor_id
          the value for the professor_id field
 
Fields inherited from class org.apache.turbine.om.BaseObject
errMsg, is_new, modified, NEW_ID, primaryKey
 
Constructor Summary
BaseProfessor()
           
 
Method Summary
 void addProfessorCapable(ProfessorCapable l)
          Method called to associate a ProfessorCapable object to this object through the ProfessorCapable foreign key attribute
 void addProfessorChoice(ProfessorChoice l)
          Method called to associate a ProfessorChoice object to this object through the ProfessorChoice foreign key attribute
 void addProfessorPeriod(ProfessorPeriod l)
          Method called to associate a ProfessorPeriod object to this object through the ProfessorPeriod foreign key attribute
 void addSchedule(Schedule l)
          Method called to associate a Schedule object to this object through the Schedule foreign key attribute
 void addXpuspUser(XpuspUser l)
          Method called to associate a XpuspUser object to this object through the XpuspUser foreign key attribute
 Professor copy()
          Makes a copy of this object.
 Department getDepartment()
           
 org.apache.turbine.om.StringKey getDepartmentCode()
          Get the DepartmentCode
 int getFreeSemester()
          Get the FreeSemester
 org.apache.turbine.om.ObjectKey getPrimaryKey()
          returns an id that differentiates this object from others of its class.
 java.util.Vector getProfessorCapables()
          If this collection has already been initialized, returns the collection.
 java.util.Vector getProfessorCapables(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 getProfessorCapablesJoinDiscipline(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 getProfessorChoices()
          If this collection has already been initialized, returns the collection.
 java.util.Vector getProfessorChoices(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 getProfessorChoicesJoinProfessorCapable(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.NumberKey getProfessorId()
          Get the ProfessorId
 java.util.Vector getProfessorPeriods()
          If this collection has already been initialized, returns the collection.
 java.util.Vector getProfessorPeriods(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 getProfessorPeriodsJoinPeriod(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 getQueryKey()
          get an id that differentiates this object from others of its class.
 java.util.Vector getSchedules()
          If this collection has already been initialized, returns the collection.
 java.util.Vector getSchedules(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 getSchedulesJoinDiscipline(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 getSchedulesJoinPeriod(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 getSchedulesJoinYear(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 getXpuspUsers()
          If this collection has already been initialized, returns the collection.
 java.util.Vector getXpuspUsers(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 getXpuspUsersJoinDepartment(org.apache.turbine.util.db.Criteria criteria)
          If this collection has already been initialized with an identical criteria, it returns the collection.
protected  void initProfessorCapables()
          Temporary storage of collProfessorCapables to save a possible db hit in the event objects are add to the collection, but the complete collection is never requested.
protected  void initProfessorChoices()
          Temporary storage of collProfessorChoices to save a possible db hit in the event objects are add to the collection, but the complete collection is never requested.
protected  void initProfessorPeriods()
          Temporary storage of collProfessorPeriods to save a possible db hit in the event objects are add to the collection, but the complete collection is never requested.
protected  void initSchedules()
          Temporary storage of collSchedules to save a possible db hit in the event objects are add to the collection, but the complete collection is never requested.
protected  void initXpuspUsers()
          Temporary storage of collXpuspUsers 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 setDepartment(Department v)
          Declares an association between this object and a Department object
 void setDepartmentCode(java.lang.String v)
          Set the value of DepartmentCode as a string.
 void setDepartmentCode(org.apache.turbine.om.StringKey v)
          Set the value of DepartmentCode
 void setDepartmentKey(org.apache.turbine.om.ObjectKey key)
          Provides convenient way to set a relationship based on a ObjectKey.
 void setFreeSemester(int v)
          Set the value of FreeSemester
 void setPrimaryKey(org.apache.turbine.om.ObjectKey professor_id)
          Set the PrimaryKey using ObjectKey.
 void setPrimaryKey(java.lang.String key)
          Set the PrimaryKey using a String.
 void setProfessorId(org.apache.turbine.om.NumberKey v)
          Set the value of ProfessorId
 void setProfessorId(java.lang.String v)
          Set the value of ProfessorId as a string.
 void setQueryKey(java.lang.String key)
          set an id that differentiates this object from others of its class.
 
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

professor_id

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

department_code

private org.apache.turbine.om.StringKey department_code
the value for the department_code field

free_semester

private int free_semester
the value for the free_semester field

aDepartment

private Department aDepartment

collXpuspUsers

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

lastXpuspUsersCriteria

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

collProfessorCapables

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

lastProfessorCapablesCriteria

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

collProfessorChoices

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

lastProfessorChoicesCriteria

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

collProfessorPeriods

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

lastProfessorPeriodsCriteria

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

collSchedules

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

lastSchedulesCriteria

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

alreadyInSave

private boolean alreadyInSave
Constructor Detail

BaseProfessor

public BaseProfessor()
Method Detail

getProfessorId

public org.apache.turbine.om.NumberKey getProfessorId()
Get the ProfessorId
Returns:
NumberKey

setProfessorId

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

setProfessorId

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

getDepartmentCode

public org.apache.turbine.om.StringKey getDepartmentCode()
Get the DepartmentCode
Returns:
StringKey

setDepartmentCode

public void setDepartmentCode(org.apache.turbine.om.StringKey v)
                       throws java.lang.Exception
Set the value of DepartmentCode

setDepartmentCode

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

getFreeSemester

public int getFreeSemester()
Get the FreeSemester
Returns:
int

setFreeSemester

public void setFreeSemester(int v)
Set the value of FreeSemester

setDepartment

public void setDepartment(Department v)
                   throws java.lang.Exception
Declares an association between this object and a Department object
Parameters:
Department - v

getDepartment

public Department getDepartment()
                         throws java.lang.Exception

setDepartmentKey

public void setDepartmentKey(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())

initXpuspUsers

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

addXpuspUser

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

getXpuspUsers

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

getXpuspUsers

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

getXpuspUsersJoinDepartment

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

initProfessorCapables

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

addProfessorCapable

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

getProfessorCapables

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

getProfessorCapables

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

getProfessorCapablesJoinDiscipline

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

initProfessorChoices

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

addProfessorChoice

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

getProfessorChoices

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

getProfessorChoices

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

getProfessorChoicesJoinProfessorCapable

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

initProfessorPeriods

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

addProfessorPeriod

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

getProfessorPeriods

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

getProfessorPeriods

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

getProfessorPeriodsJoinPeriod

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

initSchedules

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

addSchedule

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

getSchedules

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

getSchedules

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

getSchedulesJoinYear

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

getSchedulesJoinDiscipline

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

getSchedulesJoinPeriod

protected java.util.Vector getSchedulesJoinPeriod(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 Professor is new, it will return an empty collection; or if this Professor has previously been saved, it will retrieve related Schedules 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 professor_id)
                   throws java.lang.Exception
Set the PrimaryKey using ObjectKey.
Overrides:
setPrimaryKey in class org.apache.turbine.om.BaseObject
Parameters:
ObjectKey - professor_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 Professor 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