All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.ogm.OgmSession Maven / Gradle / Ivy

There is a newer version: 5.4.2.Final
Show newest version
/*
 * 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;

import org.hibernate.Session;
import org.hibernate.ogm.query.NoSQLQuery;

/**
 * Session-level functionality specific to Hibernate OGM.
 *
 * @author Gunnar Morling
 */
public interface OgmSession extends Session {

	/**
	 * Creates a native NoSQL query.
	 *
	 * @param nativeQuery A native query, in the format supported by the current data store.
	 * @return A native NoSQL query.
	 */
	NoSQLQuery createNativeQuery(String nativeQuery);

	/**
	 * Use {@link OgmSession#createNativeQuery(String)} instead.
	 */
	@Override
	@Deprecated
	NoSQLQuery createSQLQuery(String queryString);

	@Override
	OgmSessionFactory getSessionFactory();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy