public interface StoredQuery
Shared queries can be executed by any user. Private
queries can only be executed by their creator or super users. Stored queries can be executed over the getDatabase() database} associated
with the query. The special value "*" indicates a query can be executed over any database.| Modifier and Type | Field and Description |
|---|---|
static String |
ALL_DATABASES
Special value indicating a stored query can be executed over all databases.
|
static Pattern |
VALID_NAME_PATTERN
Regex for validating stored query names
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCreator()
Returns the name of the user who stored the query.
|
String |
getDatabase()
Returns the name of the database for this query.
|
String |
getName()
Returns the name of the stored query.
|
String |
getQuery()
Returns the query string.
|
boolean |
isShared()
Returns
true if this query is shared by all the users. |
static boolean |
isValidName(String name)
Returns
true if the given name is a valid stored query name. |
static final String ALL_DATABASES
static final Pattern VALID_NAME_PATTERN
String getName()
String getQuery()
String getCreator()
String getDatabase()
boolean isShared()
true if this query is shared by all the users. Shared queries can be executed by any user.true if this query is shared by all the usersstatic boolean isValidName(String name)
true if the given name is a valid stored query name.name - query name to validatetrue if the given name is a valid stored query name.Copyright © 2010-2016 Stardog Union. All Rights Reserved.