org.openscience.nmrshiftdb.om
Class DBMoleculeDBKeyword

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

public class DBMoleculeDBKeyword
extends BaseDBMoleculeDBKeyword
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
(package private)  DBKeyword dbkeyword
           
private  int dbmol
           
private  java.lang.String keyword
           
 
Fields inherited from class org.apache.torque.om.BaseObject
NEW_ID
 
Constructor Summary
DBMoleculeDBKeyword()
          Constructor for the DBMoleculeDBKeyword object
DBMoleculeDBKeyword(java.lang.String keyword, int dbmol)
          Constructor for the DBMoleculeDBKeyword object
 
Method Summary
 DBKeyword getDBKeyword()
          Calls getDBKeyword of Base class with caching.
 void save(java.sql.Connection dbconn)
          Saves this keyword, using values set via the constructor, if any.
 
Methods inherited from class org.openscience.nmrshiftdb.om.BaseDBMoleculeDBKeyword
copy, copyInto, getByName, getByPeerName, getByPosition, getDBMolecule, getFieldNames, getKeywordId, getMoleculeId, getPeer, getPrimaryKey, save, save, setDBKeyword, setDBKeywordKey, setDBMolecule, setDBMoleculeKey, setKeywordId, setMoleculeId, 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
 

Field Detail

dbkeyword

DBKeyword dbkeyword

keyword

private java.lang.String keyword

dbmol

private int dbmol
Constructor Detail

DBMoleculeDBKeyword

public DBMoleculeDBKeyword()
Constructor for the DBMoleculeDBKeyword object


DBMoleculeDBKeyword

public DBMoleculeDBKeyword(java.lang.String keyword,
                           int dbmol)
Constructor for the DBMoleculeDBKeyword object

Parameters:
keyword - The new keyword.
dbmol - The molecuel this is supposed to be a keyword of.
Method Detail

getDBKeyword

public DBKeyword getDBKeyword()
                       throws org.apache.torque.TorqueException
Calls getDBKeyword of Base class with caching.

Overrides:
getDBKeyword in class BaseDBMoleculeDBKeyword
Returns:
The dBKeyword value
Throws:
java.lang.Exception - Description of Exception
org.apache.torque.TorqueException

save

public void save(java.sql.Connection dbconn)
          throws org.apache.torque.TorqueException
Saves this keyword, using values set via the constructor, if any.

Specified by:
save in interface org.apache.torque.om.Persistent
Overrides:
save in class BaseDBMoleculeDBKeyword
Parameters:
dbconn - Connection to use.
Throws:
java.lang.Exception - Database problems.
org.apache.torque.TorqueException