org.openscience.nmrshiftdb.om
Class DBCondition

java.lang.Object
  extended by org.apache.torque.om.BaseObject
      extended by org.openscience.nmrshiftdb.om.BaseDBCondition
          extended by org.openscience.nmrshiftdb.om.DBCondition
All Implemented Interfaces:
java.io.Serializable, org.apache.torque.om.Persistent

public class DBCondition
extends BaseDBCondition
implements org.apache.torque.om.Persistent

You should add additional methods to this class to meet the application requirements. This class will only be generated as long as it does not already exist in the output directory.

Author:
shk3
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.openscience.nmrshiftdb.om.BaseDBCondition
collDBMachines, collDBSamples, collDBSpectrumDBConditions
 
Fields inherited from class org.apache.torque.om.BaseObject
NEW_ID
 
Constructor Summary
DBCondition()
           
 
Method Summary
 java.lang.String getConditionName()
          Gets the conditionName attribute of the DBConditionType object this DBCondition is associated with
 DBConditionType getDBConditionType(java.sql.Connection dbconn)
           
 void save(java.sql.Connection con)
          Stores the object in the database.
 
Methods inherited from class org.openscience.nmrshiftdb.om.BaseDBCondition
addDBMachine, addDBSample, addDBSpectrumDBCondition, copy, copyInto, getByName, getByPeerName, getByPosition, getConditionId, getConditionTypeId, getDBConditionType, getDBMachines, getDBMachines, getDBMachines, getDBMachines, getDBMachinesJoinDBCondition, getDBSamples, getDBSamples, getDBSamples, getDBSamples, getDBSamplesJoinDBCondition, getDBSamplesJoinDBMachine, getDBSamplesJoinDBMolecule, getDBSamplesJoinNmrshiftdbUser, getDBSpectrumDBConditions, getDBSpectrumDBConditions, getDBSpectrumDBConditions, getDBSpectrumDBConditions, getDBSpectrumDBConditionsJoinDBCondition, getDBSpectrumDBConditionsJoinDBSpectrum, getFieldNames, getNmrshiftdbUser, getPeer, getPrimaryKey, getUserId, getValue, initDBMachines, initDBSamples, initDBSpectrumDBConditions, save, save, setConditionId, setConditionTypeId, setDBConditionType, setDBConditionTypeKey, setNmrshiftdbUser, setNmrshiftdbUserKey, setPrimaryKey, setPrimaryKey, setUserId, setValue, toString
 
Methods inherited from class org.apache.torque.om.BaseObject
equals, equals, getLog, hashCode, isModified, isNew, log, resetModified, setModified, setNew, setPrimaryKey
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.torque.om.Persistent
getPrimaryKey, isModified, isNew, save, save, setModified, setNew, setPrimaryKey, setPrimaryKey
 

Constructor Detail

DBCondition

public DBCondition()
Method Detail

getConditionName

public java.lang.String getConditionName()
                                  throws java.lang.Exception
Gets the conditionName attribute of the DBConditionType object this DBCondition is associated with

Returns:
The conditionName value
Throws:
java.lang.Exception - Description of Exception

getDBConditionType

public DBConditionType getDBConditionType(java.sql.Connection dbconn)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

save

public void save(java.sql.Connection con)
          throws org.apache.torque.TorqueException
Description copied from class: BaseDBCondition
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

Specified by:
save in interface org.apache.torque.om.Persistent
Overrides:
save in class BaseDBCondition
Throws:
org.apache.torque.TorqueException