Class DocStructure
java.lang.Object
io.ebeanservice.docstore.api.support.DocStructure
public class DocStructure extends Object
Document structure for mapping to document store.
-
Constructor Summary
Constructors Constructor Description DocStructure(PathProperties pathProps)Create given an initial deployment doc mapping. -
Method Summary
Modifier and Type Method Description voidaddNested(String path, PathProperties embeddedDoc)Add an embedded property with it's document structure.voidaddProperty(String name)Add a property at the root level.PathPropertiesdoc()Return the document structure.FetchPathgetEmbedded(String path)Return the document structure for an embedded path.FetchPathgetEmbeddedManyRoot(String path)<T> voidprepareMany(io.ebeaninternal.server.deploy.BeanDescriptor<T> desc)For 'many' nested properties we need an additional root based graph to fetch and update.
-
Constructor Details
-
DocStructure
Create given an initial deployment doc mapping.
-
-
Method Details
-
addProperty
Add a property at the root level. -
addNested
Add an embedded property with it's document structure. -
doc
Return the document structure. -
getEmbedded
Return the document structure for an embedded path. -
getEmbeddedManyRoot
-
prepareMany
For 'many' nested properties we need an additional root based graph to fetch and update.
-