Interface NamedQueryRpc
public interface NamedQueryRpc
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbeginTransaction
(String projectName, String datasource, int isolationLevel, long timeout) void
clearCache
(String project, List<String> namedQueries) Clears the caches of the specified named queries in the project.execute
(String project, String queryPath, NamedQueryRpc.JavaSerializedPayload parameters, String tx, boolean getKey) boolean
executeSFQuery
(String project, String path, NamedQueryRpc.JavaSerializedPayload parameters) executeUnsaved
(String project, NamedQuery query, NamedQueryRpc.JavaSerializedPayload parameters, boolean canCache, boolean canLimit, String tx, boolean getKey) getParameters
(String project, String queryPath) static <T> T
unwrap
(NamedQueryRpc.JavaSerializedPayload javaSerializedPayload)
-
Field Details
-
SERIALIZER
-
-
Method Details
-
beginTransaction
String beginTransaction(@Nonnull String projectName, String datasource, int isolationLevel, long timeout) throws Exception - Throws:
Exception
-
execute
NamedQueryRpc.JavaSerializedPayload execute(@Nonnull String project, String queryPath, NamedQueryRpc.JavaSerializedPayload parameters, String tx, boolean getKey) throws Exception - Throws:
Exception
-
executeUnsaved
NamedQueryRpc.JavaSerializedPayload executeUnsaved(@Nonnull String project, NamedQuery query, NamedQueryRpc.JavaSerializedPayload parameters, boolean canCache, boolean canLimit, String tx, boolean getKey) throws Exception - Throws:
Exception
-
executeSFQuery
boolean executeSFQuery(@Nonnull String project, String path, NamedQueryRpc.JavaSerializedPayload parameters) throws Exception - Throws:
Exception
-
getParameters
-
clearCache
Clears the caches of the specified named queries in the project. If the list of named queries is null, all named query caches in the project will be cleared.- Parameters:
project
- The project name. Must not be null.namedQueries
- A list of paths to the named queries whose caches should be cleared. If null, all caches will be cleared.- Throws:
Exception
- if the project cannot be found or is invalid.
-
wrap
-
unwrap
-