XPUSP - Home

br.usp.ime.xpusp.om
Class BaseDoubleDiscipline

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

public abstract class BaseDoubleDiscipline
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 DoubleDiscipline

See Also:
Serialized Form

Field Summary
private  Discipline aDisciplineRelatedByDisciplineOne
           
private  Discipline aDisciplineRelatedByDisciplineTwo
           
private  boolean alreadyInSave
           
private  org.apache.turbine.om.ComboKey comboPK
           
private  org.apache.turbine.om.NumberKey discipline_one
          the value for the discipline_one field
private  org.apache.turbine.om.NumberKey discipline_two
          the value for the discipline_two field
private  org.apache.turbine.om.SimpleKey[] pks
           
 
Fields inherited from class org.apache.turbine.om.BaseObject
errMsg, is_new, modified, NEW_ID, primaryKey
 
Constructor Summary
BaseDoubleDiscipline()
           
 
Method Summary
 DoubleDiscipline copy()
          Makes a copy of this object.
 org.apache.turbine.om.NumberKey getDisciplineOne()
          Get the DisciplineOne
 Discipline getDisciplineRelatedByDisciplineOne()
           
 Discipline getDisciplineRelatedByDisciplineTwo()
           
 org.apache.turbine.om.NumberKey getDisciplineTwo()
          Get the DisciplineTwo
 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.
 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 setDisciplineOne(org.apache.turbine.om.NumberKey v)
          Set the value of DisciplineOne
 void setDisciplineOne(java.lang.String v)
          Set the value of DisciplineOne as a string.
 void setDisciplineRelatedByDisciplineOne(Discipline v)
          Declares an association between this object and a Discipline object
 void setDisciplineRelatedByDisciplineOneKey(org.apache.turbine.om.ObjectKey key)
          Provides convenient way to set a relationship based on a ObjectKey.
 void setDisciplineRelatedByDisciplineTwo(Discipline v)
          Declares an association between this object and a Discipline object
 void setDisciplineRelatedByDisciplineTwoKey(org.apache.turbine.om.ObjectKey key)
          Provides convenient way to set a relationship based on a ObjectKey.
 void setDisciplineTwo(org.apache.turbine.om.NumberKey v)
          Set the value of DisciplineTwo
 void setDisciplineTwo(java.lang.String v)
          Set the value of DisciplineTwo as a string.
 void setPrimaryKey(org.apache.turbine.om.NumberKey discipline_one, org.apache.turbine.om.NumberKey discipline_two)
          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 discipline_one, java.lang.String discipline_two)
          Set the PrimaryKey with Strings.
 void setQueryKey(java.lang.String key)
          set an id that differentiates this object from others of its class.
 
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

discipline_one

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

discipline_two

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

aDisciplineRelatedByDisciplineOne

private Discipline aDisciplineRelatedByDisciplineOne

aDisciplineRelatedByDisciplineTwo

private Discipline aDisciplineRelatedByDisciplineTwo

alreadyInSave

private boolean alreadyInSave

pks

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

comboPK

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

BaseDoubleDiscipline

public BaseDoubleDiscipline()
Method Detail

getDisciplineOne

public org.apache.turbine.om.NumberKey getDisciplineOne()
Get the DisciplineOne
Returns:
NumberKey

setDisciplineOne

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

setDisciplineOne

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

getDisciplineTwo

public org.apache.turbine.om.NumberKey getDisciplineTwo()
Get the DisciplineTwo
Returns:
NumberKey

setDisciplineTwo

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

setDisciplineTwo

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

setDisciplineRelatedByDisciplineOne

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

getDisciplineRelatedByDisciplineOne

public Discipline getDisciplineRelatedByDisciplineOne()
                                               throws java.lang.Exception

setDisciplineRelatedByDisciplineOneKey

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

setDisciplineRelatedByDisciplineTwo

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

getDisciplineRelatedByDisciplineTwo

public Discipline getDisciplineRelatedByDisciplineTwo()
                                               throws java.lang.Exception

setDisciplineRelatedByDisciplineTwoKey

public void setDisciplineRelatedByDisciplineTwoKey(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 discipline_one,
                          org.apache.turbine.om.NumberKey discipline_two)
                   throws java.lang.Exception
Set the PrimaryKey using SimpleKeys.
Parameters:
NumberKey - discipline_one
NumberKey - discipline_two

setPrimaryKey

public void setPrimaryKey(java.lang.String discipline_one,
                          java.lang.String discipline_two)
                   throws java.lang.Exception
Set the PrimaryKey with Strings.
Parameters:
String - discipline_one
String - discipline_two

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