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

java.lang.Object
  extended by gov.nih.nci.caarray.services.util.AbstractSessionBean
      extended by gov.nih.nci.caarray.services.protocol.ejb.SoftwareManagerEJB
All Implemented Interfaces:
java.io.Serializable, javax.ejb.EnterpriseBean, javax.ejb.SessionBean

public class SoftwareManagerEJB
extends AbstractSessionBean
implements javax.ejb.SessionBean

SoftwareManagerEJB

Author:
dickersC, TranP
See Also:
Serialized Form

Field Summary
 
Fields inherited from class gov.nih.nci.caarray.services.util.AbstractSessionBean
sessionCtx_
 
Constructor Summary
SoftwareManagerEJB()
           
 
Method Summary
 void addHardwareToSoftware(long softwareId, long hardwareId)
           
 long addParameter(long softwareId, ParameterData parameterData)
           
 long addSoftware(SoftwareData softwareData)
           
 void addSoftwareToSoftware(long softwareId, long theOtherSoftwareId)
           
 void deleteParameterFromSoftware(long softwareId, long parameterId)
           
 void deleteSoftware(long softwareId)
           
 void ejbCreate()
           
 void ejbRemove()
          called when remove method is called.
 SoftwareData getSoftware(long softwareId)
          Get a Software that has the specified ID.
 OrganizationData[] getSoftwareManufacturers()
           
 void removeHardwareFromSoftware(long softwareId, long hardwareId)
           
 void removeSoftwareFromSoftware(long softwareId, long theOtherSoftwareId)
           
 SoftwareDesc[] search(SoftwareSearchCriteria criteria)
           
 void updateSoftware(SoftwareData softwareData)
           
 
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

SoftwareManagerEJB

public SoftwareManagerEJB()
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

getSoftware

public SoftwareData getSoftware(long softwareId)
                         throws java.lang.Exception
Get a Software that has the specified ID.

Returns:
- A Software object.
Throws:
java.lang.Exception

search

public SoftwareDesc[] search(SoftwareSearchCriteria criteria)
                      throws java.lang.Exception
Throws:
java.lang.Exception

addSoftware

public long addSoftware(SoftwareData softwareData)
                 throws java.lang.Exception
Throws:
java.lang.Exception

deleteSoftware

public void deleteSoftware(long softwareId)
                    throws java.lang.Exception
Throws:
java.lang.Exception

updateSoftware

public void updateSoftware(SoftwareData softwareData)
                    throws java.lang.Exception
Throws:
java.lang.Exception

getSoftwareManufacturers

public OrganizationData[] getSoftwareManufacturers()
                                            throws java.lang.Exception
Throws:
java.lang.Exception

addParameter

public long addParameter(long softwareId,
                         ParameterData parameterData)
                  throws java.lang.Exception
Throws:
java.lang.Exception

deleteParameterFromSoftware

public void deleteParameterFromSoftware(long softwareId,
                                        long parameterId)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

addSoftwareToSoftware

public void addSoftwareToSoftware(long softwareId,
                                  long theOtherSoftwareId)
                           throws java.lang.Exception
Throws:
java.lang.Exception

removeSoftwareFromSoftware

public void removeSoftwareFromSoftware(long softwareId,
                                       long theOtherSoftwareId)
                                throws java.lang.Exception
Throws:
java.lang.Exception

addHardwareToSoftware

public void addHardwareToSoftware(long softwareId,
                                  long hardwareId)
                           throws java.lang.Exception
Throws:
java.lang.Exception

removeHardwareFromSoftware

public void removeHardwareFromSoftware(long softwareId,
                                       long hardwareId)
                                throws java.lang.Exception
Throws:
java.lang.Exception