XPUSP - Home

br.usp.ime.xpusp.om
Class BaseStudent

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

public abstract class BaseStudent
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 Student

See Also:
Serialized Form

Field Summary
private  Course aCourse
           
private  boolean alreadyInSave
           
protected  java.util.Vector collStudentElectives
          Collection to store aggregation of collStudentElectives
protected  java.util.Vector collStudentRequireds
          Collection to store aggregation of collStudentRequireds
private  org.apache.turbine.om.NumberKey course_id
          the value for the course_id field
private  java.lang.String email
          the value for the email field
private  org.apache.turbine.om.NumberKey hab_id
          the value for the hab_id field
private  org.apache.turbine.util.db.Criteria lastStudentElectivesCriteria
          The criteria used to select the current contents of collStudentElectives
private  org.apache.turbine.util.db.Criteria lastStudentRequiredsCriteria
          The criteria used to select the current contents of collStudentRequireds
private  java.lang.String name
          the value for the name field
private  int nr_electives
          the value for the nr_electives field
private  org.apache.turbine.om.NumberKey nr_usp
          the value for the nr_usp field
private  java.lang.String obs
          the value for the obs field
private  int probable_graduate
          the value for the probable_graduate field
 
Fields inherited from class org.apache.turbine.om.BaseObject
errMsg, is_new, modified, NEW_ID, primaryKey
 
Constructor Summary
BaseStudent()
           
 
Method Summary
 void addStudentElective(StudentElective l)
          Method called to associate a StudentElective object to this object through the StudentElective foreign key attribute
 void addStudentRequired(StudentRequired l)
          Method called to associate a StudentRequired object to this object through the StudentRequired foreign key attribute
 Student copy()
          Makes a copy of this object.
 Course getCourse()
           
 org.apache.turbine.om.NumberKey getCourseId()
          Get the CourseId
 java.lang.String getEmail()
          Get the Email
 org.apache.turbine.om.NumberKey getHabId()
          Get the HabId
 java.lang.String getName()
          Get the Name
 int getNrElectives()
          Get the NrElectives
 org.apache.turbine.om.NumberKey getNrUsp()
          Get the NrUsp
 java.lang.String getObs()
          Get the Obs
 org.apache.turbine.om.ObjectKey getPrimaryKey()
          returns an id that differentiates this object from others of its class.
 int getProbableGraduate()
          Get the ProbableGraduate
 java.lang.String getQueryKey()
          get an id that differentiates this object from others of its class.
 java.util.Vector getStudentElectives()
          If this collection has already been initialized, returns the collection.
 java.util.Vector getStudentElectives(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 getStudentElectivesJoinDiscipline(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 getStudentRequireds()
          If this collection has already been initialized, returns the collection.
 java.util.Vector getStudentRequireds(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 getStudentRequiredsJoinDiscipline(org.apache.turbine.util.db.Criteria criteria)
          If this collection has already been initialized with an identical criteria, it returns the collection.
protected  void initStudentElectives()
          Temporary storage of collStudentElectives to save a possible db hit in the event objects are add to the collection, but the complete collection is never requested.
protected  void initStudentRequireds()
          Temporary storage of collStudentRequireds 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 setCourse(Course v)
          Declares an association between this object and a Course object
 void setCourseId(org.apache.turbine.om.NumberKey v)
          Set the value of CourseId
 void setCourseId(java.lang.String v)
          Set the value of CourseId as a string.
 void setCourseKey(org.apache.turbine.om.ObjectKey key)
          Provides convenient way to set a relationship based on a ObjectKey.
 void setEmail(java.lang.String v)
          Set the value of Email
 void setHabId(org.apache.turbine.om.NumberKey v)
          Set the value of HabId
 void setHabId(java.lang.String v)
          Set the value of HabId as a string.
 void setName(java.lang.String v)
          Set the value of Name
 void setNrElectives(int v)
          Set the value of NrElectives
 void setNrUsp(org.apache.turbine.om.NumberKey v)
          Set the value of NrUsp
 void setNrUsp(java.lang.String v)
          Set the value of NrUsp as a string.
 void setObs(java.lang.String v)
          Set the value of Obs
 void setPrimaryKey(org.apache.turbine.om.ObjectKey nr_usp)
          Set the PrimaryKey using ObjectKey.
 void setPrimaryKey(java.lang.String key)
          Set the PrimaryKey using a String.
 void setProbableGraduate(int v)
          Set the value of ProbableGraduate
 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

nr_usp

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

email

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

name

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

course_id

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

hab_id

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

probable_graduate

private int probable_graduate
the value for the probable_graduate field

obs

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

nr_electives

private int nr_electives
the value for the nr_electives field

aCourse

private Course aCourse

collStudentRequireds

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

lastStudentRequiredsCriteria

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

collStudentElectives

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

lastStudentElectivesCriteria

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

alreadyInSave

private boolean alreadyInSave
Constructor Detail

BaseStudent

public BaseStudent()
Method Detail

getNrUsp

public org.apache.turbine.om.NumberKey getNrUsp()
Get the NrUsp
Returns:
NumberKey

setNrUsp

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

setNrUsp

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

getEmail

public java.lang.String getEmail()
Get the Email
Returns:
String

setEmail

public void setEmail(java.lang.String v)
Set the value of Email

getName

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

setName

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

getCourseId

public org.apache.turbine.om.NumberKey getCourseId()
Get the CourseId
Returns:
NumberKey

setCourseId

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

setCourseId

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

getHabId

public org.apache.turbine.om.NumberKey getHabId()
Get the HabId
Returns:
NumberKey

setHabId

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

setHabId

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

getProbableGraduate

public int getProbableGraduate()
Get the ProbableGraduate
Returns:
int

setProbableGraduate

public void setProbableGraduate(int v)
Set the value of ProbableGraduate

getObs

public java.lang.String getObs()
Get the Obs
Returns:
String

setObs

public void setObs(java.lang.String v)
Set the value of Obs

getNrElectives

public int getNrElectives()
Get the NrElectives
Returns:
int

setNrElectives

public void setNrElectives(int v)
Set the value of NrElectives

setCourse

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

getCourse

public Course getCourse()
                 throws java.lang.Exception

setCourseKey

public void setCourseKey(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()) Note: It is important that the xml schema used to create this class maintains consistency in the order of related columns between student and course. If for some reason this is impossible, this method should be overridden in Student.

initStudentRequireds

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

addStudentRequired

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

getStudentRequireds

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

getStudentRequireds

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

getStudentRequiredsJoinDiscipline

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

initStudentElectives

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

addStudentElective

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

getStudentElectives

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

getStudentElectives

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

getStudentElectivesJoinDiscipline

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

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