Package org.company.recordshop.domain

Examples of org.company.recordshop.domain.Order


  /**
   * {@inheritDoc}
   */
  public OrderDto readOrder(Long id) {
    Order result = customerServiceModelDomainService.readOrder(id);
    return (result == null) ? null : orderDtoTranslator.toDto(result);
  }
View Full Code Here


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

  public void removeFromOrderLines(OrderDto whole, OrderLineDto part) {
    Assert.notNull(whole, "argument [whole] may not be null");
    Assert.notNull(part, "argument [part] may not be null");
    OrderLine partObject = customerServiceModelDomainService
        .readOrderLine(part.getId());
    Order wholeObject = customerServiceModelDomainService.readOrder(whole
        .getId());
    customerServiceModelDomainService.removeFromOrderLines(wholeObject,
        partObject);
  }
View Full Code Here

   * {@inheritDoc}
   */
  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);
View Full Code Here

   * {@inheritDoc}
   */
  public void removeFromOrders(SimpleCustomerDto whole, OrderDto part) {
    Assert.notNull(whole, "argument [whole] may not be null");
    Assert.notNull(part, "argument [part] may not be null");
    Order partObject = customerServiceModelDomainService.readOrder(part
        .getId());
    Customer wholeObject = customerServiceModelDomainService
        .readCustomer(whole.getId());
    customerServiceModelDomainService.removeFromOrders(wholeObject,
        partObject);
View Full Code Here

   * {@inheritDoc}
   */
  public SimpleCustomerDto getCustomer(OrderDto source) {
    Assert.notNull(source, "argument [source] may not be null");
    Customer target = null;
    Order sourceBusinessObject = customerServiceModelDomainService
        .readOrder(source.getId());
    target = customerServiceModelDomainService
        .getCustomer(sourceBusinessObject);
    return simpleCustomerDtoTranslator.toDto(target);
  }
View Full Code Here

    Customer partBusinessObject = null;
    if (part != null) {
      partBusinessObject = customerServiceModelDomainService
          .readCustomer(part.getId());
    }
    Order mainBusinessObject = customerServiceModelDomainService
        .readOrder(whole.getId());
    customerServiceModelDomainService.setCustomer(mainBusinessObject,
        partBusinessObject);
    return;
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public OrderDto readOrder(Long id) {
    Order result = customerServiceModelDomainService.readOrder(id);
    return (result == null) ? null : orderDtoTranslator.toDto(result);
  }
View Full Code Here

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

  public void removeFromOrderLines(OrderDto whole, OrderLineDto part) {
    Assert.notNull(whole, "argument [whole] may not be null");
    Assert.notNull(part, "argument [part] may not be null");
    OrderLine partObject = customerServiceModelDomainService
        .readOrderLine(part.getId());
    Order wholeObject = customerServiceModelDomainService.readOrder(whole
        .getId());
    customerServiceModelDomainService.removeFromOrderLines(wholeObject,
        partObject);
  }
View Full Code Here

TOP

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

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.