public class BlueprintsNaiveHandler extends AbstractBlueprintsHandler
PersistenceHandler
for BlueprintsPersistenceBackend
s, without key conflict resolution.
Unlike the BlueprintsAwareHandler
, this handler does not solve key conflicts. However, they are
detected and an exception is raised to avoid the creation of an unusable back-end.
verticesCache
DEFAULT_CACHE_SIZE
Modifier | Constructor and Description |
---|---|
protected |
BlueprintsNaiveHandler(BlueprintsPersistenceBackend backend)
Constructs a new
BlueprintsNaiveHandler 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 BlueprintsNaiveHandler(BlueprintsPersistenceBackend backend)
BlueprintsNaiveHandler
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.