Interface NamedQueryRpc
public interface NamedQueryRpc
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbeginTransaction(@NonNull String projectName, String datasource, int isolationLevel, long timeout) voidclearCache(@NonNull String project, List<String> namedQueries) Clears the caches of the specified named queries in the project.execute(@NonNull String project, String queryPath, NamedQueryRpc.JavaSerializedPayload parameters, String tx, boolean getKey) booleanexecuteSFQuery(@NonNull String project, String path, NamedQueryRpc.JavaSerializedPayload parameters) executeUnsaved(@NonNull String project, NamedQuery query, NamedQueryRpc.JavaSerializedPayload parameters, boolean canCache, boolean canLimit, String tx, boolean getKey) getParameters(@NonNull String project, String queryPath) static <T> Tunwrap(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
-