public interface IDocumentStore extends IDisposalNotification
Modifier and Type | Method and Description |
---|---|
java.lang.AutoCloseable |
aggressivelyCache()
Setup the context for aggressive caching.
|
java.lang.AutoCloseable |
aggressivelyCacheFor(long cacheDurationInMilis)
Setup the context for aggressive caching.
|
BulkInsertOperation |
bulkInsert()
Performs bulk insert
|
BulkInsertOperation |
bulkInsert(java.lang.String database)
Performs bulk insert
|
BulkInsertOperation |
bulkInsert(java.lang.String database,
BulkInsertOptions options)
Performs bulk insert
|
IDatabaseChanges |
changes()
Subscribe to change notifications from the server
|
IDatabaseChanges |
changes(java.lang.String database)
Subscribe to change notifications from the server
|
java.lang.AutoCloseable |
disableAggressiveCaching()
Setup the context for no aggressive caching
This is mainly useful for internal use inside RavenDB, when we are executing
queries that has been marked with WaitForNonStaleResults, we temporarily disable
aggressive caching.
|
void |
executeIndex(AbstractIndexCreationTask indexCreationTask)
Executes the index creation.
|
void |
executeTransformer(AbstractTransformerCreationTask transformerCreationTask)
executes the transformer creation
|
DocumentConvention |
getConventions()
Gets the conventions.
|
IDatabaseCommands |
getDatabaseCommands()
Gets the database commands.
|
java.lang.String |
getIdentifier()
Gets the identifier
|
HttpJsonRequestFactory |
getJsonRequestFactory()
Get the
HttpJsonRequestFactory for this store |
Etag |
getLastWrittenEtag()
Gets the etag of the last document written by any session belonging to this
document store
|
DocumentSessionListeners |
getListeners() |
java.util.Map<java.lang.String,java.lang.String> |
getSharedOperationsHeaders()
Gets the shared operations headers.
|
java.lang.String |
getUrl()
Gets the URL.
|
boolean |
hasJsonRequestFactory()
Whatever this instance has json request factory available
|
IDocumentStore |
initialize()
Initializes this instance.
|
IDocumentSession |
openSession()
Opens the session.
|
IDocumentSession |
openSession(OpenSessionOptions sessionOptions)
Opens the session with the specified options.
|
IDocumentSession |
openSession(java.lang.String database)
Opens the session for a particular database
|
void |
setIdentifier(java.lang.String identifier)
Sets the identifier
|
void |
setListeners(DocumentSessionListeners listeners) |
java.lang.AutoCloseable |
setRequestsTimeoutFor(long timeout)
Setup the WebRequest timeout for the session
|
addAfterDisposeEventHandler, getWasDisposed, removeAfterDisposeEventHandler
IDatabaseChanges changes()
IDatabaseChanges changes(java.lang.String database)
database
- java.lang.AutoCloseable aggressivelyCacheFor(long cacheDurationInMilis)
cacheDurationInMilis
- java.lang.AutoCloseable aggressivelyCache()
java.lang.AutoCloseable disableAggressiveCaching()
java.lang.AutoCloseable setRequestsTimeoutFor(long timeout)
timeout
- Specify the timeout durationjava.util.Map<java.lang.String,java.lang.String> getSharedOperationsHeaders()
HttpJsonRequestFactory getJsonRequestFactory()
HttpJsonRequestFactory
for this storeboolean hasJsonRequestFactory()
void setIdentifier(java.lang.String identifier)
identifier
- java.lang.String getIdentifier()
IDocumentStore initialize()
IDocumentSession openSession()
IDocumentSession openSession(java.lang.String database)
database
- IDocumentSession openSession(OpenSessionOptions sessionOptions)
sessionOptions
- IDatabaseCommands getDatabaseCommands()
void executeIndex(AbstractIndexCreationTask indexCreationTask)
indexCreationTask
- void executeTransformer(AbstractTransformerCreationTask transformerCreationTask)
transformerCreationTask
- DocumentConvention getConventions()
java.lang.String getUrl()
Etag getLastWrittenEtag()
BulkInsertOperation bulkInsert()
BulkInsertOperation bulkInsert(java.lang.String database)
database
- BulkInsertOperation bulkInsert(java.lang.String database, BulkInsertOptions options)
database
- options
- DocumentSessionListeners getListeners()
void setListeners(DocumentSessionListeners listeners)
Copyright © 2014. All Rights Reserved.