Package de.dfki.sds.aticsqlite
Class DatabaseLongLivedConnection
java.lang.Object
de.dfki.sds.aticsqlite.DatabaseLongLivedConnection
- All Implemented Interfaces:
Database,AutoCloseable,org.apache.jena.sparql.core.Transactional
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jena.sparql.core.Transactional
org.apache.jena.sparql.core.Transactional.Promote -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()voidbegin(org.apache.jena.query.TxnType type) voidclose()voidcommit()voidvoidenableQueryLogger(String dbFilePath) voidend()booleanbooleanisInTransaction(long transactionId) booleanpromote(org.apache.jena.sparql.core.Transactional.Promote mode) <T> Tread(String sql, ResultSetMapper<T> mapper, Object... params) org.apache.jena.query.ReadWriteorg.apache.jena.query.TxnTypevoidvoidwriteBatch(String sql, List<Object[]> batchParams, int batchSize) writeBatchReturningId(String sql, List<Object[]> batchParams, int batchSize) voidwriteQuery(String sqlQueryResource, Object... params) longwriteReturningId(String sql, Object... params) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.dfki.sds.aticsqlite.Database
bindParams, loadSqlMethods inherited from interface org.apache.jena.sparql.core.Transactional
begin, begin, calc, calculate, calculateRead, calculateWrite, exec, execute, executeRead, executeWrite, promote
-
Constructor Details
-
DatabaseLongLivedConnection
-
-
Method Details
-
begin
public void begin(org.apache.jena.query.TxnType type) - Specified by:
beginin interfaceorg.apache.jena.sparql.core.Transactional
-
commit
public void commit()- Specified by:
commitin interfaceorg.apache.jena.sparql.core.Transactional
-
abort
public void abort()- Specified by:
abortin interfaceorg.apache.jena.sparql.core.Transactional
-
end
public void end()- Specified by:
endin interfaceorg.apache.jena.sparql.core.Transactional
-
promote
public boolean promote(org.apache.jena.sparql.core.Transactional.Promote mode) - Specified by:
promotein interfaceorg.apache.jena.sparql.core.Transactional
-
transactionMode
public org.apache.jena.query.ReadWrite transactionMode()- Specified by:
transactionModein interfaceorg.apache.jena.sparql.core.Transactional
-
transactionType
public org.apache.jena.query.TxnType transactionType()- Specified by:
transactionTypein interfaceorg.apache.jena.sparql.core.Transactional
-
isInTransaction
public boolean isInTransaction()- Specified by:
isInTransactionin interfaceorg.apache.jena.sparql.core.Transactional
-
read
- Specified by:
readin interfaceDatabase- Throws:
SQLException
-
read
- Specified by:
readin interfaceDatabase- Throws:
SQLException
-
write
- Specified by:
writein interfaceDatabase- Throws:
SQLException
-
writeQuery
- Specified by:
writeQueryin interfaceDatabase- Throws:
SQLException
-
writeBatch
- Specified by:
writeBatchin interfaceDatabase- Throws:
SQLException
-
writeReturningId
- Specified by:
writeReturningIdin interfaceDatabase- Throws:
SQLException
-
writeBatchReturningId
public List<Long> writeBatchReturningId(String sql, List<Object[]> batchParams, int batchSize) throws SQLException - Specified by:
writeBatchReturningIdin interfaceDatabase- Throws:
SQLException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
getFolder
-
enableQueryLogger
- Specified by:
enableQueryLoggerin interfaceDatabase
-
disableQueryLogger
public void disableQueryLogger()- Specified by:
disableQueryLoggerin interfaceDatabase
-
isInTransaction
public boolean isInTransaction(long transactionId) - Specified by:
isInTransactionin interfaceDatabase
-
emptyIterator
- Specified by:
emptyIteratorin interfaceDatabase
-