com.ibm.commerce.order.beans
Class OrderItemCompRelDataBean
- java.lang.Object
-
- com.ibm.commerce.persistence.AbstractJpaEntityAccessBean
-
- com.ibm.commerce.order.objects.OrderItemComponentRelationsAccessBean
-
- com.ibm.commerce.order.beansrc.OrderItemComponentRelationsDataBeanBase
-
- com.ibm.commerce.order.beans.OrderItemCompRelDataBean
-
- All Implemented Interfaces:
- DataBean, InputDataBean, SmartDataBean, Delegator, Protectable, java.io.Serializable
public class OrderItemCompRelDataBean extends com.ibm.commerce.order.beansrc.OrderItemComponentRelationsDataBeanBase implements InputDataBean, SmartDataBean
OrderItemComRelDataBean. This bean is used for getting the immediate items and child kits from the OICOMPREL database table and OICOMPLIST database table.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
COPYRIGHT
The IBM copyright notice field.-
Fields inherited from interface com.ibm.commerce.beans.DataBean
emptyString
-
-
Constructor Summary
Constructors Constructor and Description OrderItemCompRelDataBean()
The constructor.OrderItemCompRelDataBean(com.ibm.commerce.order.objects.OrderItemComponentRelationsAccessBean aabOrderItemComponentRelations)
Constructs an OrderItemComponentRelationsDataBean from an OrderItemComponentRelationsAccessBean by extracting the OrderItem EJB reference from the OrderItemComponentRelationsAccessBean.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description OrderItemCompRelDataBean[]
getChildrenKit()
Returns the child kits associated with this oicomprel id as parent.CommandContext
getCommandContext()
Gets Command Context.ItemDataBean[]
getItemDataBean()
Returns thecom.ibm.commerce.catalog.beans.ItemDataBean
corresponding to the catalog entry if this catalog entry is an item.java.lang.Long
getItemspc_id()
Gets the item specification id.java.lang.Long
getOicomprel_id()
Gets OICOMPRELID, the primary key.TypedProperty
getRequestProperties()
Gets Request Properties.void
populate()
Loads data into the data bean when theDataBeanManager.activate()
runs.void
setCommandContext(CommandContext aCommandContext)
Sets the command context.void
setOicomprel_id(java.lang.Long oicomprelId)
Sets OICOMPRELID, the init key.void
setRequestProperties(TypedProperty aRequestProperties)
Sets Request Property.-
Methods inherited from class com.ibm.commerce.order.beansrc.OrderItemComponentRelationsDataBeanBase
getDelegate
-
Methods inherited from class com.ibm.commerce.order.objects.OrderItemComponentRelationsAccessBean
findByConfiguration_id, findByConfigurationIdAndNotAssociatedWithOrderItems, findByItemspc_id, findByOicomprel_id, findByOrderitems_id, findByOrderitemsIdAndConfigurationId, findByParent_id, findByRequired, findByRequiredItemSpecs, findByRequiredOrderItems, fulfills, getConfiguration_id, getEntity, getOrderitems_id, getOwner, getParent_id, getRequired, instantiateEntity, setConfiguration_id, setInitKey_oicomprel_id, setItemspc_id, setOrderitems_id, setParent_id, setRequired
-
Methods inherited from class com.ibm.commerce.persistence.AbstractJpaEntityAccessBean
createAccessBean, createAccessBean, createAccessBeanCollection, createAccessBeanCollection, createEntityCollection, detach, remove, setUseDataCache, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
The IBM copyright notice field.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OrderItemCompRelDataBean
public OrderItemCompRelDataBean()
The constructor.
-
OrderItemCompRelDataBean
public OrderItemCompRelDataBean(com.ibm.commerce.order.objects.OrderItemComponentRelationsAccessBean aabOrderItemComponentRelations)
Constructs an OrderItemComponentRelationsDataBean from an OrderItemComponentRelationsAccessBean by extracting the OrderItem EJB reference from the OrderItemComponentRelationsAccessBean. Note: Consider using OrderItemComponentRelationsDataBean(OrderItemComponentRelationsAccessBean aabOrderItemComponentRelations,CommandContext aCommandContext) if commandContext is available.- Parameters:
aabOrderItemComponentRelations
- OrderItemComponentRelationsAccessBean
-
-
Method Detail
-
setRequestProperties
public void setRequestProperties(TypedProperty aRequestProperties)
Sets Request Property. Currently the Request Property is not used.- Specified by:
setRequestProperties
in interfaceInputDataBean
- Parameters:
aRequestProperties
- com.ibm.commerce.datatype.TypedProperty- Throws:
java.lang.Exception
-
getCommandContext
public CommandContext getCommandContext()
Gets Command Context.- Specified by:
getCommandContext
in interfaceSmartDataBean
- Returns:
- CommandContext
-
populate
public void populate()
Loads data into the data bean when theDataBeanManager.activate()
runs.- Specified by:
populate
in interfaceSmartDataBean
- Throws:
java.lang.Exception
-
setCommandContext
public void setCommandContext(CommandContext aCommandContext)
Sets the command context.- Specified by:
setCommandContext
in interfaceSmartDataBean
- Parameters:
aCommandContext
- com.ibm.commerce.command.CommandContext
-
getItemDataBean
public ItemDataBean[] getItemDataBean() throws ECSystemException
Returns thecom.ibm.commerce.catalog.beans.ItemDataBean
corresponding to the catalog entry if this catalog entry is an item. Otherwise returns null.- Returns:
- the
com.ibm.commerce.catalog.beans.ItemDataBean
corresponding to the catalog entry - Throws:
ECSystemException
RemoteException
CreateException
FinderException
NamingException
-
getChildrenKit
public OrderItemCompRelDataBean[] getChildrenKit() throws ECSystemException
Returns the child kits associated with this oicomprel id as parent.- Returns:
- an array of OrderItemCompRelDataBeans
- Throws:
ECSystemException
-
getOicomprel_id
public java.lang.Long getOicomprel_id()
Gets OICOMPRELID, the primary key.- Overrides:
getOicomprel_id
in classcom.ibm.commerce.order.objects.OrderItemComponentRelationsAccessBean
- Returns:
- oicomprel_id
- Throws:
RemoteException
CreateException
FinderException
NamingException
-
getItemspc_id
public java.lang.Long getItemspc_id()
Gets the item specification id.- Overrides:
getItemspc_id
in classcom.ibm.commerce.order.objects.OrderItemComponentRelationsAccessBean
- Returns:
- Itemspc_id item specification id
- Throws:
RemoteException
CreateException
FinderException
NamingException
-
setOicomprel_id
public void setOicomprel_id(java.lang.Long oicomprelId)
Sets OICOMPRELID, the init key.- Overrides:
setOicomprel_id
in classcom.ibm.commerce.order.objects.OrderItemComponentRelationsAccessBean
- Parameters:
oicomprelId
-
-
getRequestProperties
public TypedProperty getRequestProperties()
Gets Request Properties. Currently returns null.- Specified by:
getRequestProperties
in interfaceInputDataBean
- Returns:
- TypedProperty
-
-