Virtual properties on data entities
The Data Dictionary lists certain entity properties as virtual. PolicyCenter does not store virtual properties in the PolicyCenter physical database. Instead, it derives a virtual property through a method, a concatenation of other fields, or from a pointer (foreign key) to a field that resides elsewhere.
For example, if you view the Account entity in the Data Dictionary (for PolicyCenter), you see the following next to the AccountContactRoleSubtypes field:
Derived property returning gw.api.database.IQueryResult (virtual property)Examples
The following examples illustrate some of the various ways that Guidewire applications determine a virtual property. The following examples use Guidewire ClaimCenter for illustration.
- Virtual property based on a foreign key
Claim.BenefitsDecisionReasonis a virtual property that pulls its value from thecc_claimtexttable, which storesClaimText.ClaimTextType = BenefitsDecisionReason. It returns amediumtextvalue. The other fields incc_claimtextandcc_exposuretextwork in a similar fashion.- Virtual property based on an associated role
Claim.claimantis a virtual property that retrieves theContactassociated with theClaimhaving theClaimContactRoleofclaimant. The virtual property returns aPersonvalue.- Virtual property based on a typelist
Contact.PrimaryPhoneValueis a virtual property that calculates its return value based on the value fromContact.PrimaryPhone. It retrieves the telephone number stored in the field represented by that typekey. The telephone number can be one of the following:Contact.HomePhoneContact.WorkPhonePerson.CellPhone
It returns a phone value.
