Copy data Gosu classes
When you implement copy data, you must write
a Gosu class for each entity that can be copied. These classes extend
an abstract Copier Gosu
class that copies data from a source to a target. This target is a container
for the copied object. For example, for a line-specific coverage, this
target typically is the policy line. A typical implementation could have
a PersonalVehicleCopier
class for copying vehicles and a DriverCopier
class for copying drivers.
In the base configuration, the personal auto line implements copy data functionality. Examine the copier classes and PCF files in personal auto when you add copy data to another line of business or add additional copiers to the personal auto line.
The design of the copy data functionality provides the following features:
- You define a
Copiersubclass for each copy data type. - Your code determines which child and containing entities to copy.
- You can use methods and properties from existing interfaces such as Matchers.
- Copier classes can make use of existing methods for creating data. For example, to copy a building, call the existing method for creating a building in the line of business. Then call the copier code to populate the properties of the building. By using existing methods, you can reuse existing code such as building auto-numbering.
- The Copier classes provide interfaces for presenting copy data in PolicyCenter through PCF file configuration.
