Class BookHierarchyBuilder
- java.lang.Object
-
- com.activeviam.risk.ref.parentchild.hierarchy.builders.HierarchyBuilder<BookHierarchyBuilder>
-
- com.activeviam.risk.ref.parentchild.hierarchy.builders.BookHierarchyBuilder
-
- All Implemented Interfaces:
Cloneable
public class BookHierarchyBuilder extends HierarchyBuilder<BookHierarchyBuilder>
The BookHierarchyBuilder is an instance ofHierarchyBuilder
that provides a way to make book node tuples to be stored in the "BookHierarchy" 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 Book Hierarchy datastore. It will convert booleans into "Y" or "N" strings for certain fields. This build also keeps track of all changes being made on the tuple via its logger. This build will keep track of the nodes level and store its ancestors in each level above it in the levels part of the tuples.- Author:
- ActiveViam
-
-
Constructor Summary
Constructors Constructor Description BookHierarchyBuilder(LocalDate asOf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object[]
build()
BookHierarchyBuilder
withCategory(String category)
BookHierarchyBuilder
withDesk(String desk)
-
Methods inherited from class com.activeviam.risk.ref.parentchild.hierarchy.builders.HierarchyBuilder
clone, withLeaf, withLevel
-
-
-
-
Field Detail
-
LOGGER
protected static Logger LOGGER
-
-
Constructor Detail
-
BookHierarchyBuilder
public BookHierarchyBuilder(LocalDate asOf)
-
-
Method Detail
-
withDesk
public BookHierarchyBuilder withDesk(String desk)
-
withCategory
public BookHierarchyBuilder withCategory(String category)
-
build
public Object[] build()
- Specified by:
build
in classHierarchyBuilder<BookHierarchyBuilder>
-
-