XPUSP - Home

br.usp.ime.xpusp.om
Class BaseCourseDiscipline

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

public abstract class BaseCourseDiscipline
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 CourseDiscipline

See Also:
Serialized Form

Field Summary
private  Course aCourse
           
private  Discipline aDiscipline
           
private  boolean alreadyInSave
           
private  org.apache.turbine.om.ComboKey comboPK
           
private  org.apache.turbine.om.NumberKey course_id
          the value for the course_id field
private  org.apache.turbine.om.NumberKey discipline_id
          the value for the discipline_id field
private  org.apache.turbine.om.NumberKey elective
          the value for the elective field
private  org.apache.turbine.om.NumberKey hab_id
          the value for the hab_id field
private  org.apache.turbine.om.SimpleKey[] pks
           
private  int semester
          the value for the semester field
 
Fields inherited from class org.apache.turbine.om.BaseObject
errMsg, is_new, modified, NEW_ID, primaryKey
 
Constructor Summary
BaseCourseDiscipline()
           
 
Method Summary
 CourseDiscipline copy()
          Makes a copy of this object.
 Course getCourse()
           
 org.apache.turbine.om.NumberKey getCourseId()
          Get the CourseId
 Discipline getDiscipline()
           
 org.apache.turbine.om.NumberKey getDisciplineId()
          Get the DisciplineId
 org.apache.turbine.om.NumberKey getElective()
          Get the Elective
 org.apache.turbine.om.NumberKey getHabId()
          Get the HabId
 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 getSemester()
          Get the Semester
 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 setDiscipline(Discipline v)
          Declares an association between this object and a Discipline object
 void setDisciplineId(org.apache.turbine.om.NumberKey v)
          Set the value of DisciplineId
 void setDisciplineId(java.lang.String v)
          Set the value of DisciplineId as a string.
 void setDisciplineKey(org.apache.turbine.om.ObjectKey key)
          Provides convenient way to set a relationship based on a ObjectKey.
 void setElective(org.apache.turbine.om.NumberKey v)
          Set the value of Elective
 void setElective(java.lang.String v)
          Set the value of Elective as a string.
 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 setPrimaryKey(org.apache.turbine.om.NumberKey course_id, org.apache.turbine.om.NumberKey hab_id, org.apache.turbine.om.NumberKey discipline_id, org.apache.turbine.om.NumberKey elective)
          Set the PrimaryKey using SimpleKeys.
 void setPrimaryKey(org.apache.turbine.om.ObjectKey key)
          Set the PrimaryKey with an ObjectKey
 void setPrimaryKey(java.lang.String key)
          Set the PrimaryKey using a String.
 void setPrimaryKey(java.lang.String course_id, java.lang.String hab_id, java.lang.String discipline_id, java.lang.String elective)
          Set the PrimaryKey with Strings.
 void setQueryKey(java.lang.String key)
          set an id that differentiates this object from others of its class.
 void setSemester(int v)
          Set the value of Semester
 
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

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

discipline_id

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

elective

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

semester

private int semester
the value for the semester field

aCourse

private Course aCourse

aDiscipline

private Discipline aDiscipline

alreadyInSave

private boolean alreadyInSave

pks

private final org.apache.turbine.om.SimpleKey[] pks

comboPK

private final org.apache.turbine.om.ComboKey comboPK
Constructor Detail

BaseCourseDiscipline

public BaseCourseDiscipline()
Method Detail

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.

getDisciplineId

public org.apache.turbine.om.NumberKey getDisciplineId()
Get the DisciplineId
Returns:
NumberKey

setDisciplineId

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

setDisciplineId

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

getElective

public org.apache.turbine.om.NumberKey getElective()
Get the Elective
Returns:
NumberKey

setElective

public void setElective(org.apache.turbine.om.NumberKey v)
Set the value of Elective

setElective

public void setElective(java.lang.String v)
Set the value of Elective as a string.

getSemester

public int getSemester()
Get the Semester
Returns:
int

setSemester

public void setSemester(int v)
Set the value of Semester

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 course_discipline and course. If for some reason this is impossible, this method should be overridden in CourseDiscipline.

setDiscipline

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

getDiscipline

public Discipline getDiscipline()
                         throws java.lang.Exception

setDisciplineKey

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

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 key)
                   throws java.lang.Exception
Set the PrimaryKey with an ObjectKey
Overrides:
setPrimaryKey in class org.apache.turbine.om.BaseObject

setPrimaryKey

public void setPrimaryKey(org.apache.turbine.om.NumberKey course_id,
                          org.apache.turbine.om.NumberKey hab_id,
                          org.apache.turbine.om.NumberKey discipline_id,
                          org.apache.turbine.om.NumberKey elective)
                   throws java.lang.Exception
Set the PrimaryKey using SimpleKeys.
Parameters:
NumberKey - course_id
NumberKey - hab_id
NumberKey - discipline_id
NumberKey - elective

setPrimaryKey

public void setPrimaryKey(java.lang.String course_id,
                          java.lang.String hab_id,
                          java.lang.String discipline_id,
                          java.lang.String elective)
                   throws java.lang.Exception
Set the PrimaryKey with Strings.
Parameters:
String - course_id
String - hab_id
String - discipline_id
String - elective

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