svnno****@sourc*****
svnno****@sourc*****
2008年 1月 28日 (月) 14:13:26 JST
Revision: 800 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=800 Author: shinsuke Date: 2008-01-28 14:13:25 +0900 (Mon, 28 Jan 2008) Log Message: ----------- added interfaces. Modified Paths: -------------- pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/CustomerService.java pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/impl/CustomerServiceImpl.java pompei/libraries/pompei-db/trunk/src/test/java/jp/sf/pal/pompei/service/impl/CustomerServiceImplTest.java Added Paths: ----------- pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/PompeiException.java pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/pager/ pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/pager/DefaultPager.java pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/pager/OrderFormPager.java pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/pager/ProductPager.java pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/OrderService.java pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/ProductService.java pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/impl/OrderServiceImpl.java pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/impl/ProductServiceImpl.java -------------- next part -------------- Added: pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/PompeiException.java =================================================================== --- pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/PompeiException.java 2008-01-28 04:42:36 UTC (rev 799) +++ pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/PompeiException.java 2008-01-28 05:13:25 UTC (rev 800) @@ -0,0 +1,93 @@ +package jp.sf.pal.pompei; + +/** + * @author shinsuke + * + */ +public class PompeiException extends Exception { + + /** + * Serial Version UID + */ + private static final long serialVersionUID = 4564000116499132363L; + + private String messageId; + + private Object[] args; + + /** + * @return Returns the messageId. + */ + public String getMessageId() { + return messageId; + } + + /** + * @param messageId + * The messageId to set. + */ + public void setMessageId(String messageId) { + this.messageId = messageId; + } + + /** + * @return Returns the args. + */ + public Object[] getArgs() { + return args; + } + + /** + * @param args + * The args to set. + */ + public void setArgs(Object[] args) { + this.args = args; + } + + public PompeiException(String messageId) { + super(messageId); + this.messageId = messageId; + } + + public PompeiException(String messageId, Object[] args) { + super(messageId); + this.messageId = messageId; + this.args = args; + } + + public PompeiException(String messageId, String message, Throwable cause) { + super(message, cause); + this.messageId = messageId; + } + + public PompeiException(String messageId, Object[] args, String message, + Throwable cause) { + super(message, cause); + this.messageId = messageId; + this.args = args; + } + + public PompeiException(String messageId, String message) { + super(message); + this.messageId = messageId; + } + + public PompeiException(String messageId, Object[] args, String message) { + super(message); + this.messageId = messageId; + this.args = args; + } + + public PompeiException(String messageId, Throwable cause) { + super(cause); + this.messageId = messageId; + } + + public PompeiException(String messageId, Object[] args, Throwable cause) { + super(cause); + this.messageId = messageId; + this.args = args; + } + +} Property changes on: pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/PompeiException.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/pager/DefaultPager.java =================================================================== --- pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/pager/DefaultPager.java 2008-01-28 04:42:36 UTC (rev 799) +++ pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/pager/DefaultPager.java 2008-01-28 05:13:25 UTC (rev 800) @@ -0,0 +1,47 @@ +package jp.sf.pal.pompei.pager; + +import java.io.Serializable; + +public abstract class DefaultPager implements Serializable { + public static final int DEFAULT_PAGE_SIZE = 15; + + public static final int DEFAULT_CURRENT_PAGE_NUMBER = 1; + + private int pageSize; + + private int currentPageNumber; + + /** + * @return pageSize + */ + public int getPageSize() { + if (pageSize <= 0) { + pageSize = DEFAULT_PAGE_SIZE; + } + return pageSize; + } + + /** + * @param pageSize 設定する pageSize + */ + public void setPageSize(int pageSize) { + this.pageSize = pageSize; + } + + /** + * @return currentPageNumber + */ + public int getCurrentPageNumber() { + if (currentPageNumber <= 0) { + currentPageNumber = DEFAULT_CURRENT_PAGE_NUMBER; + } + return currentPageNumber; + } + + /** + * @param currentPageNumber 設定する currentPageNumber + */ + public void setCurrentPageNumber(int currentPageNumber) { + this.currentPageNumber = currentPageNumber; + } +} Property changes on: pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/pager/DefaultPager.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/pager/OrderFormPager.java =================================================================== --- pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/pager/OrderFormPager.java 2008-01-28 04:42:36 UTC (rev 799) +++ pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/pager/OrderFormPager.java 2008-01-28 05:13:25 UTC (rev 800) @@ -0,0 +1,43 @@ +package jp.sf.pal.pompei.pager; + +import java.math.BigDecimal; + +public class OrderFormPager extends DefaultPager { + + /** + * + */ + private static final long serialVersionUID = 8632942395235732202L; + + private BigDecimal orderStatusId; + + private String sortOrder; + + /** + * @return sortOrder + */ + public String getSortOrder() { + return sortOrder; + } + + /** + * @param sortOrder 設定する sortOrder + */ + public void setSortOrder(String sortOrder) { + this.sortOrder = sortOrder; + } + + /** + * @return orderStatusId + */ + public BigDecimal getOrderStatusId() { + return orderStatusId; + } + + /** + * @param orderStatusId 設定する orderStatusId + */ + public void setOrderStatusId(BigDecimal orderStatusId) { + this.orderStatusId = orderStatusId; + } +} Property changes on: pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/pager/OrderFormPager.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/pager/ProductPager.java =================================================================== --- pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/pager/ProductPager.java 2008-01-28 04:42:36 UTC (rev 799) +++ pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/pager/ProductPager.java 2008-01-28 05:13:25 UTC (rev 800) @@ -0,0 +1,59 @@ +package jp.sf.pal.pompei.pager; + +import java.math.BigDecimal; + +public class ProductPager extends DefaultPager { + /** + * + */ + private static final long serialVersionUID = 5634903690975646435L; + + // displayMode is not condition for search + private String displayMode; + + private String orderMode; + + private BigDecimal categoryId; + + /** + * @return categoryId + */ + public BigDecimal getCategoryId() { + return categoryId; + } + + /** + * @param categoryId 設定する categoryId + */ + public void setCategoryId(BigDecimal categoryId) { + this.categoryId = categoryId; + } + + /** + * @return displayMode + */ + public String getDisplayMode() { + return displayMode; + } + + /** + * @param displayMode 設定する displayMode + */ + public void setDisplayMode(String displayMode) { + this.displayMode = displayMode; + } + + /** + * @return orderMode + */ + public String getOrderMode() { + return orderMode; + } + + /** + * @param orderMode 設定する orderMode + */ + public void setOrderMode(String orderMode) { + this.orderMode = orderMode; + } +} Property changes on: pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/pager/ProductPager.java ___________________________________________________________________ Name: svn:eol-style + native Modified: pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/CustomerService.java =================================================================== --- pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/CustomerService.java 2008-01-28 04:42:36 UTC (rev 799) +++ pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/CustomerService.java 2008-01-28 05:13:25 UTC (rev 800) @@ -1,36 +1,56 @@ package jp.sf.pal.pompei.service; import java.io.Serializable; +import java.math.BigDecimal; import java.util.List; +import java.util.Map; +import jp.sf.pal.pompei.PompeiException; +import jp.sf.pal.pompei.exentity.AddressBook; +import jp.sf.pal.pompei.exentity.Basket; import jp.sf.pal.pompei.exentity.Customer; public interface CustomerService extends Serializable { + // NOTE: from an old CustomerService public List<Customer> getCustomerList(); -// public Customer getCustomer(BigDecimal customersId); -// -// public void deleteCustomer(BigDecimal customersId); -// -// public AddressBook getAddressBook(BigDecimal addressBookId); -// -// public AddressBook getDefaultAddressBook(BigDecimal customerId); -// -// public void addAddressBook(AddressBook addressBook); -// -// public void deleteAddressBook(AddressBook addressBook); -// -// public List<AddressBook> getAddressBookList(BigDecimal customerId); -// -// public void addCustomer(Customer customers, AddressBook addressBook); -// -// public void addCustomer(Map<String, String> userInfo, Customer customers, -// AddressBook addressBook) throws CommonException; -// -// public Zone getZone(BigDecimal zoneId); -// -// public Customer getCustomerByPortalId(String portalId); -// -// public void updateCustomer(Customer customer, AddressBook addressBook); + public Customer getCustomer(BigDecimal customersId); + + public void deleteCustomer(BigDecimal customersId); + + public AddressBook getAddressBook(BigDecimal addressBookId); + + public AddressBook getDefaultAddressBook(BigDecimal customerId); + + public void addAddressBook(AddressBook addressBook); + + public void deleteAddressBook(AddressBook addressBook); + + public List<AddressBook> getAddressBookList(BigDecimal customerId); + + public void addCustomer(Customer customers, AddressBook addressBook); + + public void addCustomer(Map<String, String> userInfo, Customer customers, + AddressBook addressBook) throws PompeiException; + + public Customer getCustomerByPortalId(String portalId); + + public void updateCustomer(Customer customer, AddressBook addressBook); + + // NOTE: from an old CustomerService - END + + // NOTE: from an old CartService - BEGIN + public abstract Basket getBasket(BigDecimal customerId, BigDecimal productId); + + public abstract List<Basket> getBasketList(BigDecimal customerId); + + public abstract void addBasket(Basket customerBaskets); + + public abstract void updateBasket(Basket customerBasket); + + public abstract void deleteBasket(BigDecimal customerBasketId); + + public abstract void cleanupBasket(BigDecimal customerId); + // NOTE: from an old CartService - END } Added: pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/OrderService.java =================================================================== --- pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/OrderService.java 2008-01-28 04:42:36 UTC (rev 799) +++ pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/OrderService.java 2008-01-28 05:13:25 UTC (rev 800) @@ -0,0 +1,97 @@ +package jp.sf.pal.pompei.service; + +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Currency; +import java.util.List; + +import jp.sf.pal.pompei.PompeiException; +import jp.sf.pal.pompei.allcommon.cbean.PagingResultBean; +import jp.sf.pal.pompei.exentity.AddressBook; +import jp.sf.pal.pompei.exentity.CardTypeDescription; +import jp.sf.pal.pompei.exentity.Customer; +import jp.sf.pal.pompei.exentity.DeliveryMethod; +import jp.sf.pal.pompei.exentity.DeliveryMethodDescription; +import jp.sf.pal.pompei.exentity.OrderCardInfo; +import jp.sf.pal.pompei.exentity.OrderForm; +import jp.sf.pal.pompei.exentity.OrderNotification; +import jp.sf.pal.pompei.exentity.OrderProduct; +import jp.sf.pal.pompei.exentity.OrderStatus; +import jp.sf.pal.pompei.exentity.OrderStatusDescription; +import jp.sf.pal.pompei.exentity.PaymentMethod; +import jp.sf.pal.pompei.exentity.PaymentMethodDescription; +import jp.sf.pal.pompei.pager.OrderFormPager; + +public interface OrderService extends Serializable { + // NOTE: from an old OrderService - BEGIN + + public void updateOrderForm(OrderForm orderForm, OrderCardInfo orderCardInfo); + + public void deleteOrderForm(OrderForm orderForm); + + public OrderForm getOrderForm(BigDecimal orderFormId); + + public List<OrderForm> getOrderFormList(); + + public PagingResultBean<OrderForm> getOrderFormListByPager( + OrderFormPager orderFormPager); + + public String addOrderForm(Customer customer, + List<BigDecimal> customerBasketIdList, + AddressBook customerAddressBook, AddressBook deliveryAddressBook, + AddressBook billingAddressBook, PaymentMethod paymentMethod, + DeliveryMethod deliveryMethod, OrderCardInfo orderCardInfo, + Currency currency, BigDecimal subTotalPrice, BigDecimal tax, + BigDecimal deliveryPrice, BigDecimal paymentFee, + BigDecimal totalPrice) throws PompeiException; + + public Currency getCurrency(BigDecimal currencyId); + + public OrderStatus getOrderStatus(BigDecimal orderStatusId); + + public List<OrderStatusDescription> getOrderStatusDescriptionList( + BigDecimal languageId); + + public int getOrderFormCountByOrderStatus(BigDecimal orderStatusId); + + public OrderCardInfo getOrderCardInfo(BigDecimal orderCardInfoId); + + public List<OrderProduct> getOrderProductListByOrderFormId( + BigDecimal orderFormId); + + public List<OrderNotification> getOrderNotificationListByOrderFormId( + BigDecimal orderFormId); + + public void sendOrderNotifications(BigDecimal orderFormId, + BigDecimal[] orderNotificationIds) throws PompeiException; + + public OrderNotification getOrderNotification(BigDecimal orderNotificationId); + + // NOTE: from an old OrderService - END + // NOTE: from an old CardTypeService - BEGIN + public abstract List<CardTypeDescription> getCardTypeDescriptionList(); + + // NOTE: from an old CardTypeService - END + // NOTE: from an old DeliveryMethodSerivce - BEGIN + public abstract List<DeliveryMethodDescription> getDeliveryMethodDescriptionList(); + + public abstract DeliveryMethodDescription getDeliveryMethodDescription( + BigDecimal deliveryMethodId); + + public abstract void addDeliveryMethodDescription( + DeliveryMethodDescription d); + + public abstract void deleteDeliveryMethod(BigDecimal id); + + public abstract void updateDeliveryMethodDescription( + DeliveryMethodDescription d); + + // NOTE: from an old DeliveryMethodSerivce - END + // NOTE: from an old PaymentMethodService - BEGIN + public abstract List<PaymentMethodDescription> getPaymentMethodDescriptionList(); + + public abstract PaymentMethodDescription getPaymentMethodDescription( + BigDecimal paymentMethodId); + // NOTE: from an old PaymentMethodService - END + +} Property changes on: pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/OrderService.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/ProductService.java =================================================================== --- pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/ProductService.java 2008-01-28 04:42:36 UTC (rev 799) +++ pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/ProductService.java 2008-01-28 05:13:25 UTC (rev 800) @@ -0,0 +1,87 @@ +package jp.sf.pal.pompei.service; + +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.List; + +import jp.sf.pal.pompei.PompeiException; +import jp.sf.pal.pompei.allcommon.cbean.PagingResultBean; +import jp.sf.pal.pompei.exentity.CategoryDescription; +import jp.sf.pal.pompei.exentity.Manufacturer; +import jp.sf.pal.pompei.exentity.ManufacturerDescription; +import jp.sf.pal.pompei.exentity.Product; +import jp.sf.pal.pompei.exentity.ProductDescription; +import jp.sf.pal.pompei.pager.ProductPager; + +public interface ProductService extends Serializable { + // NOTE: from an old ProductService - BEGIN + public void addProductDescription(ProductDescription description, + BigDecimal categoryId) throws PompeiException; + + public void deleteProduct(BigDecimal productsId); + + public Product getProdcut(BigDecimal id); + + public ProductDescription getProdcutDescription(BigDecimal id); + + public ProductDescription getProdcutDescription(BigDecimal id, + BigDecimal languagesId); + + public List<Product> getProductList(BigDecimal categoryId); + + public PagingResultBean<Product> getProductListByPager( + ProductPager productPager); + + public void updateProductDescription(ProductDescription description) + throws PompeiException; + + public Manufacturer getManufacturer(BigDecimal manufacturersId); + +// public ProductImage getProductImageByProductIdAndType(BigDecimal productId, +// BigDecimal type); + + public PagingResultBean<Product> getTopProductList(String type, int num); + + // NOTE: from an old ProductService - END + // NOTE: from an old CategoryService - BEGIN + public List<CategoryDescription> getSubCategoryDescriptionList(BigDecimal id); + + public List<CategoryDescription> getSubCategoryDescriptionList( + BigDecimal id, BigDecimal languagesId); + + public CategoryDescription getCategoryDescription(BigDecimal categoryId); + + public CategoryDescription getCategoryDescription(BigDecimal categoryId, + BigDecimal languageId); + + public void addCategoryDescription(CategoryDescription d); + + public boolean hasChildCategory(BigDecimal id); + + public void deleteCategory(BigDecimal id); + + public void updateCategoryDescription(CategoryDescription d); + + public List<CategoryDescription> getCategoryDescriptionBreadcrumb( + BigDecimal categoryId); + // NOTE: from an old CategoryService - END + // NOTE: from an old ManufacturerService - BEGIN + public void addManufactureDescription(ManufacturerDescription info); + + public void deleteManufacture(BigDecimal id); + + public ManufacturerDescription getManufactureDescription(BigDecimal id); + + public ManufacturerDescription getManufactureDescription(BigDecimal id, + BigDecimal languageId); + + public List<ManufacturerDescription> getManufactureDescriptionList(); + + public List<ManufacturerDescription> getManufactureDescriptionList( + BigDecimal languagesId); + + public List<Manufacturer> getManufacturerList(); + + public void updateManufactureDescription(ManufacturerDescription info); + // NOTE: from an old ManufacturerService - END +} Property changes on: pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/ProductService.java ___________________________________________________________________ Name: svn:eol-style + native Modified: pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/impl/CustomerServiceImpl.java =================================================================== --- pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/impl/CustomerServiceImpl.java 2008-01-28 04:42:36 UTC (rev 799) +++ pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/impl/CustomerServiceImpl.java 2008-01-28 05:13:25 UTC (rev 800) @@ -1,9 +1,14 @@ package jp.sf.pal.pompei.service.impl; +import java.math.BigDecimal; import java.util.List; +import java.util.Map; +import jp.sf.pal.pompei.PompeiException; import jp.sf.pal.pompei.cbean.CustomerCB; import jp.sf.pal.pompei.exbhv.CustomerBhv; +import jp.sf.pal.pompei.exentity.AddressBook; +import jp.sf.pal.pompei.exentity.Basket; import jp.sf.pal.pompei.exentity.Customer; import jp.sf.pal.pompei.service.CustomerService; @@ -21,6 +26,92 @@ return getCustomerBhv().selectList(customerCB); } + public void addAddressBook(AddressBook addressBook) { + // TODO Auto-generated method stub + + } + + public void addBasket(Basket customerBaskets) { + // TODO Auto-generated method stub + + } + + public void addCustomer(Customer customers, AddressBook addressBook) { + // TODO Auto-generated method stub + + } + + public void addCustomer(Map<String, String> userInfo, Customer customers, + AddressBook addressBook) throws PompeiException { + // TODO Auto-generated method stub + + } + + public void cleanupBasket(BigDecimal customerId) { + // TODO Auto-generated method stub + + } + + public void deleteAddressBook(AddressBook addressBook) { + // TODO Auto-generated method stub + + } + + public void deleteBasket(BigDecimal customerBasketId) { + // TODO Auto-generated method stub + + } + + public void deleteCustomer(BigDecimal customersId) { + // TODO Auto-generated method stub + + } + + public AddressBook getAddressBook(BigDecimal addressBookId) { + // TODO Auto-generated method stub + return null; + } + + public List<AddressBook> getAddressBookList(BigDecimal customerId) { + // TODO Auto-generated method stub + return null; + } + + public Basket getBasket(BigDecimal customerId, BigDecimal productId) { + // TODO Auto-generated method stub + return null; + } + + public List<Basket> getBasketList(BigDecimal customerId) { + // TODO Auto-generated method stub + return null; + } + + public Customer getCustomer(BigDecimal customersId) { + // TODO Auto-generated method stub + return null; + } + + public Customer getCustomerByPortalId(String portalId) { + // TODO Auto-generated method stub + return null; + } + + public AddressBook getDefaultAddressBook(BigDecimal customerId) { + // TODO Auto-generated method stub + return null; + } + + public void updateBasket(Basket customerBasket) { + // TODO Auto-generated method stub + + } + + public void updateCustomer(Customer customer, AddressBook addressBook) { + // TODO Auto-generated method stub + + } + public CustomerBhv getCustomerBhv() { return customerBhv; } @@ -28,5 +119,4 @@ public void setCustomerBhv(CustomerBhv customerBhv) { this.customerBhv = customerBhv; } - } Added: pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/impl/OrderServiceImpl.java =================================================================== --- pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/impl/OrderServiceImpl.java 2008-01-28 04:42:36 UTC (rev 799) +++ pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/impl/OrderServiceImpl.java 2008-01-28 05:13:25 UTC (rev 800) @@ -0,0 +1,158 @@ +package jp.sf.pal.pompei.service.impl; + +import java.math.BigDecimal; +import java.util.Currency; +import java.util.List; + +import jp.sf.pal.pompei.PompeiException; +import jp.sf.pal.pompei.allcommon.cbean.PagingResultBean; +import jp.sf.pal.pompei.exentity.AddressBook; +import jp.sf.pal.pompei.exentity.CardTypeDescription; +import jp.sf.pal.pompei.exentity.Customer; +import jp.sf.pal.pompei.exentity.DeliveryMethod; +import jp.sf.pal.pompei.exentity.DeliveryMethodDescription; +import jp.sf.pal.pompei.exentity.OrderCardInfo; +import jp.sf.pal.pompei.exentity.OrderForm; +import jp.sf.pal.pompei.exentity.OrderNotification; +import jp.sf.pal.pompei.exentity.OrderProduct; +import jp.sf.pal.pompei.exentity.OrderStatus; +import jp.sf.pal.pompei.exentity.OrderStatusDescription; +import jp.sf.pal.pompei.exentity.PaymentMethod; +import jp.sf.pal.pompei.exentity.PaymentMethodDescription; +import jp.sf.pal.pompei.pager.OrderFormPager; +import jp.sf.pal.pompei.service.OrderService; + +public class OrderServiceImpl implements OrderService { + + private static final long serialVersionUID = -196488361529688068L; + + public void addDeliveryMethodDescription(DeliveryMethodDescription d) { + // TODO Auto-generated method stub + + } + + public String addOrderForm(Customer customer, + List<BigDecimal> customerBasketIdList, + AddressBook customerAddressBook, AddressBook deliveryAddressBook, + AddressBook billingAddressBook, PaymentMethod paymentMethod, + DeliveryMethod deliveryMethod, OrderCardInfo orderCardInfo, + Currency currency, BigDecimal subTotalPrice, BigDecimal tax, + BigDecimal deliveryPrice, BigDecimal paymentFee, + BigDecimal totalPrice) throws PompeiException { + // TODO Auto-generated method stub + return null; + } + + public void deleteDeliveryMethod(BigDecimal id) { + // TODO Auto-generated method stub + + } + + public void deleteOrderForm(OrderForm orderForm) { + // TODO Auto-generated method stub + + } + + public List<CardTypeDescription> getCardTypeDescriptionList() { + // TODO Auto-generated method stub + return null; + } + + public Currency getCurrency(BigDecimal currencyId) { + // TODO Auto-generated method stub + return null; + } + + public DeliveryMethodDescription getDeliveryMethodDescription( + BigDecimal deliveryMethodId) { + // TODO Auto-generated method stub + return null; + } + + public List<DeliveryMethodDescription> getDeliveryMethodDescriptionList() { + // TODO Auto-generated method stub + return null; + } + + public OrderCardInfo getOrderCardInfo(BigDecimal orderCardInfoId) { + // TODO Auto-generated method stub + return null; + } + + public OrderForm getOrderForm(BigDecimal orderFormId) { + // TODO Auto-generated method stub + return null; + } + + public int getOrderFormCountByOrderStatus(BigDecimal orderStatusId) { + // TODO Auto-generated method stub + return 0; + } + + public List<OrderForm> getOrderFormList() { + // TODO Auto-generated method stub + return null; + } + + public PagingResultBean<OrderForm> getOrderFormListByPager( + OrderFormPager orderFormPager) { + // TODO Auto-generated method stub + return null; + } + + public OrderNotification getOrderNotification(BigDecimal orderNotificationId) { + // TODO Auto-generated method stub + return null; + } + + public List<OrderNotification> getOrderNotificationListByOrderFormId( + BigDecimal orderFormId) { + // TODO Auto-generated method stub + return null; + } + + public List<OrderProduct> getOrderProductListByOrderFormId( + BigDecimal orderFormId) { + // TODO Auto-generated method stub + return null; + } + + public OrderStatus getOrderStatus(BigDecimal orderStatusId) { + // TODO Auto-generated method stub + return null; + } + + public List<OrderStatusDescription> getOrderStatusDescriptionList( + BigDecimal languageId) { + // TODO Auto-generated method stub + return null; + } + + public PaymentMethodDescription getPaymentMethodDescription( + BigDecimal paymentMethodId) { + // TODO Auto-generated method stub + return null; + } + + public List<PaymentMethodDescription> getPaymentMethodDescriptionList() { + // TODO Auto-generated method stub + return null; + } + + public void sendOrderNotifications(BigDecimal orderFormId, + BigDecimal[] orderNotificationIds) throws PompeiException { + // TODO Auto-generated method stub + + } + + public void updateDeliveryMethodDescription(DeliveryMethodDescription d) { + // TODO Auto-generated method stub + + } + + public void updateOrderForm(OrderForm orderForm, OrderCardInfo orderCardInfo) { + // TODO Auto-generated method stub + + } + +} Property changes on: pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/impl/OrderServiceImpl.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/impl/ProductServiceImpl.java =================================================================== --- pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/impl/ProductServiceImpl.java 2008-01-28 04:42:36 UTC (rev 799) +++ pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/impl/ProductServiceImpl.java 2008-01-28 05:13:25 UTC (rev 800) @@ -0,0 +1,164 @@ +package jp.sf.pal.pompei.service.impl; + +import java.math.BigDecimal; +import java.util.List; + +import jp.sf.pal.pompei.PompeiException; +import jp.sf.pal.pompei.allcommon.cbean.PagingResultBean; +import jp.sf.pal.pompei.exentity.CategoryDescription; +import jp.sf.pal.pompei.exentity.Manufacturer; +import jp.sf.pal.pompei.exentity.ManufacturerDescription; +import jp.sf.pal.pompei.exentity.Product; +import jp.sf.pal.pompei.exentity.ProductDescription; +import jp.sf.pal.pompei.pager.ProductPager; +import jp.sf.pal.pompei.service.ProductService; + +public class ProductServiceImpl implements ProductService { + + private static final long serialVersionUID = -5967665210840374017L; + + public void addCategoryDescription(CategoryDescription d) { + // TODO Auto-generated method stub + + } + + public void addManufactureDescription(ManufacturerDescription info) { + // TODO Auto-generated method stub + + } + + public void addProductDescription(ProductDescription description, + BigDecimal categoryId) throws PompeiException { + // TODO Auto-generated method stub + + } + + public void deleteCategory(BigDecimal id) { + // TODO Auto-generated method stub + + } + + public void deleteManufacture(BigDecimal id) { + // TODO Auto-generated method stub + + } + + public void deleteProduct(BigDecimal productsId) { + // TODO Auto-generated method stub + + } + + public CategoryDescription getCategoryDescription(BigDecimal categoryId) { + // TODO Auto-generated method stub + return null; + } + + public CategoryDescription getCategoryDescription(BigDecimal categoryId, + BigDecimal languageId) { + // TODO Auto-generated method stub + return null; + } + + public List<CategoryDescription> getCategoryDescriptionBreadcrumb( + BigDecimal categoryId) { + // TODO Auto-generated method stub + return null; + } + + public ManufacturerDescription getManufactureDescription(BigDecimal id) { + // TODO Auto-generated method stub + return null; + } + + public ManufacturerDescription getManufactureDescription(BigDecimal id, + BigDecimal languageId) { + // TODO Auto-generated method stub + return null; + } + + public List<ManufacturerDescription> getManufactureDescriptionList() { + // TODO Auto-generated method stub + return null; + } + + public List<ManufacturerDescription> getManufactureDescriptionList( + BigDecimal languagesId) { + // TODO Auto-generated method stub + return null; + } + + public Manufacturer getManufacturer(BigDecimal manufacturersId) { + // TODO Auto-generated method stub + return null; + } + + public List<Manufacturer> getManufacturerList() { + // TODO Auto-generated method stub + return null; + } + + public Product getProdcut(BigDecimal id) { + // TODO Auto-generated method stub + return null; + } + + public ProductDescription getProdcutDescription(BigDecimal id) { + // TODO Auto-generated method stub + return null; + } + + public ProductDescription getProdcutDescription(BigDecimal id, + BigDecimal languagesId) { + // TODO Auto-generated method stub + return null; + } + + public List<Product> getProductList(BigDecimal categoryId) { + // TODO Auto-generated method stub + return null; + } + + public PagingResultBean<Product> getProductListByPager( + ProductPager productPager) { + // TODO Auto-generated method stub + return null; + } + + public List<CategoryDescription> getSubCategoryDescriptionList(BigDecimal id) { + // TODO Auto-generated method stub + return null; + } + + public List<CategoryDescription> getSubCategoryDescriptionList( + BigDecimal id, BigDecimal languagesId) { + // TODO Auto-generated method stub + return null; + } + + public PagingResultBean<Product> getTopProductList(String type, int num) { + // TODO Auto-generated method stub + return null; + } + + public boolean hasChildCategory(BigDecimal id) { + // TODO Auto-generated method stub + return false; + } + + public void updateCategoryDescription(CategoryDescription d) { + // TODO Auto-generated method stub + + } + + public void updateManufactureDescription(ManufacturerDescription info) { + // TODO Auto-generated method stub + + } + + public void updateProductDescription(ProductDescription description) + throws PompeiException { + // TODO Auto-generated method stub + + } + +} Property changes on: pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/impl/ProductServiceImpl.java ___________________________________________________________________ Name: svn:eol-style + native Modified: pompei/libraries/pompei-db/trunk/src/test/java/jp/sf/pal/pompei/service/impl/CustomerServiceImplTest.java =================================================================== --- pompei/libraries/pompei-db/trunk/src/test/java/jp/sf/pal/pompei/service/impl/CustomerServiceImplTest.java 2008-01-28 04:42:36 UTC (rev 799) +++ pompei/libraries/pompei-db/trunk/src/test/java/jp/sf/pal/pompei/service/impl/CustomerServiceImplTest.java 2008-01-28 05:13:25 UTC (rev 800) @@ -19,7 +19,6 @@ public void getCustomerList() throws Exception { List<Customer> customerList = customerService.getCustomerList(); - System.out.println("TEST: "+customerList); assertEquals("1", ctx.getExpected(), customerList); } }