java.lang.Object
io.ebeanservice.docstore.api.mapping.DocMappingBuilder
Builds the DocumentMapping for a given bean type.
-
Constructor Summary
ConstructorsConstructorDescriptionDocMappingBuilder(PathProperties paths, io.ebean.annotation.DocStore docStore) Create with the document structure paths and docStore deployment annotation. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(DocPropertyMapping docMapping) Add the property mapping.voidApply any override mappings from the top level docStore annotation.Collect the mapping of properties to 'raw' properties for those marked as sortable.Create the document mapping.booleanincludesPath(String prefix, String name) Return true if the path is included in the document.booleanincludesProperty(String prefix, String name) Return true if the property is included in the document.voidpop()Pop the nested object or list off the properties stack.voidpush(DocPropertyMapping nested) Push the nested object or list onto the properties stack.
-
Constructor Details
-
DocMappingBuilder
Create with the document structure paths and docStore deployment annotation.
-
-
Method Details
-
includesProperty
Return true if the property is included in the document. -
includesPath
Return true if the path is included in the document. -
add
Add the property mapping. -
push
Push the nested object or list onto the properties stack. -
pop
Pop the nested object or list off the properties stack. -
applyMapping
Apply any override mappings from the top level docStore annotation. -
collectSortable
Collect the mapping of properties to 'raw' properties for those marked as sortable. -
create
Create the document mapping.
-