Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.Opens in a new tab

For information on migrating to InterSystems IRISOpens in a new tab, see Why Migrate to InterSystems IRIS?

HoleFoods.Product

persistent class HoleFoods.Product extends %Library.Persistent

SQL Table Name: HoleFoods.Product

This represents a Product within the HoleFoods demo.

Property Inventory

Properties

property Category as %String (MAXLEN = 100);
Category of this product.
Property methods: CategoryDisplayToLogical(), CategoryGet(), CategoryGetStored(), CategoryIsValid(), CategoryLogicalToDisplay(), CategoryLogicalToOdbc(), CategoryNormalize(), CategorySet()
property Name as %String (MAXLEN = 120);
Name of this product.
Property methods: NameDisplayToLogical(), NameGet(), NameGetStored(), NameIsValid(), NameLogicalToDisplay(), NameLogicalToOdbc(), NameNormalize(), NameSet()
property Price as %Numeric (MINVAL = 0);
List price for this product.
Property methods: PriceDisplayToLogical(), PriceGet(), PriceGetStored(), PriceIsValid(), PriceLogicalToDisplay(), PriceNormalize(), PriceSet()
property SKU as %String (MAXLEN = 22) [ Required ];
SKU for this product.
Property methods: SKUDisplayToLogical(), SKUGet(), SKUGetStored(), SKUIsValid(), SKULogicalToDisplay(), SKULogicalToOdbc(), SKUNormalize(), SKUSet()

Indexes

index (KEY on SKU) [IdKey, Type = key];
Index methods: KEYCheck(), KEYDelete(), KEYExists(), KEYOpen(), KEYSQLCheckUnique(), KEYSQLExists(), KEYSQLFindPKeyByConstraint(), KEYSQLFindRowIDByConstraint()

Inherited Members

Inherited Methods

Storage

Storage Model: CacheStorage (HoleFoods.Product)

^HoleFoods.ProductD(ID)
=
%%CLASSNAME
Category
Name
Price
FeedbackOpens in a new tab