# Business Logic — KKW00127SF02DBean.listKoumokuIds() [15 LOC]

| Field | Value |
|-------|-------|
| Fully Qualified Name | `eo.web.webview.KKW00127SF.KKW00127SF02DBean` |
| Layer | Utility (Data Bean) |
| Module | `KKW00127SF` (Package: `eo.web.webview.KKW00127SF`) |

## 1. Role

### KKW00127SF02DBean.listKoumokuIds()

This method serves as a field metadata provider for the **Service Contract Agreement Inquiry Details** (サービス契約同意照会明細) data view within the KKW00127SF web screen module. It implements the **Registry pattern** by returning a predefined, ordered list of Japanese display label strings that correspond one-to-one with the fields exposed by the `KKW00127SF02DBean` data type bean. This method acts as a **shared utility** called by the parent `KKW00127SFBean` to populate grid/column headers on the inquiry screen, ensuring consistency between the bean's field definitions and their UI labels. The method takes no parameters and simply returns all 10 field labels in a fixed order, which is critical because the calling code uses this list to synchronize the screen's column display with the bean's internal data structure.

## 2. Processing Pattern (Detailed Business Logic)

```mermaid
flowchart TD
    START(["listKoumokuIds()"])
    STEP1["Create ArrayList: koumokuList"]
    STEP2["Add item: サービス契約ステータス"]
    STEP3["Add item: 申請明細番号"]
    STEP4["Add item: サービス契約ステータスリスト"]
    STEP5["Add item: 料金グループコード"]
    STEP6["Add item: サービス開始希望日"]
    STEP7["Add item: 支払方法引継フラグ"]
    STEP8["Add item: 紹介コードリスト"]
    STEP9["Add item: 紹介コード"]
    STEP10["Add item: サービスコード"]
    STEP11["Add item: 更新年月日時分秒（サービス契約）"]
    STEP12["Add item: 自動照会処理状態コード"]
    END_NODE["Return koumokuList"]

    START --> STEP1
    STEP1 --> STEP2
    STEP2 --> STEP3
    STEP3 --> STEP4
    STEP4 --> STEP5
    STEP5 --> STEP6
    STEP6 --> STEP7
    STEP7 --> STEP8
    STEP8 --> STEP9
    STEP9 --> STEP10
    STEP10 --> STEP11
    STEP11 --> STEP12
    STEP12 --> END_NODE
```

**Processing Summary:**
1. Instantiate a new `ArrayList<String>` named `koumokuList`.
2. Add 10 hardcoded Japanese display label strings in sequential order, each representing a field name on the Service Contract Agreement Inquiry screen.
3. Return the populated list to the caller.

There are no conditional branches, loops, or external method calls — this is a pure data registry method.

## 3. Parameter Analysis

| No | Parameter Name | Type | Business Description |
|----|---------------|------|---------------------|
| - | (none) | - | This is a `static` method with no parameters. The list of 10 field labels is hardcoded, so no external input affects processing. |

## 4. CRUD Operations / Called Services

This method does not perform any CRUD operations. It does not call any service components (SC), CBS, or database access methods. It is a pure in-memory data provider that constructs and returns a list of display label strings.

| CRUD | SC / CBS | SC Code | Entity / DB | Operation Description |
|------|----------|---------|-------------|----------------------|
| — | — | — | — | No database or service component interaction. This method is a standalone data registry. |

## 5. Dependency Trace

| # | Caller (Screen/Batch) | Call Chain (Full Path to this Method) | Terminal (SC / CRUD / Entity) |
|---|----------------------|--------------------------------------|-------------------------------|
| 1 | Screen:KKW00127SF | `KKW00127SFBean.listKoumokuIds(key)` -> `KKW00127SF02DBean.listKoumokuIds()` | N/A (pure data, no CRUD) |

