org.openscience.nmrshiftdb.om
Class DBChemicalName
java.lang.Object
org.apache.torque.om.BaseObject
org.openscience.nmrshiftdb.om.BaseDBChemicalName
org.openscience.nmrshiftdb.om.DBChemicalName
- All Implemented Interfaces:
- java.io.Serializable, org.apache.torque.om.Persistent
public class DBChemicalName
- extends BaseDBChemicalName
- 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
Fields inherited from class org.apache.torque.om.BaseObject |
NEW_ID |
Constructor Summary |
DBChemicalName()
Constructor for the DBChemicalName object |
DBChemicalName(int dbmol,
java.lang.String name)
Constructor for the DBChemicalName object |
Method Summary |
DBMolecule |
getDBMolecule(java.sql.Connection dbconn)
|
void |
save(java.sql.Connection dbconn)
Saves a chemical name, checking that the name does not yet exist. |
Methods inherited from class org.openscience.nmrshiftdb.om.BaseDBChemicalName |
copy, copyInto, getByName, getByPeerName, getByPosition, getDBMolecule, getFieldNames, getMoleculeId, getName, getNameSoundex, getPeer, getPrimaryKey, save, save, setDBMolecule, setDBMoleculeKey, setMoleculeId, setName, setNameSoundex, setPrimaryKey, setPrimaryKey, setPrimaryKey, 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 |
DBChemicalName
public DBChemicalName()
- Constructor for the DBChemicalName object
DBChemicalName
public DBChemicalName(int dbmol,
java.lang.String name)
throws java.lang.Exception
- Constructor for the DBChemicalName object
- Parameters:
dbmol
- The molecule of which this is a chemical name.name
- The name.
- Throws:
java.lang.Exception
- Database problems.
save
public void save(java.sql.Connection dbconn)
throws org.apache.torque.TorqueException
- Saves a chemical name, checking that the name does not yet exist.
- Specified by:
save
in interface org.apache.torque.om.Persistent
- Overrides:
save
in class BaseDBChemicalName
- Parameters:
dbconn
- The connection to use.
- Throws:
java.lang.Exception
- Description of Exception.
org.apache.torque.TorqueException
getDBMolecule
public DBMolecule getDBMolecule(java.sql.Connection dbconn)
throws org.apache.torque.TorqueException
- Throws:
org.apache.torque.TorqueException