public class NamedQueryClientRpc extends java.lang.Object implements NamedQueryRpc
Constructor and Description |
---|
NamedQueryClientRpc() |
Modifier and Type | Method and Description |
---|---|
void |
clearAllCaches(java.lang.String project)
This clears all named query caches for the project.
|
void |
clearCache(java.lang.String project,
java.lang.String namedQueries)
This clears the named query cache for the path(s) that are passed in the namedQueries parameter.
|
java.lang.Object |
execute(java.lang.Long projectId,
NamedQuery query,
java.util.Map<java.lang.String,java.lang.Object> parameters,
boolean canCache,
boolean canLimit) |
java.lang.Object |
execute(java.lang.Long projectId,
java.lang.String queryPath,
java.util.Map<java.lang.String,java.lang.Object> parameters,
boolean canCache,
boolean canLimit) |
java.lang.Object |
execute(java.lang.String project,
NamedQuery query,
java.util.Map<java.lang.String,java.lang.Object> parameters,
boolean useLimit,
int limit)
Deprecated.
|
java.lang.Object |
execute(java.lang.String project,
java.lang.String queryPath,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Deprecated.
|
java.lang.Object |
execute(java.lang.String project,
java.lang.String queryPath,
java.util.Map<java.lang.String,java.lang.Object> parameters,
boolean useLimit,
int limit)
Deprecated.
|
public java.lang.Object execute(java.lang.Long projectId, java.lang.String queryPath, java.util.Map<java.lang.String,java.lang.Object> parameters, boolean canCache, boolean canLimit) throws java.lang.Exception
execute
in interface NamedQueryRpc
java.lang.Exception
public java.lang.Object execute(java.lang.Long projectId, NamedQuery query, java.util.Map<java.lang.String,java.lang.Object> parameters, boolean canCache, boolean canLimit) throws java.lang.Exception
execute
in interface NamedQueryRpc
java.lang.Exception
@Deprecated public java.lang.Object execute(java.lang.String project, java.lang.String queryPath, java.util.Map<java.lang.String,java.lang.Object> parameters) throws java.lang.Exception
execute
in interface NamedQueryRpc
java.lang.Exception
@Deprecated public java.lang.Object execute(java.lang.String project, java.lang.String queryPath, java.util.Map<java.lang.String,java.lang.Object> parameters, boolean useLimit, int limit) throws java.lang.Exception
NamedQueryRpc
execute
in interface NamedQueryRpc
project
- The project name.queryPath
- Full query pathparameters
- Optional query parametersuseLimit
- Testing may limit the number of results. Default true.limit
- If useLimit, the limit to use, else ignored.java.lang.Exception
- Throws exception if path not found or sql error.@Deprecated public java.lang.Object execute(java.lang.String project, NamedQuery query, java.util.Map<java.lang.String,java.lang.Object> parameters, boolean useLimit, int limit) throws java.lang.Exception
NamedQueryRpc
execute
in interface NamedQueryRpc
project
- The project name.query
- A named query resource.parameters
- Map of parameter valuesuseLimit
- Testing may limit the number of results. Default true.limit
- If useLimit, the limit to use, else ignored.java.lang.Exception
- Throws exception if path not found or sql error.public void clearCache(java.lang.String project, java.lang.String namedQueries) throws java.lang.Exception
NamedQueryRpc
clearCache
in interface NamedQueryRpc
project
- The project name. Must not be null or emptynamedQueries
- a String (or String array on gateway) containing the paths
to the named query resources to clear. Must not be null or emptyjava.lang.Exception
- if the cache(s) cannot be clearedpublic void clearAllCaches(java.lang.String project) throws java.lang.Exception
NamedQueryRpc
clearAllCaches
in interface NamedQueryRpc
project
- The project name. Must not be null or emptyjava.lang.Exception
- if the caches cannot be cleared.