public class BusinessPolicyBeanBase
extends com.ibm.commerce.base.objects.ECEntityBean
This bean provides access to the POLICY table.
The following is a description of this table:
Each row in this table represents a business policy. This bean accesses the database table POLICY
Modifier and Type | Field and Description |
---|---|
java.sql.Timestamp | endDate |
java.lang.Long | policyId |
java.lang.String | policyName |
java.lang.String | properties |
java.sql.Timestamp | startDate |
java.lang.Integer | storeEntityId |
java.lang.String | type |
Constructor and Description |
---|
BusinessPolicyBeanBase() |
Modifier and Type | Method and Description |
---|---|
com.ibm.commerce.contract.objects.BusinessPolicyKey | ejbCreate(java.lang.String argPolicyName, java.lang.String argType, java.lang.Integer argStoreEntityId)
Constructs an BusinessPolicyAccessBean object with the specified policy name, policy type, and the store entity ID.
|
void | ejbRemove()
Called by the container when the EJB is removed.
|
void | ejbStore()
Called by the container when the EJB is persisted.
|
PolicyDescriptionAccessBean | getDescription(java.lang.Integer argLanguageId)
Retrieves the PolicyDescriptionAccessBean representing the business policy description with the specified language ID.
|
PolicyDescriptionAccessBean | getDescription(java.lang.Integer language_id, java.lang.Integer storeId)
Retrieves the PolicyDescriptionAccessBean representing the business policy description with the specified language ID.
|
java.sql.Timestamp | getEndDate()
This method provides access to the POLICY.ENDTIME column of DB2 type TIMESTAMP NULL.
|
protected java.lang.Object | getFallbackDescription(java.lang.Integer languageId)
Retrieves the PolicyDescriptionAccessBean representing the business policy description with the specified language ID.
|
java.lang.Long | getPolicyId()
This method provides access to the POLICY.POLICY_ID column of DB2 type BIGINT NOT NULL.
|
java.lang.String | getPolicyName()
This method provides access to the POLICY.POLICYNAME column of DB2 type VARCHAR(128) NOT NULL.
|
java.lang.String | getProperties()
This method provides access to the POLICY.PROPERTIES column of DB2 type VARCHAR(254) NULL.
|
java.sql.Timestamp | getStartDate()
This method provides access to the POLICY.STARTTIME column of DB2 type TIMESTAMP NULL.
|
java.lang.Integer | getStoreEntityId()
This method provides access to the POLICY.STOREENT_ID column of DB2 type INTEGER NOT NULL.
|
java.lang.String | getType()
This method provides access to the POLICY.POLICYTYPE_ID column of DB2 type CHAR(64) NOT NULL.
|
void | setEndDate(java.sql.Timestamp newValue)
This method provides access to the POLICY.ENDTIME column of DB2 type TIMESTAMP NULL.
|
void | setPolicyId(java.lang.Long newPolicyId)
This method provides access to the POLICY.POLICY_ID column of DB2 type BIGINT NOT NULL.
|
void | setPolicyName(java.lang.String newValue)
This method provides access to the POLICY.POLICYNAME column of DB2 type VARCHAR(128) NOT NULL.
|
void | setProperties(java.lang.String newValue)
This method provides access to the POLICY.PROPERTIES column of DB2 type VARCHAR(254) NULL.
|
void | setStartDate(java.sql.Timestamp newValue)
This method provides access to the POLICY.STARTTIME column of DB2 type TIMESTAMP NULL.
|
void | setStoreEntityId(java.lang.Integer newStoreEntityId)
This method provides access to the POLICY.STOREENT_ID column of DB2 type INTEGER NOT NULL.
|
void | setType(java.lang.String newValue)
This method provides access to the POLICY.POLICYTYPE_ID column of DB2 type CHAR(64) NOT NULL.
|
public java.lang.Long policyId
public java.lang.String policyName
public java.lang.String type
public java.lang.Integer storeEntityId
public java.lang.String properties
public java.sql.Timestamp startDate
public java.sql.Timestamp endDate
public void ejbRemove() throws java.rmi.RemoteException, javax.ejb.RemoveException, javax.ejb.EJBException
public void ejbStore()
public com.ibm.commerce.contract.objects.BusinessPolicyKey ejbCreate(java.lang.String argPolicyName, java.lang.String argType, java.lang.Integer argStoreEntityId) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Constructs an BusinessPolicyAccessBean object with the specified policy name, policy type, and the store entity ID.
public PolicyDescriptionAccessBean getDescription(java.lang.Integer argLanguageId) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Retrieves the PolicyDescriptionAccessBean representing the business policy description with the specified language ID.
public PolicyDescriptionAccessBean getDescription(java.lang.Integer language_id, java.lang.Integer storeId) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Retrieves the PolicyDescriptionAccessBean representing the business policy description with the specified language ID. If the description for the specified language is not available for the specified store, An alternate language description will be returned.
public java.sql.Timestamp getEndDate()
This method provides access to the POLICY.ENDTIME column of DB2 type TIMESTAMP NULL.
The following is a description of this column:
End date of the policy. If null, no end time.
protected java.lang.Object getFallbackDescription(java.lang.Integer languageId) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Retrieves the PolicyDescriptionAccessBean representing the business policy description with the specified language ID.
public java.lang.Long getPolicyId()
This method provides access to the POLICY.POLICY_ID column of DB2 type BIGINT NOT NULL.
The following is a description of this column:
The policy ID.
public java.lang.String getPolicyName()
This method provides access to the POLICY.POLICYNAME column of DB2 type VARCHAR(128) NOT NULL.
The following is a description of this column:
The policy unique name. It is expected that a store contains the following bootstrap policies:
MasterCatalog (one per storeEntity), CreditLine (one per storeEntity).
public java.lang.String getProperties()
This method provides access to the POLICY.PROPERTIES column of DB2 type VARCHAR(254) NULL.
The following is a description of this column:
Default name value pairs that can be set to the business policy command. For example: n1=v1&n2=v2.
public java.sql.Timestamp getStartDate()
This method provides access to the POLICY.STARTTIME column of DB2 type TIMESTAMP NULL.
The following is a description of this column:
Start date of the policy. If null start immediately.
public java.lang.Integer getStoreEntityId()
This method provides access to the POLICY.STOREENT_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
The Store or StoreGroup ID.
public java.lang.String getType()
This method provides access to the POLICY.POLICYTYPE_ID column of DB2 type CHAR(64) NOT NULL.
The following is a description of this column:
The policy type ID. Foreign key to the POLICYTYPE table.
public void setEndDate(java.sql.Timestamp newValue)
This method provides access to the POLICY.ENDTIME column of DB2 type TIMESTAMP NULL.
The following is a description of this column:
End date of the policy. If null, no end time.
public void setPolicyId(java.lang.Long newPolicyId)
This method provides access to the POLICY.POLICY_ID column of DB2 type BIGINT NOT NULL.
The following is a description of this column:
The policy ID.
public void setPolicyName(java.lang.String newValue)
This method provides access to the POLICY.POLICYNAME column of DB2 type VARCHAR(128) NOT NULL.
The following is a description of this column:
The policy unique name. It is expected that a store contains the following bootstrap policies:
MasterCatalog (one per storeEntity), CreditLine (one per storeEntity).
public void setProperties(java.lang.String newValue)
This method provides access to the POLICY.PROPERTIES column of DB2 type VARCHAR(254) NULL.
The following is a description of this column:
Default name value pairs that can be set to the business policy command. For example: n1=v1&n2=v2.
public void setStartDate(java.sql.Timestamp newValue)
This method provides access to the POLICY.STARTTIME column of DB2 type TIMESTAMP NULL.
The following is a description of this column:
Start date of the policy. If null start immediately.
public void setStoreEntityId(java.lang.Integer newStoreEntityId)
This method provides access to the POLICY.STOREENT_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
The Store or StoreGroup ID.
public void setType(java.lang.String newValue)
This method provides access to the POLICY.POLICYTYPE_ID column of DB2 type CHAR(64) NOT NULL.
The following is a description of this column:
The policy type ID. Foreign key to the POLICYTYPE table.