|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nci.caarray.services.util.db.ManagerDB
gov.nih.nci.caarray.services.protocol.SoftwareManagerDB
public final class SoftwareManagerDB
Field Summary |
---|
Fields inherited from class gov.nih.nci.caarray.services.util.db.ManagerDB |
---|
CASCADE_LINK, CASCADE_NONE, CASCADE_OBJECT, ID_UNSET |
Constructor Summary | |
---|---|
SoftwareManagerDB()
Default Constructor |
Method Summary | |
---|---|
void |
addHardwareToSoftware(long softwareId,
long hardwareId)
Associates a software with a hardware. |
long |
addParameter(long softwareId,
Parameter param)
Add the new parameter to the specified software. |
long |
addSoftware(Software software)
Add a new software. |
void |
addSoftwareToSoftware(long softwareId,
long theOtherSoftwareId)
Associates a software with another software. |
void |
checkSoftwareInUse(long id)
|
void |
close()
Close database connection. |
void |
deleteParameterFromSoftware(long softwareId,
long paramId)
Remove the parameter from the software and also delete the parameter from the persistence store. |
boolean |
deleteSoftware(long softwareId)
Deletes the specified software from the persistence store. |
Software |
getSoftware(long id)
Retrieve the Software that has the specified ID. |
Organization[] |
getSoftwareManufacturers()
|
Software[] |
getSoftwares(SoftwareSearchCriteria criteria)
Get available softwares. |
void |
removeHardwareFromSoftware(long softwareId)
Disassociates a hardware from a software. |
void |
removeSoftwareFromSoftware(long softwareId,
long theOtherSoftwareId)
Removes a software from another software. |
boolean |
updateSoftware(Software software)
Update an existing software. |
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 |
---|
public SoftwareManagerDB()
Method Detail |
---|
public Software[] getSoftwares(SoftwareSearchCriteria criteria) throws java.lang.Exception
java.lang.Exception
public Software getSoftware(long id) throws java.lang.Exception
Software
that has the specified ID.
id
-
java.lang.Exception
public long addSoftware(Software software) throws java.lang.Exception
Organization
.
software
-
InsertObjectException
- - If the specified software is NULL or
any database exception occurs.
java.lang.Exception
public boolean updateSoftware(Software software) throws java.lang.Exception
Organization
.
software
-
InsertObjectException
- - If the specified software is NULL or
any database exception occurs.
java.lang.Exception
public long addParameter(long softwareId, Parameter param) throws java.lang.Exception
softwareId
- param
-
ObjectNotExistException
GeneralException
java.lang.Exception
public void deleteParameterFromSoftware(long softwareId, long paramId) throws java.lang.Exception
softwareId
- paramId
-
ObjectNotExistException
GeneralException
java.lang.Exception
public void addHardwareToSoftware(long softwareId, long hardwareId) throws java.lang.Exception
softwareId
- hardwareId
-
ObjectNotExistException
GeneralException
java.lang.Exception
public void removeHardwareFromSoftware(long softwareId) throws java.lang.Exception
softwareId
-
ObjectNotExistException
DBException
java.lang.Exception
public void addSoftwareToSoftware(long softwareId, long theOtherSoftwareId) throws java.lang.Exception
hardwareId
- theOtherSoftwareId
-
ObjectNotExistException
DBException
java.lang.Exception
public void removeSoftwareFromSoftware(long softwareId, long theOtherSoftwareId) throws java.lang.Exception
softwareId
- theOtherSoftwareId
-
ObjectNotExistException
DBException
java.lang.Exception
public boolean deleteSoftware(long softwareId) throws java.lang.Exception
softwareId
-
ObjectInUseException
DBException
java.lang.Exception
public Organization[] getSoftwareManufacturers() throws java.lang.Exception
java.lang.Exception
public void close()
ManagerDB
close
in class ManagerDB
public void checkSoftwareInUse(long id) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |