edu.sdsc.inca.depot.persistent
Class ComparisonResultDAO
java.lang.Object
   edu.sdsc.inca.depot.persistent.DAO
edu.sdsc.inca.depot.persistent.DAO
       edu.sdsc.inca.depot.persistent.ComparisonResultDAO
edu.sdsc.inca.depot.persistent.ComparisonResultDAO
- public class ComparisonResultDAO 
- extends DAO
This class transfers ComparisonResult objects between memory and the DB.
 
| Fields inherited from class edu.sdsc.inca.depot.persistent.DAO | 
| logger | 
 
 
| Method Summary | 
| static ComparisonResult | load(ComparisonResult cr)Returns a ComparisonResult from the DB with the same field values as one
 specified, null if no such ComparisonResult appears in the DB.
 | 
| static ComparisonResult | load(java.lang.Long id)Returns a ComparisonResult object from the DB with the id specified, null
 if no such object appears in the DB.
 | 
| static ComparisonResult | loadOrSave(ComparisonResult cr)Returns a ComparisonResult object from the DB with the same field values
 as one specified, or the saved version of the specified object if no such
 object appears in the DB.
 | 
| static ComparisonResult | update(ComparisonResult cr)A wrapper around DAO.update that handles the necessary casting.
 | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ComparisonResultDAO
public ComparisonResultDAO()
load
public static ComparisonResult load(ComparisonResult cr)
                             throws PersistenceException
- Returns a ComparisonResult from the DB with the same field values as one
 specified, null if no such ComparisonResult appears in the DB.
 
- 
- Parameters:
- cr- an object that contains field values used in the retrieval
- Returns:
- an object from the DB that contains the same values
- Throws:
- PersistenceException- on err
 
load
public static ComparisonResult load(java.lang.Long id)
                             throws PersistenceException
- Returns a ComparisonResult object from the DB with the id specified, null
 if no such object appears in the DB.
 
- 
- Parameters:
- id- the id of the object to be retrieved
- Returns:
- an object from the DB marked with the given id
- Throws:
- PersistenceException- on err
 
loadOrSave
public static ComparisonResult loadOrSave(ComparisonResult cr)
                                   throws PersistenceException
- Returns a ComparisonResult object from the DB with the same field values
 as one specified, or the saved version of the specified object if no such
 object appears in the DB.  Synchronized to avoid race conditions that
 could result in DB duplicates.
 
- 
- Parameters:
- cr- an object that contains field values used in the retrieval
- Returns:
- an object from the DB that contains the same values
- Throws:
- PersistenceException- on err
 
update
public static ComparisonResult update(ComparisonResult cr)
                               throws PersistenceException
- A wrapper around DAO.update that handles the necessary casting.
 
- 
- Parameters:
- cr- the object to update
- Returns:
- cr for convenience
- Throws:
- PersistenceException- on error