com.ibm.commerce.beans
Class SmartDataBeanImpl
java.lang.Object
com.ibm.commerce.beans.InputDataBeanImpl
com.ibm.commerce.beans.SmartDataBeanImpl
- All Implemented Interfaces:
- DataBean, InputDataBean, java.io.Serializable, SmartDataBean
- Direct Known Subclasses:
- AddressListDataBean, ApplicationTypeDataBean, ApprovalApproversLightListBean, ApprovalGroupTypeListBean, ApprovalSubmittersLightListBean, ApprovalTaskLightListBean, AssignDiscount, AttributeListDataBean, AttributeValueListDataBean, BusinessLogicDataBean, CalculationCodeListDataBean, CampaignCollateralDataBeanBase, CampaignCollateralListDataBeanBase, CampaignCollateralTypeDataBean, CampaignCollateralTypeListDataBean, CampaignDataBeanBase, CampaignEmsDataBeanBase, CampaignEmsListDataBeanBase, CampaignInitiativeDataBeanBase, CampaignInitiativeListDataBeanBase, CampaignInitiativeScheduleDataBeanBase, CampaignInitiativeScheduleListDataBeanBase, CampaignListDataBeanBase, CatalogFilterDataBean, CategoryListDataBean, CategoryListResultsDataBean, CollateralListDataBean, ControllerCommandInvokerDataBean, CurrencyDataBean, CustomerGroupDataBeanBase, CustomerProfileDataBeanBase, CustomProductSetDataBean, DiscountCalculationCodeListBeanBase, DiscountChooseListBeanBase, DiscountDetailsBeanBase, EmailActivityDataBeanBase, EmailActivityListDataBeanBase, EmailActivitySummaryDataBeanBase, EmailActivityUrlHelperDataBeanBase, EmailConfigurationDataBeanBase, EmailConfigurationTimeDataBeanBase, EmailMessageDataBeanBase, EmailMessageListDataBeanBase, EmailUserReceiveDataBeanBase, ErrorDataBean, FulfillmentCenterDataBean, InventoryAdjustmentCodeDataBean, MemberDataBean, MemberGroupDataBean, NegotiationListBean, PaymentPolicyListDataBean, PayStatusListPMDataBean, PayStatusPMDataBean, PickBatchDataBean, PolicyDataBean, PolicyListDataBean, PRequisitionByMemberIdAndStoreHostedAtChannelStoreIdListListDataBeanBase, PRequisitionByMemberIdAndStoreIdListListDataBeanBase, PRequisitionByMemberIdListListDataBeanBase, PriceTCMasterCatalogWithFilteringDataBean, ProductSearchListDataBean, QuantityUnitDataBean, RegistryItemsDataBean, ReturnReasonsListDataBean, RLDiscountDataBeanBase, RLDiscountListBeanBase, RLDiscountShippingModeDataBeanBase, RLProductDiscountDataBeanBase, RLPromotionBean, SchedulerCommandsDataBean, SchedulerItemsDataBean, SchedulerOrderByMemberIdListListDataBeanBase, SchedulerStatusDataBean, SearchBaseDataBean, SearchDataBean, SegmentAccountListDataBean, SegmentCountriesDataBean, SegmentCurrenciesDataBean, SegmentCustomerListDataBean, SegmentDataBeanBase, SegmentDefaultCurrencyDataBean, SegmentLanguagesDataBean, SegmentListDataBeanBase, SegmentMemberGroupsDataBean, SegmentStatesDataBean, SortedListBean, SRequisitionByMemberIdAndStoreHostedAtChannelStoreIdListListDataBeanBase, SRequisitionByMemberIdAndStoreIdListListDataBeanBase, SRequisitionByMemberIdListListDataBeanBase, SRequisitionOwnedByMemberIdAndStoreHostedAtChannelStoreIdListListDataBeanBase, SRequisitionOwnedByMemberIdAndStoreIdListListDataBeanBase, SRequisitionOwnedByMemberIdListListDataBeanBase, UrlRegistryItemsDataBean, UsablePaymentTCListDataBean, VendorDataBean, WcsAppDataBean
- public class SmartDataBeanImpl
- extends InputDataBeanImpl
- implements SmartDataBean
A SmartDataBean is a DataBean that can populate itself without requiring a data bean command. The input command context and the request properties provide sufficient information for it to populate itself. Example of this is a DataBean that extends from an AccessBean.
- See Also:
- Serialized Form
Method Summary |
boolean |
fulfills(java.lang.Long member, java.lang.String relationship)
Determines if a given member fulfills a given relationship with the resource. |
CommandContext |
getCommandContext()
Return the command context. |
java.lang.Object[] |
getResources()
This method returns the resources resources accessed by this data bean It will return null if no resource if being accessed by this data bean. |
void |
populate()
Populates the databean with elements. |
void |
setCommandContext(CommandContext context)
Sets the command context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- IBM Copyright notice field.
- See Also:
- Constant Field Values
commandContext
protected CommandContext commandContext
- The command context.
SmartDataBeanImpl
public SmartDataBeanImpl()
- Creates a Smart DataBean.
getCommandContext
public CommandContext getCommandContext()
- Return the command context.
-
- Specified by:
- getCommandContext in interface SmartDataBean
-
- Returns:
- The command context.
getResources
public java.lang.Object[] getResources()
throws ECException
- This method returns the resources resources accessed by this data bean It will return null if no resource if being accessed by this data bean.
-
- Returns:
- Will always return null.
- Throws:
- ECException - should not happen since the method only returns null.
populate
public void populate()
throws java.lang.Exception
- Populates the databean with elements.
-
- Specified by:
- populate in interface SmartDataBean
-
- Throws:
- java.lang.Exception - should not happen since there is no data retrieved to populate the databean.
setCommandContext
public void setCommandContext(CommandContext context)
- Sets the command context.
-
- Specified by:
- setCommandContext in interface SmartDataBean
-
- Parameters:
- context - the command context.
fulfills
public boolean fulfills(java.lang.Long member,
java.lang.String relationship)
throws java.lang.Exception,
java.rmi.RemoteException
- Determines if a given member fulfills a given relationship with the resource.
-
- Parameters:
- member - the identity of the member.
- relationship - the relationship the member has with respect to the resource.
- Returns:
- Will always return false.
- Throws:
- java.rmi.RemoteException - should not happen since the method only returns false.
- java.lang.Exception - should not happen since the method only returns false.
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.