Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.mockobjects.examples.calcserver
Class SqlSavingCalculator  view SqlSavingCalculator download SqlSavingCalculator.java

java.lang.Object
  extended bycom.mockobjects.examples.calcserver.SqlSavingCalculator
All Implemented Interfaces:
IntCalculator

public class SqlSavingCalculator
extends java.lang.Object
implements IntCalculator


Field Summary
private  IntCalculator myIntCalculator
           
private  java.sql.PreparedStatement myStatement
           
 
Constructor Summary
SqlSavingCalculator(IntCalculator intCalculator, java.sql.PreparedStatement preparedStatement)
           
 
Method Summary
 int calculate(int value1, int value2, java.lang.String operation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myIntCalculator

private IntCalculator myIntCalculator

myStatement

private java.sql.PreparedStatement myStatement
Constructor Detail

SqlSavingCalculator

public SqlSavingCalculator(IntCalculator intCalculator,
                           java.sql.PreparedStatement preparedStatement)
Method Detail

calculate

public int calculate(int value1,
                     int value2,
                     java.lang.String operation)
              throws CalculatorException
Specified by:
calculate in interface IntCalculator