com.ibm.commerce.approval.objects
Class ApprovalStatusBean

com.ibm.commerce.approval.objects.ApprovalStatusBean
All Implemented Interfaces:
java.io.Serializable

public class ApprovalStatusBean
implements java.io.Serializable

This bean provides access to the APRVSTATUS table.

The following is a description of this table:

Stores approval requests and their status. Contains multiple rows for each action awaiting approval, one row for every potential approver. Each entry is unique per approver, entity tuplet. FLOWTYPE_ID tells us which type of ENTITY_ID is pending approval.

See Also:
Serialized Form

Constructor Summary
ApprovalStatusBean()
           
 
Method Summary
 java.lang.Long getApproverGroupId()
          This method provides access to the APRVSTATUS.MBRGRP_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getApproverId()
          This method provides access to the APRVSTATUS.APPROVER_ID column of DB2 type BIGINT NULL.
 java.sql.Timestamp getApproveTime()
          This method provides access to the APRVSTATUS.ACTIONTIME column of DB2 type TIMESTAMP NULL.
 java.lang.String getComment()
          This method provides access to the APRVSTATUS.COMMENTS column of DB2 type VARCHAR(254) NULL.
 java.lang.Long getEntityId()
          This method provides access to the APRVSTATUS.ENTITY_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getFlowId()
          This method provides access to the APRVSTATUS.FLOW_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getFlowTypeId()
          This method provides access to the APRVSTATUS.FLOWTYPE_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getId()
          This method provides access to the APRVSTATUS.MBRGRP_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getStateId()
          This method provides access to the APRVSTATUS.FLSTATEDCT_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Integer getStatus()
          This method provides access to the APRVSTATUS.STATUS column of DB2 type INTEGER NOT NULL.
 java.lang.Long getSubmitterId()
          This method provides access to the APRVSTATUS.SUBMITTER_ID column of DB2 type BIGINT NOT NULL.
 java.sql.Timestamp getSubmitTime()
          This method provides access to the APRVSTATUS.SUBMITTIME column of DB2 type TIMESTAMP NULL.
 void setApproverGroupId(java.lang.Long aApproverGroupId)
          This method provides access to the APRVSTATUS.MBRGRP_ID column of DB2 type BIGINT NOT NULL.
 void setApproverId(java.lang.Long aApproverId)
          This method provides access to the APRVSTATUS.APPROVER_ID column of DB2 type BIGINT NULL.
 void setApproveTime(java.sql.Timestamp aApproveTime)
          This method provides access to the APRVSTATUS.ACTIONTIME column of DB2 type TIMESTAMP NULL.
 void setComment(java.lang.String aComment)
          This method provides access to the APRVSTATUS.COMMENTS column of DB2 type VARCHAR(254) NULL.
 void setEntityId(java.lang.Long aEntityId)
          This method provides access to the APRVSTATUS.ENTITY_ID column of DB2 type BIGINT NOT NULL.
 void setFlowId(java.lang.Long aFlowId)
          This method provides access to the APRVSTATUS.FLOW_ID column of DB2 type BIGINT NOT NULL.
 void setFlowTypeId(java.lang.Long aFlowTypeId)
          This method provides access to the APRVSTATUS.FLOWTYPE_ID column of DB2 type BIGINT NOT NULL.
 void setId(java.lang.Long aId)
          This method provides access to the APRVSTATUS.MBRGRP_ID column of DB2 type BIGINT NOT NULL.
 void setStateId(java.lang.Long aStateId)
          This method provides access to the APRVSTATUS.FLSTATEDCT_ID column of DB2 type BIGINT NOT NULL.
 void setStatus(java.lang.Integer aStatus)
          This method provides access to the APRVSTATUS.STATUS column of DB2 type INTEGER NOT NULL.
 void setSubmitterId(java.lang.Long aSubmitterId)
          This method provides access to the APRVSTATUS.SUBMITTER_ID column of DB2 type BIGINT NOT NULL.
 void setSubmitTime(java.sql.Timestamp aSubmitTime)
          This method provides access to the APRVSTATUS.SUBMITTIME column of DB2 type TIMESTAMP NULL.
 

Constructor Detail

ApprovalStatusBean

public ApprovalStatusBean()
Method Detail

getApproverGroupId

public java.lang.Long getApproverGroupId()

This method provides access to the APRVSTATUS.MBRGRP_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The ID of the Member Group to which the approver belongs making her an approver for this record.

Returns:
java.lang.Long

getApproverId

public java.lang.Long getApproverId()

This method provides access to the APRVSTATUS.APPROVER_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

The ID of the user eligible to approve or reject the requested action.

Returns:
java.lang.Long

getApproveTime

public java.sql.Timestamp getApproveTime()

