public class BlueprintsAwareHandler extends AbstractBlueprintsHandler
PersistenceHandler
for BlueprintsPersistenceBackend
s.
This handler has a key conflicts resolution feature, but it consumes much more memory than a handler without conflicts resolution. Make sure you have enough memory to avoid heap space.
verticesCache
DEFAULT_CACHE_SIZE
Modifier | Constructor and Description |
---|---|
protected |
BlueprintsAwareHandler(BlueprintsPersistenceBackend backend)
Constructs a new
BlueprintsAwareHandler on the given backend . |
Modifier and Type | Method and Description |
---|---|
protected Vertex |
createVertex(Id id)
Creates a
Vertex identified by the specified id . |
protected Vertex |
getVertex(Id id)
Returns the
Vertex which has the specified id . |
addAttribute, addElement, addReference, getId, processStartDocument, setMetaClass
createElement, getOrCreateMetaClass, getPersistenceBackend, processAttribute, processCharacters, processEndDocument, processEndElement, processReference, processStartElement
protected BlueprintsAwareHandler(BlueprintsPersistenceBackend backend)
BlueprintsAwareHandler
on the given backend
.backend
- the back-end where to store dataprotected Vertex getVertex(Id id)
AbstractBlueprintsHandler
Vertex
which has the specified id
.getVertex
in class AbstractBlueprintsHandler
id
- the identifier of the vertexVertex
protected Vertex createVertex(Id id)
AbstractBlueprintsHandler
Vertex
identified by the specified id
.createVertex
in class AbstractBlueprintsHandler
id
- the identifier of the vertexVertex
Copyright © 2013–2017 Atlanmod INRIA LINA Mines Nantes. All rights reserved.