public class ResolveOrdersCmdImpl extends TaskCommandImpl implements ResolveOrdersCmd
Modifier and Type | Field and Description |
---|---|
protected java.lang.Long | _memberId
control
|
protected boolean | _newPendingOrder
control
|
protected OrderAccessBean | _orderAB
control
|
protected java.lang.String[] | _orderAbbreviations
control
|
protected java.util.Hashtable | _orderIdHash
control
|
protected java.util.Hashtable | _resolvedAbbreviationCache
control
|
protected java.util.Hashtable | _resolvedIdCache
control
|
protected boolean | _setToCurrent
control
|
protected java.lang.Integer | _storeId
control
|
protected boolean | _strict
control
|
protected static java.lang.String | CHECK_PARAMETERS
method name
|
protected static boolean | CHILDREN
control
|
static java.lang.String | COPYRIGHT
The IBM copyright string
|
protected static java.lang.String | GET_CURRENT_PENDING_ORDERS
method name
|
protected static java.lang.String | GET_FROM_CACHE_LONG
method name
|
protected static java.lang.String | GET_FROM_CACHE_TUPLE
method name
|
protected static java.lang.String | GET_PROFILE
method name
|
protected boolean | ibIncompleteParsingAllowed
control
|
protected int | inInitialParsingPosition
control
|
protected int | inParsingPosition
control
|
protected static java.lang.String | INSTANCE_NAME
label
|
protected java.util.Set | isetAllowedAbbreviations
control
|
protected java.util.Set | isetDisallowedAbbreviations
control
|
protected java.util.Set | isetUnprocessedAbbreviations
control
|
protected java.lang.String | istrCurrentAbbreviation
control
|
protected static boolean | PARENTS
control
|
protected static java.lang.String | PERFORM_EXECUTE
method name
|
protected static java.lang.String | RESET_CACHE
method name
|
Constructor and Description |
---|
ResolveOrdersCmdImpl()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Enumeration | getCurrentPendingOrders()
Must override//LJL Java doc
|
static ResolveOrdersCmd | getInstance(CommandContext aCommandContext)
Returns the instance from the transaction cache.
|
protected java.lang.String | getInternalOrderAbbreviation(java.lang.String orderAbbreviation)
Gets the internal order abbreviation
|
java.lang.Long[] | getOrderIds()
getOrderIds
|
protected com.ibm.commerce.order.objects.OrderQuotationRelAccessBean[] | getOrderQuotationRels()
getOrderQuotationRels
|
OrderAccessBean[] | getOrders()
Gets the orders
|
int | getParsingPosition()
Gets the parsing position
|
protected java.util.Enumeration | getProfile()
Must override in sub class //LJL JAVA doc
|
protected OrderAccessBean | getRefreshedFromCache(java.lang.Long aKey)
getRefreshedFromCache
|
protected OrderAccessBean[] | getRefreshedFromCache(com.ibm.commerce.order.utils.Tuple aKey)
getRefreshedFromCache
|
protected java.util.Enumeration | getRelatedOrders(boolean parentsOrChildren)
getRelatedOrders
|
java.util.Set | getUnprocessedAbbreviations()
Gets the unprocessed abbreviations
|
boolean | isNewPendingOrder()
This method is equivalent to (getUnprocessedAbbreviations() != null && getUnprocessedAbbreviations().contains(ResolveOrdersCmd.NEW_PENDING_ORDER))
|
boolean | isSetToCurrent()
This method is equivalent to (getUnprocessedAbbreviations() != null && getUnprocessedAbbreviations().contains(ResolveOrdersCmd.CURRENT_NEW_CURRENT))
|
protected java.lang.Long | parseLong()
This method returns the parsing long.
|
protected boolean | parseToken(java.lang.String astrToken) |
void | performExecute()
Simple Order main function
|
protected OrderAccessBean[] | putInCache(com.ibm.commerce.order.utils.Tuple key, OrderAccessBean[] aarAB)
putInCache
|
static void | releaseInstance(CommandContext aCommandContext)
Releases the instance from the transaction cache, if there is one in the transaction cache.
|
static void | releaseInstance(java.lang.Integer anStoreId)
Releases the instance from the transaction cache, if there is one in the transaction cache.
|
void | reset()
reset all member vars
|
protected void | resetCache()
resetCache
|
void | setAllowedAbbreviations(java.util.Set asetAllowedAbbreviations)
Sets the allowed abbreviations
|
void | setDisallowedAbbreviations(java.util.Set asetDisallowedAbbreviations)
Sets the abbreviations that are not allowed
|
void | setForeignOrdersAllowed(boolean abForeignOrdersAllowed)
Sets if foreign orders are allowed
|
void | setIncompleteParsingAllowed(boolean abIncompleteParsingAllowed)
Sets if incomplete parsing is allowed
|
void | setInitialParsingPosition(int anInitialParsingPosition)
Sets the initial paring position
|
void | setMemberId(java.lang.Long memberId)
Sets the member ID
|
void | setOrderAbbreviations(java.lang.String[] orderAbbreviations)
Sets the order abbreviations
|
void | setStoreId(java.lang.Integer storeId)
Sets the store ID
|
void | setStrict(boolean strict)
This method is equivalent to setForeignOrdersAllowed(!strict)
|
void | validateParameters()
This method extracts and validates the input parameters of this command implementation.
|
public static final java.lang.String COPYRIGHT
protected static final java.lang.String CHECK_PARAMETERS
protected static final java.lang.String GET_CURRENT_PENDING_ORDERS
protected static final java.lang.String GET_PROFILE
protected static final java.lang.String PERFORM_EXECUTE
protected static final java.lang.String GET_FROM_CACHE_TUPLE
protected static final java.lang.String GET_FROM_CACHE_LONG
protected static final java.lang.String RESET_CACHE
protected static final boolean PARENTS
protected static final boolean CHILDREN
protected java.util.Hashtable _resolvedAbbreviationCache
protected java.util.Hashtable _resolvedIdCache
protected java.lang.Long _memberId
protected boolean _newPendingOrder
protected OrderAccessBean _orderAB
protected java.lang.String[] _orderAbbreviations
protected java.util.Hashtable _orderIdHash
protected boolean _setToCurrent
protected java.lang.Integer _storeId
protected boolean _strict
protected java.util.Set isetAllowedAbbreviations
protected java.util.Set isetDisallowedAbbreviations
protected java.util.Set isetUnprocessedAbbreviations
protected boolean ibIncompleteParsingAllowed
protected int inInitialParsingPosition
protected java.lang.String istrCurrentAbbreviation
protected int inParsingPosition
protected static final java.lang.String INSTANCE_NAME
public static ResolveOrdersCmd getInstance(CommandContext aCommandContext) throws ECException
public static void releaseInstance(CommandContext aCommandContext)
public static void releaseInstance(java.lang.Integer anStoreId)
protected java.util.Enumeration getCurrentPendingOrders() throws ECException
public void reset()
protected java.lang.String getInternalOrderAbbreviation(java.lang.String orderAbbreviation)
public java.lang.Long[] getOrderIds()
public OrderAccessBean[] getOrders()
protected java.util.Enumeration getProfile() throws ECException
public boolean isNewPendingOrder()
public boolean isSetToCurrent()
protected com.ibm.commerce.order.objects.OrderQuotationRelAccessBean[] getOrderQuotationRels() throws ECException
protected java.util.Enumeration getRelatedOrders(boolean parentsOrChildren) throws ECException
public void performExecute() throws ECException
protected OrderAccessBean[] putInCache(com.ibm.commerce.order.utils.Tuple key, OrderAccessBean[] aarAB) throws java.rmi.RemoteException, javax.naming.NamingException, javax.ejb.CreateException
protected OrderAccessBean[] getRefreshedFromCache(com.ibm.commerce.order.utils.Tuple aKey)
protected OrderAccessBean getRefreshedFromCache(java.lang.Long aKey)
protected void resetCache()
public void setMemberId(java.lang.Long memberId)
public void setOrderAbbreviations(java.lang.String[] orderAbbreviations)
public void setStoreId(java.lang.Integer storeId)
public void setStrict(boolean strict)
public void validateParameters() throws ECException
public void setForeignOrdersAllowed(boolean abForeignOrdersAllowed)
public void setAllowedAbbreviations(java.util.Set asetAllowedAbbreviations)
public void setDisallowedAbbreviations(java.util.Set asetDisallowedAbbreviations)
public java.util.Set getUnprocessedAbbreviations()
public void setIncompleteParsingAllowed(boolean abIncompleteParsingAllowed)
public void setInitialParsingPosition(int anInitialParsingPosition)
public int getParsingPosition()
protected java.lang.Long parseLong()
protected boolean parseToken(java.lang.String astrToken)