com.ibm.commerce.tools.contract.beans
Class ShippingTCShipToAddressDataBean
- java.lang.Object
-
- com.ibm.commerce.tools.contract.beans.ShippingTCShipToAddressDataBean
-
- All Implemented Interfaces:
- com.ibm.commerce.beans.DataBean, com.ibm.commerce.beans.InputDataBean, com.ibm.commerce.beans.SmartDataBean, com.ibm.commerce.security.Delegator, java.io.Serializable
public class ShippingTCShipToAddressDataBean extends java.lang.Object implements com.ibm.commerce.beans.SmartDataBean, com.ibm.commerce.security.Delegator
This data bean represents a Shipping Term and Condition Ship To Address object. When retrieving all the data associated with a Shipping Address Term and Condition, the data bean will be called. Sets the contract and language identifiers in order to populate the bean. The data bean maps to a database table TERMCOND- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ShippingTCShipToAddressDataBean(java.lang.Long contractId, java.lang.Integer languageId)
Constructs an ShippingTCShipToAddressDataBean from an existing contract identifier Finds the Shipping Address terms and conditions in the contract
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description com.ibm.commerce.command.CommandContext
getCommandContext()
Returns the current command's contextjava.lang.Long
getContractId()
Gets the contract identifier for the contract this term and condition are incom.ibm.commerce.security.Protectable
getDelegate()
Returns the access control delegate of this data beanjava.lang.String
getLanguageId()
Gets the language identifier in which the data was loadedcom.ibm.commerce.datatype.TypedProperty
getRequestProperties()
Gets the request propertiesjava.util.Vector
getShippingAddress()
Gets the shipping address term and conditions in the contractjava.util.Vector
getShippingAddress(int i)
Gets a shipping address term and condition in the contractvoid
populate()
This method is used to retrieve the Shipping Address data in the contract.void
setCommandContext(com.ibm.commerce.command.CommandContext newICommandContext)
Sets the command contextvoid
setRequestProperties(com.ibm.commerce.datatype.TypedProperty param)
Sets the request properties.
-
-
-
Constructor Detail
-
ShippingTCShipToAddressDataBean
public ShippingTCShipToAddressDataBean(java.lang.Long contractId, java.lang.Integer languageId)
Constructs an ShippingTCShipToAddressDataBean from an existing contract identifier Finds the Shipping Address terms and conditions in the contract- Parameters:
contractId
- Long An existing contract identifierlanguageId
- Integer The language identifier for which language to retrieve the data
-
-
Method Detail
-
getCommandContext
public com.ibm.commerce.command.CommandContext getCommandContext()
Returns the current command's context- Specified by:
getCommandContext
in interfacecom.ibm.commerce.beans.SmartDataBean
- Returns:
- com.ibm.commerce.command.CommandContext
-
getContractId
public java.lang.Long getContractId()
Gets the contract identifier for the contract this term and condition are in- Returns:
- Long
-
getDelegate
public com.ibm.commerce.security.Protectable getDelegate() throws java.lang.Exception
Returns the access control delegate of this data bean- Specified by:
getDelegate
in interfacecom.ibm.commerce.security.Delegator
- Returns:
- com.ibm.commerce.security.Protectable
- Throws:
java.lang.Exception
-
getLanguageId
public java.lang.String getLanguageId()
Gets the language identifier in which the data was loaded- Returns:
- null
-
getRequestProperties
public com.ibm.commerce.datatype.TypedProperty getRequestProperties()
Gets the request properties- Specified by:
getRequestProperties
in interfacecom.ibm.commerce.beans.InputDataBean
- Returns:
- null
-
getShippingAddress
public java.util.Vector getShippingAddress()
Gets the shipping address term and conditions in the contract- Returns:
- Vector
-
getShippingAddress
public java.util.Vector getShippingAddress(int i)
Gets a shipping address term and condition in the contract- Returns:
- Vector
-
populate
public void populate() throws java.lang.Exception
This method is used to retrieve the Shipping Address data in the contract. Loads data into the data bean when theDataBeanManager.activate()
runs.- Specified by:
populate
in interfacecom.ibm.commerce.beans.SmartDataBean
- Throws:
java.lang.Exception
-
setCommandContext
public void setCommandContext(com.ibm.commerce.command.CommandContext newICommandContext)
Sets the command context- Specified by:
setCommandContext
in interfacecom.ibm.commerce.beans.SmartDataBean
- Parameters:
newICommandContext
- com.ibm.commerce.command.CommandContext
-
setRequestProperties
public void setRequestProperties(com.ibm.commerce.datatype.TypedProperty param)
Sets the request properties.- Specified by:
setRequestProperties
in interfacecom.ibm.commerce.beans.InputDataBean
- Parameters:
param
- com.ibm.commerce.datatype.TypedProperty
-
-