Creates cache key parts for this key and a load value given an entity configuration. These parts will be included as part of the cache key.
The entity configuration used to derive cache key parts.
The load value for which to create cache key parts for.
An object containing the cache key type and parts.
Deserialize a load value for use in the data manager data loader as the dataloader value key.
Get the database columns for this key given an entity configuration.
The entity configuration.
An array of database column names.
Get the database values corresponding to the database columns for this key for a load value.
The load value.
An array of database values.
Gets the data loader key for this key. For single field keys, this is the field name. For composite keys, this is a unique identifier for the composite key.
Gets the load method type of this key. Used as part of cache keys and data loader keys.
Get the load value for an entity fields object from the database.
The entity fields object.
The load value for the object or null if the load value would be invalid for the object (for example, if the value is null).
Determines if this key is cacheable in cache adapters according to the entity configuration.
The entity configuration to check.
Boolean indicating whether this key is cacheable.
Serialize a load value for use in the data manager data loader as the dataloader value key.
Validate that that the load values adhere to the typescript types at runtime in order to prevent inadvertently passing invalid values to the data loader, cache adapter, or database adapter.
The load values to validate.
The name of the entity class to which the load values belong (for error message only).
Vends a new empty load value map with a key type corresponding to the load value type of this load key.
A new empty load value map.
A load key that represents a composite field (set of fieldName) on an entity. Must be defined in the entity configuration composite field definition.