|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.samples.technologysamples.ejb.stateless.basiccalculatorejb.BasicCalculatorBean
public class BasicCalculatorBean
BasicCalculatorBean is the implementation class for the BasicCalculator
stateless session EJB. BasicCalculatorBean implements each of the business methods defined in the BasicCalculator
EJB remote interface and each
of the EJB lifecycle methods in the javax.ejb.SessionBean interface.
BasicCalculator
,
BasicCalculatorHome
,
Serialized FormConstructor Summary | |
---|---|
BasicCalculatorBean()
|
Method Summary | |
---|---|
void |
ejbActivate()
ejbActivate Session EJB lifecycle callback method. |
void |
ejbCreate()
ejbCreate Session EJB lifecycle callback method. |
void |
ejbPassivate()
ejbPassivate Session EJB lifecycle callback method. |
void |
ejbRemove()
ejbRemove Session EJB lifecycle callback method. |
double |
makeDifference(double operand1,
double operand2)
Perform the subtraction operation on the operands and return the result |
double |
makeProduct(double operand1,
double operand2)
Perform the multiplication operation on the operands and return the result |
double |
makeQuotient(double operand1,
double operand2)
Perform the division operation on the operands and return the result |
double |
makeSum(double operand1,
double operand2)
Perform the addition operation on the operands and return the result |
void |
setSessionContext(javax.ejb.SessionContext sCtx)
ejbCreate Session EJB lifecycle callback method to set the EJB sessionContext for this EJB. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicCalculatorBean()
Method Detail |
---|
public void ejbCreate()
public void ejbActivate()
ejbActivate
in interface javax.ejb.SessionBean
public void ejbPassivate()
ejbPassivate
in interface javax.ejb.SessionBean
public void ejbRemove()
ejbRemove
in interface javax.ejb.SessionBean
public void setSessionContext(javax.ejb.SessionContext sCtx)
setSessionContext
in interface javax.ejb.SessionBean
sCtx
- javax.ejb.SessionContext The context for this session EJBpublic double makeSum(double operand1, double operand2)
operand1
- A number to perform this mathematical operation onoperand2
- Another number to perform this mathematical operation on
public double makeDifference(double operand1, double operand2)
operand1
- A number to perform this mathematical operation onoperand2
- Another number to perform this mathematical operation on
public double makeProduct(double operand1, double operand2)
operand1
- A number to perform this mathematical operation onoperand2
- Another number to perform this mathematical operation on
public double makeQuotient(double operand1, double operand2)
operand1
- A number to perform this mathematical operation onoperand2
- Another number to perform this mathematical operation on
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |