com.elasticpath.service
Interface EpEnumFactoryService

All Superinterfaces:
EpService
All Known Subinterfaces:
OrderPaymentStatusFactory, OrderReturnReasonFactory, OrderShipmentStatusFactory, OrderStatusFactory
All Known Implementing Classes:
OrderPaymentStatusFactoryImpl, OrderReturnReasonFactoryImpl, OrderShipmentStatusFactoryImpl, OrderStatusFactoryImpl

public interface EpEnumFactoryService
extends EpService

EpEnumFactoryService serves as the base interface for all enum factory service.


Method Summary
 java.lang.Object getObject(int code)
          Get a persistent instance with the given id.
 
Methods inherited from interface com.elasticpath.service.EpService
getElasticPath, setElasticPath
 

Method Detail

getObject

java.lang.Object getObject(int code)
                           throws EpServiceException
Get a persistent instance with the given id.

Parameters:
code - the enum instance code
Returns:
the enum instance if exists, otherwise null
Throws:
EpServiceException - - in case of any errors