clsMenuCategoryCodeCollection¶
Loads menu-category lookup rows.
Purpose¶
- Provide the category lookup set.
- Support collection membership checks.
Context¶
- Namespace:
SAIF.Business.Menu - Assembly/package:
SAIF.Business.Menu.dll
Public members¶
| Member | Signature | Purpose |
|---|---|---|
| Item (default, keyed) | Default Public Overloads ReadOnly Property Item(ByVal inCode As String) As clsMenuCategoryCode |
Looks up a menu category code row in the loaded collection by its Code key, returning Nothing if no item matches. |
| CurrentItem | Public Shadows ReadOnly Property CurrentItem() As clsMenuCategoryCode |
Returns the base collection's current item cast to clsMenuCategoryCode, avoiding caller-side casting when navigating the loaded category set. |
| Save | Public Overrides Function Save() As Boolean |
Persists the current object state through the SAIF data-portal lifecycle. |
| Add | Public Shadows Function Add(ByVal inclsMenuCategoryCode As clsMenuCategoryCode) As Integer |
Appends an already-constructed row to the in-memory collection so it participates in the next Save() and any collection-wide iteration, without issuing a retrieve. |
| Contains | Public Overloads Function Contains(ByVal inclsMenuCategoryCode As clsMenuCategoryCode) As Boolean |
Scans the loaded collection for an item whose Code equals the supplied object's Code (clsMenuCategoryCode.Equals compares only the Code field). |
| Contains | Public Overloads Function Contains(ByVal inCode As String) As Boolean |
Scans the loaded collection for an item whose Code property equals the supplied code string. |
| ContainsDeleted | Public Overloads Function ContainsDeleted(ByVal inclsMenuCategoryCode As clsMenuCategoryCode) As Boolean |
Scans the deleted-items list for an entry whose Code equals the supplied object's Code. |
| ContainsDeleted | Public Overloads Function ContainsDeleted(ByVal inCode As String) As Boolean |
Scans the deleted-items list for an entry whose Code equals the supplied code string, via clsMenuCategoryCode.Equals(Object). |
| Remove | Public Overloads Sub Remove(ByVal inCode As String) |
Removes the menu category code matching the supplied key from the in-memory collection and moves it to the inherited deleted-items list so a subsequent Save() still issues the delete statement. |
| NewMenuCategoryCodes | Public Shared Function NewMenuCategoryCodes(ByVal inDataportal As IDataPortalInfo, ByVal inCode As String) As clsMenuCategoryCodeCollection |
Creates a new typed object using the supplied data-portal context. |
| GetMenuCategoryCodes | Public Shared Function GetMenuCategoryCodes(ByVal inDataportal As IDataPortalInfo) As clsMenuCategoryCodeCollection |
Retrieves every MENU_CATEGORY_CODE row (unfiltered), building the full category lookup set used to populate category-selection lists and to group MENU_ITEM rows for rendering. |
Behavioral notes¶
- Reads the full lookup table.
Constraints and usage notes¶
- Reference-data collection.
Inherited public members¶
No dependency-resolution.json was produced for this run, so the members below are a best-effort inference from typical SAIF BOF framework (clsBusinessCollection(Of T)) patterns observed elsewhere in this codebase, not a Legends CLI-sourced dependency lookup.**
From clsBusinessCollection(Of clsMenuCategoryCode) (SAIF.BOF.Framework)**¶
| Member | Signature | Purpose | Origin |
|---|---|---|---|
| Count | Public ReadOnly Property Count() As Integer |
*Purpose could not be verified beyond the standard collection-indexer contract**; inferred usage is bounding For loops when callers iterate loaded clsMenuCategoryCode rows outside GetEnumerator. |
clsBusinessCollection(Of T) |
| Item | Public Default ReadOnly Property Item(ByVal index As Integer) As clsMenuCategoryCode |
*Purpose could not be verified beyond the standard collection-indexer contract**; inferred usage is positional access to a loaded clsMenuCategoryCode row during indexed iteration or lookup-by-slot. |
clsBusinessCollection(Of T) |
| GetEnumerator | Public Function GetEnumerator() As IEnumerator(Of clsMenuCategoryCode) |
Supports For Each iteration over the loaded collection.** |
clsBusinessCollection(Of T) |
| IsDirty | Public Overridable ReadOnly Property IsDirty() As Boolean |
Reports whether any loaded or deleted item in the collection has pending changes.** | clsBusinessCollection(Of T) |
| IsValid | Public Overridable ReadOnly Property IsValid() As Boolean |
Reports whether every loaded item in the collection independently reports itself valid.** | clsBusinessCollection(Of T) |
Note: Statements marked with
**could not be confirmed; treat as unknown until verified.
Sources¶
SAIF.Business.Menu\clsMenuCategoryCodeCollection.vb