public interface StoredQueries extends Iterable<StoredQuery>
| Modifier and Type | Method and Description |
|---|---|
void |
add(StoredQuery query)
Stores the given query.
|
void |
clear()
Removes all the stored queries.
|
StoredQuery |
get(String name)
Returns the stored query with the given name.
|
Iterator<StoredQuery> |
iterator()
Returns an iterator of all stored queries.
|
void |
remove(String name)
Removed the stored query with the given name.
|
forEach, spliteratorvoid clear()
throws StardogException
StardogException - if there is an error removing the queriesvoid add(StoredQuery query) throws StardogException
query - the query being storedcom.complexible.stardog.server.QueryExistsException - if there is an existing stored query with the given nameStardogException - An error occurs storing the queryStoredQuery get(String name) throws StardogException
name - the name of the stored query being soughtcom.complexible.stardog.server.QueryNotFoundException - if the stored query with the given name does not existStardogException - An error occurs while getting the queryIterator<StoredQuery> iterator()
iterator in interface Iterable<StoredQuery>void remove(String name) throws StardogException
name - the name of the stored query being removedcom.complexible.stardog.server.QueryNotFoundException - if the stored query with the given name does not existStardogException - An error occurs while removing the queryCopyright © 2010-2016 Stardog Union. All Rights Reserved.