Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Hibernate OGM, Domain model persistence for NoSQL datastores
  * License: GNU Lesser General Public License (LGPL), version 2.1 or later
  * See the lgpl.txt file in the root directory or <>.
 package org.hibernate.ogm.datastore.spi;
Provides datastore-centric configurations and native access.

Implementations of this service offer native interfaces to access the underlying datastore. They are also responsible for starting and stopping the connection to the datastore.

Instead of implementing this interface directly, consider to extend BaseDatastoreProvider instead.

Emmanuel Bernard <>
Gunnar Morling
public interface DatastoreProvider extends Service {

Returns the org.hibernate.ogm.dialect.spi.GridDialect type for the underlying datastore.

The org.hibernate.ogm.dialect.spi.GridDialect type; Never null.
Returns the type of org.hibernate.ogm.query.spi.QueryParserService to be used for executing queries against the underlying datastore.

The query parser implementation type of the current dialect or null if the underlying datastore does not support the execution of queries and full-text searches via Lucene / Hibernate Search are to be used instead.
Returns the type of the SchemaDefiner of this datastore. An instance of this type will be added to the service registry using the SchemaDefiner service role.

the schema definer type
Whether this underlying datastore allows emulation of transactions. When transaction emulation is used, transactions only demarcate a unit of work. The transaction emulation will make sure that at commit time all required changes are flushed, but there are otherwise no true transaction, in particular rollback, semantics.

true if the underlying datastore allows transaction emulation, false otherwise.
	@Experimental("This contract might evolve into something which differentiates in more detail various transactional capabilities (see OGM-763)")
New to GrepCode? Check out our FAQ X