XPUSP - Home

br.usp.ime.xpusp.om
Class BaseYear

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

public abstract class BaseYear
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 Year

See Also:
Serialized Form

Field Summary
private  Department aDepartment
           
private  boolean alreadyInSave
           
private  java.util.Date closed
          the value for the closed field
protected  java.util.Vector collPoolResultss
          Collection to store aggregation of collPoolResultss
protected  java.util.Vector collSchedules
          Collection to store aggregation of collSchedules
private  java.util.Date created
          the value for the created field
private  org.apache.turbine.om.StringKey department_code
          the value for the department_code field
private  java.util.Date finished
          the value for the finished field
private  org.apache.turbine.util.db.Criteria lastPoolResultssCriteria
          The criteria used to select the current contents of collPoolResultss
private  org.apache.turbine.util.db.Criteria lastSchedulesCriteria
          The criteria used to select the current contents of collSchedules
private  java.util.Date pooling
          the value for the pooling field
private  java.util.Date solving
          the value for the solving field
private  int status
          the value for the status field
private  int year
          the value for the year field
private  org.apache.turbine.om.NumberKey year_id
          the value for the year_id field
 
Fields inherited from class org.apache.turbine.om.BaseObject
errMsg, is_new, modified, NEW_ID, primaryKey
 
Constructor Summary
BaseYear()
           
 
Method Summary
 void addPoolResults(PoolResults l)
          Method called to associate a PoolResults object to this object through the PoolResults foreign key attribute
 void addSchedule(Schedule l)
          Method called to associate a Schedule object to this object through the Schedule foreign key attribute
 Year copy()
          Makes a copy of this object.
 java.util.Date getClosed()
          Get the Closed
 java.util.Date getCreated()
          Get the Created
 Department getDepartment()
           
 org.apache.turbine.om.StringKey getDepartmentCode()
          Get the DepartmentCode
 java.util.Date getFinished()
          Get the Finished
 java.util.Date getPooling()
          Get the Pooling
 java.util.Vector getPoolResultss()
          If this collection has already been initialized, returns the collection.
 java.util.Vector getPoolResultss(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 getPoolResultssJoinCourse(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.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.
 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 getSchedulesJoinProfessor(org.apache.turbine.util.db.Criteria criteria)
          If this collection has already been initialized with an identical criteria, it returns the collection.
 java.util.Date getSolving()
          Get the Solving
 int getStatus()
          Get the Status
 int getYear()
          Get the Year
 org.apache.turbine.om.NumberKey getYearId()
          Get the YearId
protected  void initPoolResultss()
          Temporary storage of collPoolResultss 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.
 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 setClosed(java.util.Date v)
          Set the value of Closed
 void setCreated(java.util.Date v)
          Set the value of Created
 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 setFinished(java.util.Date v)
          Set the value of Finished
 void setPooling(java.util.Date v)
          Set the value of Pooling
 void setPrimaryKey(org.apache.turbine.om.ObjectKey year_id)
          Set the PrimaryKey using ObjectKey.
 void setPrimaryKey(java.lang.String key)
          Set the PrimaryKey using a String.
 void setQueryKey(java.lang.String key)
          set an id that differentiates this object from others of its class.
 void setSolving(java.util.Date v)
          Set the value of Solving
 void setStatus(int v)
          Set the value of Status
 void setYear(int v)
          Set the value of Year
 void setYearId(org.apache.turbine.om.NumberKey v)
          Set the value of YearId
 void setYearId(java.lang.String v)
          Set the value of YearId as a string.
 
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

year_id

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

department_code

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

year

private int year
the value for the year field

status

private int status
the value for the status field

created

private java.util.Date created
the value for the created field

pooling

private java.util.Date pooling
the value for the pooling field

closed

private java.util.Date closed
the value for the closed field

solving

private java.util.Date solving
the value for the solving field

finished

private java.util.Date finished
the value for the finished field

aDepartment

private Department aDepartment

collPoolResultss

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

lastPoolResultssCriteria

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

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

BaseYear

public BaseYear()
Method Detail

getYearId

public org.apache.turbine.om.NumberKey getYearId()
Get the YearId
Returns:
NumberKey

setYearId

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

setYearId

public void setYearId(java.lang.String v)
               throws java.lang.Exception
Set the value of YearId 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.

getYear

public int getYear()
Get the Year
Returns:
int

setYear

public void setYear(int v)
Set the value of Year

getStatus

public int getStatus()
Get the Status
Returns:
int

setStatus

public void setStatus(int v)
Set the value of Status

getCreated

public java.util.Date getCreated()
Get the Created
Returns:
Date

setCreated

public void setCreated(java.util.Date v)
Set the value of Created

getPooling

public java.util.Date getPooling()
Get the Pooling
Returns:
Date

setPooling

public void setPooling(java.util.Date v)
Set the value of Pooling

getClosed

public java.util.Date getClosed()
Get the Closed
Returns:
Date

setClosed

public void setClosed(java.util.Date v)
Set the value of Closed

getSolving

public java.util.Date getSolving()
Get the Solving
Returns:
Date

setSolving

public void setSolving(java.util.Date v)
Set the value of Solving

getFinished

public java.util.Date getFinished()
Get the Finished
Returns:
Date

setFinished

public void setFinished(java.util.Date v)
Set the value of Finished

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())

initPoolResultss

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

addPoolResults

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

getPoolResultss

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

getPoolResultss

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

getPoolResultssJoinCourse

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

getSchedulesJoinProfessor

protected java.util.Vector getSchedulesJoinProfessor(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 Year is new, it will return an empty collection; or if this Year 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 Year is new, it will return an empty collection; or if this Year 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 Year is new, it will return an empty collection; or if this Year 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 year_id)
                   throws java.lang.Exception
Set the PrimaryKey using ObjectKey.
Overrides:
setPrimaryKey in class org.apache.turbine.om.BaseObject
Parameters:
ObjectKey - year_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 Year 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