|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.commerce.order.processor.OrderRepositoryUtils
public class OrderRepositoryUtils
This class contains utility methods which the load and save processors use to access the OrderRepository.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Constructor Summary | |
---|---|
OrderRepositoryUtils()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CLASS_VERSION
Constructor Detail |
---|
public OrderRepositoryUtils()
Method Detail |
---|
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 OrderTools
java.beans.IntrospectionException
- if an exception occurs while introspecting the item
RepositoryException
- 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 OrderTools
java.beans.IntrospectionException
- if an exception occurs while introspecting the item
RepositoryException
- 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 OrderTools
java.beans.IntrospectionException
- if an exception occurs while introspecting the item
RepositoryException
- 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 OrderTools
java.beans.IntrospectionException
- if an exception occurs while introspecting the item
RepositoryException
- 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 OrderTools
java.beans.IntrospectionException
- if an exception occurs while introspecting the item
RepositoryException
- 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 component
RepositoryException
- if an exception occurs while accessing the Repository
java.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 property
PropertyNotFoundException
- 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 set
java.beans.IntrospectionException
- if an exception occurs while introspecting the item to be saved
PropertyNotFoundException
- 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 property
java.beans.IntrospectionException
- if an exception occurs while introspecting the item to be saved
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |