Class OrderIdGeneratorImpl

java.lang.Object
com.skava.oms.service.order.impl.OrderIdGeneratorImpl
All Implemented Interfaces:
OrderIdGenerator

@Component public class OrderIdGeneratorImpl extends Object implements OrderIdGenerator
This class DeafultDeleteOrderImpl is the default method for the delete order. This will update the node values to null to update the order.
Author:
Infosys Equinox
  • Field Details

    • MAXGUIDLEN

      public static final int MAXGUIDLEN
      This is used for the generate order id if not given in collection properties
      See Also:
    • ORDERIDPROP

      public static final String ORDERIDPROP
      To get length of order id from collection properties.
      See Also:
    • ORDERIDTYPEPROP

      public static final String ORDERIDTYPEPROP
      Order id contains only numeric if this field is true. It will get from collection properties.
      See Also:
    • MIN_ORDER_ID_LENGTH

      protected static final int MIN_ORDER_ID_LENGTH
      Minimum order id length
      See Also:
    • MAX_ORDER_ID_LENGTH

      protected static final int MAX_ORDER_ID_LENGTH
      Maximum order id length
      See Also:
  • Constructor Details

    • OrderIdGeneratorImpl

      public OrderIdGeneratorImpl()
  • Method Details

    • process

      public String process(CollectionProperties[] refinedProperties, Order order)
      Specified by:
      process in interface OrderIdGenerator
    • generateMixGuid

      public String generateMixGuid(int orderIdLen)
      Parameters:
      orderIdLen - Indicates the length of the order id to be generated
      Returns:
      Returns the generated order id in alphanumeric characters
    • generateDigitGuid

      public String generateDigitGuid(int orderIdLen)
      Parameters:
      orderIdLen - Indicates the length of the order id to be generated
      Returns:
      Returns the generated order id in digits