public interface ILazySessionOperations
Modifier and Type | Method and Description |
---|---|
ILazyLoaderWithInclude |
include(com.mysema.query.types.Path<?> path)
Begin a load while including the specified path
|
ILazyLoaderWithInclude |
include(String path)
Begin a load while including the specified path
|
<TResult> Lazy<TResult[]> |
load(Class<TResult> clazz,
Action1<TResult[]> onEval,
Number... ids)
Loads the specified entities with the specified id after applying
conventions on the provided id to get the real document id.
|
<TResult> Lazy<TResult[]> |
load(Class<TResult> clazz,
Action1<TResult[]> onEval,
UUID... ids)
Loads the specified entities with the specified id after applying
conventions on the provided id to get the real document id.
|
<TResult> Lazy<TResult[]> |
load(Class<TResult> clazz,
Collection<String> ids)
Loads the specified entities with the specified ids.
|
<TResult> Lazy<TResult[]> |
load(Class<TResult> clazz,
Collection<String> ids,
Action1<TResult[]> onEval)
Loads the specified entities with the specified ids and a function to call when it is evaluated
|
<TResult> Lazy<TResult[]> |
load(Class<TResult> clazz,
Number... ids)
Loads the specified entities with the specified id after applying
conventions on the provided id to get the real document id.
|
<TResult> Lazy<TResult> |
load(Class<TResult> clazz,
Number id)
Loads the specified entity with the specified id after applying
conventions on the provided id to get the real document id.
|
<TResult> Lazy<TResult> |
load(Class<TResult> clazz,
Number id,
Action1<TResult> onEval)
Loads the specified entity with the specified id after applying
conventions on the provided id to get the real document id.
|
<TResult> Lazy<TResult> |
load(Class<TResult> clazz,
String id)
Loads the specified id.
|
<TResult> Lazy<TResult[]> |
load(Class<TResult> clazz,
String[] ids)
Loads the specified entities with the specified ids.
|
<TResult> Lazy<TResult[]> |
load(Class<TResult> clazz,
String[] ids,
Action1<TResult[]> onEval)
Loads the specified entities with the specified ids and a function to call when it is evaluated
|
<TResult> Lazy<TResult> |
load(Class<TResult> clazz,
String id,
Action1<TResult> onEval)
Loads the specified id and a function to call when it is evaluated
|
<TResult> Lazy<TResult[]> |
load(Class<TResult> clazz,
UUID... ids)
Loads the specified entities with the specified id after applying
conventions on the provided id to get the real document id.
|
<TResult> Lazy<TResult> |
load(Class<TResult> clazz,
UUID id)
Loads the specified entity with the specified id after applying
conventions on the provided id to get the real document id.
|
<TResult> Lazy<TResult> |
load(Class<TResult> clazz,
UUID id,
Action1<TResult> onEval)
Loads the specified entity with the specified id after applying
conventions on the provided id to get the real document id.
|
<TResult,TTransformer extends AbstractTransformerCreationTask> |
load(Class<TTransformer> transformerClass,
Class<TResult> clazz,
String[] ids,
LoadConfigurationFactory configure)
Performs a load that will use the specified results transformer against the specified id
|
<TResult,TTransformer extends AbstractTransformerCreationTask> |
load(Class<TTransformer> transformerClass,
Class<TResult> clazz,
String id,
LoadConfigurationFactory configure)
Performs a load that will use the specified results transformer against the specified id
|
<TResult> Lazy<TResult[]> |
loadStartingWith(Class<TResult> clazz,
String keyPrefix)
Load documents with the specified key prefix
|
<TResult> Lazy<TResult[]> |
loadStartingWith(Class<TResult> clazz,
String keyPrefix,
String matches)
Load documents with the specified key prefix
|
<TResult> Lazy<TResult[]> |
loadStartingWith(Class<TResult> clazz,
String keyPrefix,
String matches,
int start)
Load documents with the specified key prefix
|
<TResult> Lazy<TResult[]> |
loadStartingWith(Class<TResult> clazz,
String keyPrefix,
String matches,
int start,
int pageSize)
Load documents with the specified key prefix
|
<TResult> Lazy<TResult[]> |
loadStartingWith(Class<TResult> clazz,
String keyPrefix,
String matches,
int start,
int pageSize,
String exclude)
Load documents with the specified key prefix
|
<TResult> Lazy<TResult[]> |
loadStartingWith(Class<TResult> clazz,
String keyPrefix,
String matches,
int start,
int pageSize,
String exclude,
RavenPagingInformation pagingInformation)
Loads multiple entities that contain common prefix.
|
<TResult> Lazy<TResult[]> |
loadStartingWith(Class<TResult> clazz,
String keyPrefix,
String matches,
int start,
int pageSize,
String exclude,
RavenPagingInformation pagingInformation,
String skipAfter)
Loads multiple entities that contain common prefix.
|
<TResult> Lazy<TResult[]> |
moreLikeThis(Class<TResult> clazz,
MoreLikeThisQuery query) |
ILazyLoaderWithInclude include(String path)
path
- Path in documents in which server should look for a 'referenced' documents.ILazyLoaderWithInclude include(com.mysema.query.types.Path<?> path)
path
- Path in documents in which server should look for a 'referenced' documents.<TResult> Lazy<TResult[]> load(Class<TResult> clazz, String[] ids)
ids
- Array of Ids that should be loaded<TResult> Lazy<TResult[]> load(Class<TResult> clazz, String[] ids, Action1<TResult[]> onEval)
clazz
- Defines type of objectids
- Array of Ids that should be loadedonEval
- Action to be executed on evaluation<TResult> Lazy<TResult[]> load(Class<TResult> clazz, Collection<String> ids)
ids
- Collection of Ids that should be loaded<TResult> Lazy<TResult[]> load(Class<TResult> clazz, Collection<String> ids, Action1<TResult[]> onEval)
clazz
- Defines type of objectids
- Collection of Ids that should be loadedonEval
- Action to be executed on evaluation<TResult> Lazy<TResult> load(Class<TResult> clazz, String id)
clazz
- Defines type of objectid
- Identifier of a entity that will be loaded.<TResult> Lazy<TResult> load(Class<TResult> clazz, String id, Action1<TResult> onEval)
clazz
- Defines type of objectid
- Identifier of a entity that will be loaded.onEval
- Action to be executed on evaluation<TResult> Lazy<TResult> load(Class<TResult> clazz, Number id)
clazz
- Defines type of objectid
- <TResult> Lazy<TResult> load(Class<TResult> clazz, UUID id)
clazz
- Defines type of objectid
- <TResult> Lazy<TResult> load(Class<TResult> clazz, Number id, Action1<TResult> onEval)
id
- onEval
- Action to be executed on evaluation<TResult> Lazy<TResult> load(Class<TResult> clazz, UUID id, Action1<TResult> onEval)
id
- onEval
- Action to be executed on evaluation<TResult> Lazy<TResult[]> load(Class<TResult> clazz, Number... ids)
<TResult> Lazy<TResult[]> load(Class<TResult> clazz, UUID... ids)
<TResult> Lazy<TResult[]> load(Class<TResult> clazz, Action1<TResult[]> onEval, Number... ids)
<TResult> Lazy<TResult[]> load(Class<TResult> clazz, Action1<TResult[]> onEval, UUID... ids)
<TResult> Lazy<TResult[]> loadStartingWith(Class<TResult> clazz, String keyPrefix)
clazz
- Defines type of objectkeyPrefix
- Loads multiple entities that contain common prefix.<TResult> Lazy<TResult[]> loadStartingWith(Class<TResult> clazz, String keyPrefix, String matches)
clazz
- Defines type of objectkeyPrefix
- Loads multiple entities that contain common prefix.matches
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should be matched ('?' any single character, '*' any characters)<TResult> Lazy<TResult[]> loadStartingWith(Class<TResult> clazz, String keyPrefix, String matches, int start)
clazz
- Defines type of objectkeyPrefix
- Loads multiple entities that contain common prefix.matches
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should be matched ('?' any single character, '*' any characters)start
- Number of documents that should be skipped. By default: 0.<TResult> Lazy<TResult[]> loadStartingWith(Class<TResult> clazz, String keyPrefix, String matches, int start, int pageSize)
clazz
- Defines type of objectkeyPrefix
- Loads multiple entities that contain common prefix.matches
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should be matched ('?' any single character, '*' any characters)start
- Number of documents that should be skipped. By default: 0.pageSize
- Maximum number of documents that will be retrieved. By default: 25.<TResult> Lazy<TResult[]> loadStartingWith(Class<TResult> clazz, String keyPrefix, String matches, int start, int pageSize, String exclude)
clazz
- Defines type of objectkeyPrefix
- Loads multiple entities that contain common prefix.matches
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should be matched ('?' any single character, '*' any characters)start
- Number of documents that should be skipped. By default: 0.pageSize
- Maximum number of documents that will be retrieved. By default: 25.exclude
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should not be matched ('?' any single character, '*' any characters)<TResult> Lazy<TResult[]> loadStartingWith(Class<TResult> clazz, String keyPrefix, String matches, int start, int pageSize, String exclude, RavenPagingInformation pagingInformation)
clazz
- Defines type of objectkeyPrefix
- Loads multiple entities that contain common prefix.matches
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should be matched ('?' any single character, '*' any characters)start
- Number of documents that should be skipped. By default: 0.pageSize
- Maximum number of documents that will be retrieved. By default: 25.exclude
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should not be matched ('?' any single character, '*' any characters)pagingInformation
- Used to perform rapid pagination on a server side<TResult> Lazy<TResult[]> loadStartingWith(Class<TResult> clazz, String keyPrefix, String matches, int start, int pageSize, String exclude, RavenPagingInformation pagingInformation, String skipAfter)
clazz
- Defines type of objectkeyPrefix
- Loads multiple entities that contain common prefix.matches
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should be matched ('?' any single character, '*' any characters)start
- Number of documents that should be skipped. By default: 0.pageSize
- Maximum number of documents that will be retrieved. By default: 25.exclude
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should not be matched ('?' any single character, '*' any characters)pagingInformation
- Used to perform rapid pagination on a server sideskipAfter
- Skip document fetching until given key is found and return documents after that key (default: null)<TResult> Lazy<TResult[]> moreLikeThis(Class<TResult> clazz, MoreLikeThisQuery query)
<TResult,TTransformer extends AbstractTransformerCreationTask> Lazy<TResult> load(Class<TTransformer> transformerClass, Class<TResult> clazz, String id, LoadConfigurationFactory configure)
transformerClass
- The transformer to use in this load operationclazz
- Defines type of objectid
- Id of a entity to loadconfigure
- Additional configuration options for operation e.g. AddTransformerParameter<TResult,TTransformer extends AbstractTransformerCreationTask> Lazy<TResult[]> load(Class<TTransformer> transformerClass, Class<TResult> clazz, String[] ids, LoadConfigurationFactory configure)
transformerClass
- The transformer to use in this load operationclazz
- Defines type of objectids
- Array of ids of documents to loadconfigure
- Additional configuration options for operation e.g. AddTransformerParameterCopyright © 2016. All Rights Reserved.