com.hp.hpl.jena.tdb
Class StoreConnection

java.lang.Object
  extended by com.hp.hpl.jena.tdb.StoreConnection

public class StoreConnection
extends Object

Interface to the TDB transaction mechanism.


Method Summary
 com.hp.hpl.jena.tdb.transaction.DatasetGraphTxn begin(ReadWrite mode)
          Begin a transaction.
 com.hp.hpl.jena.tdb.transaction.DatasetGraphTxn begin(ReadWrite 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(com.hp.hpl.jena.tdb.base.file.Location location, boolean force)
          Stop managing a location.
 com.hp.hpl.jena.tdb.store.DatasetGraphTDB getBaseDataset()
          testing operation - do not use the base dataset without knowing how the transaction system uses it
static StoreConnection getExisting(com.hp.hpl.jena.tdb.base.file.Location location)
          Return the StoreConnection if one already exists for this location, else return null
 com.hp.hpl.jena.tdb.base.file.Location getLocation()
           
 com.hp.hpl.jena.tdb.transaction.SysTxnState getTransMgrState()
          Return a description of the transaction manager state
 boolean haveUsedInTransaction()
           
static StoreConnection make(com.hp.hpl.jena.tdb.base.file.Location location)
          Return a StoreConnection for a particular connection.
static StoreConnection make(String location)
          Obtain a StoreConenction for a particular location
static void release(com.hp.hpl.jena.tdb.base.file.Location location)
          Stop managing a location.
static void reset()
          Stop managing all locations.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

haveUsedInTransaction

public boolean haveUsedInTransaction()

getLocation

public com.hp.hpl.jena.tdb.base.file.Location getLocation()

getTransMgrState

public com.hp.hpl.jena.tdb.transaction.SysTxnState getTransMgrState()
Return a description of the transaction manager state


begin

public com.hp.hpl.jena.tdb.transaction.DatasetGraphTxn begin(ReadWrite mode)
Begin a transaction. Terminate a write transaction with Transaction.commit() or Transaction.abort(). Terminate a write transaction with Transaction.close().


begin

public com.hp.hpl.jena.tdb.transaction.DatasetGraphTxn begin(ReadWrite mode,
                                                             String label)
Begin a transaction, giving it a label. Terminate a write transaction with Transaction.commit() or Transaction.abort(). Terminate a write transaction with Transaction.close().


getBaseDataset

public com.hp.hpl.jena.tdb.store.DatasetGraphTDB getBaseDataset()
testing operation - do not use the base dataset without knowing how the transaction system uses it


make

public static StoreConnection make(String location)
Obtain a StoreConenction for a particular location


reset

public static void reset()
Stop managing all locations. Use with great care.


release

public static void release(com.hp.hpl.jena.tdb.base.file.Location location)
Stop managing a location. There should be no transactions running.


expel

public static void expel(com.hp.hpl.jena.tdb.base.file.Location location,
                         boolean force)
Stop managing a location. Use with great care (testing only).


make

public static StoreConnection make(com.hp.hpl.jena.tdb.base.file.Location location)
Return a StoreConnection for a particular connection. This is used to create transactions for the database at the location.


getExisting

public static StoreConnection getExisting(com.hp.hpl.jena.tdb.base.file.Location location)
Return the StoreConnection if one already exists for this location, else return null


createMemUncached

public static StoreConnection createMemUncached()
Return a StoreConnection backed by in-memory datastructures (for testing).



Licenced under the Apache License, Version 2.0