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

Quick Search    Search Deep

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

java.lang.Object
  extended byBaseObject
      extended bybr.usp.ime.xpusp.om.BaseUnit
          extended bybr.usp.ime.xpusp.om.Unit
All Implemented Interfaces:
org.apache.turbine.om.Retrievable

public class Unit
extends BaseUnit

This class represents a unit like Institute of Maths... It can be of 4 sources (ie getSourceId/setSourceId)

  1. USER 55 if it was inserted by a user
  2. JUPITER 55 if it was fetched from jupiter
  3. FENIX 55 if it was fetched from fenix
  4. JUPITER_FENIX 55 if it was present on both fenix and jupiter


Field Summary
static int FENIX
           
static java.lang.String FENIX_URL
           
static int JUPITER
           
static int JUPITER_FENIX
           
static java.lang.String JUPITER_URL
           
static int USER
           
 
Fields inherited from class br.usp.ime.xpusp.om.BaseUnit
collCourses, collDepartments
 
Constructor Summary
Unit()
           
Unit(java.lang.String unitIdStr, java.lang.String name, int source)
          Construct a new Unit
 
Method Summary
 java.lang.String getFenixInfoUrl()
           
static java.lang.String getFenixUnitListUrl()
           
 java.lang.String getJupiterCoursesUrl()
           
 java.lang.String getJupiterDepartmentUrl()
           
 java.lang.String getJupiterInfoUrl()
           
static java.lang.String getJupiterUnitListUrl()
           
 void setSourceId(int i)
           
 
Methods inherited from class br.usp.ime.xpusp.om.BaseUnit
addCourse, addDepartment, copy, getCampus, getCourses, getCourses, getCoursesJoinDepartment, getCoursesJoinSource, getDepartments, getDepartments, getDepartmentsJoinSource, getName, getPrimaryKey, getQueryKey, getSource, getSourceId, getUnitId, initCourses, initDepartments, save, save, setCampus, setName, setPrimaryKey, setQueryKey, setSource, setSourceId, setSourceKey, setUnitId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USER

public static final int USER
See Also:
Constant Field Values

JUPITER

public static final int JUPITER
See Also:
Constant Field Values

FENIX

public static final int FENIX
See Also:
Constant Field Values

JUPITER_FENIX

public static final int JUPITER_FENIX
See Also:
Constant Field Values

JUPITER_URL

public static final java.lang.String JUPITER_URL
See Also:
Constant Field Values

FENIX_URL

public static final java.lang.String FENIX_URL
See Also:
Constant Field Values
Constructor Detail

Unit

public Unit()

Unit

public Unit(java.lang.String unitIdStr,
            java.lang.String name,
            int source)
     throws java.lang.Exception
Construct a new Unit

Method Detail

setSourceId

public void setSourceId(int i)
                 throws java.lang.Exception
Overrides:
setSourceId in class BaseUnit

getJupiterUnitListUrl

public static java.lang.String getJupiterUnitListUrl()

getFenixUnitListUrl

public static java.lang.String getFenixUnitListUrl()

getJupiterInfoUrl

public java.lang.String getJupiterInfoUrl()

getFenixInfoUrl

public java.lang.String getFenixInfoUrl()

getJupiterCoursesUrl

public java.lang.String getJupiterCoursesUrl()

getJupiterDepartmentUrl

public java.lang.String getJupiterDepartmentUrl()