XPUSP - Home

br.usp.ime.xpusp.om
Class BaseProfessorChoice

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

public abstract class BaseProfessorChoice
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 ProfessorChoice

See Also:
Serialized Form

Field Summary
private  boolean alreadyInSave
           
private  Professor aProfessor
           
private  ProfessorCapable aProfessorCapable
           
private  org.apache.turbine.om.NumberKey capable_id
          the value for the capable_id field
private  org.apache.turbine.om.NumberKey professor_id
          the value for the professor_id field
private  int weight
          the value for the weight field
 
Fields inherited from class org.apache.turbine.om.BaseObject
errMsg, is_new, modified, NEW_ID, primaryKey
 
Constructor Summary
BaseProfessorChoice()
           
 
Method Summary
 ProfessorChoice copy()
          Makes a copy of this object.
 org.apache.turbine.om.NumberKey getCapableId()
          Get the CapableId
 org.apache.turbine.om.ObjectKey getPrimaryKey()
          returns an id that differentiates this object from others of its class.
 Professor getProfessor()
           
 ProfessorCapable getProfessorCapable()
           
 org.apache.turbine.om.NumberKey getProfessorId()
          Get the ProfessorId
 java.lang.String getQueryKey()
          get an id that differentiates this object from others of its class.
 int getWeight()
          Get the Weight
 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 setCapableId(org.apache.turbine.om.NumberKey v)
          Set the value of CapableId
 void setCapableId(java.lang.String v)
          Set the value of CapableId as a string.
 void setPrimaryKey(org.apache.turbine.om.ObjectKey capable_id)
          Set the PrimaryKey using ObjectKey.
 void setPrimaryKey(java.lang.String key)
          Set the PrimaryKey using a String.
 void setProfessor(Professor v)
          Declares an association between this object and a Professor object
 void setProfessorCapable(ProfessorCapable v)
          Declares an association between this object and a ProfessorCapable object
 void setProfessorCapableKey(org.apache.turbine.om.ObjectKey key)
          Provides convenient way to set a relationship based on a ObjectKey.
 void setProfessorId(org.apache.turbine.om.NumberKey v)
          Set the value of ProfessorId
 void setProfessorId(java.lang.String v)
          Set the value of ProfessorId as a string.
 void setProfessorKey(org.apache.turbine.om.ObjectKey key)
          Provides convenient way to set a relationship based on a ObjectKey.
 void setQueryKey(java.lang.String key)
          set an id that differentiates this object from others of its class.
 void setWeight(int v)
          Set the value of Weight
 
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

capable_id

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

professor_id

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

weight

private int weight
the value for the weight field

aProfessor

private Professor aProfessor

aProfessorCapable

private ProfessorCapable aProfessorCapable

alreadyInSave

private boolean alreadyInSave
Constructor Detail

BaseProfessorChoice

public BaseProfessorChoice()
Method Detail

getCapableId

public org.apache.turbine.om.NumberKey getCapableId()
Get the CapableId
Returns:
NumberKey

setCapableId

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

setCapableId

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

getProfessorId

public org.apache.turbine.om.NumberKey getProfessorId()
Get the ProfessorId
Returns:
NumberKey

setProfessorId

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

setProfessorId

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

getWeight

public int getWeight()
Get the Weight
Returns:
int

setWeight

public void setWeight(int v)
Set the value of Weight

setProfessor

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

getProfessor

public Professor getProfessor()
                       throws java.lang.Exception

setProfessorKey

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

setProfessorCapable

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

getProfessorCapable

public ProfessorCapable getProfessorCapable()
                                     throws java.lang.Exception

setProfessorCapableKey

public void setProfessorCapableKey(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 capable_id)
                   throws java.lang.Exception
Set the PrimaryKey using ObjectKey.
Overrides:
setPrimaryKey in class org.apache.turbine.om.BaseObject
Parameters:
ObjectKey - capable_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 ProfessorChoice 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