Package org.apache.jena.jdbc.mem
Class MemDriver
- java.lang.Object
-
- org.apache.jena.jdbc.JenaDriver
-
- org.apache.jena.jdbc.mem.MemDriver
-
- All Implemented Interfaces:
java.sql.Driver
public class MemDriver extends JenaDriver
A Jena JDBC driver which creates connections to in-memory datasets
Connection URL
This driver expects a URL of the following form:
jdbc:jena:mem:dataset=file.nq
The
datasetparameter is used to refer to a file containing the dataset you wish to load. Note that if you are creating the connection in code you may alternatively opt to provide aDatasetinstance directly as a property nameddatasetto theJenaDriver.connect(String, Properties)method instead.If you simply want to start with an empty dataset you may instead set the
emptyparameter to be true e.g.jdbc:jena:mem:empty=true
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringMEM_DRIVER_PREFIXConstant for the memory driver prefix, this is appended to the baseJenaDriver.DRIVER_PREFIXto form the URL prefix for JDBC Connection URLs for this driverstatic java.lang.StringPARAM_DATASETConstant for the connection URL parameter used to specify a dataset file/instance to usestatic java.lang.StringPARAM_EMPTYConstant for the connection URL parameter used to specify that an empty dataset should be used.-
Fields inherited from class org.apache.jena.jdbc.JenaDriver
DRIVER_PREFIX, NO_AUTO_LOGGING_CONFIGURATION, PARAM_CONFIG, PARAM_JDBC_COMPATIBILITY, PARAM_LOGGING, PARAM_PASSWORD, PARAM_POST_PROCESSOR, PARAM_PRE_PROCESSOR, PARAM_USERNAME
-
-
Constructor Summary
Constructors Constructor Description MemDriver()Creates a new driver
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidregister()Registers the driver with the JDBCDriverManager-
Methods inherited from class org.apache.jena.jdbc.JenaDriver
acceptsURL, connect, getMajorVersion, getMinorVersion, getParentLogger, getPropertyInfo, jdbcCompliant
-
-
-
-
Field Detail
-
MEM_DRIVER_PREFIX
public static final java.lang.String MEM_DRIVER_PREFIX
Constant for the memory driver prefix, this is appended to the baseJenaDriver.DRIVER_PREFIXto form the URL prefix for JDBC Connection URLs for this driver- See Also:
- Constant Field Values
-
PARAM_DATASET
public static final java.lang.String PARAM_DATASET
Constant for the connection URL parameter used to specify a dataset file/instance to use- See Also:
- Constant Field Values
-
PARAM_EMPTY
public static final java.lang.String PARAM_EMPTY
Constant for the connection URL parameter used to specify that an empty dataset should be used. IfPARAM_DATASETis present then that parameter has precedence.- See Also:
- Constant Field Values
-
-