Package org.apache.clerezza.rdf.core.access

Examples of org.apache.clerezza.rdf.core.access.NoSuchEntityException


        datasetLock.readLock().lock();
        try {
            if(graphNames.contains(name) || name.equals(defaultGraphName)){
                return getModelGraph(name,false,false).getGraph();
            } else {
                throw new NoSuchEntityException(name);
            }
        } finally {
            datasetLock.readLock().unlock();
        }
    }
View Full Code Here


        datasetLock.readLock().lock();
        try {
            if(mGraphNames.contains(name)){
                return getModelGraph(name,true,false).getMGraph();
            } else {
                throw new NoSuchEntityException(name);
            }
        } finally {
            datasetLock.readLock().unlock();
        }
    }
View Full Code Here

            if(graphNames.contains(name) || name.equals(defaultGraphName)){
                return getGraph(name);
            } else if(mGraphNames.contains(name)){
                return getMGraph(name);
            } else {
                throw new NoSuchEntityException(name);
            }
        } finally {
            datasetLock.readLock().unlock();
        }
    }
View Full Code Here

        datasetLock.readLock().lock();
        try {
            if (isExistingGraphName(name, Symbols.Graph) || name.equals(defaultGraphName)){
                return getModelGraph(name,false,false).getGraph();
            } else {
                throw new NoSuchEntityException(name);
            }
        } finally {
            datasetLock.readLock().unlock();
        }
    }
View Full Code Here

        datasetLock.readLock().lock();
        try {
            if(isExistingGraphName(name, Symbols.MGraph)){
                return getModelGraph(name,true,false).getMGraph();
            } else {
                throw new NoSuchEntityException(name);
            }
        } finally {
            datasetLock.readLock().unlock();
        }
    }
View Full Code Here

            if(isExistingGraphName(name, Symbols.Graph) || name.equals(defaultGraphName)){
                return getGraph(name);
            } else if(isExistingGraphName(name, Symbols.MGraph)){
                return getMGraph(name);
            } else {
                throw new NoSuchEntityException(name);
            }
        } finally {
            datasetLock.readLock().unlock();
        }
    }
View Full Code Here

    }

    @Override
    public Graph getGraph(UriRef name) throws NoSuchEntityException {
        if (!graphMap.containsKey(name)) {
            throw new NoSuchEntityException(name);
        }
        return graphMap.get(name);
    }
View Full Code Here

    }

    @Override
    public synchronized MGraph getMGraph(UriRef name) throws NoSuchEntityException {
        if (!mGraphMap.containsKey(name)) {
            throw new NoSuchEntityException(name);
        }
        return mGraphMap.get(name);
    }
View Full Code Here

        }
        if (deleteTcDir(getMGraphDir(name))) {
            mGraphMap.remove(name);
            return;
        }
        throw new NoSuchEntityException(name);
    }
View Full Code Here

  }

  @Override
  public Graph getGraph(UriRef name) throws NoSuchEntityException {
    if (!graphMap.containsKey(name)) {
      throw new NoSuchEntityException(name);
    }
    return graphMap.get(name);
  }
View Full Code Here

TOP

Related Classes of org.apache.clerezza.rdf.core.access.NoSuchEntityException

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.