gov.nih.nci.caarray.services.arraydesign
Class ReporterGroupManagerDB

java.lang.Object
  extended by gov.nih.nci.caarray.services.util.db.ManagerDB
      extended by gov.nih.nci.caarray.services.arraydesign.ReporterGroupManagerDB

public final class ReporterGroupManagerDB
extends ManagerDB

Author:
TranP

Field Summary
 
Fields inherited from class gov.nih.nci.caarray.services.util.db.ManagerDB
CASCADE_LINK, CASCADE_NONE, CASCADE_OBJECT, ID_UNSET
 
Constructor Summary
ReporterGroupManagerDB()
          Default Constructor
 
Method Summary
 long addReporterGroup(ReporterGroup reporterGroup)
          Adds a new ReporterGroup.
 void close()
          Close persistence resources.
 boolean deleteReporterGroup(long reportergroupId)
          Remove the specified ReporterGroup from the persistence store.
 ReporterGroup getReporterGroup(long id)
          Retrieve the ReporterGroup that has the specified ID.
 ReporterGroup[] getReporterGroups(ReporterGroupSearchCriteria criteria)
          Searches reporterGroups.
 boolean updateReporterGroup(ReporterGroup reporterGroup)
          Updates an existing ReporterGroup and cascade-updates the associated reporters.
 
Methods inherited from class gov.nih.nci.caarray.services.util.db.ManagerDB
clearCache, countObjects, countObjects, deleteByQuery, deleteMtoNRelation, deleteObject, deleteObject, deleteObject, deleteObjectByQuery, exists, getIdentifiable, getObject, getObject, getObject, getObject, getObject, getObject, getObjectIterator, getObjectIterator, getObjects, getObjects, getObjects, getPersistenceBroker, getSqlInLimit, insertMtoNRelation, insertMtoNRelation, insertObject, insertObject, link, link, removeFromCache, retrieveReference, retrieveReferences, setCascadeDelete, setCascadeRetrieve, setCascadeStore, storeObject, storeObject, unlink, unlink, updateObject, updateObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReporterGroupManagerDB

public ReporterGroupManagerDB()
Default Constructor

Method Detail

getReporterGroups

public ReporterGroup[] getReporterGroups(ReporterGroupSearchCriteria criteria)
Searches reporterGroups.

Returns:

getReporterGroup

public ReporterGroup getReporterGroup(long id)
Retrieve the ReporterGroup that has the specified ID.

Parameters:
id -
Returns:

addReporterGroup

public long addReporterGroup(ReporterGroup reporterGroup)
                      throws java.lang.Exception
Adds a new ReporterGroup.

Parameters:
reportergroup - The reporter group to add
Throws:
InsertObjectException - - If the specified reporterGroup is NULL or any database exception occurs.
java.lang.Exception

updateReporterGroup

public boolean updateReporterGroup(ReporterGroup reporterGroup)
                            throws java.lang.Exception
Updates an existing ReporterGroup and cascade-updates the associated reporters.

Warning: This method may take long if there are many reporters.

Parameters:
hardware -
Throws:
InsertObjectException - - If the specified reporterGroup is NULL or any database exception occurs.
java.lang.Exception

deleteReporterGroup

public boolean deleteReporterGroup(long reportergroupId)
                            throws java.lang.Exception
Remove the specified ReporterGroup from the persistence store.

Parameters:
hardwareId -
Returns:
Throws:
ObjectInUseException
DBException
java.lang.Exception

close

public void close()
Close persistence resources.

Overrides:
close in class ManagerDB