Class HierarchyBuilder<HB extends HierarchyBuilder<HB>>
- java.lang.Object
-
- com.activeviam.risk.ref.parentchild.hierarchy.builders.HierarchyBuilder<HB>
-
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
BookHierarchyBuilder
,CounterpartyHierarchyBuilder
,LegalEntityHierarchyBuilder
public abstract class HierarchyBuilder<HB extends HierarchyBuilder<HB>> extends Object implements Cloneable
The HierarchyBuilder is an abstract class that provides a way to make tuples to be stored in a hierarchy based datastore. It follows a standard builder pattern for making objects. This builder will map various fields into a tuple that can be later stored in the Hierarchy datastore. It will convert booleans into "Y" or "N" strings for certain fields. It is expected that builders that extend this class will keep track of the nodes level and store its ancestors in each level above it in the levels part of the tuples. Provides a clone method for this hierarchy builder.- Author:
- ActiveViam
-
-
Constructor Summary
Constructors Constructor Description HierarchyBuilder(LocalDate asOf, int levels)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Object[]
build()
HB
clone()
HB
withLeaf(String leaf)
HB
withLevel(String name)
-
-
-
Constructor Detail
-
HierarchyBuilder
public HierarchyBuilder(LocalDate asOf, int levels)
-
-