org.openscience.nmrshiftdb.om
Class DBSpectrumType

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

public class DBSpectrumType
extends BaseDBSpectrumType
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)  boolean choosen
           
 
Fields inherited from class org.openscience.nmrshiftdb.om.BaseDBSpectrumType
collDBIsotopes, collDBSpectrums, collDBWishlists
 
Fields inherited from class org.apache.torque.om.BaseObject
NEW_ID
 
Constructor Summary
DBSpectrumType()
           
DBSpectrumType(int id, java.lang.String name, int dimensionality)
           
 
Method Summary
 boolean getChoosen()
           
 DBIsotope getDBIsotope(int axis)
          Gets the dBIsotope in a certain axis.
 java.lang.String getElementSymbol()
          Gets the elementSymbol of the isotope of theDBSpectrumType
 java.lang.String getNameAsString()
           
 java.lang.String getNameFormatted()
          Gets the name of the DBSpectrumType object formatted for HTML.
 void setChoosen(boolean choosen)
           
 
Methods inherited from class org.openscience.nmrshiftdb.om.BaseDBSpectrumType
addDBIsotope, addDBSpectrum, addDBWishlist, copy, copyInto, getByName, getByPeerName, getByPosition, getDBIsotopes, getDBIsotopes, getDBIsotopes, getDBIsotopes, getDBIsotopesJoinDBSpectrumType, getDBSpectrums, getDBSpectrums, getDBSpectrums, getDBSpectrums, getDBSpectrumsJoinDBMolecule, getDBSpectrumsJoinDBSpectrumType, getDBSpectrumsJoinNmrshiftdbUser, getDBWishlists, getDBWishlists, getDBWishlists, getDBWishlists, getDBWishlistsJoinDBMolecule, getDBWishlistsJoinDBSpectrumType, getDBWishlistsJoinNmrshiftdbUser, getDimensionality, getFieldNames, getName, getNmrshiftdbUser, getPeer, getPrimaryKey, getSpectrumTypeId, getUserId, initDBIsotopes, initDBSpectrums, initDBWishlists, save, save, save, setDimensionality, setName, setNmrshiftdbUser, setNmrshiftdbUserKey, setPrimaryKey, setPrimaryKey, setSpectrumTypeId, setUserId, 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
 

Field Detail

choosen

boolean choosen
Constructor Detail

DBSpectrumType

public DBSpectrumType()

DBSpectrumType

public DBSpectrumType(int id,
                      java.lang.String name,
                      int dimensionality)
               throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

setChoosen

public void setChoosen(boolean choosen)

getChoosen

public boolean getChoosen()

getElementSymbol

public java.lang.String getElementSymbol()
                                  throws java.lang.Exception
Gets the elementSymbol of the isotope of theDBSpectrumType

Returns:
The elementSymbol value
Throws:
java.lang.Exception - Something wrong with reading database

getNameFormatted

public java.lang.String getNameFormatted()
                                  throws java.lang.Exception
Gets the name of the DBSpectrumType object formatted for HTML.

Returns:
The name value.
Throws:
java.lang.Exception - Database problems.

getNameAsString

public java.lang.String getNameAsString()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

getDBIsotope

public DBIsotope getDBIsotope(int axis)
                       throws java.lang.Exception
Gets the dBIsotope in a certain axis.

Parameters:
axis - The axis.
Returns:
The dBIsotope value
Throws:
java.lang.Exception - Database problems.