This method provides access to the APRVSTATUS.ACTIONTIME column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

When the approval record was acted on (that is, the time it was approved or rejected).

Returns:
java.sql.Timestamp

getComment

public java.lang.String getComment()

This method provides access to the APRVSTATUS.COMMENTS column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

Comments entered by approver during approval or rejection.

Returns:
java.lang.String

getEntityId

public java.lang.Long getEntityId()

This method provides access to the APRVSTATUS.ENTITY_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Reference to the business object -- that is, which particular business object instance within the business object type specified by the FLOWTYPE_ID.

Returns:
java.lang.Long

getFlowId

public java.lang.Long getFlowId()

This method provides access to the APRVSTATUS.FLOW_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Reference to the flow for the steps in the approval process. Foreign key FLOW_ID.

Returns:
java.lang.Long

getFlowTypeId

public java.lang.Long getFlowTypeId()

This method provides access to the APRVSTATUS.FLOWTYPE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Foreign key reference to the type of flow which determines the type of business object included in the approval. There are different IDs for each RFQ, Orders, User Registration, Contracts, Organization Registration and so on. Foreign key to FLOWTYPE_ID.

Returns:
java.lang.Long

getId

public java.lang.Long getId()

This method provides access to the APRVSTATUS.MBRGRP_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The ID of the Member Group to which the approver belongs making her an approver for this record.

Returns:
java.lang.Long

getStateId

public java.lang.Long getStateId()

This method provides access to the APRVSTATUS.FLSTATEDCT_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Current state of the flow instance.

Returns:
java.lang.Long

getStatus

public java.lang.Integer getStatus()

This method provides access to the APRVSTATUS.STATUS column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Approval status of this action: 0 = pending, 1 = approved, 2 = rejected.

Returns:
java.lang.Integer

getSubmitterId

public java.lang.Long getSubmitterId()

This method provides access to the APRVSTATUS.SUBMITTER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

ID of the user requesting the action which needs approval.

Returns:
java.lang.Long

getSubmitTime

public java.sql.Timestamp getSubmitTime()

This method provides access to the APRVSTATUS.SUBMITTIME column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The time that the action requiring approval was requested.

Returns:
java.sql.Timestamp

setApproverGroupId

public void setApproverGroupId(java.lang.Long aApproverGroupId)

This method provides access to the APRVSTATUS.MBRGRP_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The ID of the Member Group to which the approver belongs making her an approver for this record.

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

setApproverId

public void setApproverId(java.lang.Long aApproverId)

This method provides access to the APRVSTATUS.APPROVER_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

The ID of the user eligible to approve or reject the requested action.

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

setApproveTime

public void setApproveTime(java.sql.Timestamp aApproveTime)

This method provides access to the APRVSTATUS.ACTIONTIME column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

When the approval record was acted on (that is, the time it was approved or rejected).

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

setComment

public void setComment(java.lang.String aComment)

This method provides access to the APRVSTATUS.COMMENTS column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

Comments entered by approver during approval or rejection.

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

setEntityId

public void setEntityId(java.lang.Long aEntityId)

This method provides access to the APRVSTATUS.ENTITY_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Reference to the business object -- that is, which particular business object instance within the business object type specified by the FLOWTYPE_ID.

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

setFlowId

public void setFlowId(java.lang.Long aFlowId)

This method provides access to the APRVSTATUS.FLOW_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Reference to the flow for the steps in the approval process. Foreign key FLOW_ID.

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

setFlowTypeId

public void setFlowTypeId(java.lang.Long aFlowTypeId)

This method provides access to the APRVSTATUS.FLOWTYPE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Foreign key reference to the type of flow which determines the type of business object included in the approval. There are different IDs for each RFQ, Orders, User Registration, Contracts, Organization Registration and so on. Foreign key to FLOWTYPE_ID.

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

setId

public void setId(java.lang.Long aId)

This method provides access to the APRVSTATUS.MBRGRP_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The ID of the Member Group to which the approver belongs making her an approver for this record.

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

setStateId

public void setStateId(java.lang.Long aStateId)

This method provides access to the APRVSTATUS.FLSTATEDCT_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Current state of the flow instance.

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

setStatus

public void setStatus(java.lang.Integer aStatus)

This method provides access to the APRVSTATUS.STATUS column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Approval status of this action: 0 = pending, 1 = approved, 2 = rejected.

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

setSubmitterId

public void setSubmitterId(java.lang.Long aSubmitterId)

This method provides access to the APRVSTATUS.SUBMITTER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

ID of the user requesting the action which needs approval.

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

setSubmitTime

public void setSubmitTime(java.sql.Timestamp aSubmitTime)

This method provides access to the APRVSTATUS.SUBMITTIME column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The time that the action requiring approval was requested.

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