XPUSP - Home

br.usp.ime.xpusp.om
Class Discipline

java.lang.Object
  |
  +--org.apache.turbine.om.BaseObject
        |
        +--br.usp.ime.xpusp.om.BaseDiscipline
              |
              +--br.usp.ime.xpusp.om.Discipline
All Implemented Interfaces:
org.apache.turbine.om.Persistent, org.apache.turbine.om.Retrievable, java.io.Serializable

public class Discipline
extends BaseDiscipline
implements org.apache.turbine.om.Persistent

See Also:
Serialized Form

Field Summary
static int CREATED_DISCIPLINE
           
 
Fields inherited from class br.usp.ime.xpusp.om.BaseDiscipline
aDepartment, aDisciplineType, alreadyInSave, aSource, class_credits, code, collCourseDisciplines, collDefaultCapabilitys, collDisciplineInfos, collDoubleDisciplinesRelatedByDisciplineOne, collDoubleDisciplinesRelatedByDisciplineTwo, collElectivePools, collProfessorCapables, collRequiredPools, collSchedules, collStudentElectives, collStudentRequireds, department_code, hours, id, lastCourseDisciplinesCriteria, lastDefaultCapabilitysCriteria, lastDisciplineInfosCriteria, lastDoubleDisciplinesRelatedByDisciplineOneCriteria, lastDoubleDisciplinesRelatedByDisciplineTwoCriteria, lastElectivePoolsCriteria, lastProfessorCapablesCriteria, lastRequiredPoolsCriteria, lastSchedulesCriteria, lastStudentElectivesCriteria, lastStudentRequiredsCriteria, name, number, source_id, type_id, work_credits
 
Fields inherited from class org.apache.turbine.om.BaseObject
errMsg, is_new, modified, NEW_ID, primaryKey
 
Constructor Summary
Discipline()
           
Discipline(java.lang.String code, java.lang.String number, java.lang.String name, int sourceId)
           
 
Method Summary
 java.lang.String getFenixInfoUrl()
           
 java.lang.String getJupiterInfoUrl()
           
 java.lang.String getJupiterOfferingUrl()
           
 void setClassCredits(java.lang.String classCredits)
           
 void setDisciplineType(java.lang.String disciplineType, boolean create)
          Set the type of this discipline by fetching the correct type from the database
 void setSourceId(int sourceId)
           
 void setWorkCredits(java.lang.String workCredits)
           
 
Methods inherited from class br.usp.ime.xpusp.om.BaseDiscipline
addCourseDiscipline, addDefaultCapability, addDisciplineInfo, addDoubleDisciplineRelatedByDisciplineOne, addDoubleDisciplineRelatedByDisciplineTwo, addElectivePool, addProfessorCapable, addRequiredPool, addSchedule, addStudentElective, addStudentRequired, copy, getClassCredits, getCode, getCourseDisciplines, getCourseDisciplines, getCourseDisciplinesJoinCourse, getDefaultCapabilitys, getDefaultCapabilitys, getDefaultCapabilitysJoinDepartment, getDepartment, getDepartmentCode, getDisciplineInfos, getDisciplineInfos, getDisciplineType, getDoubleDisciplinesRelatedByDisciplineOne, getDoubleDisciplinesRelatedByDisciplineOne, getDoubleDisciplinesRelatedByDisciplineOneJoinDisciplineRelatedByDisciplineTwo, getDoubleDisciplinesRelatedByDisciplineTwo, getDoubleDisciplinesRelatedByDisciplineTwo, getDoubleDisciplinesRelatedByDisciplineTwoJoinDisciplineRelatedByDisciplineOne, getElectivePools, getElectivePools, getElectivePoolsJoinPoolResults, getHours, getId, getName, getNumber, getPrimaryKey, getProfessorCapables, getProfessorCapables, getProfessorCapablesJoinProfessor, getQueryKey, getRequiredPools, getRequiredPools, getRequiredPoolsJoinPoolResults, getSchedules, getSchedules, getSchedulesJoinPeriod, getSchedulesJoinProfessor, getSchedulesJoinYear, getSource, getSourceId, getStudentElectives, getStudentElectives, getStudentElectivesJoinStudent, getStudentRequireds, getStudentRequireds, getStudentRequiredsJoinStudent, getTypeId, getWorkCredits, initCourseDisciplines, initDefaultCapabilitys, initDisciplineInfos, initDoubleDisciplinesRelatedByDisciplineOne, initDoubleDisciplinesRelatedByDisciplineTwo, initElectivePools, initProfessorCapables, initRequiredPools, initSchedules, initStudentElectives, initStudentRequireds, save, save, save, setClassCredits, setCode, setDepartment, setDepartmentCode, setDepartmentCode, setDepartmentKey, setDisciplineType, setDisciplineTypeKey, setHours, setId, setId, setName, setNumber, setPrimaryKey, setPrimaryKey, setQueryKey, setSource, setSourceId, setSourceId, setSourceKey, setTypeId, setTypeId, setWorkCredits
 
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
 
Methods inherited from interface org.apache.turbine.om.Persistent
getPrimaryKey, isModified, isNew, save, setModified, setNew, setPrimaryKey, setPrimaryKey
 

Field Detail

CREATED_DISCIPLINE

public static final int CREATED_DISCIPLINE
Constructor Detail

Discipline

public Discipline()

Discipline

public Discipline(java.lang.String code,
                  java.lang.String number,
                  java.lang.String name,
                  int sourceId)
           throws java.lang.Exception
Method Detail

setSourceId

public void setSourceId(int sourceId)
                 throws java.lang.Exception

getJupiterInfoUrl

public java.lang.String getJupiterInfoUrl()
                                   throws java.lang.Exception
Returns:
this discipline's URL in jupiter system or null if it is not present in jupiter (ie getSource() is not JUPITER nor JUPITER_FENIX )

getFenixInfoUrl

public java.lang.String getFenixInfoUrl()
                                 throws java.lang.Exception
Returns:
this discipline's URL in fenix system or null if it is not present in fenix (ie getSource() is not FENIX )

getJupiterOfferingUrl

public java.lang.String getJupiterOfferingUrl()
                                       throws java.lang.Exception
Returns:
this discipline's offering URL in jupiter system or null if it is not present in jupiter (ie getSource() is not JUPITER )

setClassCredits

public void setClassCredits(java.lang.String classCredits)
                     throws java.lang.Exception

setWorkCredits

public void setWorkCredits(java.lang.String workCredits)
                    throws java.lang.Exception

setDisciplineType

public void setDisciplineType(java.lang.String disciplineType,
                              boolean create)
                       throws java.lang.Exception
Set the type of this discipline by fetching the correct type from the database
Parameters:
disciplineType - the name of the DisciplineType that should be set
create - if set to true then a new type will be created if a DisciplineType with the name specified in disciplineType does not exist on the DB.
Throws:
if - create is false and a DisciplineType with the given name doesn't exist

XPUSP - Home