org.openxma.dsl.reference.service.impl
Class CustomerServiceImpl

java.lang.Object
  extended by org.openxma.dsl.reference.service.impl.CustomerServiceImpl
All Implemented Interfaces:
CustomerService

@Service(value="customerService")
public class CustomerServiceImpl
extends java.lang.Object
implements CustomerService


Field Summary
protected  AddressDao addressDao
           
protected  CustomerDao customerDao
           
protected  org.apache.commons.logging.Log logger
           
protected  org.openxma.dsl.platform.service.Mapper mapper
           
protected  OrderDao orderDao
           
protected  OrderItemDao orderItemDao
           
protected  ProductDao productDao
           
 
Constructor Summary
CustomerServiceImpl()
           
 
Method Summary
 void deleteCustomerView(java.lang.String oid)
           
 java.util.List<CustomerView> findAllByEmailAdressOrBirthDate(EmailAdressOrBirthDateQuery emailAdressOrBirthDateQuery)
           
 java.util.List<CustomerView> findAllByFirstNameAndLastName(FirstNameAndLastNameQuery firstNameAndLastNameQuery)
           
 java.util.List<CustomerView> findAllByLastNameJoinOrdersDate(LastNameJoinOrdersDateQuery lastNameJoinOrdersDateQuery)
           
 CustomerView findByFirstOrLastNameJoinOrder(FirstOrLastNameJoinOrderQuery firstOrLastNameJoinOrderQuery)
           
 java.util.List<Customer> findByNamedQueryCustomerLastName(java.lang.String lastName)
           
 CustomerView loadCustomerView(java.lang.String oid)
           
 CustomerView save(CustomerView customerView)
           
 void setAddressDao(AddressDao addressDao)
           
 void setCustomerDao(CustomerDao customerDao)
           
 void setOrderDao(OrderDao orderDao)
           
 void setOrderItemDao(OrderItemDao orderItemDao)
           
 void setProductDao(ProductDao productDao)
           
 void update(CustomerView customerView)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger

mapper

protected org.openxma.dsl.platform.service.Mapper mapper

customerDao

protected CustomerDao customerDao

addressDao

protected AddressDao addressDao

orderDao

protected OrderDao orderDao

orderItemDao

protected OrderItemDao orderItemDao

productDao

protected ProductDao productDao
Constructor Detail

CustomerServiceImpl

public CustomerServiceImpl()
Method Detail

setCustomerDao

public void setCustomerDao(CustomerDao customerDao)

setAddressDao

public void setAddressDao(AddressDao addressDao)

setOrderDao

public void setOrderDao(OrderDao orderDao)

setOrderItemDao

public void setOrderItemDao(OrderItemDao orderItemDao)

setProductDao

public void setProductDao(ProductDao productDao)

save

@Transactional
public CustomerView save(CustomerView customerView)
Specified by:
save in interface CustomerService

loadCustomerView

@Transactional(readOnly=true)
public CustomerView loadCustomerView(java.lang.String oid)
Specified by:
loadCustomerView in interface CustomerService

update

@Transactional
public void update(CustomerView customerView)
Specified by:
update in interface CustomerService

deleteCustomerView

@Transactional
public void deleteCustomerView(java.lang.String oid)
Specified by:
deleteCustomerView in interface CustomerService

findAllByFirstNameAndLastName

@Transactional(readOnly=true)
public java.util.List<CustomerView> findAllByFirstNameAndLastName(FirstNameAndLastNameQuery firstNameAndLastNameQuery)
Specified by:
findAllByFirstNameAndLastName in interface CustomerService

findAllByEmailAdressOrBirthDate

@Transactional(readOnly=true)
public java.util.List<CustomerView> findAllByEmailAdressOrBirthDate(EmailAdressOrBirthDateQuery emailAdressOrBirthDateQuery)
Specified by:
findAllByEmailAdressOrBirthDate in interface CustomerService

findByFirstOrLastNameJoinOrder

@Transactional(readOnly=true)
public CustomerView findByFirstOrLastNameJoinOrder(FirstOrLastNameJoinOrderQuery firstOrLastNameJoinOrderQuery)
Specified by:
findByFirstOrLastNameJoinOrder in interface CustomerService

findAllByLastNameJoinOrdersDate

@Transactional(readOnly=true)
public java.util.List<CustomerView> findAllByLastNameJoinOrdersDate(LastNameJoinOrdersDateQuery lastNameJoinOrdersDateQuery)
Specified by:
findAllByLastNameJoinOrdersDate in interface CustomerService

findByNamedQueryCustomerLastName

@Transactional(readOnly=true)
public java.util.List<Customer> findByNamedQueryCustomerLastName(java.lang.String lastName)
Specified by:
findByNamedQueryCustomerLastName in interface CustomerService


Copyright © 2010. All Rights Reserved.