org.openscience.nmrshiftdb.om
Class DBBookmark

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

public class DBBookmark
extends BaseDBBookmark
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
DBBookmark()
          Constructor for the DBBookmark object
DBBookmark(int userid, int moleculeid)
          Constructor for the DBBookmark object
 
Method Summary
 void save()
          Stores the object in the database.
 
Methods inherited from class org.openscience.nmrshiftdb.om.BaseDBBookmark
copy, copyInto, getByName, getByPeerName, getByPosition, getDBMolecule, getFieldNames, getMoleculeId, getNmrshiftdbUser, getPeer, getPrimaryKey, getUserId, save, save, setDBMolecule, setDBMoleculeKey, setMoleculeId, setNmrshiftdbUser, setNmrshiftdbUserKey, setPrimaryKey, setPrimaryKey, setPrimaryKey, 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, setModified, setNew, setPrimaryKey, setPrimaryKey
 

Constructor Detail

DBBookmark

public DBBookmark(int userid,
                  int moleculeid)
           throws java.lang.Exception
Constructor for the DBBookmark object

Parameters:
userid - The user the bookmar is for.
moleculeid - Molecule to bookmark.
Throws:
java.lang.Exception - Description of Exception

DBBookmark

public DBBookmark()
Constructor for the DBBookmark object

Method Detail

save

public void save()
          throws java.lang.Exception
Stores the object in the database. If the object is new and not yet existing, it inserts it; otherwise an update is performed.

Specified by:
save in interface org.apache.torque.om.Persistent
Overrides:
save in class BaseDBBookmark
Throws:
java.lang.Exception