Package de.julielab.concepts.db.core
Class CypherFileDBExporter
- java.lang.Object
-
- de.julielab.concepts.db.core.DataExporterImpl
-
- de.julielab.concepts.db.core.CypherFileDBExporter
-
- All Implemented Interfaces:
DatabaseConnected,DataExporter,de.julielab.jssf.commons.spi.ExtensionPoint,de.julielab.jssf.commons.spi.ParameterExposing
public class CypherFileDBExporter extends DataExporterImpl
-
-
Constructor Summary
Constructors Constructor Description CypherFileDBExporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexportData(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> exportConfig)Export data from the database to an external location.voidexposeParameters(String basePath, org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> template)StringgetName()voidsetConnection(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> connectionConfiguration)Requires the implementing service provider to check if the given connection is supported and, if so, to use it for later method calls.-
Methods inherited from class de.julielab.concepts.db.core.DataExporterImpl
decode, getResourceHeader, writeData
-
-
-
-
Method Detail
-
setConnection
public void setConnection(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> connectionConfiguration) throws ConceptDatabaseConnectionExceptionDescription copied from interface:DatabaseConnectedRequires the implementing service provider to check if the given connection is supported and, if so, to use it for later method calls. Please not that this kind of state requires caution in case of multithreading.
If the provider cannot serve to given connection configuration, it is required to throw a
ConceptDatabaseConnectionException. This serves as the indication that the provider is not applicable for the required connection type. Typically, it will then just be omitted by its service.- Parameters:
connectionConfiguration- The connection details, e.g. HTTP, BOLT or file-based connection.- Throws:
ConceptDatabaseConnectionException- If the provider does not support the passed connection configuration.
-
getName
public String getName()
-
exposeParameters
public void exposeParameters(String basePath, org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> template)
-
exportData
public void exportData(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> exportConfig) throws DataExportException, IncompatibleActionHandlerConnectionExceptionDescription copied from interface:DataExporterExport data from the database to an external location.- Parameters:
exportConfig- Export subconfiguration.- Throws:
DataExportException- When the implementing exporter can not serve the provided export configuration.IncompatibleActionHandlerConnectionException
-
-