org.hibernate.query.NativeQuery Maven / Gradle / Ivy
Show all versions of hibernate-core Show documentation
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* 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.query;
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.OffsetDateTime;
import java.time.ZonedDateTime;
import java.util.Calendar;
import java.util.Collection;
import java.util.Date;
import java.util.Map;
import javax.persistence.FlushModeType;
import javax.persistence.LockModeType;
import javax.persistence.Parameter;
import javax.persistence.TemporalType;
import org.hibernate.CacheMode;
import org.hibernate.FlushMode;
import org.hibernate.LockMode;
import org.hibernate.LockOptions;
import org.hibernate.MappingException;
import org.hibernate.SQLQuery;
import org.hibernate.SynchronizeableQuery;
import org.hibernate.type.Type;
/**
* @author Steve Ebersole
*/
public interface NativeQuery extends Query, SQLQuery, SynchronizeableQuery {
@Override
NativeQuery setFlushMode(FlushMode flushMode);
@Override
NativeQuery setResultSetMapping(String name);
@Override
NativeQuery setParameter(QueryParameter parameter, P val);
@Override
NativeQuery setParameter(Parameter param, P value);
@Override
NativeQuery setParameter(QueryParameter parameter, P val, Type type);
@Override
NativeQuery setParameter(String name, Object val, Type type);
@Override
NativeQuery setParameter(int position, Object val, Type type);
@Override
NativeQuery setParameter(QueryParameter parameter, P val, TemporalType temporalType);
@Override
NativeQuery setParameter(String name, Object val, TemporalType temporalType);
@Override
NativeQuery setParameter(int position, Object val, TemporalType temporalType);
@Override
NativeQuery setParameter(Parameter param, Calendar value, TemporalType temporalType);
@Override
NativeQuery setParameter(Parameter param, Date value, TemporalType temporalType);
@Override
NativeQuery setParameter(String name, Object value);
@Override
NativeQuery setParameter(String name, Calendar value, TemporalType temporalType);
@Override
NativeQuery setParameter(String name, Date value, TemporalType temporalType);
@Override
NativeQuery setParameter(int position, Object value);
@Override
NativeQuery setParameter(int position, Calendar value, TemporalType temporalType);
@Override
NativeQuery setParameter(int position, Date value, TemporalType temporalType);
@Override
NativeQuery setParameter(Parameter param, Instant value, TemporalType temporalType);
@Override
NativeQuery setParameter(Parameter param, LocalDateTime value, TemporalType temporalType);
@Override
NativeQuery setParameter(Parameter param, ZonedDateTime value, TemporalType temporalType);
@Override
NativeQuery setParameter(Parameter param, OffsetDateTime value, TemporalType temporalType);
@Override
NativeQuery setParameter(String name, Instant value, TemporalType temporalType);
@Override
NativeQuery setParameter(String name, LocalDateTime value, TemporalType temporalType);
@Override
NativeQuery setParameter(String name, ZonedDateTime value, TemporalType temporalType);
@Override
NativeQuery setParameter(String name, OffsetDateTime value, TemporalType temporalType);
@Override
NativeQuery setParameter(int position, Instant value, TemporalType temporalType);
@Override
NativeQuery setParameter(int position, LocalDateTime value, TemporalType temporalType);
@Override
NativeQuery setParameter(int position, ZonedDateTime value, TemporalType temporalType);
@Override
NativeQuery setParameter(int position, OffsetDateTime value, TemporalType temporalType);
@Override
NativeQuery setParameterList(QueryParameter parameter, Collection
values);
@Override
NativeQuery setParameterList(String name, Collection values);
@Override
NativeQuery setParameterList(String name, Collection values, Type type);
@Override
NativeQuery setParameterList(String name, Object[] values, Type type);
@Override
NativeQuery setParameterList(String name, Object[] values);
@Override
NativeQuery setProperties(Object bean);
@Override
NativeQuery setProperties(Map bean);
@Override
NativeQuery addSynchronizedQuerySpace(String querySpace);
@Override
NativeQuery addSynchronizedEntityName(String entityName) throws MappingException;
@Override
NativeQuery addSynchronizedEntityClass(Class entityClass) throws MappingException;
@Override
boolean isCallable();
@Override
NativeQuery addScalar(String columnAlias);
@Override
NativeQuery addScalar(String columnAlias, Type type);
@Override
RootReturn addRoot(String tableAlias, String entityName);
@Override
RootReturn addRoot(String tableAlias, Class entityType);
@Override
NativeQuery addEntity(String entityName);
@Override
NativeQuery addEntity(String tableAlias, String entityName);
@Override
NativeQuery addEntity(String tableAlias, String entityName, LockMode lockMode);
@Override
NativeQuery addEntity(Class entityType);
@Override
NativeQuery addEntity(String tableAlias, Class entityType);
@Override
NativeQuery addEntity(String tableAlias, Class entityClass, LockMode lockMode);
@Override
FetchReturn addFetch(String tableAlias, String ownerTableAlias, String joinPropertyName);
@Override
NativeQuery addJoin(String tableAlias, String path);
@Override
NativeQuery addJoin(String tableAlias, String ownerTableAlias, String joinPropertyName);
@Override
NativeQuery addJoin(String tableAlias, String path, LockMode lockMode);
@Override
NativeQuery setHibernateFlushMode(FlushMode flushMode);
@Override
NativeQuery setFlushMode(FlushModeType flushMode);
@Override
NativeQuery setCacheMode(CacheMode cacheMode);
@Override
NativeQuery setCacheable(boolean cacheable);
@Override
NativeQuery setCacheRegion(String cacheRegion);
@Override
NativeQuery setTimeout(int timeout);
@Override
NativeQuery setFetchSize(int fetchSize);
@Override
NativeQuery setReadOnly(boolean readOnly);
@Override
NativeQuery setLockOptions(LockOptions lockOptions);
@Override
NativeQuery setLockMode(String alias, LockMode lockMode);
@Override
NativeQuery setComment(String comment);
@Override
NativeQuery addQueryHint(String hint);
@Override
NativeQuery setMaxResults(int maxResult);
@Override
NativeQuery setFirstResult(int startPosition);
@Override
NativeQuery setHint(String hintName, Object value);
@Override
NativeQuery setLockMode(LockModeType lockMode);
}