Class MemConnection
java.lang.Object
org.apache.jena.jdbc.connections.JenaConnection
org.apache.jena.jdbc.connections.DatasetConnection
org.apache.jena.jdbc.mem.connections.MemConnection
- All Implemented Interfaces:
AutoCloseable
,Connection
,Wrapper
Represents a dataset connection backed by an in-memory dataset
-
Field Summary
Fields inherited from class org.apache.jena.jdbc.connections.JenaConnection
DEFAULT_AUTO_COMMIT, DEFAULT_HOLDABILITY, DEFAULT_ISOLATION_LEVEL
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
-
Constructor Summary
ConstructorsConstructorDescriptionMemConnection
(Dataset ds, int holdability, boolean autoCommit, int transactionLevel, int compatibilityLevel) Creates a new connection -
Method Summary
Methods inherited from class org.apache.jena.jdbc.connections.DatasetConnection
begin, getJenaDataset, isClosed, isReadOnly, isValid, setReadOnly
Methods inherited from class org.apache.jena.jdbc.connections.JenaConnection
abort, addPostProcessor, addPreProcessor, applyPostProcessors, applyPostProcessors, applyPostProcessors, applyPostProcessors, applyPostProcessors, applyPostProcessors, applyPreProcessors, applyPreProcessors, applyPreProcessors, clearPostProcessors, clearPreProcessors, clearWarnings, close, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getHoldability, getJdbcCompatibilityLevel, getNetworkTimeout, getPostProcessors, getPreProcessors, getSchema, getTransactionIsolation, getTypeMap, getWarnings, insertPostProcessor, insertPreProcessor, isWrapperFor, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, removePostProcessor, removePostProcessor, removePreProcessor, removePreProcessor, rollback, rollback, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setHoldability, setJdbcCompatibilityLevel, setNetworkTimeout, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTypeMap, unwrap
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.sql.Connection
beginRequest, endRequest, setShardingKey, setShardingKey, setShardingKeyIfValid, setShardingKeyIfValid
-
Constructor Details
-
MemConnection
public MemConnection(Dataset ds, int holdability, boolean autoCommit, int transactionLevel, int compatibilityLevel) throws SQLException Creates a new connection- Parameters:
ds
- Datasetholdability
- Result Set holdabilityautoCommit
- Sets auto-commit behavior for the connectiontransactionLevel
- Sets transaction isolation level for the connectioncompatibilityLevel
- Sets JDBC compatibility level for the connection, seeJdbcCompatibility
- Throws:
SQLException
-
-
Method Details
-
getMetaData
- Specified by:
getMetaData
in interfaceConnection
- Specified by:
getMetaData
in classJenaConnection
-