gov.nih.nci.caarray.services.protocol.ejb
Class ProtocolManagerEJB
java.lang.Object
gov.nih.nci.caarray.services.util.AbstractSessionBean
gov.nih.nci.caarray.services.protocol.ejb.ProtocolManagerEJB
- All Implemented Interfaces:
- java.io.Serializable, javax.ejb.EnterpriseBean, javax.ejb.SessionBean
public class ProtocolManagerEJB
- extends AbstractSessionBean
- implements javax.ejb.SessionBean
ProtocolManagerEJB
- Author:
- TranP
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.ejb.SessionBean |
ejbActivate, ejbPassivate, setSessionContext |
ProtocolManagerEJB
public ProtocolManagerEJB()
ejbCreate
public void ejbCreate()
throws java.rmi.RemoteException,
javax.ejb.CreateException
- Overrides:
ejbCreate
in class AbstractSessionBean
- Throws:
javax.ejb.CreateException
java.rmi.RemoteException
ejbRemove
public void ejbRemove()
throws javax.ejb.EJBException,
java.rmi.RemoteException
- called when remove method is called.
- Specified by:
ejbRemove
in interface javax.ejb.SessionBean
- Overrides:
ejbRemove
in class AbstractSessionBean
- Throws:
javax.ejb.EJBException
java.rmi.RemoteException
getProtocol
public ProtocolData getProtocol(long protocolId)
throws java.lang.Exception
- Get a
Protocol
that has the specified ID.
- Returns:
- - A
Protocol
object.
- Throws:
java.lang.Exception
search
public ProtocolDesc[] search(ProtocolSearchCriteria searchCriteria)
throws java.lang.Exception
- Searchs for
Protocol
's that match the specifed
ProtocolSearchCriteria
.
- Returns:
- - An array of matched
Protocol
objects or null
otherwise.
- Throws:
java.lang.Exception
updateProtocol
public void updateProtocol(ProtocolData protocolData)
throws java.lang.Exception
- Throws:
java.lang.Exception
addProtocol
public long addProtocol(ProtocolData protocolData)
throws java.lang.Exception
- Add the specified
Protocol
to the persistence store
- Parameters:
protocolData
- -
- Throws:
java.lang.Exception
deleteProtocol
public void deleteProtocol(long protocolId)
throws java.lang.Exception,
ObjectNotExistException,
ObjectInUseException,
GeneralException
- Throws:
java.lang.Exception
ObjectNotExistException
ObjectInUseException
GeneralException
addHardware
public void addHardware(long protocolId,
long hardwareId)
throws java.lang.Exception
- Throws:
java.lang.Exception
removeHardware
public void removeHardware(long protocolId,
long hardwareId)
throws java.lang.Exception
- Throws:
java.lang.Exception
addSoftware
public void addSoftware(long protocolId,
long softwareId)
throws java.lang.Exception
- Throws:
java.lang.Exception
removeSoftware
public void removeSoftware(long protocolId,
long softwareId)
throws java.lang.Exception
- Throws:
java.lang.Exception
addParameter
public long addParameter(long protocolId,
ParameterData parameterData)
throws java.lang.Exception
- Throws:
java.lang.Exception
deleteParameterFromProtocol
public void deleteParameterFromProtocol(long protocolId,
long parameterId)
throws java.lang.Exception
- Throws:
java.lang.Exception
getProtocolApplications
public ProtocolApplicationData[] getProtocolApplications()
throws java.lang.Exception
- Throws:
java.lang.Exception