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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
  */
 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.

Author(s):
Emmanuel Bernard <emmanuel@hibernate.org>
Gunnar Morling
public interface DatastoreProvider extends Service {

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

Returns:
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.

Returns:
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.

Returns:
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.

Returns:
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