Package org.hibernate.query.sqm.internal
Class SqmUtil
- java.lang.Object
-
- org.hibernate.query.sqm.internal.SqmUtil
-
public class SqmUtil extends Object
Helper utilities for dealing with SQM
-
-
Method Summary
-
-
-
Method Detail
-
isSelect
public static boolean isSelect(SqmStatement<?> sqm)
-
isMutation
public static boolean isMutation(SqmStatement<?> sqm)
-
verifyIsSelectStatement
public static void verifyIsSelectStatement(SqmStatement<?> sqm, String hqlString)
-
verifyIsNonSelectStatement
public static void verifyIsNonSelectStatement(SqmStatement<?> sqm, String hqlString)
-
expectingNonSelect
public static IllegalQueryOperationException expectingNonSelect(SqmStatement<?> sqm, String hqlString)
-
needsTargetTableMapping
public static boolean needsTargetTableMapping(SqmPath<?> sqmPath, ModelPartContainer modelPartContainer, SqmToSqlAstConverter sqlAstCreationState)
-
generateJdbcParamsXref
public static Map<QueryParameterImplementor<?>,Map<SqmParameter<?>,List<JdbcParametersList>>> generateJdbcParamsXref(DomainParameterXref domainParameterXref, JdbcParameterBySqmParameterAccess jdbcParameterBySqmParameterAccess)
-
createJdbcParameterBindings
public static JdbcParameterBindings createJdbcParameterBindings(QueryParameterBindings domainParamBindings, DomainParameterXref domainParameterXref, Map<QueryParameterImplementor<?>,Map<SqmParameter<?>,List<JdbcParametersList>>> jdbcParamXref, MappingMetamodel domainModel, Function<NavigablePath,TableGroup> tableGroupLocator, SqmParameterMappingModelResolutionAccess mappingModelResolutionAccess, SharedSessionContractImplementor session)
-
determineParameterType
public static Bindable determineParameterType(QueryParameterBinding<?> binding, QueryParameterImplementor<?> parameter, List<SqmParameter<?>> sqmParameters, SqmParameterMappingModelResolutionAccess mappingModelResolutionAccess, SessionFactoryImplementor sessionFactory)
-
resolveParameters
public static SqmStatement.ParameterResolutions resolveParameters(SqmStatement<?> statement)
-
-