Package org.openrdf.store

Examples of org.openrdf.store.Isolation


    return true;
  }

  @Override
  public Isolation getDefaultIsolation() {
    Isolation compatible = Isolation.NONE;
    for (Isolation isolation : Isolation.values()) {
      for (RepositoryMetaData md : members) {
        if (!md.getDefaultIsolation().isCompatibleWith(isolation)) {
          return compatible;
        }
View Full Code Here


  @Override
  public Isolation getTransactionIsolation()
    throws StoreException
  {
    Isolation compatible = Isolation.NONE;
    for (Isolation isolation : Isolation.values()) {
      for (RepositoryConnection member : members) {
        Isolation currently = member.getTransactionIsolation();
        if (!currently.isCompatibleWith(isolation)) {
          return compatible;
        }
      }
      compatible = isolation;
    }
View Full Code Here

  }

  public void testSupportsIsolationLevel()
    throws Exception
  {
    Isolation isolation = testCon.getTransactionIsolation();
    RepositoryMetaData meta = testRepository.getMetaData();
    assertEquals(isolation, meta.getDefaultIsolation());
    for (Isolation i : Isolation.values()) {
      if (isolation.isCompatibleWith(i)) {
        assertTrue(meta.supportsIsolation(i));
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.openrdf.store.Isolation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.