SQL-059: Retrieve entity type collection¶
Retrieve entity type collection in the context of clsEntityTypeCollection.
Classification¶
| Field | Value |
|---|---|
| SQL ID | SQL-059 |
| Operation type | Read |
| Execution method | IDataRequest.SQLStatement (CommandType.Text) |
| Database | Oracle |
| Schema | [unqualified]** |
| Command type | Text |
| Business object | clsEntityTypeCollection |
| Criteria property | RetrieveSQL |
| Lifecycle method | BeforeRetrieve / AfterRetrieve |
Parameters¶
This statement has no bind parameters.
Tables¶
| Table | Access | Columns used |
|---|---|---|
| ENTITY_CODE | SELECT | See sample SQL |
Sample SQL¶
SELECT
ENTITY_CODE.ASSUMED_WAGE_CODE as AssumedWageCode,
ENTITY_CODE.CHANGE_ALLOWED_FLAG as ChangeAllowedFlag,
ENTITY_CODE.CHANGE_ENDORSE_CODE as ChangeEndorseCode,
ENTITY_CODE.CODE as Code,
ENTITY_CODE.CODE_DESCR as CodeDescr,
ENTITY_CODE.INC_EXC_ENDORSE_CODE as IncExcEndorseCode,
ENTITY_CODE.INC_EXC_WAGE_ENDORSE_CODE as IncExcWageEndorseCode,
ENTITY_CODE.OFFICER_REQUIRED_FLAG as OfficerRequiredFlag,
ENTITY_CODE.WAGE_CHANGE_ENDORSE_CODE as WageChangeEndorseCode
FROM
ENTITY_CODE
WHERE
ENTITY_CODE.CODE NOT IN ('50','55')
SELECT
ENTITY_CODE.ASSUMED_WAGE_CODE as AssumedWageCode,
ENTITY_CODE.CHANGE_ALLOWED_FLAG as ChangeAllowedFlag,
ENTITY_CODE.CHANGE_ENDORSE_CODE as ChangeEndorseCode,
ENTITY_CODE.CODE as Code,
ENTITY_CODE.CODE_DESCR as CodeDescr,
ENTITY_CODE.INC_EXC_ENDORSE_CODE as IncExcEndorseCode,
ENTITY_CODE.INC_EXC_WAGE_ENDORSE_CODE as IncExcWageEndorseCode,
ENTITY_CODE.OFFICER_REQUIRED_FLAG as OfficerRequiredFlag,
ENTITY_CODE.WAGE_CHANGE_ENDORSE_CODE as WageChangeEndorseCode
FROM
ENTITY_CODE
Operations and processes¶
Business rules¶
- BR-006: Ownership information is required for all entity types
- BR-007: Sole proprietors require exactly one owner; partnerships, limited
- BR-008: For the Guidewire path, joint ventures require one
Note: Statements marked with * were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with ** could not be confirmed; treat as unknown until verified.
Sources¶
Business\SAIF.Business.Policy.Core\clsEntityTypeCollection.vb