public class OrderRepositoryUtils
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
CLASS_VERSION
Class version string 
 | 
| Constructor and Description | 
|---|
OrderRepositoryUtils()  | 
| Modifier and Type | Method and Description | 
|---|---|
static java.lang.Object | 
getPropertyValue(Order pOrder,
                java.lang.Object pBean,
                java.lang.String pPropertyName)
Introspects the given object for the property and returns its value. 
 | 
static RepositoryItem | 
getRepositoryItem(MutableRepository pMutRep,
                 CommerceIdentifier pCommerceIdentifier,
                 OrderTools pOrderTools)
Returns a RepositoryItem reference which refers to the CommerceIdentifier
 object which is supplied in pCommerceIdentifier. 
 | 
static java.util.List | 
getRepositoryItems(MutableRepository pMutRep,
                  java.util.List pCommerceIdentifierList,
                  java.util.List pSaveList,
                  OrderTools pOrderTools)
Returns a List of RepositoryItem references which refer to the CommerceIdentifier
 objects which are supplied in pCommerceIdentifierList. 
 | 
static java.util.Map | 
getRepositoryItems(MutableRepository pMutRep,
                  java.util.Map pCommerceIdentifierMap,
                  java.util.Map pSaveMap,
                  OrderTools pOrderTools)
Returns a Map of RepositoryItem references which refer to the CommerceIdentifier
 objects which are supplied in pCommerceIdentifierList. 
 | 
static java.lang.Object[] | 
getRepositoryItems(MutableRepository pMutRep,
                  java.lang.Object[] pCommerceIdentifierArray,
                  OrderTools pOrderTools)
Returns an array of RepositoryItem references which refer to the CommerceIdentifier
 objects which are supplied in pCommerceIdentifierArray. 
 | 
static java.util.Set | 
getRepositoryItems(MutableRepository pMutRep,
                  java.util.Set pCommerceIdentifierSet,
                  java.util.Set pSaveSet,
                  OrderTools pOrderTools)
Returns a Set of RepositoryItem references which refer to the CommerceIdentifier
 objects which are supplied in pCommerceIdentifierList. 
 | 
static boolean | 
hasProperty(Order pOrder,
           java.lang.Object pBean,
           java.lang.String pPropertyName)
Introspects the given object for the property and returns true if the property exists and false
 otherwise. 
 | 
static void | 
saveRepositoryItem(MutableRepository pMutRep,
                  MutableRepositoryItem pMutItem,
                  java.lang.String pPropertyName,
                  java.lang.Object pValue,
                  OrderTools pOrderTools)
Saves the given value to the given repository property. 
 | 
static void | 
setPropertyValue(Order pOrder,
                java.lang.Object pBean,
                java.lang.String pPropertyName,
                java.lang.Object pValue)
Uses introspection on the given object to set the given property value. 
 | 
public static final java.lang.String CLASS_VERSION
public static java.util.List getRepositoryItems(MutableRepository pMutRep, java.util.List pCommerceIdentifierList, java.util.List pSaveList, OrderTools pOrderTools) throws java.beans.IntrospectionException, RepositoryException
pMutRep - a reference to the repository which the given item exists inpCommerceIdentifierList - the List of CommerceIdentifier objects which the
        RepositoryItems map topOrderTools - a reference to the OrderToolsjava.beans.IntrospectionException - if an exception occurs while introspecting the itemRepositoryException - if an an exception occurs while accessing the Repositorypublic static java.util.Map getRepositoryItems(MutableRepository pMutRep, java.util.Map pCommerceIdentifierMap, java.util.Map pSaveMap, OrderTools pOrderTools) throws java.beans.IntrospectionException, RepositoryException
pMutRep - a reference to the repository which the given item exists inpCommerceIdentifierMap - the Map of CommerceIdentifier objects which the
        RepositoryItems map topOrderTools - a reference to the OrderToolsjava.beans.IntrospectionException - if an exception occurs while introspecting the itemRepositoryException - if an an exception occurs while accessing the Repositorypublic static java.util.Set getRepositoryItems(MutableRepository pMutRep, java.util.Set pCommerceIdentifierSet, java.util.Set pSaveSet, OrderTools pOrderTools) throws java.beans.IntrospectionException, RepositoryException
pMutRep - a reference to the repository which the given item exists inpCommerceIdentifierSet - the Set of CommerceIdentifier objects which the
        RepositoryItems map topOrderTools - a reference to the OrderToolsjava.beans.IntrospectionException - if an exception occurs while introspecting the itemRepositoryException - if an an exception occurs while accessing the Repositorypublic static java.lang.Object[] getRepositoryItems(MutableRepository pMutRep, java.lang.Object[] pCommerceIdentifierArray, OrderTools pOrderTools) throws java.beans.IntrospectionException, RepositoryException
pMutRep - a reference to the repository which the given item exists inpCommerceIdentifierArray - the Array of CommerceIdentifier objects which the
        RepositoryItems map topOrderTools - a reference to the OrderToolsjava.beans.IntrospectionException - if an exception occurs while introspecting the itemRepositoryException - if an an exception occurs while accessing the Repositorypublic static RepositoryItem getRepositoryItem(MutableRepository pMutRep, CommerceIdentifier pCommerceIdentifier, OrderTools pOrderTools) throws java.beans.IntrospectionException, RepositoryException
pMutRep - a reference to the repository which the given item exists inpCommerceIdentifier - the CommerceIdentifier object which the RepositoryItem maps topOrderTools - a reference to the OrderToolsjava.beans.IntrospectionException - if an exception occurs while introspecting the itemRepositoryException - if an an exception occurs while accessing the Repositorypublic static void saveRepositoryItem(MutableRepository pMutRep, MutableRepositoryItem pMutItem, java.lang.String pPropertyName, java.lang.Object pValue, OrderTools pOrderTools) throws java.beans.IntrospectionException, RepositoryException
pMutRep - the repository that contains the item to be savedpMutItem - the repository item to be savedpPropertyName - the repository item name that the item is saved topValue - the value of the property to savepOrderTools - the OrderTools Nucleus componentRepositoryException - if an exception occurs while accessing the Repositoryjava.beans.IntrospectionException - if an exception occurs while introspecting the item to be savedpublic static java.lang.Object getPropertyValue(Order pOrder, java.lang.Object pBean, java.lang.String pPropertyName) throws PropertyNotFoundException
pOrder - the current order contextpBean - the object which the property is found inpPropertyName - the name of the propertyPropertyNotFoundException - if the the property is not found in the beanpublic static void setPropertyValue(Order pOrder, java.lang.Object pBean, java.lang.String pPropertyName, java.lang.Object pValue) throws PropertyNotFoundException, java.beans.IntrospectionException
pOrder - the current order contextpBean - the object which the property is inpPropertyName - the name of the propertypValue - the value to setjava.beans.IntrospectionException - if an exception occurs while introspecting the item to be savedPropertyNotFoundException - if the the property is not found in the beanpublic static boolean hasProperty(Order pOrder, java.lang.Object pBean, java.lang.String pPropertyName) throws java.beans.IntrospectionException
pOrder - the current order contextpBean - the object which the property is found inpPropertyName - the name of the propertyjava.beans.IntrospectionException - if an exception occurs while introspecting the item to be saved