|
||||||||||
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.HardwareManagerDB
public final class HardwareManagerDB
Field Summary |
---|
Fields inherited from class gov.nih.nci.caarray.services.util.db.ManagerDB |
---|
CASCADE_LINK, CASCADE_NONE, CASCADE_OBJECT, ID_UNSET |
Constructor Summary | |
---|---|
HardwareManagerDB()
Default Constructor |
Method Summary | |
---|---|
long |
addHardware(Hardware hardware)
Add a new hardware. |
long |
addParameter(long hardwareId,
Parameter param)
Add a new parameter to an existing hardware. |
void |
addSoftwareToHardware(long hardwareId,
long softwareId)
Associates a hardware with a software. |
void |
checkHardwareInUse(long id)
|
void |
close()
Close persistence resources. |
boolean |
deleteHardware(long hardwareId)
Remove the specified hardware from the persistence store. |
void |
deleteParameterFromHardware(long hardwareId,
long paramId)
Remove the specified parameter from the specified hardware and also delete the parameter from the persistence store. |
Hardware |
getHardware(long id)
Retrieve the Hardware that has the specified ID. |
Organization[] |
getHardwareManufacturers()
Retrieves all the Organization 's that are currently associated
with one or more hardware as manufacturers. |
Hardware[] |
getHardwares(HardwareSearchCriteria criteria)
Get available hardwares. |
void |
removeSoftwareFromHardware(long hardwareId,
long softwareId)
Disassociates a software from a hardware. |
boolean |
updateHardware(Hardware hardware)
Update an existing hardware. |
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 HardwareManagerDB()
Method Detail |
---|
public Hardware[] getHardwares(HardwareSearchCriteria criteria)
public Hardware getHardware(long id) throws java.lang.Exception
Hardware
that has the specified ID.
id
-
java.lang.Exception
public long addHardware(Hardware hardware) throws java.lang.Exception
Organization
.
hardware
-
InsertObjectException
- - If the specified hardware is NULL or
any database exception occurs.
java.lang.Exception
public boolean updateHardware(Hardware hardware) throws java.lang.Exception
Organization
.
hardware
-
InsertObjectException
- - If the specified hardware is NULL or
any database exception occurs.
java.lang.Exception
public long addParameter(long hardwareId, Parameter param) throws java.lang.Exception
hardwareId
- param
-
ObjectNotExistException
GeneralException
java.lang.Exception
public void deleteParameterFromHardware(long hardwareId, long paramId) throws java.lang.Exception
hardwareId
- paramId
-
ObjectNotExistException
GeneralException
java.lang.Exception
public void addSoftwareToHardware(long hardwareId, long softwareId) throws java.lang.Exception
hardwareId
- softwareId
-
ObjectNotExistException
DBException
java.lang.Exception
public void removeSoftwareFromHardware(long hardwareId, long softwareId) throws java.lang.Exception
hardwareId
- param
-
ObjectNotExistException
GeneralException
java.lang.Exception
public boolean deleteHardware(long hardwareId) throws java.lang.Exception
hardwareId
-
ObjectInUseException
DBException
java.lang.Exception
public Organization[] getHardwareManufacturers() throws java.lang.Exception
Organization
's that are currently associated
with one or more hardware as manufacturers.
DBException
java.lang.Exception
public void close()
close
in class ManagerDB
public void checkHardwareInUse(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 |