use of org.apache.jena.tdb2.store.DatasetGraphTDB in project jena by apache.
the class TDBInternal method expel.
/**
* Stop managing a DatasetGraph. Use with great care.
*/
public static synchronized void expel(DatasetGraph dsg, boolean force) {
Location locContainer = null;
Location locStorage = null;
if (dsg instanceof DatasetGraphSwitchable) {
locContainer = ((DatasetGraphSwitchable) dsg).getLocation();
dsg = ((DatasetGraphSwitchable) dsg).getWrapped();
}
if (dsg instanceof DatasetGraphTDB)
locStorage = ((DatasetGraphTDB) dsg).getLocation();
DatabaseConnection.internalExpel(locContainer, force);
StoreConnection.internalExpel(locStorage, force);
}
use of org.apache.jena.tdb2.store.DatasetGraphTDB in project jena by apache.
the class TDBInternal method expel.
/**
* Stop managing a DatasetGraph. Use with great care.
*/
public static synchronized void expel(DatasetGraph dsg) {
Location locContainer = null;
Location locStorage = null;
if (dsg instanceof DatasetGraphSwitchable) {
locContainer = ((DatasetGraphSwitchable) dsg).getLocation();
dsg = ((DatasetGraphSwitchable) dsg).getWrapped();
}
if (dsg instanceof DatasetGraphTDB)
locStorage = ((DatasetGraphTDB) dsg).getLocation();
if (locContainer != null)
DatabaseConnection.internalExpel(locContainer, false);
StoreConnection.internalExpel(locStorage, false);
}
Aggregations