com.ibm.commerce.contract.objects
Class BusinessPolicyBean

com.ibm.commerce.contract.objects.BusinessPolicyBean

public class BusinessPolicyBean

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.


Constructor Summary
BusinessPolicyBean()
           
 
Method Summary
 java.sql.Timestamp getEndDate()
          This method provides access to the POLICY.ENDTIME column of DB2 type TIMESTAMP NULL.
 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 aEndDate)
          This method provides access to the POLICY.ENDTIME column of DB2 type TIMESTAMP NULL.
 void setPolicyId(java.lang.Long aPolicyId)
          This method provides access to the POLICY.POLICY_ID column of DB2 type BIGINT NOT NULL.
 void setPolicyName(java.lang.String aPolicyName)
          This method provides access to the POLICY.POLICYNAME column of DB2 type VARCHAR(128) NOT NULL.
 void setProperties(java.lang.String aProperties)
          This method provides access to the POLICY.PROPERTIES column of DB2 type VARCHAR(254) NULL.
 void setStartDate(java.sql.Timestamp aStartDate)
          This method provides access to the POLICY.STARTTIME column of DB2 type TIMESTAMP NULL.
 void setStoreEntityId(java.lang.Integer aStoreEntityId)
          This method provides access to the POLICY.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 void setType(java.lang.String aType)
          This method provides access to the POLICY.POLICYTYPE_ID column of DB2 type CHAR(64) NOT NULL.
 

Constructor Detail

BusinessPolicyBean

public BusinessPolicyBean()
Method Detail

getEndDate

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.

Returns:
java.sql.Timestamp

getPolicyId

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.

Returns:
java.lang.Long

getPolicyName

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).

Returns:
java.lang.String

getProperties

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.

Returns:
java.lang.String

getStartDate

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.

Returns:
java.sql.Timestamp

getStoreEntityId

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.

Returns:
java.lang.Integer

getType

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.

Returns:
java.lang.String

setEndDate

public void setEndDate(java.sql.Timestamp aEndDate)

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.

Parameters:
aEndDate - java.sql.Timestamp
Returns:
void

setPolicyId

public void setPolicyId(java.lang.Long aPolicyId)

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.

Parameters:
aPolicyId - java.lang.Long
Returns:
void

setPolicyName

public void setPolicyName(java.lang.String aPolicyName)

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).

Parameters:
aPolicyName - java.lang.String
Returns:
void

setProperties

public void setProperties(java.lang.String aProperties)

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.

Parameters:
aProperties - java.lang.String
Returns:
void

setStartDate

public void setStartDate(java.sql.Timestamp aStartDate)

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.

Parameters:
aStartDate - java.sql.Timestamp
Returns:
void

setStoreEntityId

public void setStoreEntityId(java.lang.Integer aStoreEntityId)

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.

Parameters:
aStoreEntityId - java.lang.Integer
Returns:
void

setType

public void setType(java.lang.String aType)

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.

Parameters:
aType - java.lang.String
Returns:
void