Class JdbcCustomerDao
- java.lang.Object
- org.springframework.dao.support.DaoSupport
- org.springframework.jdbc.core.support.JdbcDaoSupport
- org.springframework.batch.sample.domain.trade.internal.JdbcCustomerDao
- All Implemented Interfaces:
CustomerDao,org.springframework.beans.factory.InitializingBean
public class JdbcCustomerDao extends org.springframework.jdbc.core.support.JdbcDaoSupport implements CustomerDao
- Author:
- Lucas Ward
Constructor Summary
Constructors Constructor Description JdbcCustomerDao()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomerCreditgetCustomerByName(java.lang.String name)voidinsertCustomer(java.lang.String name, java.math.BigDecimal credit)voidsetIncrementer(org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer incrementer)voidupdateCustomer(java.lang.String name, java.math.BigDecimal credit)
Method Detail
setIncrementer
public void setIncrementer(org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer incrementer)
getCustomerByName
public CustomerCredit getCustomerByName(java.lang.String name)
- Specified by:
getCustomerByNamein interfaceCustomerDao
insertCustomer
public void insertCustomer(java.lang.String name, java.math.BigDecimal credit)- Specified by:
insertCustomerin interfaceCustomerDao
updateCustomer
public void updateCustomer(java.lang.String name, java.math.BigDecimal credit)- Specified by:
updateCustomerin interfaceCustomerDao