com.ibm.commerce.order.commands
Class OrderFlowEntityBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.order.objects.OrderAccessBean
          com.ibm.commerce.order.commands.OrderFlowEntityBean
All Implemented Interfaces:
OrderAccessBeanData

public class OrderFlowEntityBean
extends OrderAccessBean

OrderFlowEntityBean is used in the OrderProcess approval flow. It is a BusinessFlowEntityBean and is intended to be passed from one state to another.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
IBM Copyright notice field.
Constructor Summary
OrderFlowEntityBean()
Method Summary
java.lang.Long getEntityId()
Returns the id of the entity bean.
java.lang.Integer getStateIdentifier()
Returns the stateIdentifier of the entity bean.
void save()
Saves the state information in the entity bean.
void setEntityId(java.lang.Long aId)
Sets the identifier of the entity bean and populates it, if it exists.
void setStateIdentifier(java.lang.Integer aStateIdentifier)
Sets the state identifier of the entity bean.
Methods inherited from class com.ibm.commerce.order.objects.OrderAccessBean
clearOrderItemsCache, commitCopyHelper, defaultJNDIName, findByMemberForUpdate, findByOrderForUpdate, findByOrderIds, findByStatus, findByStatusAndMember, findByStatusAndMemberScopedByLastUpdate, findByStatusAndMemberScopedByTimePlaced, findByStatusesMemberStoreHostedAtChannelStartEndDateAndDateField, findByStatusesMemberStoresRelTypeStartEndDateAndDateField, findByStatusesMemberStoresStartEndDateAndDateField, findByStatusMemberAndRelType, findByStatusMemberAndRelTypeScopedByLastUpdate, findByStatusMemberAndRelTypeScopedByTimePlaced, findByStatusMemberAndStore, findByStatusMemberAndStoreForUpdate, findByStatusMemberAndStoreHostedAtChannel, findByStatusMemberAndStoreScopedByLastUpdate, findByStatusMemberAndStoreScopedByTimePlaced, findByStatusMemberRelTypeAndStore, findByStatusMemberRelTypeAndStoreScopedByLastUpdate, findByStatusMemberRelTypeAndStoreScopedByTimePlaced, findByStatusStoreentIdAndDescription, findByStoreIdMemberIdAndStatus, findChildOrderByDistributorStoreIdsAndOrdersIdAndRelType, findCurrentPendingOrders, findCurrentPendingOrdersByMember, findCurrentPendingOrdersByMemberAndStore, findFullyTransferredOrdersByChannelStoreIdAndShopperId, findFullyTransferredOrdersByChannelStoreIdShopperIdStartEndDateAndDateField, findNotTransferredOrdersByChannelStoreIdAndShopperId, findNotTransferredOrdersByChannelStoreIdShopperIdStartEndDateAndDateField, findOrderTemplatesByMember, findOrderTemplatesByMemberAndUsage, findOrderTemplatesByStoreAndMember, findOrderTemplatesByStoreMemberAndUsage, findParentOrderByOrdersId, findPartlyTransferredOrdersByChannelStoreIdAndShopperId, findPartlyTransferredOrdersByChannelStoreIdShopperIdStartEndDateAndDateField, findPendingOrders, findPrivateRequisitionListByMember, findPrivateRequisitionListByMemberAndStore, findPrivateRequisitionListByMemberAndStoreHostedAtChannel, findPrivateRequisitionListByMemberOrderByLastUpdate, findProcessedOrdersByChannelStoreIdAndShopperId, findProcessedOrdersByChannelStoreIdShopperIdStartEndDateAndDateField, findShareableRequisitionListByMember, findShareableRequisitionListByMemberAndStore, findShareableRequisitionListByMemberAndStoreHostedAtChannel, findShareableRequisitionListOwnedByMember, findShareableRequisitionListOwnedByMemberAndStore, findShareableRequisitionListOwnedByMemberAndStoreHostedAtChannel, findTemplatedOrdersByStoreIdMemberIdAndUsage, findWithParameterizedPushDownQuery, findWithPushDownQuery, fulfills, getActualShipDate, getAddressId, getAddressIdInEJBType, getComment, getCurrency, getDescription, getEstimatedOrPromisedShipDate, getEstimatedShipDate, getField1, getField1InEJBType, getField2, getField2InEJBType, getField3, getGroupingAttributeValue, getLastUpdate, getLastUpdateInEJBType, getLock, getMemberId, getMemberIdInEJBType, getMerchantOrderId, getNotificationId, getNotificationIdInEJBType, getOrderChannelTypeId, getOrderChannelTypeIdInEJBType, getOrderId, getOrderIdInEJBType, getOrderItems, getOrderItemsByFulfillmentStatus, getOrderItemsByFulfillmentStatusForUpdate, getOrderItemsForUpdate, getOrderItemsSortedByCatalogEntryId, getOrderItemsSortedByOrderItemId, getOrganizationId, getOrganizationIdInEJBType, getOwner, getPlaceOrderTime, getPlaceOrderTimeInEJBType, getPromisedShipDate, getProviderOrderNumber, getProviderOrderNumberInEJBType, getSequence, getSequenceInEJBType, getShipAsComplete, getStatus, getStoreEntityId, getStoreEntityIdInEJBType, getSubOrders, getTotalAdjustment, getTotalAdjustmentByDisplayLevel, getTotalAdjustmentInEJBType, getTotalProductPrice, getTotalProductPriceInEJBType, getTotalShippingCharge, getTotalShippingChargeInEJBType, getTotalShippingTax, getTotalShippingTaxInEJBType, getTotalTax, getTotalTaxInEJBType, instantiateEJB, instantiateEJBByPrimaryKey, refreshCopyHelper, setAddressId, setAddressId, setComment, setCurrency, setDescription, setField1, setField1, setField2, setField2, setField3, setInitKey_orderId, setLastUpdate, setLastUpdate, setLastUpdateWithoutCheck, setLock, setMemberId, setMemberId, setMerchantOrderId, setNotificationId, setNotificationId, setOrderChannelTypeId, setOrderChannelTypeId, setOrganizationId, setOrganizationId, setPlaceOrderTime, setPlaceOrderTime, setProviderOrderNumber, setProviderOrderNumber, setSequence, setSequence, setShipAsComplete, setStatus, setStoreEntityId, setStoreEntityId, setTotalAdjustment, setTotalAdjustment, setTotalProductPrice, setTotalProductPrice, setTotalShippingCharge, setTotalShippingCharge, setTotalShippingTax, setTotalShippingTax, setTotalTax, setTotalTax
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
IBM Copyright notice field.
See Also:
Constant Field Values
Constructor Detail

OrderFlowEntityBean

public OrderFlowEntityBean()
Method Detail

getEntityId

public java.lang.Long getEntityId()
Returns the id of the entity bean. It is the same as the order id.
Returns:
the identifier of the entity bean.

getStateIdentifier

public java.lang.Integer getStateIdentifier()
Returns the stateIdentifier of the entity bean.
Returns:
the state identifier of the entity bean.

save

public void save()
Saves the state information in the entity bean.

setEntityId

public void setEntityId(java.lang.Long aId)
Sets the identifier of the entity bean and populates it, if it exists.

setStateIdentifier

public void setStateIdentifier(java.lang.Integer aStateIdentifier)
Sets the state identifier of the entity bean. Depending on the state identifier passed in, the status of the order will be changed accordingly.
  • If state identifier = 2 (rejected), the status of the order is set to 'N'.
  • If state identifier = 5 (pending approval), the status of the order is set to 'W'.

Feedback