Records one step in the lifecycle history of a ProductOrder, such as being added to a cart, ordered, shipped or cancelled. A ProductOrder accumulates one ProductOrderStatus row every time its status changes, giving a full audit trail of the order's progress. Status codes are free-text, application-defined values such as "added" or "ordered" rather than a fixed enumeration.

Group: Database Entities

Implements: Serializable, Relational


Properties

PropertyReturnsDescription
adminOrgOrganisationThe organisation that owns the order this status belongs to.
descriptionStringA human-readable description of this status, such as "Order placed" or "Added to cart".
idlongThe database identifier of this status record.
productOrderProductOrderThe order this status record belongs to.
refCodeStringAn optional reference code associated with this status, for example a shipment tracking number.
statusCodeStringThe application-defined code identifying this lifecycle step, such as "added" or "ordered". Not a fixed enumeration - callers are free to define their own status codes for a given workflow.
statusDateDateThe date and time this status took effect.

Methods

getId() · getAdminOrg() · setAdminOrg(Organisation adminOrg) · getProductOrder() · setProductOrder(ProductOrder productOrder) · getStatusDate() · setStatusDate(Date statusDate) · getStatusCode() · setStatusCode(String statusCode) · getDescription() · setDescription(String description) · getRefCode() · setRefCode(String refCode) · rowId()

getId()

Returns: long

The database identifier of this status record.

getAdminOrg()

Returns: Organisation

The organisation that owns the order this status belongs to.

setAdminOrg(Organisation adminOrg)

Returns: void

Sets the organisation that owns the order this status belongs to.

ParameterDescription
adminOrgthe owning organisation

getProductOrder()

Returns: ProductOrder

The order this status record belongs to.

setProductOrder(ProductOrder productOrder)

Returns: void

Sets the order this status record belongs to.

ParameterDescription
productOrderthe order this status describes

getStatusDate()

Returns: Date

The date and time this status took effect.

setStatusDate(Date statusDate)

Returns: void

Sets the date and time this status took effect.

ParameterDescription
statusDatethe date this status was recorded

getStatusCode()

Returns: String

The application-defined code identifying this lifecycle step, such as "added" or "ordered". Not a fixed enumeration - callers are free to define their own status codes for a given workflow.

setStatusCode(String statusCode)

Returns: void

Sets the application-defined code identifying this lifecycle step.

ParameterDescription
statusCodethe status code

getDescription()

Returns: String

A human-readable description of this status, such as "Order placed" or "Added to cart".

setDescription(String description)

Returns: void

Sets the human-readable description of this status.

ParameterDescription
descriptionthe status description

getRefCode()

Returns: String

An optional reference code associated with this status, for example a shipment tracking number.

setRefCode(String refCode)

Returns: void

Sets the optional reference code associated with this status, for example a shipment tracking number.

ParameterDescription
refCodethe reference code

rowId()

Returns: Long

The database identifier of this status record, as required by the Relational interface.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.