NAV Design Pattern: Variant Façade

The Variant façade provides a single interface that can take any Record, RecordRef or RecordID as an argument. With this pattern, the code is encapsulated within the single object, with clear separation between common and table specific code.

For the full description of this pattern, see the NAV Design Patterns wiki page.