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
All Methods Instance Methods Concrete Methods 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 Detail
-
DocStructure
public DocStructure(PathProperties pathProps)
Create given an initial deployment doc mapping.
-
-
Method Detail
-
addProperty
public void addProperty(String name)
Add a property at the root level.
-
addNested
public void addNested(String path, PathProperties embeddedDoc)
Add an embedded property with it's document structure.
-
doc
public PathProperties doc()
Return the document structure.
-
getEmbedded
public FetchPath getEmbedded(String path)
Return the document structure for an embedded path.
-
getEmbeddedManyRoot
public FetchPath getEmbeddedManyRoot(String path)
-
prepareMany
public <T> void prepareMany(io.ebeaninternal.server.deploy.BeanDescriptor<T> desc)
For 'many' nested properties we need an additional root based graph to fetch and update.
-
-