public class DocumentSession extends InMemoryDocumentSessionOperations implements IDocumentSessionImpl, ISyncAdvancedSessionOperation, IDocumentQueryGenerator
Modifier and Type | Class and Description |
---|---|
protected class |
DocumentSession.DisableAllCachingCallback |
dbName, deletedEntities, entitiesAndMetadata, entitiesByKey, entityToJson, generateDocumentKeysOnStore, includedDocumentsByKey, knownMissingIds, log, onEvaluateLazy, pendingLazyOperations, theListeners
Constructor and Description |
---|
DocumentSession(java.lang.String dbName,
DocumentStore documentStore,
DocumentSessionListeners listeners,
java.util.UUID id,
IDatabaseCommands databaseCommands)
Initializes a new instance of the
DocumentSession class. |
Modifier and Type | Method and Description |
---|---|
Lazy<java.lang.Integer> |
addLazyCountOperation(ILazyOperation operation) |
<T> Lazy<T> |
addLazyOperation(ILazyOperation operation,
Action1<T> onEval) |
ISyncAdvancedSessionOperation |
advanced()
Get the accessor for advanced operations
Note: Those operations are rarely needed, and have been moved to a separate
property to avoid cluttering the API
|
<T> IDocumentQuery<T> |
documentQuery(java.lang.Class<T> clazz)
Dynamically query RavenDB using Lucene syntax
|
<T,TIndexCreator extends AbstractIndexCreationTask> |
documentQuery(java.lang.Class<T> clazz,
java.lang.Class<TIndexCreator> indexClazz)
Queries the index specified by
|
<T> IDocumentQuery<T> |
documentQuery(java.lang.Class<T> clazz,
java.lang.String indexName)
Query the specified index using Lucene syntax
|
<T> IDocumentQuery<T> |
documentQuery(java.lang.Class<T> clazz,
java.lang.String indexName,
boolean isMapReduce)
Query the specified index using Lucene syntax
|
IEagerSessionOperations |
eagerly()
Access the eager operations
|
ResponseTimeInformation |
executeAllPendingLazyOperations()
Execute all the lazy requests pending within this session
|
protected java.lang.String |
generateKey(java.lang.Object entity) |
IDatabaseCommands |
getDatabaseCommands()
Gets the database commands.
|
java.lang.String |
getDocumentUrl(java.lang.Object entity)
Gets the document URL for the specified entity.
|
protected JsonDocument |
getJsonDocument(java.lang.String documentKey)
Get the json document by key from the store
|
ILoaderWithInclude |
include(java.lang.Class<?> targetClass,
com.mysema.query.types.Expression<?> path)
Begin a load while including the specified path
|
ILoaderWithInclude |
include(com.mysema.query.types.Expression<?> path)
Begin a load while including the specified path
|
ILoaderWithInclude |
include(java.lang.String path)
Begin a load while including the specified path
|
ILazySessionOperations |
lazily()
Access the lazy operations
|
<T> Lazy<T[]> |
lazyLoadInternal(java.lang.Class<T> clazz,
java.lang.String[] ids,
Tuple<java.lang.String,java.lang.Class<?>>[] includes,
Action1<T[]> onEval)
Register to lazily load documents and include
|
<T> T[] |
load(java.lang.Class<T> clazz,
java.util.Collection<java.lang.String> ids)
Loads the specified entities with the specified ids.
|
<T> T[] |
load(java.lang.Class<T> clazz,
java.lang.Number... ids)
Loads the specified entities with the specified id after applying
conventions on the provided id to get the real document id.
|
<T> T |
load(java.lang.Class<T> clazz,
java.lang.Number id)
Loads the specified entity with the specified id after applying
conventions on the provided id to get the real document id.
|
<T> T[] |
load(java.lang.Class<T> clazz,
java.lang.String... ids)
Loads the specified entities with the specified ids.
|
<T> T |
load(java.lang.Class<T> clazz,
java.lang.String id)
Loads the specified entity with the specified id.
|
<T> T[] |
load(java.lang.Class<T> clazz,
java.util.UUID... ids)
Loads the specified entities with the specified id after applying
conventions on the provided id to get the real document id.
|
<T> T |
load(java.lang.Class<T> clazz,
java.util.UUID id)
Loads the specified entity with the specified id after applying
conventions on the provided id to get the real document id.
|
<TResult> TResult[] |
load(java.lang.Class<TResult> clazz,
java.lang.String transformer,
java.util.Collection<java.lang.String> ids)
Performs a load that will use the specified results transformer against the specified id
|
<TResult> TResult[] |
load(java.lang.Class<TResult> clazz,
java.lang.String transformer,
java.util.Collection<java.lang.String> ids,
LoadConfigurationFactory configure)
Performs a load that will use the specified results transformer against the specified id
|
<TResult> TResult |
load(java.lang.Class<TResult> clazz,
java.lang.String transformer,
java.lang.String id)
Performs a load that will use the specified results transformer against the specified id
|
<TResult> TResult |
load(java.lang.Class<TResult> clazz,
java.lang.String transformer,
java.lang.String id,
LoadConfigurationFactory configure)
Performs a load that will use the specified results transformer against the specified id
|
<TResult,TTransformer extends AbstractTransformerCreationTask> |
load(java.lang.Class<TTransformer> tranformerClass,
java.lang.Class<TResult> clazz,
java.util.List<java.lang.String> ids,
LoadConfigurationFactory configureFactory)
Performs a load that will use the specified results transformer against the specified id
|
<TResult,TTransformer extends AbstractTransformerCreationTask> |
load(java.lang.Class<TTransformer> tranformerClass,
java.lang.Class<TResult> clazz,
java.lang.String... ids)
Performs a load that will use the specified results transformer against the specified id
|
<TResult,TTransformer extends AbstractTransformerCreationTask> |
load(java.lang.Class<TTransformer> tranformerClass,
java.lang.Class<TResult> clazz,
java.lang.String id)
Performs a load that will use the specified results transformer against the specified id
|
<TResult,TTransformer extends AbstractTransformerCreationTask> |
load(java.lang.Class<TTransformer> tranformerClass,
java.lang.Class<TResult> clazz,
java.lang.String id,
LoadConfigurationFactory configureFactory)
Performs a load that will use the specified results transformer against the specified id
|
<T> T[] |
loadInternal(java.lang.Class<T> clazz,
java.lang.String[] ids) |
<T> T[] |
loadInternal(java.lang.Class<T> clazz,
java.lang.String[] ids,
Tuple<java.lang.String,java.lang.Class<?>>[] includes) |
<T> T[] |
loadStartingWith(java.lang.Class<T> clazz,
java.lang.String keyPrefix)
Load documents with the specified key prefix
|
<T> T[] |
loadStartingWith(java.lang.Class<T> clazz,
java.lang.String keyPrefix,
java.lang.String matches)
Load documents with the specified key prefix
|
<T> T[] |
loadStartingWith(java.lang.Class<T> clazz,
java.lang.String keyPrefix,
java.lang.String matches,
int start)
Load documents with the specified key prefix
|
<T> T[] |
loadStartingWith(java.lang.Class<T> clazz,
java.lang.String keyPrefix,
java.lang.String matches,
int start,
int pageSize)
Load documents with the specified key prefix
|
<T> T[] |
loadStartingWith(java.lang.Class<T> clazz,
java.lang.String keyPrefix,
java.lang.String matches,
int start,
int pageSize,
java.lang.String exclude)
Load documents with the specified key prefix
|
<T> T[] |
loadStartingWith(java.lang.Class<T> clazz,
java.lang.String keyPrefix,
java.lang.String matches,
int start,
int pageSize,
java.lang.String exclude,
RavenPagingInformation pagingInformation)
Load documents with the specified key prefix
|
<T> T[] |
loadStartingWith(java.lang.Class<T> clazz,
java.lang.String keyPrefix,
java.lang.String matches,
int start,
int pageSize,
java.lang.String exclude,
RavenPagingInformation pagingInformation,
java.lang.String skipAfter)
Load documents with the specified key prefix
|
<TResult,TTransformer extends AbstractTransformerCreationTask> |
loadStartingWith(java.lang.Class<TResult> clazz,
java.lang.Class<TTransformer> transformerClass,
java.lang.String keyPrefix)
Loads documents with the specified key prefix and applies the specified results transformer against the results
|
<TResult,TTransformer extends AbstractTransformerCreationTask> |
loadStartingWith(java.lang.Class<TResult> clazz,
java.lang.Class<TTransformer> transformerClass,
java.lang.String keyPrefix,
java.lang.String matches)
Loads documents with the specified key prefix and applies the specified results transformer against the results
|
<TResult,TTransformer extends AbstractTransformerCreationTask> |
loadStartingWith(java.lang.Class<TResult> clazz,
java.lang.Class<TTransformer> transformerClass,
java.lang.String keyPrefix,
java.lang.String matches,
int start)
Loads documents with the specified key prefix and applies the specified results transformer against the results
|
<TResult,TTransformer extends AbstractTransformerCreationTask> |
loadStartingWith(java.lang.Class<TResult> clazz,
java.lang.Class<TTransformer> transformerClass,
java.lang.String keyPrefix,
java.lang.String matches,
int start,
int pageSize)
Loads documents with the specified key prefix and applies the specified results transformer against the results
|
<TResult,TTransformer extends AbstractTransformerCreationTask> |
loadStartingWith(java.lang.Class<TResult> clazz,
java.lang.Class<TTransformer> transformerClass,
java.lang.String keyPrefix,
java.lang.String matches,
int start,
int pageSize,
java.lang.String exclude)
Loads documents with the specified key prefix and applies the specified results transformer against the results
|
<TResult,TTransformer extends AbstractTransformerCreationTask> |
loadStartingWith(java.lang.Class<TResult> clazz,
java.lang.Class<TTransformer> transformerClass,
java.lang.String keyPrefix,
java.lang.String matches,
int start,
int pageSize,
java.lang.String exclude,
RavenPagingInformation pagingInformation)
Loads documents with the specified key prefix and applies the specified results transformer against the results
|
<TResult,TTransformer extends AbstractTransformerCreationTask> |
loadStartingWith(java.lang.Class<TResult> clazz,
java.lang.Class<TTransformer> transformerClass,
java.lang.String keyPrefix,
java.lang.String matches,
int start,
int pageSize,
java.lang.String exclude,
RavenPagingInformation pagingInformation,
LoadConfigurationFactory configure)
Loads documents with the specified key prefix and applies the specified results transformer against the results
|
<TResult,TTransformer extends AbstractTransformerCreationTask> |
loadStartingWith(java.lang.Class<TResult> clazz,
java.lang.Class<TTransformer> transformerClass,
java.lang.String keyPrefix,
java.lang.String matches,
int start,
int pageSize,
java.lang.String exclude,
RavenPagingInformation pagingInformation,
LoadConfigurationFactory configure,
java.lang.String skipAfter)
Loads documents with the specified key prefix and applies the specified results transformer against the results
|
<T> T[] |
moreLikeThis(java.lang.Class<T> entityClass,
java.lang.Class<? extends AbstractIndexCreationTask> indexCreator,
java.lang.Class<? extends AbstractTransformerCreationTask> transformerClass,
MoreLikeThisQuery parameters) |
<T> T[] |
moreLikeThis(java.lang.Class<T> entityClass,
java.lang.Class<? extends AbstractIndexCreationTask> indexCreator,
java.lang.Class<? extends AbstractTransformerCreationTask> transformerClass,
java.lang.String documentId) |
<T> T[] |
moreLikeThis(java.lang.Class<T> entityClass,
java.lang.Class<? extends AbstractIndexCreationTask> indexCreator,
MoreLikeThisQuery parameters) |
<T> T[] |
moreLikeThis(java.lang.Class<T> entityClass,
java.lang.Class<? extends AbstractIndexCreationTask> indexCreator,
java.lang.String documentId) |
<T> T[] |
moreLikeThis(java.lang.Class<T> entityClass,
java.lang.String index,
java.lang.String documentId) |
<T> T[] |
moreLikeThis(java.lang.Class<T> entityClass,
java.lang.String index,
java.lang.String transformer,
MoreLikeThisQuery parameters) |
<T> T[] |
moreLikeThis(java.lang.Class<T> entityClass,
java.lang.String index,
java.lang.String transformer,
java.lang.String documentId) |
FacetResults[] |
multiFacetedSearch(FacetQuery... facetQueries) |
<T> IRavenQueryable<T> |
query(java.lang.Class<T> clazz)
Query RavenDB dynamically using
|
<T> IRavenQueryable<T> |
query(java.lang.Class<T> clazz,
java.lang.Class<? extends AbstractIndexCreationTask> tIndexCreator)
Queries the index specified by tIndexCreator using Linq.
|
<T> IRavenQueryable<T> |
query(java.lang.Class<T> clazz,
java.lang.String indexName)
Queries the specified index.
|
<T> IRavenQueryable<T> |
query(java.lang.Class<T> clazz,
java.lang.String indexName,
boolean isMapReduce)
Queries the specified index.
|
<T> void |
refresh(T entity)
Refreshes the specified entity from Raven server.
|
void |
saveChanges()
Saves all the changes to the Raven server.
|
<T> CloseableIterator<StreamResult<T>> |
stream(java.lang.Class<T> entityClass)
Stream the results on the query to the client, converting them to
Java types along the way.
|
<T> CloseableIterator<StreamResult<T>> |
stream(java.lang.Class<T> entityClass,
Etag fromEtag)
Stream the results on the query to the client, converting them to
Java types along the way.
|
<T> CloseableIterator<StreamResult<T>> |
stream(java.lang.Class<T> entityClass,
Etag fromEtag,
java.lang.String startsWith)
Stream the results on the query to the client, converting them to
Java types along the way.
|
<T> CloseableIterator<StreamResult<T>> |
stream(java.lang.Class<T> entityClass,
Etag fromEtag,
java.lang.String startsWith,
java.lang.String matches)
Stream the results on the query to the client, converting them to
Java types along the way.
|
<T> CloseableIterator<StreamResult<T>> |
stream(java.lang.Class<T> entityClass,
Etag fromEtag,
java.lang.String startsWith,
java.lang.String matches,
int start)
Stream the results on the query to the client, converting them to
Java types along the way.
|
<T> CloseableIterator<StreamResult<T>> |
stream(java.lang.Class<T> entityClass,
Etag fromEtag,
java.lang.String startsWith,
java.lang.String matches,
int start,
int pageSize)
Stream the results on the query to the client, converting them to
Java types along the way.
|
<T> CloseableIterator<StreamResult<T>> |
stream(java.lang.Class<T> entityClass,
Etag fromEtag,
java.lang.String startsWith,
java.lang.String matches,
int start,
int pageSize,
RavenPagingInformation pagingInformation)
Stream the results on the query to the client, converting them to
Java types along the way.
|
<T> CloseableIterator<StreamResult<T>> |
stream(java.lang.Class<T> entityClass,
Etag fromEtag,
java.lang.String startsWith,
java.lang.String matches,
int start,
int pageSize,
RavenPagingInformation pagingInformation,
java.lang.String skipAfter)
Stream the results on the query to the client, converting them to
Java types along the way.
|
<T> CloseableIterator<StreamResult<T>> |
stream(IDocumentQuery<T> query)
Stream the results on the query to the client, converting them to
Java types along the way.
|
<T> CloseableIterator<StreamResult<T>> |
stream(IDocumentQuery<T> query,
Reference<QueryHeaderInformation> queryHeaderInformation)
Stream the results on the query to the client, converting them to
Java types along the way.
|
<T> CloseableIterator<StreamResult<T>> |
stream(IRavenQueryable<T> query)
Stream the results on the query to the client, converting them to
Java types along the way.
|
<T> CloseableIterator<StreamResult<T>> |
stream(IRavenQueryable<T> query,
Reference<QueryHeaderInformation> queryHeaderInformationRef)
Stream the results on the query to the client, converting them to
Java types along the way.
|
assertNoNonUniqueInstance, checkIfIdAlreadyIncluded, clear, close, convertToEntity, createDynamicIndexName, createPutEntityCommand, defer, delete, delete, delete, delete, ensureNotReadVetoed, entityChanged, entityChanged, evict, explicitlyVersion, getConventions, getDatabaseName, getDocumentId, getDocumentStore, getEntityToJson, getEtagFor, getExternalState, getGenerateEntityIdOnTheClient, getId, getListeners, getMaxNumberOfRequestsPerSession, getMetadataFor, getNonAuthoritativeInformationTimeout, getNumberOfEntitiesInUnitOfWork, getNumberOfRequests, getStoreIdentifier, hasChanged, hasChanges, hashCode, incrementRequestCount, isAllowNonAuthoritativeInformation, isDeleted, isLoaded, isUseOptimisticConcurrency, logBatch, markReadOnly, prepareForSaveChanges, refreshInternal, registerMissing, registerMissingIncludes, rememberEntityForDocumentKeyGeneration, setAllowNonAuthoritativeInformation, setDatabaseName, setMaxNumberOfRequestsPerSession, setNonAuthoritativeInformationTimeout, setUseOptimisticConcurrency, store, store, store, store, storeEntityInUnitOfWork, trackEntity, trackEntity, trackIncludedDocument, updateBatchResults, whatChanged
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getConventions
delete, delete, delete, delete, store, store, store, store
clear, defer, evict, explicitlyVersion, getDocumentId, getDocumentStore, getEtagFor, getExternalState, getMaxNumberOfRequestsPerSession, getMetadataFor, getNonAuthoritativeInformationTimeout, getNumberOfRequests, getStoreIdentifier, hasChanged, hasChanges, isAllowNonAuthoritativeInformation, isLoaded, isUseOptimisticConcurrency, markReadOnly, setAllowNonAuthoritativeInformation, setMaxNumberOfRequestsPerSession, setNonAuthoritativeInformationTimeout, setUseOptimisticConcurrency, whatChanged
getConventions
public DocumentSession(java.lang.String dbName, DocumentStore documentStore, DocumentSessionListeners listeners, java.util.UUID id, IDatabaseCommands databaseCommands)
DocumentSession
class.dbName
- documentStore
- listeners
- id
- databaseCommands
- public IDatabaseCommands getDatabaseCommands()
public ILazySessionOperations lazily()
lazily
in interface ISyncAdvancedSessionOperation
public IEagerSessionOperations eagerly()
eagerly
in interface ISyncAdvancedSessionOperation
public ISyncAdvancedSessionOperation advanced()
advanced
in interface IDocumentSession
public <T> T load(java.lang.Class<T> clazz, java.lang.String id)
load
in interface IDocumentSession
public <T> T[] load(java.lang.Class<T> clazz, java.util.Collection<java.lang.String> ids)
load
in interface IDocumentSession
public <T> T[] load(java.lang.Class<T> clazz, java.lang.String... ids)
IDocumentSession
load
in interface IDocumentSession
public <T> T load(java.lang.Class<T> clazz, java.lang.Number id)
IDocumentSession
load
in interface IDocumentSession
public <T> T load(java.lang.Class<T> clazz, java.util.UUID id)
IDocumentSession
load
in interface IDocumentSession
public <T> T[] load(java.lang.Class<T> clazz, java.lang.Number... ids)
IDocumentSession
load
in interface IDocumentSession
public <T> T[] load(java.lang.Class<T> clazz, java.util.UUID... ids)
IDocumentSession
load
in interface IDocumentSession
public <T> T[] loadInternal(java.lang.Class<T> clazz, java.lang.String[] ids, Tuple<java.lang.String,java.lang.Class<?>>[] includes)
loadInternal
in interface IDocumentSessionImpl
public <T> T[] loadInternal(java.lang.Class<T> clazz, java.lang.String[] ids)
loadInternal
in interface IDocumentSessionImpl
public <T> IRavenQueryable<T> query(java.lang.Class<T> clazz, java.lang.String indexName)
query
in interface IDocumentSession
clazz
- indexName
- public <T> IRavenQueryable<T> query(java.lang.Class<T> clazz, java.lang.String indexName, boolean isMapReduce)
query
in interface IDocumentSession
clazz
- The result of the queryindexName
- Name of the index.isMapReduce
- Whatever we are querying a map/reduce index (modify how we treat identifier properties)public <T> IRavenQueryable<T> query(java.lang.Class<T> clazz, java.lang.Class<? extends AbstractIndexCreationTask> tIndexCreator)
query
in interface IDocumentSession
clazz
- The result of the querytIndexCreator
- The type of the index creatorpublic <T> void refresh(T entity)
refresh
in interface ISyncAdvancedSessionOperation
protected JsonDocument getJsonDocument(java.lang.String documentKey)
getJsonDocument
in class InMemoryDocumentSessionOperations
protected java.lang.String generateKey(java.lang.Object entity)
generateKey
in class InMemoryDocumentSessionOperations
public ILoaderWithInclude include(java.lang.String path)
include
in interface IDocumentSession
public ILoaderWithInclude include(com.mysema.query.types.Expression<?> path)
include
in interface IDocumentSession
path
- public ILoaderWithInclude include(java.lang.Class<?> targetClass, com.mysema.query.types.Expression<?> path)
include
in interface IDocumentSession
path
- targetClass
- Target entity class (used for id generation)public <TResult,TTransformer extends AbstractTransformerCreationTask> TResult load(java.lang.Class<TTransformer> tranformerClass, java.lang.Class<TResult> clazz, java.lang.String id)
IDocumentSession
load
in interface IDocumentSession
tranformerClass
- The transformer to use in this load operationclazz
- The results shape to return after the load operationpublic <TResult,TTransformer extends AbstractTransformerCreationTask> TResult load(java.lang.Class<TTransformer> tranformerClass, java.lang.Class<TResult> clazz, java.lang.String id, LoadConfigurationFactory configureFactory)
IDocumentSession
load
in interface IDocumentSession
tranformerClass
- The transformer to use in this load operationclazz
- The results shape to return after the load operationpublic <TResult,TTransformer extends AbstractTransformerCreationTask> TResult[] load(java.lang.Class<TTransformer> tranformerClass, java.lang.Class<TResult> clazz, java.lang.String... ids)
IDocumentSession
load
in interface IDocumentSession
tranformerClass
- The transformer to use in this load operationclazz
- The results shape to return after the load operationpublic <TResult,TTransformer extends AbstractTransformerCreationTask> TResult[] load(java.lang.Class<TTransformer> tranformerClass, java.lang.Class<TResult> clazz, java.util.List<java.lang.String> ids, LoadConfigurationFactory configureFactory)
IDocumentSession
load
in interface IDocumentSession
tranformerClass
- The transformer to use in this load operationclazz
- The results shape to return after the load operationpublic <TResult> TResult load(java.lang.Class<TResult> clazz, java.lang.String transformer, java.lang.String id)
IDocumentSession
load
in interface IDocumentSession
clazz
- The results shape to return after the load operationpublic <TResult> TResult load(java.lang.Class<TResult> clazz, java.lang.String transformer, java.lang.String id, LoadConfigurationFactory configure)
IDocumentSession
load
in interface IDocumentSession
clazz
- The results shape to return after the load operationpublic <TResult> TResult[] load(java.lang.Class<TResult> clazz, java.lang.String transformer, java.util.Collection<java.lang.String> ids)
IDocumentSession
load
in interface IDocumentSession
clazz
- The results shape to return after the load operationpublic <TResult> TResult[] load(java.lang.Class<TResult> clazz, java.lang.String transformer, java.util.Collection<java.lang.String> ids, LoadConfigurationFactory configure)
IDocumentSession
load
in interface IDocumentSession
clazz
- The results shape to return after the load operationpublic java.lang.String getDocumentUrl(java.lang.Object entity)
getDocumentUrl
in interface ISyncAdvancedSessionOperation
public <T> CloseableIterator<StreamResult<T>> stream(IRavenQueryable<T> query)
ISyncAdvancedSessionOperation
stream
in interface ISyncAdvancedSessionOperation
public <T> CloseableIterator<StreamResult<T>> stream(IRavenQueryable<T> query, Reference<QueryHeaderInformation> queryHeaderInformationRef)
ISyncAdvancedSessionOperation
stream
in interface ISyncAdvancedSessionOperation
public <T> CloseableIterator<StreamResult<T>> stream(IDocumentQuery<T> query)
ISyncAdvancedSessionOperation
stream
in interface ISyncAdvancedSessionOperation
public <T> CloseableIterator<StreamResult<T>> stream(IDocumentQuery<T> query, Reference<QueryHeaderInformation> queryHeaderInformation)
ISyncAdvancedSessionOperation
stream
in interface ISyncAdvancedSessionOperation
public <T> CloseableIterator<StreamResult<T>> stream(java.lang.Class<T> entityClass)
ISyncAdvancedSessionOperation
stream
in interface ISyncAdvancedSessionOperation
public <T> CloseableIterator<StreamResult<T>> stream(java.lang.Class<T> entityClass, Etag fromEtag)
ISyncAdvancedSessionOperation
stream
in interface ISyncAdvancedSessionOperation
public <T> CloseableIterator<StreamResult<T>> stream(java.lang.Class<T> entityClass, Etag fromEtag, java.lang.String startsWith)
ISyncAdvancedSessionOperation
stream
in interface ISyncAdvancedSessionOperation
public <T> CloseableIterator<StreamResult<T>> stream(java.lang.Class<T> entityClass, Etag fromEtag, java.lang.String startsWith, java.lang.String matches)
ISyncAdvancedSessionOperation
stream
in interface ISyncAdvancedSessionOperation
public <T> CloseableIterator<StreamResult<T>> stream(java.lang.Class<T> entityClass, Etag fromEtag, java.lang.String startsWith, java.lang.String matches, int start)
ISyncAdvancedSessionOperation
stream
in interface ISyncAdvancedSessionOperation
public <T> CloseableIterator<StreamResult<T>> stream(java.lang.Class<T> entityClass, Etag fromEtag, java.lang.String startsWith, java.lang.String matches, int start, int pageSize)
ISyncAdvancedSessionOperation
stream
in interface ISyncAdvancedSessionOperation
public <T> CloseableIterator<StreamResult<T>> stream(java.lang.Class<T> entityClass, Etag fromEtag, java.lang.String startsWith, java.lang.String matches, int start, int pageSize, RavenPagingInformation pagingInformation)
ISyncAdvancedSessionOperation
stream
in interface ISyncAdvancedSessionOperation
public <T> CloseableIterator<StreamResult<T>> stream(java.lang.Class<T> entityClass, Etag fromEtag, java.lang.String startsWith, java.lang.String matches, int start, int pageSize, RavenPagingInformation pagingInformation, java.lang.String skipAfter)
ISyncAdvancedSessionOperation
stream
in interface ISyncAdvancedSessionOperation
public FacetResults[] multiFacetedSearch(FacetQuery... facetQueries)
multiFacetedSearch
in interface ISyncAdvancedSessionOperation
public void saveChanges()
saveChanges
in interface IDocumentSession
public <T,TIndexCreator extends AbstractIndexCreationTask> IDocumentQuery<T> documentQuery(java.lang.Class<T> clazz, java.lang.Class<TIndexCreator> indexClazz)
documentQuery
in interface ISyncAdvancedSessionOperation
clazz
- The result of the queryindexClazz
- The type of the index creator.public <T> IDocumentQuery<T> documentQuery(java.lang.Class<T> clazz, java.lang.String indexName)
ISyncAdvancedSessionOperation
documentQuery
in interface ISyncAdvancedSessionOperation
indexName
- Name of the index.public <T> IDocumentQuery<T> documentQuery(java.lang.Class<T> clazz, java.lang.String indexName, boolean isMapReduce)
documentQuery
in interface ISyncAdvancedSessionOperation
documentQuery
in interface IDocumentQueryGenerator
clazz
- indexName
- Name of the index.isMapReduce
- public <T> IRavenQueryable<T> query(java.lang.Class<T> clazz)
query
in interface IDocumentSession
clazz
- public <T> IDocumentQuery<T> documentQuery(java.lang.Class<T> clazz)
documentQuery
in interface ISyncAdvancedSessionOperation
public <T> Lazy<T> addLazyOperation(ILazyOperation operation, Action1<T> onEval)
public Lazy<java.lang.Integer> addLazyCountOperation(ILazyOperation operation)
public <T> Lazy<T[]> lazyLoadInternal(java.lang.Class<T> clazz, java.lang.String[] ids, Tuple<java.lang.String,java.lang.Class<?>>[] includes, Action1<T[]> onEval)
lazyLoadInternal
in interface IDocumentSessionImpl
public ResponseTimeInformation executeAllPendingLazyOperations()
IEagerSessionOperations
executeAllPendingLazyOperations
in interface IEagerSessionOperations
public <T> T[] loadStartingWith(java.lang.Class<T> clazz, java.lang.String keyPrefix)
ISyncAdvancedSessionOperation
loadStartingWith
in interface ISyncAdvancedSessionOperation
public <T> T[] loadStartingWith(java.lang.Class<T> clazz, java.lang.String keyPrefix, java.lang.String matches)
ISyncAdvancedSessionOperation
loadStartingWith
in interface ISyncAdvancedSessionOperation
public <T> T[] loadStartingWith(java.lang.Class<T> clazz, java.lang.String keyPrefix, java.lang.String matches, int start)
ISyncAdvancedSessionOperation
loadStartingWith
in interface ISyncAdvancedSessionOperation
public <T> T[] loadStartingWith(java.lang.Class<T> clazz, java.lang.String keyPrefix, java.lang.String matches, int start, int pageSize)
ISyncAdvancedSessionOperation
loadStartingWith
in interface ISyncAdvancedSessionOperation
public <T> T[] loadStartingWith(java.lang.Class<T> clazz, java.lang.String keyPrefix, java.lang.String matches, int start, int pageSize, java.lang.String exclude)
ISyncAdvancedSessionOperation
loadStartingWith
in interface ISyncAdvancedSessionOperation
public <T> T[] loadStartingWith(java.lang.Class<T> clazz, java.lang.String keyPrefix, java.lang.String matches, int start, int pageSize, java.lang.String exclude, RavenPagingInformation pagingInformation)
ISyncAdvancedSessionOperation
loadStartingWith
in interface ISyncAdvancedSessionOperation
public <T> T[] loadStartingWith(java.lang.Class<T> clazz, java.lang.String keyPrefix, java.lang.String matches, int start, int pageSize, java.lang.String exclude, RavenPagingInformation pagingInformation, java.lang.String skipAfter)
ISyncAdvancedSessionOperation
loadStartingWith
in interface ISyncAdvancedSessionOperation
public <TResult,TTransformer extends AbstractTransformerCreationTask> TResult[] loadStartingWith(java.lang.Class<TResult> clazz, java.lang.Class<TTransformer> transformerClass, java.lang.String keyPrefix)
ISyncAdvancedSessionOperation
loadStartingWith
in interface ISyncAdvancedSessionOperation
public <TResult,TTransformer extends AbstractTransformerCreationTask> TResult[] loadStartingWith(java.lang.Class<TResult> clazz, java.lang.Class<TTransformer> transformerClass, java.lang.String keyPrefix, java.lang.String matches)
ISyncAdvancedSessionOperation
loadStartingWith
in interface ISyncAdvancedSessionOperation
public <TResult,TTransformer extends AbstractTransformerCreationTask> TResult[] loadStartingWith(java.lang.Class<TResult> clazz, java.lang.Class<TTransformer> transformerClass, java.lang.String keyPrefix, java.lang.String matches, int start)
ISyncAdvancedSessionOperation
loadStartingWith
in interface ISyncAdvancedSessionOperation
public <TResult,TTransformer extends AbstractTransformerCreationTask> TResult[] loadStartingWith(java.lang.Class<TResult> clazz, java.lang.Class<TTransformer> transformerClass, java.lang.String keyPrefix, java.lang.String matches, int start, int pageSize)
ISyncAdvancedSessionOperation
loadStartingWith
in interface ISyncAdvancedSessionOperation
public <TResult,TTransformer extends AbstractTransformerCreationTask> TResult[] loadStartingWith(java.lang.Class<TResult> clazz, java.lang.Class<TTransformer> transformerClass, java.lang.String keyPrefix, java.lang.String matches, int start, int pageSize, java.lang.String exclude)
ISyncAdvancedSessionOperation
loadStartingWith
in interface ISyncAdvancedSessionOperation
public <TResult,TTransformer extends AbstractTransformerCreationTask> TResult[] loadStartingWith(java.lang.Class<TResult> clazz, java.lang.Class<TTransformer> transformerClass, java.lang.String keyPrefix, java.lang.String matches, int start, int pageSize, java.lang.String exclude, RavenPagingInformation pagingInformation)
ISyncAdvancedSessionOperation
loadStartingWith
in interface ISyncAdvancedSessionOperation
public <TResult,TTransformer extends AbstractTransformerCreationTask> TResult[] loadStartingWith(java.lang.Class<TResult> clazz, java.lang.Class<TTransformer> transformerClass, java.lang.String keyPrefix, java.lang.String matches, int start, int pageSize, java.lang.String exclude, RavenPagingInformation pagingInformation, LoadConfigurationFactory configure)
ISyncAdvancedSessionOperation
loadStartingWith
in interface ISyncAdvancedSessionOperation
public <TResult,TTransformer extends AbstractTransformerCreationTask> TResult[] loadStartingWith(java.lang.Class<TResult> clazz, java.lang.Class<TTransformer> transformerClass, java.lang.String keyPrefix, java.lang.String matches, int start, int pageSize, java.lang.String exclude, RavenPagingInformation pagingInformation, LoadConfigurationFactory configure, java.lang.String skipAfter)
ISyncAdvancedSessionOperation
loadStartingWith
in interface ISyncAdvancedSessionOperation
public <T> T[] moreLikeThis(java.lang.Class<T> entityClass, java.lang.Class<? extends AbstractIndexCreationTask> indexCreator, java.lang.String documentId)
moreLikeThis
in interface ISyncAdvancedSessionOperation
public <T> T[] moreLikeThis(java.lang.Class<T> entityClass, java.lang.Class<? extends AbstractIndexCreationTask> indexCreator, MoreLikeThisQuery parameters)
moreLikeThis
in interface ISyncAdvancedSessionOperation
public <T> T[] moreLikeThis(java.lang.Class<T> entityClass, java.lang.String index, java.lang.String documentId)
moreLikeThis
in interface ISyncAdvancedSessionOperation
public <T> T[] moreLikeThis(java.lang.Class<T> entityClass, java.lang.Class<? extends AbstractIndexCreationTask> indexCreator, java.lang.Class<? extends AbstractTransformerCreationTask> transformerClass, java.lang.String documentId)
moreLikeThis
in interface ISyncAdvancedSessionOperation
public <T> T[] moreLikeThis(java.lang.Class<T> entityClass, java.lang.Class<? extends AbstractIndexCreationTask> indexCreator, java.lang.Class<? extends AbstractTransformerCreationTask> transformerClass, MoreLikeThisQuery parameters)
moreLikeThis
in interface ISyncAdvancedSessionOperation
public <T> T[] moreLikeThis(java.lang.Class<T> entityClass, java.lang.String index, java.lang.String transformer, java.lang.String documentId)
moreLikeThis
in interface ISyncAdvancedSessionOperation
public <T> T[] moreLikeThis(java.lang.Class<T> entityClass, java.lang.String index, java.lang.String transformer, MoreLikeThisQuery parameters)
moreLikeThis
in interface ISyncAdvancedSessionOperation
Copyright © 2014. All Rights Reserved.