gov.nih.nci.caarray.services.protocol.ejb
Class ProtocolManagerEJB

java.lang.Object
  extended by gov.nih.nci.caarray.services.util.AbstractSessionBean
      extended by 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

Field Summary
 
Fields inherited from class gov.nih.nci.caarray.services.util.AbstractSessionBean
logger_, sessionCtx_
 
Constructor Summary
ProtocolManagerEJB()
           
 
Method Summary
 void addHardware(long protocolId, long hardwareId)
           
 long addParameter(long protocolId, ParameterData parameterData)
           
 long addProtocol(ProtocolData protocolData)
          Add the specified Protocol to the persistence store
 void addSoftware(long protocolId, long softwareId)
           
 void deleteParameterFromProtocol(long protocolId, long parameterId)
           
 void deleteProtocol(long protocolId)
           
 void ejbCreate()
           
 void ejbRemove()
          called when remove method is called.
 ProtocolData getProtocol(long protocolId)
          Get a Protocol that has the specified ID.
 ProtocolApplicationData[] getProtocolApplications()
           
 void removeHardware(long protocolId, long hardwareId)
           
 void removeSoftware(long protocolId, long softwareId)
           
 ProtocolDesc[] search(ProtocolSearchCriteria searchCriteria)
          Searchs for Protocol's that match the specifed ProtocolSearchCriteria.
 void updateProtocol(ProtocolData protocolData)
           
 
Methods inherited from class gov.nih.nci.caarray.services.util.AbstractSessionBean
disableAndRememberPreviousValueForCollectionDescriptorCascadeRetrieve, disableAndRememberPreviousValueForObjectDescriptorCascadeRetrieve, ejbActivate, ejbPassivate, getUserTransaction, resetCollectionDescriptorCascadeToPreviousValue, resetObjectDescriptorCascadeToPreviousValue, setSessionContext
 
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
 

Constructor Detail

ProtocolManagerEJB

public ProtocolManagerEJB()
Method Detail

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