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

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

public final class CompositeGroupManagerDB
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
CompositeGroupManagerDB()
           
 
Method Summary
 long addCompositeGroup(CompositeGroup compositeGroup)
          Add a new CompositeGroup.
 void close()
          Close persistence resources.
 boolean deleteCompositeGroup(long compositeGroupId)
          Remove the specified CompositeGroup from the persistence store.
 CompositeGroup getCompositeGroup(long id)
          Retrieve the CompositeGroup that has the specified ID.
 CompositeGroup[] getCompositeGroups(CompositeGroupSearchCriteria criteria)
          Searches compositeGroups.
 boolean updateCompositeGroup(CompositeGroup compositeGroup)
          Updates an existing CompositeGroup and cascade-updates the associated compositeSequences.
 
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

CompositeGroupManagerDB

public CompositeGroupManagerDB()
Method Detail

getCompositeGroups

public CompositeGroup[] getCompositeGroups(CompositeGroupSearchCriteria criteria)
Searches compositeGroups.

Returns:

getCompositeGroup

public CompositeGroup getCompositeGroup(long id)
Retrieve the CompositeGroup that has the specified ID.

Parameters:
id -
Returns:

addCompositeGroup

public long addCompositeGroup(CompositeGroup compositeGroup)
                       throws java.lang.Exception
Add a new CompositeGroup.

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

updateCompositeGroup

public boolean updateCompositeGroup(CompositeGroup compositeGroup)
                             throws java.lang.Exception
Updates an existing CompositeGroup and cascade-updates the associated compositeSequences.

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

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

deleteCompositeGroup

public boolean deleteCompositeGroup(long compositeGroupId)
                             throws java.lang.Exception
Remove the specified CompositeGroup from the persistence store.

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

close

public void close()
Close persistence resources.

Overrides:
close in class ManagerDB