HHH-17068 move layer-breaking enums from o.h.q.sqm to o.h.q.common
Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
parent
63c4f313ca
commit
0393df8761
|
@ -38,7 +38,7 @@ import org.hibernate.exception.spi.SQLExceptionConversionDelegate;
|
|||
import org.hibernate.internal.util.JdbcExceptionHelper;
|
||||
import org.hibernate.query.sqm.CastType;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.TrimSpec;
|
||||
import org.hibernate.query.sqm.produce.function.FunctionParameterType;
|
||||
import org.hibernate.query.sqm.produce.function.StandardFunctionArgumentTypeResolvers;
|
||||
|
|
|
@ -9,8 +9,8 @@ import java.util.List;
|
|||
import org.hibernate.engine.spi.SessionFactoryImplementor;
|
||||
import org.hibernate.internal.util.collections.Stack;
|
||||
import org.hibernate.query.sqm.ComparisonOperator;
|
||||
import org.hibernate.query.sqm.FrameExclusion;
|
||||
import org.hibernate.query.sqm.FrameKind;
|
||||
import org.hibernate.query.common.FrameExclusion;
|
||||
import org.hibernate.query.common.FrameKind;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.SqlAstJoinType;
|
||||
import org.hibernate.sql.ast.spi.AbstractSqlAstTranslator;
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.hibernate.engine.jdbc.dialect.spi.DialectResolutionInfo;
|
|||
import org.hibernate.engine.spi.SessionFactoryImplementor;
|
||||
import org.hibernate.query.SemanticException;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.service.ServiceRegistry;
|
||||
import org.hibernate.sql.ast.SqlAstTranslator;
|
||||
import org.hibernate.sql.ast.SqlAstTranslatorFactory;
|
||||
|
@ -42,11 +42,11 @@ import org.hibernate.type.descriptor.sql.spi.DdlTypeRegistry;
|
|||
|
||||
import jakarta.persistence.TemporalType;
|
||||
|
||||
import static org.hibernate.query.sqm.TemporalUnit.HOUR;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.MINUTE;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.NANOSECOND;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.NATIVE;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.SECOND;
|
||||
import static org.hibernate.query.common.TemporalUnit.HOUR;
|
||||
import static org.hibernate.query.common.TemporalUnit.MINUTE;
|
||||
import static org.hibernate.query.common.TemporalUnit.NANOSECOND;
|
||||
import static org.hibernate.query.common.TemporalUnit.NATIVE;
|
||||
import static org.hibernate.query.common.TemporalUnit.SECOND;
|
||||
import static org.hibernate.type.SqlTypes.BINARY;
|
||||
import static org.hibernate.type.SqlTypes.BLOB;
|
||||
import static org.hibernate.type.SqlTypes.BOOLEAN;
|
||||
|
|
|
@ -40,7 +40,7 @@ import org.hibernate.exception.spi.ViolatedConstraintNameExtractor;
|
|||
import org.hibernate.internal.util.JdbcExceptionHelper;
|
||||
import org.hibernate.persister.entity.EntityPersister;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.sql.ast.SqlAstTranslator;
|
||||
import org.hibernate.sql.ast.SqlAstTranslatorFactory;
|
||||
import org.hibernate.sql.ast.spi.SqlAppender;
|
||||
|
|
|
@ -51,7 +51,7 @@ import org.hibernate.internal.util.StringHelper;
|
|||
import org.hibernate.query.SemanticException;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.dialect.NullOrdering;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.produce.function.StandardFunctionArgumentTypeResolvers;
|
||||
import org.hibernate.service.ServiceRegistry;
|
||||
import org.hibernate.sql.ast.SqlAstTranslator;
|
||||
|
@ -80,9 +80,9 @@ import jakarta.persistence.GenerationType;
|
|||
import jakarta.persistence.TemporalType;
|
||||
|
||||
import static org.hibernate.exception.spi.TemplatedViolatedConstraintNameExtractor.extractUsingTemplate;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.DAY;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.EPOCH;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.NATIVE;
|
||||
import static org.hibernate.query.common.TemporalUnit.DAY;
|
||||
import static org.hibernate.query.common.TemporalUnit.EPOCH;
|
||||
import static org.hibernate.query.common.TemporalUnit.NATIVE;
|
||||
import static org.hibernate.type.SqlTypes.ARRAY;
|
||||
import static org.hibernate.type.SqlTypes.BINARY;
|
||||
import static org.hibernate.type.SqlTypes.BLOB;
|
||||
|
|
|
@ -70,7 +70,7 @@ import org.hibernate.procedure.internal.DB2CallableStatementSupport;
|
|||
import org.hibernate.procedure.spi.CallableStatementSupport;
|
||||
import org.hibernate.query.sqm.CastType;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.mutation.internal.cte.CteInsertStrategy;
|
||||
import org.hibernate.query.sqm.mutation.internal.cte.CteMutationStrategy;
|
||||
import org.hibernate.query.sqm.mutation.spi.SqmMultiTableInsertStrategy;
|
||||
|
|
|
@ -16,7 +16,7 @@ import org.hibernate.metamodel.mapping.ModelPart;
|
|||
import org.hibernate.query.IllegalQueryOperationException;
|
||||
import org.hibernate.query.derived.AnonymousTupleTableGroupProducer;
|
||||
import org.hibernate.query.sqm.ComparisonOperator;
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.SqlAstNodeRenderingMode;
|
||||
import org.hibernate.sql.ast.spi.AbstractSqlAstTranslator;
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.hibernate.engine.jdbc.dialect.spi.DialectResolutionInfo;
|
|||
import org.hibernate.engine.spi.SessionFactoryImplementor;
|
||||
import org.hibernate.mapping.Column;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.sql.ast.SqlAstTranslator;
|
||||
import org.hibernate.sql.ast.SqlAstTranslatorFactory;
|
||||
import org.hibernate.sql.ast.spi.StandardSqlAstTranslatorFactory;
|
||||
|
|
|
@ -50,7 +50,7 @@ import org.hibernate.metamodel.mapping.EntityMappingType;
|
|||
import org.hibernate.metamodel.spi.RuntimeModelCreationContext;
|
||||
import org.hibernate.query.sqm.CastType;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.mutation.spi.BeforeUseAction;
|
||||
import org.hibernate.query.sqm.mutation.internal.temptable.GlobalTemporaryTableMutationStrategy;
|
||||
import org.hibernate.query.sqm.mutation.internal.temptable.LocalTemporaryTableInsertStrategy;
|
||||
|
|
|
@ -48,7 +48,7 @@ import org.hibernate.metamodel.mapping.EntityMappingType;
|
|||
import org.hibernate.metamodel.spi.RuntimeModelCreationContext;
|
||||
import org.hibernate.query.sqm.CastType;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.mutation.spi.BeforeUseAction;
|
||||
import org.hibernate.query.sqm.mutation.internal.temptable.GlobalTemporaryTableMutationStrategy;
|
||||
import org.hibernate.query.sqm.mutation.internal.temptable.LocalTemporaryTableInsertStrategy;
|
||||
|
|
|
@ -57,10 +57,10 @@ import org.hibernate.mapping.Index;
|
|||
import org.hibernate.metamodel.mapping.EntityMappingType;
|
||||
import org.hibernate.metamodel.spi.RuntimeModelCreationContext;
|
||||
import org.hibernate.query.sqm.CastType;
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.dialect.NullOrdering;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.function.SqmFunctionRegistry;
|
||||
import org.hibernate.query.sqm.mutation.internal.temptable.GlobalTemporaryTableInsertStrategy;
|
||||
import org.hibernate.query.sqm.mutation.internal.temptable.GlobalTemporaryTableMutationStrategy;
|
||||
|
|
|
@ -48,10 +48,10 @@ import org.hibernate.internal.util.StringHelper;
|
|||
import org.hibernate.metamodel.mapping.EntityMappingType;
|
||||
import org.hibernate.metamodel.spi.RuntimeModelCreationContext;
|
||||
import org.hibernate.query.sqm.CastType;
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.dialect.NullOrdering;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.mutation.spi.BeforeUseAction;
|
||||
import org.hibernate.query.sqm.mutation.internal.temptable.LocalTemporaryTableInsertStrategy;
|
||||
import org.hibernate.query.sqm.mutation.internal.temptable.LocalTemporaryTableMutationStrategy;
|
||||
|
@ -86,7 +86,7 @@ import org.hibernate.type.spi.TypeConfiguration;
|
|||
|
||||
import jakarta.persistence.TemporalType;
|
||||
|
||||
import static org.hibernate.query.sqm.TemporalUnit.SECOND;
|
||||
import static org.hibernate.query.common.TemporalUnit.SECOND;
|
||||
import static org.hibernate.type.SqlTypes.ARRAY;
|
||||
import static org.hibernate.type.SqlTypes.BIGINT;
|
||||
import static org.hibernate.type.SqlTypes.BINARY;
|
||||
|
|
|
@ -86,9 +86,9 @@ import org.hibernate.metamodel.mapping.EntityMappingType;
|
|||
import org.hibernate.metamodel.spi.RuntimeModelCreationContext;
|
||||
import org.hibernate.procedure.internal.StandardCallableStatementSupport;
|
||||
import org.hibernate.procedure.spi.CallableStatementSupport;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.CastType;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.sqm.mutation.internal.temptable.GlobalTemporaryTableInsertStrategy;
|
||||
import org.hibernate.query.sqm.mutation.internal.temptable.GlobalTemporaryTableMutationStrategy;
|
||||
import org.hibernate.query.sqm.mutation.spi.SqmMultiTableInsertStrategy;
|
||||
|
|
|
@ -55,7 +55,7 @@ import org.hibernate.persister.entity.EntityPersister;
|
|||
import org.hibernate.query.sqm.CastType;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.dialect.NullOrdering;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.mutation.spi.AfterUseAction;
|
||||
import org.hibernate.query.sqm.mutation.spi.BeforeUseAction;
|
||||
import org.hibernate.query.sqm.mutation.internal.temptable.GlobalTemporaryTableInsertStrategy;
|
||||
|
|
|
@ -49,7 +49,7 @@ import org.hibernate.metamodel.mapping.EntityMappingType;
|
|||
import org.hibernate.metamodel.spi.RuntimeModelCreationContext;
|
||||
import org.hibernate.query.spi.QueryOptions;
|
||||
import org.hibernate.query.spi.QueryParameterBindings;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.internal.DomainParameterXref;
|
||||
import org.hibernate.query.sqm.mutation.spi.AfterUseAction;
|
||||
import org.hibernate.query.sqm.mutation.spi.BeforeUseAction;
|
||||
|
|
|
@ -30,9 +30,9 @@ import org.hibernate.metamodel.mapping.EntityMappingType;
|
|||
import org.hibernate.metamodel.spi.RuntimeModelCreationContext;
|
||||
import org.hibernate.query.spi.QueryOptions;
|
||||
import org.hibernate.query.spi.QueryParameterBindings;
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.internal.DomainParameterXref;
|
||||
import org.hibernate.query.sqm.mutation.internal.temptable.GlobalTemporaryTableInsertStrategy;
|
||||
import org.hibernate.query.sqm.mutation.internal.temptable.GlobalTemporaryTableMutationStrategy;
|
||||
|
|
|
@ -20,7 +20,7 @@ import org.hibernate.engine.jdbc.dialect.spi.DialectResolutionInfo;
|
|||
import org.hibernate.engine.spi.SessionFactoryImplementor;
|
||||
import org.hibernate.query.SemanticException;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.service.ServiceRegistry;
|
||||
import org.hibernate.sql.ast.SqlAstTranslator;
|
||||
import org.hibernate.sql.ast.SqlAstTranslatorFactory;
|
||||
|
|
|
@ -45,7 +45,7 @@ import org.hibernate.metamodel.spi.RuntimeModelCreationContext;
|
|||
import org.hibernate.query.sqm.CastType;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.dialect.NullOrdering;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.function.SqmFunctionRegistry;
|
||||
import org.hibernate.query.sqm.mutation.spi.AfterUseAction;
|
||||
import org.hibernate.query.sqm.mutation.spi.BeforeUseAction;
|
||||
|
|
|
@ -62,9 +62,9 @@ import org.hibernate.procedure.spi.CallableStatementSupport;
|
|||
import org.hibernate.query.SemanticException;
|
||||
import org.hibernate.query.spi.QueryOptions;
|
||||
import org.hibernate.query.sqm.CastType;
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.mutation.internal.temptable.GlobalTemporaryTableInsertStrategy;
|
||||
import org.hibernate.query.sqm.mutation.internal.temptable.GlobalTemporaryTableMutationStrategy;
|
||||
import org.hibernate.query.sqm.mutation.spi.SqmMultiTableInsertStrategy;
|
||||
|
@ -104,12 +104,12 @@ import jakarta.persistence.TemporalType;
|
|||
|
||||
import static java.util.regex.Pattern.CASE_INSENSITIVE;
|
||||
import static org.hibernate.exception.spi.TemplatedViolatedConstraintNameExtractor.extractUsingTemplate;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.DAY;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.HOUR;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.MINUTE;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.MONTH;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.SECOND;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.YEAR;
|
||||
import static org.hibernate.query.common.TemporalUnit.DAY;
|
||||
import static org.hibernate.query.common.TemporalUnit.HOUR;
|
||||
import static org.hibernate.query.common.TemporalUnit.MINUTE;
|
||||
import static org.hibernate.query.common.TemporalUnit.MONTH;
|
||||
import static org.hibernate.query.common.TemporalUnit.SECOND;
|
||||
import static org.hibernate.query.common.TemporalUnit.YEAR;
|
||||
import static org.hibernate.type.SqlTypes.ARRAY;
|
||||
import static org.hibernate.type.SqlTypes.BIGINT;
|
||||
import static org.hibernate.type.SqlTypes.BINARY;
|
||||
|
|
|
@ -19,9 +19,9 @@ import org.hibernate.metamodel.mapping.ModelPart;
|
|||
import org.hibernate.query.IllegalQueryOperationException;
|
||||
import org.hibernate.query.derived.AnonymousTupleTableGroupProducer;
|
||||
import org.hibernate.query.sqm.ComparisonOperator;
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.sqm.FrameExclusion;
|
||||
import org.hibernate.query.sqm.FrameKind;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
import org.hibernate.query.common.FrameExclusion;
|
||||
import org.hibernate.query.common.FrameKind;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.SqlAstNodeRenderingMode;
|
||||
import org.hibernate.sql.ast.spi.AbstractSqlAstTranslator;
|
||||
|
|
|
@ -60,9 +60,9 @@ import org.hibernate.procedure.spi.CallableStatementSupport;
|
|||
import org.hibernate.query.SemanticException;
|
||||
import org.hibernate.query.spi.QueryOptions;
|
||||
import org.hibernate.query.sqm.CastType;
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.mutation.internal.cte.CteInsertStrategy;
|
||||
import org.hibernate.query.sqm.mutation.internal.cte.CteMutationStrategy;
|
||||
import org.hibernate.query.sqm.mutation.spi.SqmMultiTableInsertStrategy;
|
||||
|
@ -98,8 +98,8 @@ import jakarta.persistence.GenerationType;
|
|||
import jakarta.persistence.TemporalType;
|
||||
|
||||
import static org.hibernate.exception.spi.TemplatedViolatedConstraintNameExtractor.extractUsingTemplate;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.DAY;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.EPOCH;
|
||||
import static org.hibernate.query.common.TemporalUnit.DAY;
|
||||
import static org.hibernate.query.common.TemporalUnit.EPOCH;
|
||||
import static org.hibernate.type.SqlTypes.ARRAY;
|
||||
import static org.hibernate.type.SqlTypes.BINARY;
|
||||
import static org.hibernate.type.SqlTypes.BLOB;
|
||||
|
|
|
@ -7,7 +7,7 @@ package org.hibernate.community.dialect;
|
|||
import org.hibernate.engine.spi.SessionFactoryImplementor;
|
||||
import org.hibernate.metamodel.mapping.JdbcMappingContainer;
|
||||
import org.hibernate.query.sqm.ComparisonOperator;
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.spi.AbstractSqlAstTranslator;
|
||||
import org.hibernate.sql.ast.tree.Statement;
|
||||
|
|
|
@ -15,7 +15,7 @@ import org.hibernate.dialect.function.CommonFunctionFactory;
|
|||
import org.hibernate.engine.jdbc.dialect.spi.DialectResolutionInfo;
|
||||
import org.hibernate.engine.spi.SessionFactoryImplementor;
|
||||
import org.hibernate.query.sqm.CastType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.produce.function.StandardFunctionArgumentTypeResolvers;
|
||||
import org.hibernate.sql.ast.SqlAstTranslator;
|
||||
import org.hibernate.sql.ast.SqlAstTranslatorFactory;
|
||||
|
|
|
@ -32,7 +32,7 @@ import org.hibernate.engine.spi.SessionFactoryImplementor;
|
|||
import org.hibernate.internal.CoreMessageLogger;
|
||||
import org.hibernate.persister.entity.EntityPersister;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.TrimSpec;
|
||||
import org.hibernate.sql.ast.SqlAstTranslator;
|
||||
import org.hibernate.sql.ast.SqlAstTranslatorFactory;
|
||||
|
|
|
@ -8,7 +8,7 @@ import java.util.List;
|
|||
|
||||
import org.hibernate.engine.spi.SessionFactoryImplementor;
|
||||
import org.hibernate.query.sqm.ComparisonOperator;
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
import org.hibernate.sql.ast.spi.AbstractSqlAstTranslator;
|
||||
import org.hibernate.sql.ast.spi.SqlSelection;
|
||||
import org.hibernate.sql.ast.tree.Statement;
|
||||
|
|
|
@ -53,9 +53,9 @@ import org.hibernate.internal.util.StringHelper;
|
|||
import org.hibernate.mapping.CheckConstraint;
|
||||
import org.hibernate.mapping.Column;
|
||||
import org.hibernate.query.sqm.CastType;
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.TrimSpec;
|
||||
import org.hibernate.service.ServiceRegistry;
|
||||
import org.hibernate.sql.ast.SqlAstNodeRenderingMode;
|
||||
|
@ -93,7 +93,7 @@ import java.util.TimeZone;
|
|||
import jakarta.persistence.TemporalType;
|
||||
|
||||
import static org.hibernate.exception.spi.TemplatedViolatedConstraintNameExtractor.extractUsingTemplate;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.NANOSECOND;
|
||||
import static org.hibernate.query.common.TemporalUnit.NANOSECOND;
|
||||
import static org.hibernate.query.sqm.produce.function.FunctionParameterType.INTEGER;
|
||||
import static org.hibernate.type.SqlTypes.*;
|
||||
import static org.hibernate.type.descriptor.DateTimeUtils.appendAsDate;
|
||||
|
|
|
@ -17,7 +17,7 @@ import org.hibernate.metamodel.mapping.ModelPart;
|
|||
import org.hibernate.query.IllegalQueryOperationException;
|
||||
import org.hibernate.query.derived.AnonymousTupleTableGroupProducer;
|
||||
import org.hibernate.query.sqm.ComparisonOperator;
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.SqlAstJoinType;
|
||||
import org.hibernate.sql.ast.SqlAstNodeRenderingMode;
|
||||
|
|
|
@ -40,7 +40,7 @@ import org.hibernate.mapping.UniqueKey;
|
|||
import org.hibernate.query.SemanticException;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.dialect.NullOrdering;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.TrimSpec;
|
||||
import org.hibernate.query.sqm.produce.function.StandardFunctionReturnTypeResolvers;
|
||||
import org.hibernate.service.ServiceRegistry;
|
||||
|
@ -62,11 +62,11 @@ import org.hibernate.type.descriptor.jdbc.spi.JdbcTypeRegistry;
|
|||
import jakarta.persistence.TemporalType;
|
||||
|
||||
import static org.hibernate.exception.spi.TemplatedViolatedConstraintNameExtractor.extractUsingTemplate;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.DAY;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.EPOCH;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.MONTH;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.QUARTER;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.YEAR;
|
||||
import static org.hibernate.query.common.TemporalUnit.DAY;
|
||||
import static org.hibernate.query.common.TemporalUnit.EPOCH;
|
||||
import static org.hibernate.query.common.TemporalUnit.MONTH;
|
||||
import static org.hibernate.query.common.TemporalUnit.QUARTER;
|
||||
import static org.hibernate.query.common.TemporalUnit.YEAR;
|
||||
import static org.hibernate.query.sqm.produce.function.FunctionParameterType.INTEGER;
|
||||
import static org.hibernate.query.sqm.produce.function.FunctionParameterType.NUMERIC;
|
||||
import static org.hibernate.query.sqm.produce.function.FunctionParameterType.STRING;
|
||||
|
|
|
@ -66,7 +66,7 @@ import org.hibernate.metamodel.mapping.EntityMappingType;
|
|||
import org.hibernate.metamodel.spi.RuntimeModelCreationContext;
|
||||
import org.hibernate.query.sqm.CastType;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.function.SqmFunctionRegistry;
|
||||
import org.hibernate.query.sqm.mutation.spi.AfterUseAction;
|
||||
import org.hibernate.query.sqm.mutation.spi.BeforeUseAction;
|
||||
|
|
|
@ -30,7 +30,7 @@ import org.hibernate.exception.spi.TemplatedViolatedConstraintNameExtractor;
|
|||
import org.hibernate.exception.spi.ViolatedConstraintNameExtractor;
|
||||
import org.hibernate.internal.util.JdbcExceptionHelper;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.service.ServiceRegistry;
|
||||
import org.hibernate.sql.ast.SqlAstTranslator;
|
||||
import org.hibernate.sql.ast.SqlAstTranslatorFactory;
|
||||
|
|
|
@ -40,7 +40,7 @@ import org.hibernate.query.spi.QueryOptions;
|
|||
import org.hibernate.query.spi.QueryParameterBindings;
|
||||
import org.hibernate.query.sqm.CastType;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.internal.DomainParameterXref;
|
||||
import org.hibernate.query.sqm.sql.SqmTranslator;
|
||||
import org.hibernate.query.sqm.sql.SqmTranslatorFactory;
|
||||
|
|
|
@ -36,7 +36,7 @@ import org.hibernate.metamodel.mapping.EntityMappingType;
|
|||
import org.hibernate.metamodel.spi.RuntimeModelCreationContext;
|
||||
import org.hibernate.query.spi.QueryOptions;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.mutation.internal.temptable.GlobalTemporaryTableInsertStrategy;
|
||||
import org.hibernate.query.sqm.mutation.internal.temptable.GlobalTemporaryTableMutationStrategy;
|
||||
import org.hibernate.query.sqm.mutation.spi.SqmMultiTableInsertStrategy;
|
||||
|
|
|
@ -33,7 +33,7 @@ import org.hibernate.metamodel.mapping.EntityMappingType;
|
|||
import org.hibernate.metamodel.spi.RuntimeModelCreationContext;
|
||||
import org.hibernate.persister.entity.EntityPersister;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.mutation.internal.temptable.GlobalTemporaryTableInsertStrategy;
|
||||
import org.hibernate.query.sqm.mutation.internal.temptable.GlobalTemporaryTableMutationStrategy;
|
||||
import org.hibernate.query.sqm.mutation.spi.SqmMultiTableInsertStrategy;
|
||||
|
|
|
@ -50,7 +50,7 @@ import org.hibernate.internal.util.StringHelper;
|
|||
import org.hibernate.internal.util.config.ConfigurationHelper;
|
||||
import org.hibernate.query.SemanticException;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.produce.function.StandardFunctionArgumentTypeResolvers;
|
||||
import org.hibernate.service.ServiceRegistry;
|
||||
import org.hibernate.sql.ast.SqlAstTranslator;
|
||||
|
@ -83,9 +83,9 @@ import static java.lang.Integer.parseInt;
|
|||
import static org.hibernate.cfg.DialectSpecificSettings.COCKROACH_VERSION_STRING;
|
||||
import static org.hibernate.exception.spi.TemplatedViolatedConstraintNameExtractor.extractUsingTemplate;
|
||||
import static org.hibernate.internal.util.JdbcExceptionHelper.extractSqlState;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.DAY;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.EPOCH;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.NATIVE;
|
||||
import static org.hibernate.query.common.TemporalUnit.DAY;
|
||||
import static org.hibernate.query.common.TemporalUnit.EPOCH;
|
||||
import static org.hibernate.query.common.TemporalUnit.NATIVE;
|
||||
import static org.hibernate.type.SqlTypes.ARRAY;
|
||||
import static org.hibernate.type.SqlTypes.BINARY;
|
||||
import static org.hibernate.type.SqlTypes.BLOB;
|
||||
|
|
|
@ -60,7 +60,7 @@ import org.hibernate.procedure.internal.DB2CallableStatementSupport;
|
|||
import org.hibernate.procedure.spi.CallableStatementSupport;
|
||||
import org.hibernate.query.sqm.CastType;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.mutation.internal.cte.CteInsertStrategy;
|
||||
import org.hibernate.query.sqm.mutation.internal.cte.CteMutationStrategy;
|
||||
import org.hibernate.query.sqm.mutation.spi.SqmMultiTableInsertStrategy;
|
||||
|
|
|
@ -15,7 +15,7 @@ import org.hibernate.metamodel.mapping.ModelPart;
|
|||
import org.hibernate.query.IllegalQueryOperationException;
|
||||
import org.hibernate.query.derived.AnonymousTupleTableGroupProducer;
|
||||
import org.hibernate.query.sqm.ComparisonOperator;
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.SqlAstNodeRenderingMode;
|
||||
import org.hibernate.sql.ast.spi.AbstractSqlAstTranslator;
|
||||
|
|
|
@ -17,7 +17,7 @@ import org.hibernate.engine.jdbc.dialect.spi.DialectResolutionInfo;
|
|||
import org.hibernate.engine.spi.SessionFactoryImplementor;
|
||||
import org.hibernate.mapping.Column;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.sql.ast.SqlAstTranslator;
|
||||
import org.hibernate.sql.ast.SqlAstTranslatorFactory;
|
||||
import org.hibernate.sql.ast.spi.StandardSqlAstTranslatorFactory;
|
||||
|
|
|
@ -124,8 +124,8 @@ import org.hibernate.persister.entity.mutation.EntityMutationTarget;
|
|||
import org.hibernate.procedure.internal.StandardCallableStatementSupport;
|
||||
import org.hibernate.procedure.spi.CallableStatementSupport;
|
||||
import org.hibernate.query.Query;
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.hql.HqlTranslator;
|
||||
import org.hibernate.query.spi.QueryOptions;
|
||||
import org.hibernate.query.sqm.CastType;
|
||||
|
|
|
@ -60,9 +60,9 @@ import org.hibernate.procedure.spi.CallableStatementSupport;
|
|||
import org.hibernate.query.hql.HqlTranslator;
|
||||
import org.hibernate.query.spi.QueryOptions;
|
||||
import org.hibernate.query.sqm.CastType;
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.TrimSpec;
|
||||
import org.hibernate.query.sqm.mutation.spi.AfterUseAction;
|
||||
import org.hibernate.query.sqm.mutation.spi.BeforeUseAction;
|
||||
|
|
|
@ -43,9 +43,9 @@ import org.hibernate.metamodel.mapping.EntityMappingType;
|
|||
import org.hibernate.metamodel.spi.RuntimeModelCreationContext;
|
||||
import org.hibernate.persister.entity.mutation.EntityMutationTarget;
|
||||
import org.hibernate.query.sqm.CastType;
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.mutation.internal.temptable.GlobalTemporaryTableInsertStrategy;
|
||||
import org.hibernate.query.sqm.mutation.internal.temptable.GlobalTemporaryTableMutationStrategy;
|
||||
import org.hibernate.query.sqm.mutation.spi.SqmMultiTableInsertStrategy;
|
||||
|
@ -79,7 +79,7 @@ import org.hibernate.type.spi.TypeConfiguration;
|
|||
import jakarta.persistence.TemporalType;
|
||||
|
||||
import static org.hibernate.internal.util.JdbcExceptionHelper.extractErrorCode;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.SECOND;
|
||||
import static org.hibernate.query.common.TemporalUnit.SECOND;
|
||||
import static org.hibernate.type.SqlTypes.BIGINT;
|
||||
import static org.hibernate.type.SqlTypes.BINARY;
|
||||
import static org.hibernate.type.SqlTypes.CHAR;
|
||||
|
|
|
@ -49,7 +49,7 @@ import org.hibernate.procedure.internal.StandardCallableStatementSupport;
|
|||
import org.hibernate.procedure.spi.CallableStatementSupport;
|
||||
import org.hibernate.query.sqm.CastType;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.mutation.internal.temptable.GlobalTemporaryTableInsertStrategy;
|
||||
import org.hibernate.query.sqm.mutation.internal.temptable.GlobalTemporaryTableMutationStrategy;
|
||||
import org.hibernate.query.sqm.mutation.spi.SqmMultiTableInsertStrategy;
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.hibernate.metamodel.mapping.EntityMappingType;
|
|||
import org.hibernate.metamodel.spi.RuntimeModelCreationContext;
|
||||
import org.hibernate.query.sqm.CastType;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.mutation.spi.AfterUseAction;
|
||||
import org.hibernate.query.sqm.mutation.spi.BeforeUseAction;
|
||||
import org.hibernate.query.sqm.mutation.internal.temptable.LocalTemporaryTableInsertStrategy;
|
||||
|
|
|
@ -49,7 +49,7 @@ import org.hibernate.metamodel.mapping.EntityMappingType;
|
|||
import org.hibernate.metamodel.spi.RuntimeModelCreationContext;
|
||||
import org.hibernate.query.sqm.CastType;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.function.SqmFunctionRegistry;
|
||||
import org.hibernate.query.sqm.mutation.spi.AfterUseAction;
|
||||
import org.hibernate.query.sqm.mutation.spi.BeforeUseAction;
|
||||
|
|
|
@ -57,9 +57,9 @@ import org.hibernate.procedure.spi.CallableStatementSupport;
|
|||
import org.hibernate.query.SemanticException;
|
||||
import org.hibernate.query.spi.QueryOptions;
|
||||
import org.hibernate.query.sqm.CastType;
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.mutation.internal.temptable.GlobalTemporaryTableInsertStrategy;
|
||||
import org.hibernate.query.sqm.mutation.internal.temptable.GlobalTemporaryTableMutationStrategy;
|
||||
import org.hibernate.query.sqm.mutation.spi.SqmMultiTableInsertStrategy;
|
||||
|
@ -113,12 +113,12 @@ import static org.hibernate.exception.spi.TemplatedViolatedConstraintNameExtract
|
|||
import static org.hibernate.internal.util.JdbcExceptionHelper.extractErrorCode;
|
||||
import static org.hibernate.internal.util.StringHelper.isEmpty;
|
||||
import static org.hibernate.internal.util.StringHelper.isNotEmpty;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.DAY;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.HOUR;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.MINUTE;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.MONTH;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.SECOND;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.YEAR;
|
||||
import static org.hibernate.query.common.TemporalUnit.DAY;
|
||||
import static org.hibernate.query.common.TemporalUnit.HOUR;
|
||||
import static org.hibernate.query.common.TemporalUnit.MINUTE;
|
||||
import static org.hibernate.query.common.TemporalUnit.MONTH;
|
||||
import static org.hibernate.query.common.TemporalUnit.SECOND;
|
||||
import static org.hibernate.query.common.TemporalUnit.YEAR;
|
||||
import static org.hibernate.type.SqlTypes.ARRAY;
|
||||
import static org.hibernate.type.SqlTypes.BIGINT;
|
||||
import static org.hibernate.type.SqlTypes.BINARY;
|
||||
|
|
|
@ -17,9 +17,9 @@ import org.hibernate.metamodel.mapping.ModelPart;
|
|||
import org.hibernate.query.IllegalQueryOperationException;
|
||||
import org.hibernate.query.derived.AnonymousTupleTableGroupProducer;
|
||||
import org.hibernate.query.sqm.ComparisonOperator;
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.sqm.FrameExclusion;
|
||||
import org.hibernate.query.sqm.FrameKind;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
import org.hibernate.query.common.FrameExclusion;
|
||||
import org.hibernate.query.common.FrameKind;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.SqlAstNodeRenderingMode;
|
||||
import org.hibernate.sql.ast.spi.SqlSelection;
|
||||
|
|
|
@ -58,9 +58,9 @@ import org.hibernate.procedure.spi.CallableStatementSupport;
|
|||
import org.hibernate.query.SemanticException;
|
||||
import org.hibernate.query.spi.QueryOptions;
|
||||
import org.hibernate.query.sqm.CastType;
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.mutation.internal.cte.CteInsertStrategy;
|
||||
import org.hibernate.query.sqm.mutation.internal.cte.CteMutationStrategy;
|
||||
import org.hibernate.query.sqm.mutation.spi.SqmMultiTableInsertStrategy;
|
||||
|
@ -100,8 +100,8 @@ import jakarta.persistence.GenerationType;
|
|||
import jakarta.persistence.TemporalType;
|
||||
|
||||
import static org.hibernate.exception.spi.TemplatedViolatedConstraintNameExtractor.extractUsingTemplate;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.DAY;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.EPOCH;
|
||||
import static org.hibernate.query.common.TemporalUnit.DAY;
|
||||
import static org.hibernate.query.common.TemporalUnit.EPOCH;
|
||||
import static org.hibernate.type.SqlTypes.ARRAY;
|
||||
import static org.hibernate.type.SqlTypes.BINARY;
|
||||
import static org.hibernate.type.SqlTypes.BLOB;
|
||||
|
|
|
@ -7,7 +7,7 @@ package org.hibernate.dialect;
|
|||
import org.hibernate.engine.spi.SessionFactoryImplementor;
|
||||
import org.hibernate.metamodel.mapping.JdbcMappingContainer;
|
||||
import org.hibernate.query.sqm.ComparisonOperator;
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.tree.Statement;
|
||||
import org.hibernate.sql.ast.tree.cte.CteMaterialization;
|
||||
|
|
|
@ -14,7 +14,7 @@ import org.hibernate.engine.jdbc.dialect.spi.DialectResolutionInfo;
|
|||
import org.hibernate.engine.spi.SessionFactoryImplementor;
|
||||
import org.hibernate.persister.entity.mutation.EntityMutationTarget;
|
||||
import org.hibernate.query.sqm.CastType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.produce.function.StandardFunctionArgumentTypeResolvers;
|
||||
import org.hibernate.sql.ast.SqlAstTranslator;
|
||||
import org.hibernate.sql.ast.SqlAstTranslatorFactory;
|
||||
|
|
|
@ -58,9 +58,9 @@ import org.hibernate.persister.entity.mutation.EntityMutationTarget;
|
|||
import org.hibernate.procedure.internal.SQLServerCallableStatementSupport;
|
||||
import org.hibernate.procedure.spi.CallableStatementSupport;
|
||||
import org.hibernate.query.sqm.CastType;
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.TrimSpec;
|
||||
import org.hibernate.service.ServiceRegistry;
|
||||
import org.hibernate.sql.ast.SqlAstNodeRenderingMode;
|
||||
|
@ -93,7 +93,7 @@ import static org.hibernate.exception.spi.TemplatedViolatedConstraintNameExtract
|
|||
import static org.hibernate.internal.util.JdbcExceptionHelper.extractErrorCode;
|
||||
import static org.hibernate.internal.util.JdbcExceptionHelper.extractSqlState;
|
||||
import static org.hibernate.internal.util.StringHelper.isNotEmpty;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.NANOSECOND;
|
||||
import static org.hibernate.query.common.TemporalUnit.NANOSECOND;
|
||||
import static org.hibernate.query.sqm.produce.function.FunctionParameterType.INTEGER;
|
||||
import static org.hibernate.type.SqlTypes.BLOB;
|
||||
import static org.hibernate.type.SqlTypes.CLOB;
|
||||
|
|
|
@ -16,7 +16,7 @@ import org.hibernate.metamodel.mapping.ModelPart;
|
|||
import org.hibernate.query.IllegalQueryOperationException;
|
||||
import org.hibernate.query.derived.AnonymousTupleTableGroupProducer;
|
||||
import org.hibernate.query.sqm.ComparisonOperator;
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.SqlAstJoinType;
|
||||
import org.hibernate.sql.ast.SqlAstNodeRenderingMode;
|
||||
|
|
|
@ -34,7 +34,7 @@ import org.hibernate.mapping.UniqueKey;
|
|||
import org.hibernate.persister.entity.EntityPersister;
|
||||
import org.hibernate.query.SemanticException;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.sql.ast.SqlAstTranslator;
|
||||
import org.hibernate.sql.ast.SqlAstTranslatorFactory;
|
||||
import org.hibernate.sql.ast.spi.SqlAppender;
|
||||
|
|
|
@ -29,7 +29,7 @@ import org.hibernate.exception.spi.ViolatedConstraintNameExtractor;
|
|||
import org.hibernate.internal.util.JdbcExceptionHelper;
|
||||
import org.hibernate.internal.util.config.ConfigurationHelper;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.service.ServiceRegistry;
|
||||
import org.hibernate.sql.ast.SqlAstTranslator;
|
||||
import org.hibernate.sql.ast.SqlAstTranslatorFactory;
|
||||
|
|
|
@ -37,7 +37,7 @@ import org.hibernate.query.spi.QueryOptions;
|
|||
import org.hibernate.query.spi.QueryParameterBindings;
|
||||
import org.hibernate.query.sqm.CastType;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.internal.DomainParameterXref;
|
||||
import org.hibernate.query.sqm.sql.SqmTranslator;
|
||||
import org.hibernate.query.sqm.sql.SqmTranslatorFactory;
|
||||
|
|
|
@ -10,7 +10,7 @@ import org.hibernate.dialect.sequence.TiDBSequenceSupport;
|
|||
import org.hibernate.engine.jdbc.dialect.spi.DialectResolutionInfo;
|
||||
import org.hibernate.engine.spi.SessionFactoryImplementor;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.sql.ast.SqlAstTranslator;
|
||||
import org.hibernate.sql.ast.SqlAstTranslatorFactory;
|
||||
import org.hibernate.sql.ast.spi.StandardSqlAstTranslatorFactory;
|
||||
|
|
|
@ -9,7 +9,7 @@ import java.util.List;
|
|||
import org.hibernate.query.ReturnableType;
|
||||
import org.hibernate.query.spi.QueryEngine;
|
||||
import org.hibernate.query.sqm.NodeBuilder;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.function.AbstractSqmFunctionDescriptor;
|
||||
import org.hibernate.query.sqm.function.FunctionRenderer;
|
||||
import org.hibernate.query.sqm.function.SelfRenderingSqmFunction;
|
||||
|
|
|
@ -7,7 +7,7 @@ package org.hibernate.dialect.function;
|
|||
import org.hibernate.dialect.Dialect;
|
||||
import org.hibernate.query.ReturnableType;
|
||||
import org.hibernate.query.SemanticException;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.spi.QueryEngine;
|
||||
import org.hibernate.query.sqm.NodeBuilder;
|
||||
import org.hibernate.query.sqm.function.AbstractSqmFunctionDescriptor;
|
||||
|
@ -34,7 +34,7 @@ import java.util.List;
|
|||
|
||||
import static java.util.Arrays.asList;
|
||||
import static org.hibernate.query.sqm.BinaryArithmeticOperator.*;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.*;
|
||||
import static org.hibernate.query.common.TemporalUnit.*;
|
||||
import static org.hibernate.query.sqm.produce.function.FunctionParameterType.TEMPORAL;
|
||||
import static org.hibernate.query.sqm.produce.function.FunctionParameterType.TEMPORAL_UNIT;
|
||||
import static org.hibernate.usertype.internal.AbstractTimeZoneStorageCompositeUserType.ZONE_OFFSET_NAME;
|
||||
|
|
|
@ -12,7 +12,7 @@ import org.hibernate.metamodel.mapping.JdbcMappingContainer;
|
|||
import org.hibernate.metamodel.mapping.MappingModelExpressible;
|
||||
import org.hibernate.query.ReturnableType;
|
||||
import org.hibernate.query.spi.QueryEngine;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.function.AbstractSqmFunctionDescriptor;
|
||||
import org.hibernate.query.sqm.function.FunctionRenderer;
|
||||
import org.hibernate.query.sqm.function.MultipatternSqmFunctionDescriptor;
|
||||
|
|
|
@ -7,7 +7,7 @@ package org.hibernate.dialect.function;
|
|||
import org.hibernate.dialect.Dialect;
|
||||
import org.hibernate.metamodel.mapping.BasicValuedMapping;
|
||||
import org.hibernate.query.ReturnableType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.function.SelfRenderingFunctionSqlAstExpression;
|
||||
import org.hibernate.sql.ast.SqlAstTranslator;
|
||||
import org.hibernate.sql.ast.spi.SqlAppender;
|
||||
|
|
|
@ -9,7 +9,7 @@ import java.util.List;
|
|||
|
||||
import org.hibernate.query.ReturnableType;
|
||||
import org.hibernate.query.spi.QueryEngine;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.function.FunctionRenderer;
|
||||
import org.hibernate.query.sqm.function.SelfRenderingSqmFunction;
|
||||
import org.hibernate.query.sqm.produce.function.ArgumentsValidator;
|
||||
|
|
|
@ -10,7 +10,7 @@ import java.util.List;
|
|||
import org.hibernate.query.ReturnableType;
|
||||
import org.hibernate.query.spi.QueryEngine;
|
||||
import org.hibernate.query.sqm.NodeBuilder;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.function.SelfRenderingSqmFunction;
|
||||
import org.hibernate.query.sqm.tree.SqmTypedNode;
|
||||
import org.hibernate.query.sqm.tree.expression.SqmExtractUnit;
|
||||
|
|
|
@ -8,7 +8,7 @@ import jakarta.persistence.TemporalType;
|
|||
import org.hibernate.dialect.Dialect;
|
||||
import org.hibernate.query.ReturnableType;
|
||||
import org.hibernate.query.sqm.IntervalType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.function.AbstractSqmSelfRenderingFunctionDescriptor;
|
||||
import org.hibernate.query.sqm.function.SelfRenderingFunctionSqlAstExpression;
|
||||
import org.hibernate.query.sqm.produce.function.ArgumentTypesValidator;
|
||||
|
|
|
@ -11,7 +11,7 @@ import org.hibernate.dialect.Dialect;
|
|||
import org.hibernate.metamodel.mapping.BasicValuedMapping;
|
||||
import org.hibernate.metamodel.mapping.JdbcMappingContainer;
|
||||
import org.hibernate.query.ReturnableType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.function.AbstractSqmSelfRenderingFunctionDescriptor;
|
||||
import org.hibernate.query.sqm.function.SelfRenderingFunctionSqlAstExpression;
|
||||
import org.hibernate.query.sqm.produce.function.ArgumentTypesValidator;
|
||||
|
|
|
@ -10,7 +10,7 @@ import java.util.List;
|
|||
import org.hibernate.query.ReturnableType;
|
||||
import org.hibernate.query.spi.QueryEngine;
|
||||
import org.hibernate.query.sqm.NodeBuilder;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.function.AbstractSqmFunctionDescriptor;
|
||||
import org.hibernate.query.sqm.function.FunctionRenderer;
|
||||
import org.hibernate.query.sqm.function.SelfRenderingSqmFunction;
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
*/
|
||||
package org.hibernate.engine.spi;
|
||||
|
||||
import org.hibernate.AssertionFailure;
|
||||
import org.hibernate.annotations.ResultCheckStyle;
|
||||
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
/*
|
||||
* SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
* Copyright Red Hat Inc. and Hibernate Authors
|
||||
*/
|
||||
package org.hibernate.query;
|
||||
|
||||
import org.hibernate.Incubating;
|
||||
|
||||
import jakarta.persistence.Tuple;
|
||||
|
||||
/**
|
||||
* Hibernate extension to the Jakarta Persistence {@link Tuple}
|
||||
* contract
|
||||
*
|
||||
* @author Steve Ebersole
|
||||
*/
|
||||
@Incubating
|
||||
public interface JpaTuple extends Tuple {
|
||||
}
|
|
@ -5,6 +5,7 @@
|
|||
package org.hibernate.query;
|
||||
|
||||
import org.hibernate.HibernateException;
|
||||
import org.hibernate.Internal;
|
||||
import org.hibernate.internal.log.SubSystemLogging;
|
||||
|
||||
import org.jboss.logging.BasicLogger;
|
||||
|
@ -30,6 +31,7 @@ import static org.jboss.logging.Logger.Level.WARN;
|
|||
name = QueryLogging.LOGGER_NAME,
|
||||
description = "Logging related to Query processing"
|
||||
)
|
||||
@Internal
|
||||
public interface QueryLogging extends BasicLogger {
|
||||
String LOGGER_NAME = SubSystemLogging.BASE + ".query";
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
* Copyright Red Hat Inc. and Hibernate Authors
|
||||
*/
|
||||
package org.hibernate.query.sqm;
|
||||
package org.hibernate.query.common;
|
||||
|
||||
/**
|
||||
* The kind of fetch to use for the {@code FETCH} clause.
|
|
@ -2,7 +2,7 @@
|
|||
* SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
* Copyright Red Hat Inc. and Hibernate Authors
|
||||
*/
|
||||
package org.hibernate.query.sqm;
|
||||
package org.hibernate.query.common;
|
||||
|
||||
/**
|
||||
* @author Christian Beikov
|
|
@ -2,7 +2,7 @@
|
|||
* SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
* Copyright Red Hat Inc. and Hibernate Authors
|
||||
*/
|
||||
package org.hibernate.query.sqm;
|
||||
package org.hibernate.query.common;
|
||||
|
||||
/**
|
||||
* @author Christian Beikov
|
|
@ -2,7 +2,7 @@
|
|||
* SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
* Copyright Red Hat Inc. and Hibernate Authors
|
||||
*/
|
||||
package org.hibernate.query.sqm;
|
||||
package org.hibernate.query.common;
|
||||
|
||||
/**
|
||||
* @author Christian Beikov
|
|
@ -2,7 +2,7 @@
|
|||
* SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
* Copyright Red Hat Inc. and Hibernate Authors
|
||||
*/
|
||||
package org.hibernate.query.sqm;
|
||||
package org.hibernate.query.common;
|
||||
|
||||
import org.hibernate.dialect.Dialect;
|
||||
import org.hibernate.query.SemanticException;
|
||||
|
@ -28,6 +28,8 @@ import org.hibernate.query.SemanticException;
|
|||
* according to capabilities of the database platform.
|
||||
*
|
||||
* @see Dialect#extractPattern(TemporalUnit)
|
||||
* @see org.hibernate.query.criteria.HibernateCriteriaBuilder#duration(long, TemporalUnit)
|
||||
* @see org.hibernate.query.criteria.HibernateCriteriaBuilder#durationByUnit(TemporalUnit, jakarta.persistence.criteria.Expression)
|
||||
*
|
||||
* @author Gavin King
|
||||
*/
|
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
* Copyright Red Hat Inc. and Hibernate Authors
|
||||
*/
|
||||
|
||||
/**
|
||||
* Common APIs used internally, in the SQL tree,
|
||||
* in the dialects, and in the criteria query API.
|
||||
*
|
||||
* @see org.hibernate.query.common.TemporalUnit
|
||||
*/
|
||||
@Incubating
|
||||
package org.hibernate.query.common;
|
||||
|
||||
import org.hibernate.Incubating;
|
|
@ -15,7 +15,7 @@ import org.hibernate.SharedSessionContract;
|
|||
import org.hibernate.query.QueryProducer;
|
||||
import org.hibernate.query.SelectionQuery;
|
||||
import org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate;
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
import org.hibernate.query.sqm.tree.SqmCopyContext;
|
||||
import org.hibernate.query.sqm.tree.select.SqmSelectStatement;
|
||||
|
||||
|
|
|
@ -21,8 +21,8 @@ import java.util.Set;
|
|||
import org.hibernate.Incubating;
|
||||
import org.hibernate.query.NullPrecedence;
|
||||
import org.hibernate.query.SortDirection;
|
||||
import org.hibernate.query.sqm.FrameKind;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.FrameKind;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
|
||||
import jakarta.persistence.Tuple;
|
||||
import jakarta.persistence.criteria.AbstractQuery;
|
||||
|
@ -525,7 +525,7 @@ public interface HibernateCriteriaBuilder extends CriteriaBuilder {
|
|||
* A literal {@link Duration}, for example, "five days" or "30 minutes".
|
||||
* @since 6.3
|
||||
*/
|
||||
@Incubating // layer breaker (leaks SQM type)
|
||||
@Incubating
|
||||
JpaExpression<Duration> duration(long magnitude, TemporalUnit unit);
|
||||
|
||||
/**
|
||||
|
@ -535,7 +535,7 @@ public interface HibernateCriteriaBuilder extends CriteriaBuilder {
|
|||
* @return the magnitude of the duration measured in the given units
|
||||
* @since 6.3
|
||||
*/
|
||||
@Incubating // layer breaker (leaks SQM type)
|
||||
@Incubating
|
||||
JpaExpression<Long> durationByUnit(TemporalUnit unit, Expression<Duration> duration);
|
||||
|
||||
/**
|
||||
|
@ -1198,7 +1198,7 @@ public interface HibernateCriteriaBuilder extends CriteriaBuilder {
|
|||
JpaFunction<String> format(Expression<? extends TemporalAccessor> datetime, String pattern);
|
||||
|
||||
/**
|
||||
* Extracts the {@link org.hibernate.query.sqm.TemporalUnit#YEAR} of a date, time, or datetime expression.
|
||||
* Extracts the {@link TemporalUnit#YEAR} of a date, time, or datetime expression.
|
||||
*
|
||||
* @param datetime the date, time, or datetime to extract the value from
|
||||
*
|
||||
|
@ -1208,7 +1208,7 @@ public interface HibernateCriteriaBuilder extends CriteriaBuilder {
|
|||
JpaFunction<Integer> year(Expression<? extends TemporalAccessor> datetime);
|
||||
|
||||
/**
|
||||
* Extracts the {@link org.hibernate.query.sqm.TemporalUnit#MONTH} of a date, time, or datetime expression.
|
||||
* Extracts the {@link TemporalUnit#MONTH} of a date, time, or datetime expression.
|
||||
*
|
||||
* @param datetime the date, time, or datetime to extract the value from
|
||||
*
|
||||
|
@ -1218,7 +1218,7 @@ public interface HibernateCriteriaBuilder extends CriteriaBuilder {
|
|||
JpaFunction<Integer> month(Expression<? extends TemporalAccessor> datetime);
|
||||
|
||||
/**
|
||||
* Extracts the {@link org.hibernate.query.sqm.TemporalUnit#DAY} of a date, time, or datetime expression.
|
||||
* Extracts the {@link TemporalUnit#DAY} of a date, time, or datetime expression.
|
||||
*
|
||||
* @param datetime the date, time, or datetime to extract the value from
|
||||
*
|
||||
|
@ -1228,7 +1228,7 @@ public interface HibernateCriteriaBuilder extends CriteriaBuilder {
|
|||
JpaFunction<Integer> day(Expression<? extends TemporalAccessor> datetime);
|
||||
|
||||
/**
|
||||
* Extracts the {@link org.hibernate.query.sqm.TemporalUnit#HOUR} of a date, time, or datetime expression.
|
||||
* Extracts the {@link TemporalUnit#HOUR} of a date, time, or datetime expression.
|
||||
*
|
||||
* @param datetime the date, time, or datetime to extract the value from
|
||||
*
|
||||
|
@ -1238,7 +1238,7 @@ public interface HibernateCriteriaBuilder extends CriteriaBuilder {
|
|||
JpaFunction<Integer> hour(Expression<? extends TemporalAccessor> datetime);
|
||||
|
||||
/**
|
||||
* Extracts the {@link org.hibernate.query.sqm.TemporalUnit#MINUTE} of a date, time, or datetime expression.
|
||||
* Extracts the {@link TemporalUnit#MINUTE} of a date, time, or datetime expression.
|
||||
*
|
||||
* @param datetime the date, time, or datetime to extract the value from
|
||||
*
|
||||
|
@ -1248,7 +1248,7 @@ public interface HibernateCriteriaBuilder extends CriteriaBuilder {
|
|||
JpaFunction<Integer> minute(Expression<? extends TemporalAccessor> datetime);
|
||||
|
||||
/**
|
||||
* Extracts the {@link org.hibernate.query.sqm.TemporalUnit#SECOND} of a date, time, or datetime expression.
|
||||
* Extracts the {@link TemporalUnit#SECOND} of a date, time, or datetime expression.
|
||||
*
|
||||
* @param datetime the date, time, or datetime to extract the value from
|
||||
*
|
||||
|
|
|
@ -7,7 +7,7 @@ package org.hibernate.query.criteria;
|
|||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
|
||||
import jakarta.persistence.criteria.CriteriaQuery;
|
||||
import jakarta.persistence.criteria.Expression;
|
||||
|
|
|
@ -8,7 +8,6 @@ import java.util.Collection;
|
|||
import java.util.function.Function;
|
||||
|
||||
import org.hibernate.Incubating;
|
||||
import org.hibernate.query.sqm.tree.SqmJoinType;
|
||||
|
||||
import jakarta.persistence.criteria.AbstractQuery;
|
||||
import jakarta.persistence.criteria.CriteriaQuery;
|
||||
|
@ -34,7 +33,6 @@ public interface JpaCteContainer extends JpaCriteriaNode {
|
|||
* which can be used for querying.
|
||||
*
|
||||
* @see JpaCriteriaQuery#from(JpaCteCriteria)
|
||||
* @see JpaFrom#join(JpaCteCriteria, SqmJoinType)
|
||||
*/
|
||||
<T> JpaCteCriteria<T> with(AbstractQuery<T> criteria);
|
||||
|
||||
|
@ -44,7 +42,6 @@ public interface JpaCteContainer extends JpaCriteriaNode {
|
|||
* so that the recursive {@link CriteriaQuery} is able to refer to the CTE again.
|
||||
*
|
||||
* @see JpaCriteriaQuery#from(JpaCteCriteria)
|
||||
* @see JpaFrom#join(JpaCteCriteria, SqmJoinType)
|
||||
*/
|
||||
<T> JpaCteCriteria<T> withRecursiveUnionAll(AbstractQuery<T> baseCriteria, Function<JpaCteCriteria<T>, AbstractQuery<T>> recursiveCriteriaProducer);
|
||||
|
||||
|
@ -54,7 +51,6 @@ public interface JpaCteContainer extends JpaCriteriaNode {
|
|||
* so that the recursive {@link CriteriaQuery} is able to refer to the CTE again.
|
||||
*
|
||||
* @see JpaCriteriaQuery#from(JpaCteCriteria)
|
||||
* @see JpaFrom#join(JpaCteCriteria, SqmJoinType)
|
||||
*/
|
||||
<T> JpaCteCriteria<T> withRecursiveUnionDistinct(AbstractQuery<T> baseCriteria, Function<JpaCteCriteria<T>, AbstractQuery<T>> recursiveCriteriaProducer);
|
||||
|
||||
|
|
|
@ -6,8 +6,7 @@ package org.hibernate.query.criteria;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.sqm.SetOperator;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
|
||||
/**
|
||||
* A query group i.e. query parts connected with a set operator.
|
||||
|
@ -18,10 +17,6 @@ public interface JpaQueryGroup<T> extends JpaQueryPart<T> {
|
|||
|
||||
List<? extends JpaQueryPart<T>> getQueryParts();
|
||||
|
||||
SetOperator getSetOperator();
|
||||
|
||||
void setSetOperator(SetOperator setOperator);
|
||||
|
||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// Covariant overrides
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ package org.hibernate.query.criteria;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
|
||||
/**
|
||||
* Models a query part i.e. the commonalities between a query group and a query specification.
|
||||
|
|
|
@ -9,7 +9,7 @@ import java.util.Set;
|
|||
import jakarta.persistence.criteria.Expression;
|
||||
import jakarta.persistence.criteria.Predicate;
|
||||
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
|
||||
/**
|
||||
* Models a {@code SELECT} query. Used as a delegate in
|
||||
|
|
|
@ -18,7 +18,7 @@ import jakarta.persistence.criteria.Selection;
|
|||
import jakarta.persistence.criteria.SetJoin;
|
||||
import jakarta.persistence.criteria.Subquery;
|
||||
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
|
||||
/**
|
||||
* @author Steve Ebersole
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
package org.hibernate.query.criteria;
|
||||
|
||||
import org.hibernate.Incubating;
|
||||
import org.hibernate.query.sqm.FrameExclusion;
|
||||
import org.hibernate.query.common.FrameExclusion;
|
||||
|
||||
import jakarta.persistence.criteria.Expression;
|
||||
import jakarta.persistence.criteria.Order;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
package org.hibernate.query.criteria;
|
||||
|
||||
import org.hibernate.Incubating;
|
||||
import org.hibernate.query.sqm.FrameKind;
|
||||
import org.hibernate.query.common.FrameKind;
|
||||
|
||||
import jakarta.persistence.criteria.Expression;
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ import org.hibernate.query.criteria.JpaValues;
|
|||
import org.hibernate.query.criteria.JpaWindow;
|
||||
import org.hibernate.query.criteria.JpaWindowFrame;
|
||||
import org.hibernate.query.criteria.JpaXmlElementExpression;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
|
||||
import jakarta.persistence.Tuple;
|
||||
import jakarta.persistence.criteria.CollectionJoin;
|
||||
|
|
|
@ -75,10 +75,10 @@ import org.hibernate.query.hql.spi.SqmCreationState;
|
|||
import org.hibernate.query.hql.spi.SqmPathRegistry;
|
||||
import org.hibernate.query.sqm.BinaryArithmeticOperator;
|
||||
import org.hibernate.query.sqm.ComparisonOperator;
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.sqm.FrameExclusion;
|
||||
import org.hibernate.query.sqm.FrameKind;
|
||||
import org.hibernate.query.sqm.FrameMode;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
import org.hibernate.query.common.FrameExclusion;
|
||||
import org.hibernate.query.common.FrameKind;
|
||||
import org.hibernate.query.common.FrameMode;
|
||||
import org.hibernate.query.sqm.LiteralNumberFormatException;
|
||||
import org.hibernate.query.sqm.NodeBuilder;
|
||||
import org.hibernate.query.sqm.ParsingException;
|
||||
|
@ -87,7 +87,7 @@ import org.hibernate.query.sqm.SqmExpressible;
|
|||
import org.hibernate.query.sqm.SqmPathSource;
|
||||
import org.hibernate.query.sqm.SqmTreeCreationLogger;
|
||||
import org.hibernate.query.sqm.StrictJpaComplianceViolation;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.TerminalPathException;
|
||||
import org.hibernate.query.sqm.TrimSpec;
|
||||
import org.hibernate.query.sqm.UnaryArithmeticOperator;
|
||||
|
@ -263,17 +263,17 @@ import static org.hibernate.internal.util.QuotingHelper.unquoteIdentifier;
|
|||
import static org.hibernate.internal.util.QuotingHelper.unquoteJavaStringLiteral;
|
||||
import static org.hibernate.internal.util.QuotingHelper.unquoteStringLiteral;
|
||||
import static org.hibernate.query.hql.internal.SqmTreeCreationHelper.extractJpaCompliantAlias;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.DATE;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.DAY_OF_MONTH;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.DAY_OF_WEEK;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.DAY_OF_YEAR;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.NANOSECOND;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.OFFSET;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.TIME;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.TIMEZONE_HOUR;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.TIMEZONE_MINUTE;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.WEEK_OF_MONTH;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.WEEK_OF_YEAR;
|
||||
import static org.hibernate.query.common.TemporalUnit.DATE;
|
||||
import static org.hibernate.query.common.TemporalUnit.DAY_OF_MONTH;
|
||||
import static org.hibernate.query.common.TemporalUnit.DAY_OF_WEEK;
|
||||
import static org.hibernate.query.common.TemporalUnit.DAY_OF_YEAR;
|
||||
import static org.hibernate.query.common.TemporalUnit.NANOSECOND;
|
||||
import static org.hibernate.query.common.TemporalUnit.OFFSET;
|
||||
import static org.hibernate.query.common.TemporalUnit.TIME;
|
||||
import static org.hibernate.query.common.TemporalUnit.TIMEZONE_HOUR;
|
||||
import static org.hibernate.query.common.TemporalUnit.TIMEZONE_MINUTE;
|
||||
import static org.hibernate.query.common.TemporalUnit.WEEK_OF_MONTH;
|
||||
import static org.hibernate.query.common.TemporalUnit.WEEK_OF_YEAR;
|
||||
import static org.hibernate.query.sqm.internal.SqmUtil.resolveExpressibleJavaTypeClass;
|
||||
import static org.hibernate.type.descriptor.DateTimeUtils.DATE_TIME;
|
||||
import static org.hibernate.type.spi.TypeConfiguration.isJdbcTemporalType;
|
||||
|
|
|
@ -7,11 +7,16 @@ package org.hibernate.query.sqm;
|
|||
/**
|
||||
* The different types of intervals that SQL defines.
|
||||
*
|
||||
* @deprecated This enum still has exactly one member, and was
|
||||
* placed in a package from which it has no usages.
|
||||
* It will be removed or moved.
|
||||
*
|
||||
* @author Christian Beikov
|
||||
*/
|
||||
@Deprecated(since="7", forRemoval = true)
|
||||
public enum IntervalType {
|
||||
/**
|
||||
* A second based interval.
|
||||
**/
|
||||
SECOND;
|
||||
SECOND
|
||||
}
|
||||
|
|
|
@ -74,13 +74,13 @@ import org.hibernate.query.spi.QueryEngine;
|
|||
import org.hibernate.query.spi.QueryEngineOptions;
|
||||
import org.hibernate.query.sqm.BinaryArithmeticOperator;
|
||||
import org.hibernate.query.sqm.ComparisonOperator;
|
||||
import org.hibernate.query.sqm.FrameKind;
|
||||
import org.hibernate.query.common.FrameKind;
|
||||
import org.hibernate.query.sqm.NodeBuilder;
|
||||
import org.hibernate.query.sqm.SetOperator;
|
||||
import org.hibernate.query.sqm.SqmExpressible;
|
||||
import org.hibernate.query.sqm.SqmPathSource;
|
||||
import org.hibernate.query.sqm.SqmQuerySource;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.TrimSpec;
|
||||
import org.hibernate.query.sqm.UnaryArithmeticOperator;
|
||||
import org.hibernate.query.sqm.function.NamedSqmFunctionDescriptor;
|
||||
|
|
|
@ -42,7 +42,7 @@ import org.hibernate.query.SortDirection;
|
|||
import org.hibernate.query.results.TableGroupImpl;
|
||||
import org.hibernate.query.spi.DomainQueryExecutionContext;
|
||||
import org.hibernate.query.sqm.ComparisonOperator;
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
import org.hibernate.query.sqm.internal.DomainParameterXref;
|
||||
import org.hibernate.query.sqm.internal.SqmUtil;
|
||||
import org.hibernate.query.sqm.mutation.internal.MultiTableSqmMutationConverter;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*/
|
||||
package org.hibernate.query.sqm.produce.function;
|
||||
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
|
||||
/**
|
||||
* A mini-"type system" for HQL function parameters.
|
||||
|
|
|
@ -127,12 +127,12 @@ import org.hibernate.query.sqm.BinaryArithmeticOperator;
|
|||
import org.hibernate.query.sqm.CastType;
|
||||
import org.hibernate.query.sqm.ComparisonOperator;
|
||||
import org.hibernate.query.sqm.DynamicInstantiationNature;
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
import org.hibernate.query.sqm.InterpretationException;
|
||||
import org.hibernate.query.sqm.SqmExpressible;
|
||||
import org.hibernate.query.sqm.SqmPathSource;
|
||||
import org.hibernate.query.sqm.SqmQuerySource;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.UnaryArithmeticOperator;
|
||||
import org.hibernate.query.sqm.function.AbstractSqmSelfRenderingFunctionDescriptor;
|
||||
import org.hibernate.query.sqm.function.SelfRenderingAggregateFunctionSqlAstExpression;
|
||||
|
@ -443,10 +443,10 @@ import static org.hibernate.internal.util.NullnessHelper.coalesceSuppliedValues;
|
|||
import static org.hibernate.query.sqm.BinaryArithmeticOperator.ADD;
|
||||
import static org.hibernate.query.sqm.BinaryArithmeticOperator.MULTIPLY;
|
||||
import static org.hibernate.query.sqm.BinaryArithmeticOperator.SUBTRACT;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.EPOCH;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.NANOSECOND;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.NATIVE;
|
||||
import static org.hibernate.query.sqm.TemporalUnit.SECOND;
|
||||
import static org.hibernate.query.common.TemporalUnit.EPOCH;
|
||||
import static org.hibernate.query.common.TemporalUnit.NANOSECOND;
|
||||
import static org.hibernate.query.common.TemporalUnit.NATIVE;
|
||||
import static org.hibernate.query.common.TemporalUnit.SECOND;
|
||||
import static org.hibernate.query.sqm.UnaryArithmeticOperator.UNARY_MINUS;
|
||||
import static org.hibernate.query.sqm.internal.SqmUtil.isFkOptimizationAllowed;
|
||||
import static org.hibernate.sql.ast.spi.SqlAstTreeHelper.combinePredicates;
|
||||
|
|
|
@ -6,7 +6,7 @@ package org.hibernate.query.sqm.tree.expression;
|
|||
|
||||
import org.hibernate.metamodel.mapping.BasicValuedMapping;
|
||||
import org.hibernate.metamodel.mapping.MappingModelExpressible;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.sql.internal.DomainResultProducer;
|
||||
import org.hibernate.sql.ast.SqlAstWalker;
|
||||
import org.hibernate.sql.ast.spi.SqlAstCreationState;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
package org.hibernate.query.sqm.tree.expression;
|
||||
|
||||
import org.hibernate.query.ReturnableType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.NodeBuilder;
|
||||
import org.hibernate.query.sqm.SemanticQueryWalker;
|
||||
import org.hibernate.query.sqm.SqmExpressible;
|
||||
|
|
|
@ -21,7 +21,7 @@ import org.hibernate.query.spi.QueryEngine;
|
|||
import org.hibernate.query.sqm.BinaryArithmeticOperator;
|
||||
import org.hibernate.query.sqm.NodeBuilder;
|
||||
import org.hibernate.query.sqm.SqmExpressible;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.tree.domain.SqmPath;
|
||||
import org.hibernate.type.descriptor.java.JavaTypeHelper;
|
||||
import org.hibernate.type.descriptor.java.JdbcDateJavaType;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
package org.hibernate.query.sqm.tree.expression;
|
||||
|
||||
import org.hibernate.query.ReturnableType;
|
||||
import org.hibernate.query.sqm.TemporalUnit;
|
||||
import org.hibernate.query.common.TemporalUnit;
|
||||
import org.hibernate.query.sqm.NodeBuilder;
|
||||
import org.hibernate.query.sqm.SemanticQueryWalker;
|
||||
import org.hibernate.query.sqm.SqmExpressible;
|
||||
|
|
|
@ -6,9 +6,9 @@ package org.hibernate.query.sqm.tree.expression;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import org.hibernate.query.sqm.FrameExclusion;
|
||||
import org.hibernate.query.sqm.FrameKind;
|
||||
import org.hibernate.query.sqm.FrameMode;
|
||||
import org.hibernate.query.common.FrameExclusion;
|
||||
import org.hibernate.query.common.FrameKind;
|
||||
import org.hibernate.query.common.FrameMode;
|
||||
import org.hibernate.query.sqm.SemanticQueryWalker;
|
||||
import org.hibernate.query.sqm.SqmExpressible;
|
||||
import org.hibernate.query.sqm.tree.SqmCopyContext;
|
||||
|
|
|
@ -10,9 +10,9 @@ import java.util.List;
|
|||
import org.hibernate.Incubating;
|
||||
import org.hibernate.query.criteria.JpaWindow;
|
||||
import org.hibernate.query.criteria.JpaWindowFrame;
|
||||
import org.hibernate.query.sqm.FrameExclusion;
|
||||
import org.hibernate.query.sqm.FrameKind;
|
||||
import org.hibernate.query.sqm.FrameMode;
|
||||
import org.hibernate.query.common.FrameExclusion;
|
||||
import org.hibernate.query.common.FrameKind;
|
||||
import org.hibernate.query.common.FrameMode;
|
||||
import org.hibernate.query.sqm.NodeBuilder;
|
||||
import org.hibernate.query.sqm.SemanticQueryWalker;
|
||||
import org.hibernate.query.sqm.tree.AbstractSqmNode;
|
||||
|
@ -23,12 +23,12 @@ import org.hibernate.query.sqm.tree.select.SqmSortSpecification;
|
|||
import jakarta.persistence.criteria.Expression;
|
||||
import jakarta.persistence.criteria.Order;
|
||||
|
||||
import static org.hibernate.query.sqm.FrameExclusion.NO_OTHERS;
|
||||
import static org.hibernate.query.sqm.FrameKind.CURRENT_ROW;
|
||||
import static org.hibernate.query.sqm.FrameKind.UNBOUNDED_PRECEDING;
|
||||
import static org.hibernate.query.sqm.FrameMode.GROUPS;
|
||||
import static org.hibernate.query.sqm.FrameMode.RANGE;
|
||||
import static org.hibernate.query.sqm.FrameMode.ROWS;
|
||||
import static org.hibernate.query.common.FrameExclusion.NO_OTHERS;
|
||||
import static org.hibernate.query.common.FrameKind.CURRENT_ROW;
|
||||
import static org.hibernate.query.common.FrameKind.UNBOUNDED_PRECEDING;
|
||||
import static org.hibernate.query.common.FrameMode.GROUPS;
|
||||
import static org.hibernate.query.common.FrameMode.RANGE;
|
||||
import static org.hibernate.query.common.FrameMode.ROWS;
|
||||
|
||||
/**
|
||||
* @author Marco Belladelli
|
||||
|
|
|
@ -6,7 +6,7 @@ package org.hibernate.query.sqm.tree.expression;
|
|||
|
||||
import org.hibernate.Incubating;
|
||||
import org.hibernate.query.criteria.JpaWindowFrame;
|
||||
import org.hibernate.query.sqm.FrameKind;
|
||||
import org.hibernate.query.common.FrameKind;
|
||||
import org.hibernate.query.sqm.NodeBuilder;
|
||||
import org.hibernate.query.sqm.tree.AbstractSqmNode;
|
||||
import org.hibernate.query.sqm.tree.SqmCopyContext;
|
||||
|
|
|
@ -10,7 +10,7 @@ import java.util.Iterator;
|
|||
import java.util.List;
|
||||
|
||||
import org.hibernate.internal.util.collections.CollectionHelper;
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
import org.hibernate.query.SemanticException;
|
||||
import org.hibernate.query.sqm.SetOperator;
|
||||
import org.hibernate.query.criteria.JpaExpression;
|
||||
|
@ -99,12 +99,10 @@ public class SqmQueryGroup<T> extends SqmQueryPart<T> implements JpaQueryGroup<T
|
|||
return Collections.unmodifiableList( queryParts );
|
||||
}
|
||||
|
||||
@Override
|
||||
public SetOperator getSetOperator() {
|
||||
return setOperator;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setSetOperator(SetOperator setOperator) {
|
||||
if ( setOperator == null ) {
|
||||
throw new IllegalArgumentException();
|
||||
|
|
|
@ -7,7 +7,7 @@ package org.hibernate.query.sqm.tree.select;
|
|||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
import org.hibernate.query.criteria.JpaExpression;
|
||||
import org.hibernate.query.criteria.JpaOrder;
|
||||
import org.hibernate.query.criteria.JpaQueryPart;
|
||||
|
|
|
@ -21,7 +21,7 @@ import org.hibernate.query.criteria.JpaPredicate;
|
|||
import org.hibernate.query.criteria.JpaQueryStructure;
|
||||
import org.hibernate.query.criteria.JpaRoot;
|
||||
import org.hibernate.query.criteria.JpaSelection;
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
import org.hibernate.query.sqm.NodeBuilder;
|
||||
import org.hibernate.query.sqm.SemanticQueryWalker;
|
||||
import org.hibernate.query.sqm.internal.SqmUtil;
|
||||
|
|
|
@ -17,7 +17,7 @@ import org.hibernate.query.criteria.JpaCriteriaQuery;
|
|||
import org.hibernate.query.criteria.JpaCteCriteria;
|
||||
import org.hibernate.query.criteria.JpaExpression;
|
||||
import org.hibernate.query.criteria.JpaSelection;
|
||||
import org.hibernate.query.sqm.FetchClauseType;
|
||||
import org.hibernate.query.common.FetchClauseType;
|
||||
import org.hibernate.query.sqm.NodeBuilder;
|
||||
import org.hibernate.query.sqm.SemanticQueryWalker;
|
||||
import org.hibernate.query.sqm.SqmQuerySource;
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue