Package org.company.recordshop.domain

Examples of org.company.recordshop.domain.Customer


  /**
   * {@inheritDoc}
   */
  public SimpleCustomerDto readCustomer(Long id) {
    Customer result = customerServiceModelDomainService.readCustomer(id);
    return (result == null) ? null : simpleCustomerDtoTranslator
        .toDto(result);
  }
View Full Code Here


  /**
   * {@inheritDoc}
   */
  public void updateCustomer(SimpleCustomerDto object) {
    Customer domainObject = customerServiceModelDomainService
        .readCustomer(object.getId());
    simpleCustomerDtoTranslator.fromDto(object, domainObject);
    customerServiceModelDomainService.updateCustomer(domainObject);
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public void deleteCustomer(SimpleCustomerDto object) {
    Assert.notNull(object, "argument [object] may not be null");
    Customer existing = customerServiceModelDomainService
        .readCustomer(object.getId());
    customerServiceModelDomainService.deleteCustomer(existing);
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public FullCustomerDto readCustomerAsFullCustomerDto(Long id) {
    Customer result = customerServiceModelDomainService.readCustomer(id);
    return (result == null) ? null : fullCustomerDtoTranslator
        .toDto(result);
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public CustomerWithOrdersAndOrderLines readCustomerAsCustomerWithOrdersAndOrderLines(
      Long id) {
    Customer result = customerServiceModelDomainService.readCustomer(id);
    return (result == null)
        ? null
        : customerWithOrdersAndOrderLinesTranslator.toDto(result);
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public void updateCustomer(FullCustomerDto object) {
    Customer domainObject = customerServiceModelDomainService
        .readCustomer(object.getId());
    fullCustomerDtoTranslator.fromDto(object, domainObject);
    customerServiceModelDomainService.updateCustomer(domainObject);
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public void updateCustomer(CustomerWithOrdersAndOrderLines object) {
    Customer domainObject = customerServiceModelDomainService
        .readCustomer(object.getId());
    customerWithOrdersAndOrderLinesTranslator.fromDto(object, domainObject);
    customerServiceModelDomainService.updateCustomer(domainObject);
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public void deleteCustomer(FullCustomerDto object) {
    Assert.notNull(object, "argument [object] may not be null");
    Customer existing = customerServiceModelDomainService
        .readCustomer(object.getId());
    customerServiceModelDomainService.deleteCustomer(existing);
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public void deleteCustomer(CustomerWithOrdersAndOrderLines object) {
    Assert.notNull(object, "argument [object] may not be null");
    Customer existing = customerServiceModelDomainService
        .readCustomer(object.getId());
    customerServiceModelDomainService.deleteCustomer(existing);
  }
View Full Code Here

  public void addToOrders(SimpleCustomerDto whole, OrderDto part) {
    Assert.notNull(whole, "argument [whole] may not be null");
    Assert.notNull(part, "argument [part] may not be null");
    Order partBusinessObject = customerServiceModelDomainService
        .readOrder(part.getId());
    Customer mainBusinessObject = customerServiceModelDomainService
        .readCustomer(whole.getId());
    customerServiceModelDomainService.addToOrders(mainBusinessObject,
        partBusinessObject);
    return;
  }
View Full Code Here

TOP

Related Classes of org.company.recordshop.domain.Customer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.