java.lang.Object | +--com.ibm.commerce.order.calculation.DirectAttachmentHelper
A helper class for retrieving and caching direct attachments.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT The IBM copyright notice field. |
Constructor Summary | |
---|---|
DirectAttachmentHelper() Constructor for DirectAttachmentHelper. |
Method Summary | |
---|---|
OrderItemCalculationCodeAccessBean[] |
getOrderItemLevelAttachments(java.lang.Long anOrderItemId,
java.lang.Integer anCodeId) Returns the orderitem level direct attachments associated with an orderitem that reference the calculation code specified. |
CalculationCodeAccessBean[] |
getOrderItemLevelCodes(java.lang.Long anOrderItemId,
java.lang.Integer anUsageId, java.sql.Timestamp aTimestamp) Returns the calculation codes that are directly attached to an orderitem via orderitem level direct attachments. |
OrderCalculationCodeAccessBean[] |
getOrderLevelAttachments(java.lang.Long anOrderId,
java.lang.Integer anCodeId) Returns the order level direct attachments associated with an order that reference the calculation code specified. |
CalculationCodeAccessBean[] |
getOrderLevelCodes(java.lang.Long anOrderId,
java.lang.Integer anUsageId, java.sql.Timestamp aTimestamp) Returns the calculation codes that are directly attached to an order via order level direct attachments. |
boolean |
isOrderItemLevelAttachmentsOverride(java.lang.Long anOrderItemId,
java.lang.Integer anUsageId, java.sql.Timestamp aTimestamp) Returns whether any orderitem level direct attachment associated with an orderitem is marked as "overrideIndirectAttachments". |
boolean |
isOrderLevelAttachmentsOverride(java.lang.Long anOrderId,
java.lang.Integer anUsageId, java.sql.Timestamp aTimestamp) Returns whether any order level direct attachment associated with an order is marked as "overrideIndirectAttachments". |
void |
reset() Resets this helper instance. |
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 COPYRIGHT
Constructor Detail |
---|
public DirectAttachmentHelper()
Method Detail |
---|
public OrderItemCalculationCodeAccessBean[] getOrderItemLevelAttachments(java.lang.Long anOrderItemId, java.lang.Integer anCodeId) throws ECException
anOrderItemId
- the orderitem ID.anCodeId
- the calculation code ID.ECException
public CalculationCodeAccessBean[] getOrderItemLevelCodes(java.lang.Long anOrderItemId, java.lang.Integer anUsageId, java.sql.Timestamp aTimestamp) throws ECException
anOrderItemId
- the orderitem ID.anUsageId
- the calculation usage ID.aTimestamp
- the timestamp.ECException
public OrderCalculationCodeAccessBean[] getOrderLevelAttachments(java.lang.Long anOrderId, java.lang.Integer anCodeId) throws ECException
anOrderId
- the order ID.anCodeId
- the calculation code ID.ECException
public CalculationCodeAccessBean[] getOrderLevelCodes(java.lang.Long anOrderId, java.lang.Integer anUsageId, java.sql.Timestamp aTimestamp) throws ECException
anOrderId
- the orderitem ID.anUsageId
- the calculation usage ID.aTimestamp
- the timestamp.ECException
public boolean isOrderItemLevelAttachmentsOverride(java.lang.Long anOrderItemId, java.lang.Integer anUsageId, java.sql.Timestamp aTimestamp) throws ECException
anOrderItemId
- the orderitem ID.anUsageId
- the calculation usage ID.aTimestamp
- the timestamp.ECException
public boolean isOrderLevelAttachmentsOverride(java.lang.Long anOrderId, java.lang.Integer anUsageId, java.sql.Timestamp aTimestamp) throws ECException
anOrderId
- the orderitem ID.anUsageId
- the calculation usage ID.aTimestamp
- the timestamp.ECException
public void reset()