@ParametersAreNonnullByDefault public class ModelGraph extends IdGraph<ModelGraph> implements Copiable<ModelGraph>
Graph representing a meta-model.| Constructor and Description | 
|---|
| ModelGraph(com.tinkerpop.blueprints.KeyIndexableGraph baseGraph)Constructs a new  ModelGraph. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | copyTo(ModelGraph target) | 
| Optional<ClassVertex> | getClassVertex(ClassBean bean)Returns the meta-class vertex associated to the provided  bean. | 
| Stream<ClassVertex> | getClassVertices(Set<ClassBean> beans)Returns all meta-class vertices associated to the given  beans. | 
| Converter<Id,Object> | getIdConverter()Returns the converter to use a primitive representation instead of a complete  Id. | 
| ElementVertex | getOrCreateVertex(Id id)Returns the vertex referenced by the provided  id. | 
| Optional<ElementVertex> | getVertex(Id id)Returns the vertex referenced by the provided  id. | 
| void | removeVertex(com.tinkerpop.blueprints.Vertex vertex) | 
| boolean | requiresUniqueLabels()Return  trueif the base graph requires unique labels and properties. | 
| protected void | updateIndex(ClassVertex classVertex)Updates the meta-classes index with the specified  classVertex. | 
addEdge, addEdge, addVertex, addVertex, commit, createIndex, createIndex, createKeyIndex, dropIndex, dropKeyIndex, getBaseGraph, getEdge, getEdge, getEdges, getEdges, getEdges, getEdges, getFeatures, getIndex, getIndex, getIndexedKeys, getIndices, getOrCreateIndex, getVertex, getVertex, getVertices, getVertices, getVertices, getVertices, isSupportEdgeIds, isSupportVertexIds, query, removeEdge, rollback, shutdown, stopTransaction, toStringpublic ModelGraph(com.tinkerpop.blueprints.KeyIndexableGraph baseGraph)
ModelGraph.baseGraph - the base graph@Nonnull public Converter<Id,Object> getIdConverter()
Id.public boolean requiresUniqueLabels()
true if the base graph requires unique labels and properties.true if the base graph requires unique labels and properties@Nonnull public Optional<ElementVertex> getVertex(Id id)
id.id - the identifier of the vertex to retrieve from the graphOptional containing the vertex referenced by the provided identifier, or Optional.empty() when no such vertex existsIdGraph.getVertex(Object), 
Converter.convert(Object)@Nonnull public ElementVertex getOrCreateVertex(Id id)
id. If no such vertex exists, it will be created and added
 to the graph.id - the identifier of the vertex to retrieve, or create, from the graphIdGraph.getVertex(Object), 
IdGraph.addVertex(Object), 
Converter.convert(Object)public void removeVertex(com.tinkerpop.blueprints.Vertex vertex)
removeVertex in interface com.tinkerpop.blueprints.GraphremoveVertex in class IdGraph<ModelGraph>@Nonnull public Optional<ClassVertex> getClassVertex(ClassBean bean)
bean.bean - the simple representation of the meta-classOptional containing the meta-class vertex@Nonnull public Stream<ClassVertex> getClassVertices(Set<ClassBean> beans)
beans.beans - a set of simple representation of the meta-classesprotected void updateIndex(ClassVertex classVertex)
classVertex. If the index already contains the vertex
 then this method does nothing.classVertex - the meta-class vertex to indexpublic void copyTo(ModelGraph target)
copyTo in interface Copiable<ModelGraph>Copyright © 2013–2019 Atlanmod. All rights reserved.