org.springframework.batch.sample.domain.trade.internal
Class JdbcCustomerDao

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.jdbc.core.support.JdbcDaoSupport
          extended by org.springframework.batch.sample.domain.trade.internal.JdbcCustomerDao
All Implemented Interfaces:
CustomerDao, InitializingBean

public class JdbcCustomerDao
extends JdbcDaoSupport
implements CustomerDao

Author:
Lucas Ward

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
JdbcCustomerDao()
           
 
Method Summary
 CustomerCredit getCustomerByName(String name)
           
 void insertCustomer(String name, BigDecimal credit)
           
 void updateCustomer(String name, BigDecimal credit)
           
 
Methods inherited from class org.springframework.jdbc.core.support.JdbcDaoSupport
checkDaoConfig, createJdbcTemplate, getConnection, getDataSource, getExceptionTranslator, getJdbcTemplate, initTemplateConfig, releaseConnection, setDataSource, setJdbcTemplate
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcCustomerDao

public JdbcCustomerDao()
Method Detail

getCustomerByName

public CustomerCredit getCustomerByName(String name)
Specified by:
getCustomerByName in interface CustomerDao

insertCustomer

public void insertCustomer(String name,
                           BigDecimal credit)
Specified by:
insertCustomer in interface CustomerDao

updateCustomer

public void updateCustomer(String name,
                           BigDecimal credit)
Specified by:
updateCustomer in interface CustomerDao


Copyright © 2009 SpringSource. All Rights Reserved.