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

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

public final class FeatureGroupManagerDB
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
FeatureGroupManagerDB()
           
 
Method Summary
 long addFeatureGroup(FeatureGroup featureGroup)
          Adds a new FeatureGroup.
 void close()
          Close persistence resources.
 boolean deleteFeatureGroup(long featuregroupId)
          Remove the specified FeatureGroup from the persistence store.
 FeatureGroup getFeatureGroup(long id)
          Retrieve the FeatureGroup that has the specified ID.
 FeatureGroup[] getFeatureGroups(FeatureGroupSearchCriteria criteria)
          Searches featureGroups.
 boolean updateFeatureGroup(FeatureGroup featureGroup)
          Updates an existing FeatureGroup and cascade-updates the associated features.
 
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

FeatureGroupManagerDB

public FeatureGroupManagerDB()
Method Detail

getFeatureGroups

public FeatureGroup[] getFeatureGroups(FeatureGroupSearchCriteria criteria)
Searches featureGroups.

Returns:

getFeatureGroup

public FeatureGroup getFeatureGroup(long id)
Retrieve the FeatureGroup that has the specified ID.

Parameters:
id -
Returns:

addFeatureGroup

public long addFeatureGroup(FeatureGroup featureGroup)
                     throws java.lang.Exception
Adds a new FeatureGroup.

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

updateFeatureGroup

public boolean updateFeatureGroup(FeatureGroup featureGroup)
                           throws java.lang.Exception
Updates an existing FeatureGroup and cascade-updates the associated features.

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

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

deleteFeatureGroup

public boolean deleteFeatureGroup(long featuregroupId)
                           throws java.lang.Exception
Remove the specified FeatureGroup from the persistence store.

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

close

public void close()
Close persistence resources.

Overrides:
close in class ManagerDB