com.elasticpath.service.order.impl
Class OrderStatusFactoryImpl
java.lang.Object
com.elasticpath.service.impl.AbstractEpServiceImpl
com.elasticpath.service.order.impl.OrderStatusFactoryImpl
- All Implemented Interfaces:
- EpEnumFactoryService, EpService, OrderStatusFactory
public class OrderStatusFactoryImpl
- extends AbstractEpServiceImpl
- implements OrderStatusFactory
Represet a default implementation of OrderStatusFactory.
|
Method Summary |
java.lang.Object |
getObject(int code)
Get a persistent instance with the given id. |
OrderStatus |
getOrderStatus(int statusCode)
Return the OrderStatus instance based on the given status code. |
java.util.Map |
getOrderStatusMap()
Returns a map of order status. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OrderStatusFactoryImpl
public OrderStatusFactoryImpl()
getObject
public java.lang.Object getObject(int code)
throws EpServiceException
- Get a persistent instance with the given id.
- Specified by:
getObject in interface EpEnumFactoryService
- Parameters:
code - the enum instance code
- Returns:
- the enum instance if exists, otherwise null
- Throws:
EpServiceException - - in case of any errors
getOrderStatus
public OrderStatus getOrderStatus(int statusCode)
- Return the
OrderStatus instance based on the given status code.
- Specified by:
getOrderStatus in interface OrderStatusFactory
- Parameters:
statusCode - the status code.
- Returns:
- the
OrderStatus instance based on the given status code.
getOrderStatusMap
public java.util.Map getOrderStatusMap()
- Returns a map of order status.
- Specified by:
getOrderStatusMap in interface OrderStatusFactory
- Returns:
- a map of order status