org.openscience.nmrshiftdb.om
Class DBBond

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

public class DBBond
extends BaseDBBond
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.BaseDBBond
collDBBondDBAtoms
 
Fields inherited from class org.apache.torque.om.BaseObject
NEW_ID
 
Constructor Summary
DBBond()
          Constructor for the DBBond object
DBBond(org.openscience.cdk.interfaces.IBond bond, boolean isDoubleBondSpecified)
          Constructor for the DBBond object
 
Method Summary
 void delete(java.sql.Connection conn)
          Deletes a bond
 java.util.Vector getAtoms()
          Gets the atoms of the DBBond object
 
Methods inherited from class org.openscience.nmrshiftdb.om.BaseDBBond
addDBBondDBAtom, copy, copyInto, getBondId, getByName, getByPeerName, getByPosition, getDBBondDBAtoms, getDBBondDBAtoms, getDBBondDBAtoms, getDBBondDBAtoms, getDBBondDBAtomsJoinDBAtom, getDBBondDBAtomsJoinDBBond, getDegree, getFieldNames, getIsAromatic, getIsConfigurationSpecified, getPeer, getPrimaryKey, getStereo, initDBBondDBAtoms, save, save, save, setBondId, setDegree, setIsAromatic, setIsConfigurationSpecified, setPrimaryKey, setPrimaryKey, setStereo, 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, save, setModified, setNew, setPrimaryKey, setPrimaryKey
 

Constructor Detail

DBBond

public DBBond()
Constructor for the DBBond object


DBBond

public DBBond(org.openscience.cdk.interfaces.IBond bond,
              boolean isDoubleBondSpecified)
Constructor for the DBBond object

Parameters:
bond - The cdk bond this bond should represent.
isDoubleBondSpecified - is this a specified double bond configuration?
Method Detail

getAtoms

public java.util.Vector getAtoms()
                          throws java.lang.Exception
Gets the atoms of the DBBond object

Returns:
The atoms
Throws:
java.lang.Exception - database problems

delete

public void delete(java.sql.Connection conn)
            throws java.lang.Exception
Deletes a bond

Parameters:
conn - The connection to use.
Throws:
java.lang.Exception - Database problems.