Package org.company.recordshop.domain

Examples of org.company.recordshop.domain.Product


  /**
   * {@inheritDoc}
   */
  public ProductWithCustomersDto readProductAsProductWithCustomersDto(Long id) {
    Product result = customerServiceModelDomainService.readProduct(id);
    return (result == null) ? null : productWithCustomersDtoTranslator
        .toDto(result);
  }
View Full Code Here


  /**
   * {@inheritDoc}
   */
  public FullProductDto readProductAsFullProductDto(Long id) {
    Product result = customerServiceModelDomainService.readProduct(id);
    return (result == null) ? null : fullProductDtoTranslator.toDto(result);
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public void updateProduct(ProductWithCustomersDto object) {
    Product domainObject = customerServiceModelDomainService
        .readProduct(object.getId());
    productWithCustomersDtoTranslator.fromDto(object, domainObject);
    customerServiceModelDomainService.updateProduct(domainObject);
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public void updateProduct(FullProductDto object) {
    Product domainObject = customerServiceModelDomainService
        .readProduct(object.getId());
    fullProductDtoTranslator.fromDto(object, domainObject);
    customerServiceModelDomainService.updateProduct(domainObject);
  }
View Full Code Here

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

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

  /**
   * {@inheritDoc}
   */
  public ProductWithCustomersDto readProductAsProductWithCustomersDto(Long id) {
    Product result = customerServiceModelDomainService.readProduct(id);
    return (result == null) ? null : productWithCustomersDtoTranslator
        .toDto(result);
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public FullProductDto readProductAsFullProductDto(Long id) {
    Product result = customerServiceModelDomainService.readProduct(id);
    return (result == null) ? null : fullProductDtoTranslator.toDto(result);
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public void updateProduct(ProductWithCustomersDto object) {
    Product domainObject = customerServiceModelDomainService
        .readProduct(object.getId());
    productWithCustomersDtoTranslator.fromDto(object, domainObject);
    customerServiceModelDomainService.updateProduct(domainObject);
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public void updateProduct(FullProductDto object) {
    Product domainObject = customerServiceModelDomainService
        .readProduct(object.getId());
    fullProductDtoTranslator.fromDto(object, domainObject);
    customerServiceModelDomainService.updateProduct(domainObject);
  }
View Full Code Here

TOP

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

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.