public class LazyShardSessionOperations extends Object implements ILazySessionOperations
Modifier and Type | Field and Description |
---|---|
protected ShardedDocumentSession |
delegate |
Constructor and Description |
---|
LazyShardSessionOperations(ShardedDocumentSession delegate) |
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
|
<T> Lazy<T[]> |
load(Class<T> clazz,
Collection<String> ids)
Loads the specified ids.
|
<T> Lazy<T[]> |
load(Class<T> clazz,
Number... ids)
Loads the specified entities with the specified id after applying
conventions on the provided id to get the real document id.
|
<T> Lazy<T> |
load(Class<T> clazz,
Number id)
Loads the specified entity with the specified id after applying
conventions on the provided id to get the real document id.
|
<T> Lazy<T> |
load(Class<T> clazz,
Number id,
Action1<T> onEval)
Loads the specified entity with the specified id after applying
conventions on the provided id to get the real document id.
|
<T> Lazy<T> |
load(Class<T> clazz,
String id)
Loads the specified id.
|
<T> Lazy<T[]> |
load(Class<T> clazz,
String[] ids)
Loads the specified ids.
|
<T> Lazy<T> |
load(Class<T> clazz,
String id,
Action1<T> onEval)
Loads the specified id and a function to call when it is evaluated
|
<T> Lazy<T[]> |
load(Class<T> clazz,
UUID... ids)
Loads the specified entities with the specified id after applying
conventions on the provided id to get the real document id.
|
<T> Lazy<T> |
load(Class<T> clazz,
UUID id)
Loads the specified entity with the specified id after applying
conventions on the provided id to get the real document id.
|
<T> Lazy<T> |
load(Class<T> clazz,
UUID id,
Action1<T> 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,
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,
Action1<TResult[]> onEval)
Loads the specified ids and a function to call when it is evaluated
|
<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,TTransformer extends AbstractTransformerCreationTask> |
load(Class<TTransformer> tranformerClass,
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> tranformerClass,
Class<TResult> clazz,
String id,
LoadConfigurationFactory configure)
Performs a load that will use the specified results transformer against the specified id
|
<T> Lazy<T[]> |
loadStartingWith(Class<T> clazz,
String keyPrefix)
Load documents with the specified key prefix
|
<T> Lazy<T[]> |
loadStartingWith(Class<T> clazz,
String keyPrefix,
String matches)
Load documents with the specified key prefix
|
<T> Lazy<T[]> |
loadStartingWith(Class<T> clazz,
String keyPrefix,
String matches,
int start)
Load documents with the specified key prefix
|
<T> Lazy<T[]> |
loadStartingWith(Class<T> 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) |
protected ShardedDocumentSession delegate
public LazyShardSessionOperations(ShardedDocumentSession delegate)
public ILazyLoaderWithInclude include(com.mysema.query.types.Path<?> path)
include
in interface ILazySessionOperations
path
- Path in documents in which server should look for a 'referenced' documents.public <T> Lazy<T[]> load(Class<T> clazz, String[] ids)
load
in interface ILazySessionOperations
ids
- Array of Ids that should be loadedpublic <TResult> Lazy<TResult[]> load(Class<TResult> clazz, String[] ids, Action1<TResult[]> onEval)
ILazySessionOperations
load
in interface ILazySessionOperations
clazz
- Defines type of objectids
- Array of Ids that should be loadedonEval
- Action to be executed on evaluationpublic <T> Lazy<T[]> load(Class<T> clazz, Collection<String> ids)
load
in interface ILazySessionOperations
ids
- Collection of Ids that should be loadedpublic <T> Lazy<T> load(Class<T> clazz, String id)
load
in interface ILazySessionOperations
clazz
- Defines type of objectid
- Identifier of a entity that will be loaded.public <TResult> Lazy<TResult[]> load(Class<TResult> clazz, Collection<String> ids, Action1<TResult[]> onEval)
load
in interface ILazySessionOperations
clazz
- Defines type of objectids
- Collection of Ids that should be loadedonEval
- Action to be executed on evaluationpublic <T> Lazy<T> load(Class<T> clazz, String id, Action1<T> onEval)
load
in interface ILazySessionOperations
clazz
- Defines type of objectid
- Identifier of a entity that will be loaded.onEval
- Action to be executed on evaluationpublic <T> Lazy<T> load(Class<T> clazz, Number id, Action1<T> onEval)
ILazySessionOperations
load
in interface ILazySessionOperations
onEval
- Action to be executed on evaluationpublic <T> Lazy<T> load(Class<T> clazz, UUID id, Action1<T> onEval)
ILazySessionOperations
load
in interface ILazySessionOperations
onEval
- Action to be executed on evaluationpublic <T> Lazy<T[]> load(Class<T> clazz, Number... ids)
ILazySessionOperations
load
in interface ILazySessionOperations
public <T> Lazy<T[]> load(Class<T> clazz, UUID... ids)
ILazySessionOperations
load
in interface ILazySessionOperations
public <TResult> Lazy<TResult[]> load(Class<TResult> clazz, Action1<TResult[]> onEval, Number... ids)
ILazySessionOperations
load
in interface ILazySessionOperations
public <TResult> Lazy<TResult[]> load(Class<TResult> clazz, Action1<TResult[]> onEval, UUID... ids)
ILazySessionOperations
load
in interface ILazySessionOperations
public <TResult,TTransformer extends AbstractTransformerCreationTask> Lazy<TResult> load(Class<TTransformer> tranformerClass, Class<TResult> clazz, String id, LoadConfigurationFactory configure)
ILazySessionOperations
load
in interface ILazySessionOperations
tranformerClass
- 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. AddTransformerParameterpublic <TResult,TTransformer extends AbstractTransformerCreationTask> Lazy<TResult[]> load(Class<TTransformer> tranformerClass, Class<TResult> clazz, String[] ids, LoadConfigurationFactory configure)
ILazySessionOperations
load
in interface ILazySessionOperations
tranformerClass
- 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. AddTransformerParameterpublic ILazyLoaderWithInclude include(String path)
include
in interface ILazySessionOperations
path
- Path in documents in which server should look for a 'referenced' documents.public <T> Lazy<T> load(Class<T> clazz, Number id)
ILazySessionOperations
load
in interface ILazySessionOperations
clazz
- Defines type of objectpublic <T> Lazy<T> load(Class<T> clazz, UUID id)
ILazySessionOperations
load
in interface ILazySessionOperations
clazz
- Defines type of objectpublic <T> Lazy<T[]> loadStartingWith(Class<T> clazz, String keyPrefix)
ILazySessionOperations
loadStartingWith
in interface ILazySessionOperations
clazz
- Defines type of objectkeyPrefix
- Loads multiple entities that contain common prefix.public <T> Lazy<T[]> loadStartingWith(Class<T> clazz, String keyPrefix, String matches)
ILazySessionOperations
loadStartingWith
in interface ILazySessionOperations
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)public <T> Lazy<T[]> loadStartingWith(Class<T> clazz, String keyPrefix, String matches, int start)
ILazySessionOperations
loadStartingWith
in interface ILazySessionOperations
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.public <T> Lazy<T[]> loadStartingWith(Class<T> clazz, String keyPrefix, String matches, int start, int pageSize)
ILazySessionOperations
loadStartingWith
in interface ILazySessionOperations
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.public <TResult> Lazy<TResult[]> loadStartingWith(Class<TResult> clazz, String keyPrefix, String matches, int start, int pageSize, String exclude)
ILazySessionOperations
loadStartingWith
in interface ILazySessionOperations
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)public <TResult> Lazy<TResult[]> loadStartingWith(Class<TResult> clazz, String keyPrefix, String matches, int start, int pageSize, String exclude, RavenPagingInformation pagingInformation)
ILazySessionOperations
loadStartingWith
in interface ILazySessionOperations
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 sidepublic <TResult> Lazy<TResult[]> loadStartingWith(Class<TResult> clazz, String keyPrefix, String matches, int start, int pageSize, String exclude, RavenPagingInformation pagingInformation, String skipAfter)
ILazySessionOperations
loadStartingWith
in interface ILazySessionOperations
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)public <TResult> Lazy<TResult[]> moreLikeThis(Class<TResult> clazz, MoreLikeThisQuery query)
moreLikeThis
in interface ILazySessionOperations
Copyright © 2016. All Rights Reserved.