Entity types
An entity is a type of object that is constructed from the data model configuration files. Like other types of objects, entities have data in the form of object properties, and actions in the form of object domain methods.
Some Guidewire API
methods take an argument of type IEntityType.
The IEntityType type is
an interface, not a class. All Guidewire entity types implement this
interface. To use an API that requires an IEntityType, pass an entity instance
to the API. For example, to pass an Address
to an API that takes an IEntityType
as the method argument, use code such as:
myClass.myMethod(Address)In rare
cases, you might need to get the type from an entity dynamically, for
example to get the subtype of an entity instance. If you have a reference
to an entity instance, get its Type
property. For example, if you have a variable ad that contains an Address entity instance, use code
such as the following:
myClass.myMethod(ad.Type)setFieldValue
as part of a specific approved workaround.See also
Keys of Guidewire entity instances
Key is a Guidewire data model entity base type that
uniquely identifies an entity instance. The internal ID property of an entity such as
Policy.ID has type
Key. Provide the ID of an entity instance in methods
that use Key objects as parameters.
Do not confuse a key, which has the type Key, and a
typekey, which has the type Typekey.
Example
var id = myEntityInstance.ID // id has type Key
See also