**Caller Details:**
- `KKW00127SFBean.listKoumokuIds(String key)` — The parent bean delegates to this method when the `key` parameter equals `"サービス契約同意照会明細"` (Service Contract Agreement Inquiry Details). It is used to retrieve the column header labels for a data type bean-based view item on the screen.
- There are no other direct callers of `KKW00127SF02DBean.listKoumokuIds()` in the codebase.

## 6. Per-Branch Detail Blocks

This method has no conditional branches, loops, or exception handling. The entire method executes as a single linear block.

**Block 1** — [LINEAR EXECUTION] (L705)

> Creates and populates a list of 10 display label strings for the Service Contract Agreement Inquiry screen fields.

| # | Type | Code |
|---|------|------|
| 1 | SET | `ArrayList<String> koumokuList = new ArrayList<String>();` // Instantiate empty list |
| 2 | CALL | `koumokuList.add("サービス契約ステータス")` // Add: Service Contract Status [L707] |
| 3 | CALL | `koumokuList.add("申請明細番号")` // Add: Application Detail Number [L708] |
| 4 | CALL | `koumokuList.add("サービス契約ステータスリスト")` // Add: Service Contract Status List [L709] |
| 5 | CALL | `koumokuList.add("料金グループコード")` // Add: Fee Group Code [L710] |
| 6 | CALL | `koumokuList.add("サービス開始希望日")` // Add: Desired Service Start Date [L711] |
| 7 | CALL | `koumokuList.add("支払方法引継フラグ")` // Add: Payment Method Inheritance Flag [L712] |
| 8 | CALL | `koumokuList.add("紹介コードリスト")` // Add: Referral Code List [L713] |
| 9 | CALL | `koumokuList.add("紹介コード")` // Add: Referral Code [L714] |
| 10 | CALL | `koumokuList.add("サービスコード")` // Add: Service Code [L715] |
| 11 | CALL | `koumokuList.add("更新年月日時分秒（サービス契約）")` // Add: Update Timestamp (Service Contract) [L716] |
| 12 | CALL | `koumokuList.add("自動照会処理状態コード")` // Add: Automatic Inquiry Processing Status Code [L717] |
| 13 | RETURN | `return koumokuList;` // Return the completed list [L718] |

## 7. Glossary

| Term | Type | Business Meaning |
|------|------|------------------|
| `サービス契約ステータス` | Field | Service Contract Status — current state of a service contract (e.g., active, cancelled, pending) |
| `申請明細番号` | Field | Application Detail Number — unique identifier for a service application line item |
| `サービス契約ステータスリスト` | Field | Service Contract Status List — collection of historical or variant status values for a contract |
| `料金グループコード` | Field | Fee Group Code — classification code for grouping billing/fee structures |
| `サービス開始希望日` | Field | Desired Service Start Date — customer-requested date for service activation |
| `支払方法引継フラグ` | Field | Payment Method Inheritance Flag — flag indicating whether to carry over an existing payment method to a new contract |
| `紹介コードリスト` | Field | Referral Code List — list of codes used for customer referral tracking |
| `紹介コード` | Field | Referral Code — single code used for customer referral or promotional tracking |
| `サービスコード` | Field | Service Code — internal code identifying a specific service offering |
| `更新年月日時分秒（サービス契約）` | Field | Update Timestamp (Service Contract) — last modification date/time for the service contract record |
| `自動照会処理状態コード` | Field | Automatic Inquiry Processing Status Code — status of an automated inquiry processing operation |
| `KKW00127SF02DBean` | Class | Data type bean for Service Contract Agreement Inquiry Details — holds field values for a single row of the inquiry screen |
| `KKW00127SFBean` | Class | Parent data bean that aggregates multiple data type beans and delegates label resolution |
| データタイプビーン | Term | Data Type Bean — a structured bean class holding fields for a single screen item/group, used for data binding |
| サービス契約同意照会明細 | Term | Service Contract Agreement Inquiry Details — the screen/feature that displays service contract agreement information for inquiry/review |
