com.theopenstack.rtpdemo.model.adapter
Class JDBCAdapter

java.lang.Object
  |
  +--com.theopenstack.rtpdemo.model.adapter.JDBCAdapter
All Implemented Interfaces:
RTPDEMOAdapterIF

public class JDBCAdapter
extends java.lang.Object
implements RTPDEMOAdapterIF

JDBCAdapter demonstrates using plain JDBC to get product and price details


Constructor Summary
protected JDBCAdapter()
           
 
Method Summary
 PriceQuoteVO getPrice(ProductVO product, int quantity)
          Get price
 java.util.ArrayList getProducts(java.lang.String nameSearchString)
          Get products
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCAdapter

protected JDBCAdapter()
Method Detail

getProducts

public java.util.ArrayList getProducts(java.lang.String nameSearchString)
Description copied from interface: RTPDEMOAdapterIF
Get products

Specified by:
getProducts in interface RTPDEMOAdapterIF
Parameters:
nameSearchString -
Returns:
returns the product ArrayList

getPrice

public PriceQuoteVO getPrice(ProductVO product,
                             int quantity)
Description copied from interface: RTPDEMOAdapterIF
Get price

Specified by:
getPrice in interface RTPDEMOAdapterIF
Parameters:
product -
quantity -
Returns:
returns the PriceQuoteVO