Class ContentLoaderHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.syncope.core.persistence.common.content.AbstractContentLoaderHandler
org.apache.syncope.core.persistence.neo4j.content.ContentLoaderHandler
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
SAX handler for generating CREATE statements out of given XML file.
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static final record
protected static final record
protected static final record
-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.neo4j.driver.Driver
protected final org.springframework.data.neo4j.core.mapping.Neo4jMappingContext
Fields inherited from class org.apache.syncope.core.persistence.common.content.AbstractContentLoaderHandler
continueOnError, fetches, LOG, paramSubstitutor
-
Constructor Summary
ConstructorDescriptionContentLoaderHandler
(org.neo4j.driver.Driver driver, org.springframework.data.neo4j.core.mapping.Neo4jMappingContext mappingContext, String rootElement, boolean continueOnError, Environment env) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
create
(String qName, Attributes atts) protected static String
protected void
fetch
(Attributes atts) protected static String
nodelabels
(String primaryLabel) protected Optional
<ContentLoaderHandler.Node> parseNode
(org.springframework.data.neo4j.core.mapping.NodeDescription<?> nodeDesc, Attributes atts) protected Optional
<ContentLoaderHandler.Relationship> parseRelationship
(org.springframework.data.neo4j.core.mapping.NodeDescription<?> nodeDesc, String rightNode, Attributes atts) Methods inherited from class org.apache.syncope.core.persistence.common.content.AbstractContentLoaderHandler
startElement
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
driver
protected final org.neo4j.driver.Driver driver -
mappingContext
protected final org.springframework.data.neo4j.core.mapping.Neo4jMappingContext mappingContext
-
-
Constructor Details
-
ContentLoaderHandler
public ContentLoaderHandler(org.neo4j.driver.Driver driver, org.springframework.data.neo4j.core.mapping.Neo4jMappingContext mappingContext, String rootElement, boolean continueOnError, Environment env)
-
-
Method Details
-
nodelabels
-
escape
-
fetch
- Specified by:
fetch
in classAbstractContentLoaderHandler
-
parseNode
protected Optional<ContentLoaderHandler.Node> parseNode(org.springframework.data.neo4j.core.mapping.NodeDescription<?> nodeDesc, Attributes atts) -
parseRelationship
protected Optional<ContentLoaderHandler.Relationship> parseRelationship(org.springframework.data.neo4j.core.mapping.NodeDescription<?> nodeDesc, String rightNode, Attributes atts) -
create
- Specified by:
create
in classAbstractContentLoaderHandler
-