com.elasticpath.service.order.impl
Class OrderPaymentStatusFactoryImpl
java.lang.Object
com.elasticpath.service.impl.AbstractEpServiceImpl
com.elasticpath.service.order.impl.OrderPaymentStatusFactoryImpl
- All Implemented Interfaces:
- EpEnumFactoryService, EpService, OrderPaymentStatusFactory
public class OrderPaymentStatusFactoryImpl
- extends AbstractEpServiceImpl
- implements OrderPaymentStatusFactory
Represet a default implementation of OrderPaymentStatusFactory
.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OrderPaymentStatusFactoryImpl
public OrderPaymentStatusFactoryImpl()
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
getOrderPaymentStatus
public OrderPaymentStatus getOrderPaymentStatus(int statusCode)
- Return the
OrderPaymentStatus
instance based on the given status code.
- Specified by:
getOrderPaymentStatus
in interface OrderPaymentStatusFactory
- Parameters:
statusCode
- the status code.
- Returns:
- the
OrderPaymentStatus
instance based on the given status code.
getOrderPaymentStatusMap
public java.util.Map getOrderPaymentStatusMap()
- Returns a map of orderPayment status. If a new orderShipmentStatus is added, make sure the add it to the map returned.
- Specified by:
getOrderPaymentStatusMap
in interface OrderPaymentStatusFactory
- Returns:
- a map of orderPayment status