public class StoreConnection extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
activeTransactions()
Indicate whether there are any active transactions.
|
org.apache.jena.tdb.transaction.DatasetGraphTxn |
begin(ReadWrite mode)
Deprecated.
Use
begin(TxnType) |
org.apache.jena.tdb.transaction.DatasetGraphTxn |
begin(ReadWrite mode,
String label)
Deprecated.
|
org.apache.jena.tdb.transaction.DatasetGraphTxn |
begin(TxnType mode)
Begin a transaction.
|
org.apache.jena.tdb.transaction.DatasetGraphTxn |
begin(TxnType mode,
String label)
Begin a transaction, giving it a label.
|
static StoreConnection |
createMemUncached()
Return a StoreConnection backed by in-memory
datastructures (for testing).
|
static void |
expel(org.apache.jena.tdb.base.file.Location location,
boolean force)
Stop managing a location.
|
void |
flush()
Flush the delayed write queue to the base storage.
|
void |
forceRecoverFromJournal()
Flush the journal regardless - use with great case - do not use when transactions may be active.
|
org.apache.jena.tdb.store.DatasetGraphTDB |
getBaseDataset()
Internal operation - to get a dataset for application use, call a
TDBFactory function. |
static StoreConnection |
getExisting(org.apache.jena.tdb.base.file.Location location)
Return the StoreConnection if one already exists for this location, else
return null
|
org.apache.jena.tdb.base.file.Location |
getLocation() |
org.apache.jena.tdb.transaction.TransactionManager |
getTransactionManager()
For internal use only
|
org.apache.jena.tdb.transaction.SysTxnState |
getTransMgrState()
Return a description of the transaction manager state
|
boolean |
haveUsedInTransaction() |
boolean |
isValid() |
static StoreConnection |
make(org.apache.jena.tdb.base.file.Location location)
Make a StoreConnection based on any StoreParams at the location or the system defaults.
|
static StoreConnection |
make(org.apache.jena.tdb.base.file.Location location,
org.apache.jena.tdb.setup.StoreParams params)
Return a StoreConnection for a particular connection.
|
static StoreConnection |
make(String location)
Obtain a StoreConnection for a particular location
|
void |
printJournal()
Highly risky!
|
static void |
release(org.apache.jena.tdb.base.file.Location location)
Stop managing a location.
|
static void |
reset()
Stop managing all locations.
|
public boolean isValid()
public boolean haveUsedInTransaction()
public org.apache.jena.tdb.base.file.Location getLocation()
public org.apache.jena.tdb.transaction.SysTxnState getTransMgrState()
@Deprecated public org.apache.jena.tdb.transaction.DatasetGraphTxn begin(ReadWrite mode)
begin(TxnType)public org.apache.jena.tdb.transaction.DatasetGraphTxn begin(TxnType mode)
Transaction.commit() or Transaction.abort().
Terminate a write transaction with Transaction.close().@Deprecated public org.apache.jena.tdb.transaction.DatasetGraphTxn begin(ReadWrite mode, String label)
begin(TxnType, String)public org.apache.jena.tdb.transaction.DatasetGraphTxn begin(TxnType mode, String label)
Transaction.commit() or Transaction.abort().
Terminate a write transaction with Transaction.close().public org.apache.jena.tdb.store.DatasetGraphTDB getBaseDataset()
TDBFactory function. Do not use the base dataset without knowing how the
transaction system uses it.public org.apache.jena.tdb.transaction.TransactionManager getTransactionManager()
public void flush()
public boolean activeTransactions()
getTransMgrState()public void forceRecoverFromJournal()
public void printJournal()
public static StoreConnection make(String location)
public static void reset()
public static void release(org.apache.jena.tdb.base.file.Location location)
public static void expel(org.apache.jena.tdb.base.file.Location location, boolean force)
public static StoreConnection make(org.apache.jena.tdb.base.file.Location location, org.apache.jena.tdb.setup.StoreParams params)
public static StoreConnection make(org.apache.jena.tdb.base.file.Location location)
public static StoreConnection getExisting(org.apache.jena.tdb.base.file.Location location)
public static StoreConnection createMemUncached()
Licenced under the Apache License, Version 2.0