Package com.skava.oms.service.order.impl
Class OrderIdGeneratorImpl
java.lang.Object
com.skava.oms.service.order.impl.OrderIdGeneratorImpl
- All Implemented Interfaces:
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 Summary
FieldsModifier and TypeFieldDescriptionprotected static final int
Maximum order id lengthstatic final int
This is used for the generate order id if not given in collection propertiesprotected static final int
Minimum order id lengthstatic final String
To get length of order id from collection properties.static final String
Order id contains only numeric if this field is true. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateDigitGuid
(int orderIdLen) generateMixGuid
(int orderIdLen) process
(CollectionProperties[] refinedProperties, Order order)
-
Field Details
-
MAXGUIDLEN
public static final int MAXGUIDLENThis is used for the generate order id if not given in collection properties- See Also:
-
ORDERIDPROP
To get length of order id from collection properties.- See Also:
-
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_LENGTHMinimum order id length- See Also:
-
MAX_ORDER_ID_LENGTH
protected static final int MAX_ORDER_ID_LENGTHMaximum order id length- See Also:
-
-
Constructor Details
-
OrderIdGeneratorImpl
public OrderIdGeneratorImpl()
-
-
Method Details
-
process
- Specified by:
process
in interfaceOrderIdGenerator
-
generateMixGuid
- Parameters:
orderIdLen
- Indicates the length of the order id to be generated- Returns:
- Returns the generated order id in alphanumeric characters
-
generateDigitGuid
- Parameters:
orderIdLen
- Indicates the length of the order id to be generated- Returns:
- Returns the generated order id in digits
-