org.openscience.nmrshiftdb.om
Class DBMoleculeHyperlink

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

public class DBMoleculeHyperlink
extends BaseDBMoleculeHyperlink
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.apache.torque.om.BaseObject
NEW_ID
 
Constructor Summary
DBMoleculeHyperlink()
          Constructor for the DBMoleculeHyperlink object
DBMoleculeHyperlink(int dbmol, java.lang.String link, java.lang.String des)
          Constructor for the DBMoleculeHyperlinkPeer object
 
Method Summary
 boolean equals(DBMoleculeHyperlink hl)
          The equals method comparing by the Hyperlink fiels
 void save(java.sql.Connection dbconn)
          Saves this to db.
 
Methods inherited from class org.openscience.nmrshiftdb.om.BaseDBMoleculeHyperlink
copy, copyInto, getByName, getByPeerName, getByPosition, getDBMolecule, getDescription, getDescriptionSoundex, getFieldNames, getHyperlink, getMoleculeId, getPeer, getPrimaryKey, save, save, setDBMolecule, setDBMoleculeKey, setDescription, setDescriptionSoundex, setHyperlink, 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
 

Constructor Detail

DBMoleculeHyperlink

public DBMoleculeHyperlink()
Constructor for the DBMoleculeHyperlink object


DBMoleculeHyperlink

public DBMoleculeHyperlink(int dbmol,
                           java.lang.String link,
                           java.lang.String des)
                    throws java.lang.Exception
Constructor for the DBMoleculeHyperlinkPeer object

Parameters:
dbmol - The molecule this should be a link for.
link - The link.
des - The description ("" if none".
Throws:
java.lang.Exception - Description of Exception
Method Detail

equals

public boolean equals(DBMoleculeHyperlink hl)
The equals method comparing by the Hyperlink fiels

Parameters:
hl - The DBMoleculeHyperlink to compare with
Returns:
false=unequal, true=equal

save

public void save(java.sql.Connection dbconn)
          throws org.apache.torque.TorqueException
Saves this to db. Also checks if entry is already existing.

Specified by:
save in interface org.apache.torque.om.Persistent
Overrides:
save in class BaseDBMoleculeHyperlink
Parameters:
dbconn - Description of Parameter
Throws:
java.lang.Exception - Description of Exception
org.apache.torque.TorqueException