Top Description Fields Constructors Methods
org.hibernate.query.internal

public Class QueryParameterBindingsImpl

extends Object
implements QueryParameterBindings
Class Inheritance
All Implemented Interfaces
org.hibernate.query.spi.QueryParameterBindings
Annotations
@Incubating
Imports
java.util.Collection, .Comparator, .HashMap, .HashSet, .Iterator, .Map, .Set, .TreeMap, java.util.stream.Collectors, javax.persistence.Parameter, org.hibernate.HibernateException, .Incubating, .QueryException, .QueryParameterException, org.hibernate.dialect.Dialect, org.hibernate.engine.jdbc.spi.JdbcServices, org.hibernate.engine.query.spi.NamedParameterDescriptor, .OrdinalParameterDescriptor, org.hibernate.engine.spi.SessionFactoryImplementor, .SharedSessionContractImplementor, .TypedValue, org.hibernate.internal.CoreLogging, .CoreMessageLogger, org.hibernate.internal.util.MathHelper, .StringHelper, org.hibernate.internal.util.collections.ArrayHelper, .CollectionHelper, org.hibernate.query.ParameterMetadata, .QueryParameter, org.hibernate.query.spi.QueryParameterBinding, .QueryParameterBindings, .QueryParameterListBinding, org.hibernate.type.SerializableType, .Type

Manages the group of QueryParameterBinding for a particular query.
Authors
Steve Ebersole, Chris Cranford

Field Summary

Modifier and TypeField and Description
private static final Object[]
private final int
private static final CoreMessageLogger
private final int
private Map<QueryParameter<T>, QueryParameterBinding<T>>
private Map<QueryParameter<T>, QueryParameterListBinding<T>>
private final ParameterMetadata
private Set<QueryParameter<T>>
private final boolean
private final SessionFactoryImplementor
sessionFactory

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
private Set<QueryParameter<T>>

Constructor Summary

AccessConstructor and Description
private
QueryParameterBindingsImpl(SessionFactoryImplementor sessionFactory, ParameterMetadata parameterMetadata, boolean queryParametersValidationEnabled)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.

Method Summary

Modifier and TypeMethod and Description
public Collection<Type>
collectBindTypes()

Deprecated (since 5.2) expect a different approach to org.hibernate.engine.spi.QueryParameters in 6.0
public Collection<Object>
collectBindValues()

Deprecated (since 5.2) expect a different approach to org.hibernate.engine.spi.QueryParameters in 6.0
public Map<String, TypedValue>
collectNamedParameterBindings()

Implements org.hibernate.query.spi.QueryParameterBindings.collectNamedParameterBindings.

Deprecated (since 5.2) expect a different approach to org.hibernate.engine.spi.QueryParameters in 6.0
public Type[]
collectPositionalBindTypes()

Implements org.hibernate.query.spi.QueryParameterBindings.collectPositionalBindTypes.

Deprecated (since 5.2) expect a different approach to org.hibernate.engine.spi.QueryParameters in 6.0
public Object[]
collectPositionalBindValues()

Implements org.hibernate.query.spi.QueryParameterBindings.collectPositionalBindValues.

Deprecated (since 5.2) expect a different approach to org.hibernate.engine.spi.QueryParameters in 6.0
public String
expandListValuedParameters(String queryString, SharedSessionContractImplementor session)

Implements org.hibernate.query.spi.QueryParameterBindings.expandListValuedParameters.

Deprecated (since 5.2) expected changes to "collection-valued parameter binding" in 6.0
public static QueryParameterBindingsImpl
from(ParameterMetadata parameterMetadata, SessionFactoryImplementor sessionFactory, boolean queryParametersValidationEnabled)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
private <T> QueryParameterBinding<T>
getAndRemoveBinding(QueryParameter<T> parameter)

Deprecated (since 5.2) expected changes to "collection-valued parameter binding" in 6.0
public <T> QueryParameterBinding<T>
public QueryParameterBinding<T>
public QueryParameterBinding<T>
private int
public <T> QueryParameterListBinding<T>
getQueryParameterListBinding(QueryParameter<T> queryParameter)

Implements org.hibernate.query.spi.QueryParameterBindings.getQueryParameterListBinding.

Deprecated (since 5.2) expected changes to "collection-valued parameter binding" in 6.0
public <T> QueryParameterListBinding<T>
getQueryParameterListBinding(String name)

Implements org.hibernate.query.spi.QueryParameterBindings.getQueryParameterListBinding.

Deprecated (since 5.2) expected changes to "collection-valued parameter binding" in 6.0
public <T> QueryParameterListBinding<T>
getQueryParameterListBinding(int name)

Implements org.hibernate.query.spi.QueryParameterBindings.getQueryParameterListBinding.

Deprecated (since 5.2) expected changes to "collection-valued parameter binding" in 6.0
private TreeMap<QueryParameter<T>, QueryParameterBinding<T>>
public boolean
public boolean
private QueryParameterListBinding<T>
locateQueryParameterListBinding(QueryParameter<T> queryParameter)

Deprecated (since 5.2) expected changes to "collection-valued parameter binding" in 6.0
protected QueryParameterBinding<T>
makeBinding(QueryParameter<T> queryParameter)

protected QueryParameterBinding<T>
makeBinding(Type bindType)

protected <T> QueryParameterListBinding<T>
private void
private QueryParameter<T>
resolveParameter(QueryParameter<T> queryParameter)

private <T> QueryParameter<T>
resolveQueryParameter(String name)

Deprecated (since 5.2) expected changes to "collection-valued parameter binding" in 6.0
private <T> QueryParameter<T>
resolveQueryParameter(int name)

Deprecated (since 5.2) expected changes to "collection-valued parameter binding" in 6.0
private boolean
private <T> QueryParameterListBinding<T>
transformQueryParameterBindingToQueryParameterListBinding(QueryParameter<T> queryParameter)

Deprecated (since 5.2) expected changes to "collection-valued parameter binding" in 6.0
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EMPTY_VALUESback to summary
private static final Object[] EMPTY_VALUES
jdbcStyleOrdinalCountBaseback to summary
private final int jdbcStyleOrdinalCountBase
logback to summary
private static final CoreMessageLogger log
ordinalParamValueOffsetback to summary
private final int ordinalParamValueOffset
parameterBindingMapback to summary
private Map<QueryParameter<T>, QueryParameterBinding<T>> parameterBindingMap
parameterListBindingMapback to summary
private Map<QueryParameter<T>, QueryParameterListBinding<T>> parameterListBindingMap
parameterMetadataback to summary
private final ParameterMetadata parameterMetadata
parametersConvertedToListBindingsback to summary
private Set<QueryParameter<T>> parametersConvertedToListBindings
queryParametersValidationEnabledback to summary
private final boolean queryParametersValidationEnabled
sessionFactoryback to summary
private final SessionFactoryImplementor sessionFactory

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

syntheticParametersFromListBindingsback to summary
private Set<QueryParameter<T>> syntheticParametersFromListBindings

Constructor Detail

QueryParameterBindingsImplback to summary
private QueryParameterBindingsImpl(SessionFactoryImplementor sessionFactory, ParameterMetadata parameterMetadata, boolean queryParametersValidationEnabled)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Method Detail

collectBindTypesback to summary
public Collection<Type> collectBindTypes()

Deprecated

(since 5.2) expect a different approach to org.hibernate.engine.spi.QueryParameters in 6.0

Annotations
@Deprecated
collectBindValuesback to summary
public Collection<Object> collectBindValues()

Deprecated

(since 5.2) expect a different approach to org.hibernate.engine.spi.QueryParameters in 6.0

Annotations
@Deprecated
collectNamedParameterBindingsback to summary
public Map<String, TypedValue> collectNamedParameterBindings()

Implements org.hibernate.query.spi.QueryParameterBindings.collectNamedParameterBindings.

Deprecated

(since 5.2) expect a different approach to org.hibernate.engine.spi.QueryParameters in 6.0

Annotations
@Deprecated
collectPositionalBindTypesback to summary
public Type[] collectPositionalBindTypes()

Implements org.hibernate.query.spi.QueryParameterBindings.collectPositionalBindTypes.

Deprecated

(since 5.2) expect a different approach to org.hibernate.engine.spi.QueryParameters in 6.0

Annotations
@Deprecated
collectPositionalBindValuesback to summary
public Object[] collectPositionalBindValues()

Implements org.hibernate.query.spi.QueryParameterBindings.collectPositionalBindValues.

Deprecated

(since 5.2) expect a different approach to org.hibernate.engine.spi.QueryParameters in 6.0

Annotations
@Deprecated
@SuppressWarnings:unchecked
expandListValuedParametersback to summary
public String expandListValuedParameters(String queryString, SharedSessionContractImplementor session)

Implements org.hibernate.query.spi.QueryParameterBindings.expandListValuedParameters.

Deprecated

(since 5.2) expected changes to "collection-valued parameter binding" in 6.0

Annotations
@Deprecated
@SuppressWarnings:unchecked
fromback to summary
public static QueryParameterBindingsImpl from(ParameterMetadata parameterMetadata, SessionFactoryImplementor sessionFactory, boolean queryParametersValidationEnabled)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

getAndRemoveBindingback to summary
private <T> QueryParameterBinding<T> getAndRemoveBinding(QueryParameter<T> parameter)

Deprecated

(since 5.2) expected changes to "collection-valued parameter binding" in 6.0

Annotations
@Deprecated
@SuppressWarnings:unchecked
getBindingback to summary
public <T> QueryParameterBinding<T> getBinding(QueryParameter<T> parameter)

Implements org.hibernate.query.spi.QueryParameterBindings.getBinding.

Annotations
@SuppressWarnings:unchecked
getBindingback to summary
public QueryParameterBinding<T> getBinding(int position)

Implements org.hibernate.query.spi.QueryParameterBindings.getBinding.

Annotations
@Override
@SuppressWarnings:unchecked
getBindingback to summary
public QueryParameterBinding<T> getBinding(String name)

Implements org.hibernate.query.spi.QueryParameterBindings.getBinding.

Annotations
@Override
@SuppressWarnings:unchecked
getMaxOrdinalPositionback to summary
private int getMaxOrdinalPosition()
getQueryParameterListBindingback to summary
public <T> QueryParameterListBinding<T> getQueryParameterListBinding(QueryParameter<T> queryParameter)

Implements org.hibernate.query.spi.QueryParameterBindings.getQueryParameterListBinding.

Deprecated

(since 5.2) expected changes to "collection-valued parameter binding" in 6.0

Annotations
@Deprecated
@SuppressWarnings:unchecked
getQueryParameterListBindingback to summary
public <T> QueryParameterListBinding<T> getQueryParameterListBinding(String name)

Implements org.hibernate.query.spi.QueryParameterBindings.getQueryParameterListBinding.

Deprecated

(since 5.2) expected changes to "collection-valued parameter binding" in 6.0

Annotations
@Deprecated
@SuppressWarnings:unchecked
getQueryParameterListBindingback to summary
public <T> QueryParameterListBinding<T> getQueryParameterListBinding(int name)

Implements org.hibernate.query.spi.QueryParameterBindings.getQueryParameterListBinding.

Deprecated

(since 5.2) expected changes to "collection-valued parameter binding" in 6.0

Annotations
@Deprecated
@SuppressWarnings:unchecked
getSortedPositionalParamBindingMapback to summary
private TreeMap<QueryParameter<T>, QueryParameterBinding<T>> getSortedPositionalParamBindingMap()
isBoundback to summary
public boolean isBound(QueryParameter<T> parameter)

Implements org.hibernate.query.spi.QueryParameterBindings.isBound.

Annotations
@Override
@SuppressWarnings:unchecked
isMultiValuedBindingback to summary
public boolean isMultiValuedBinding(QueryParameter<T> parameter)

Overrides default org.hibernate.query.spi.QueryParameterBindings.isMultiValuedBinding.

Annotations
@Override
locateQueryParameterListBindingback to summary
private QueryParameterListBinding<T> locateQueryParameterListBinding(QueryParameter<T> queryParameter)

Deprecated

(since 5.2) expected changes to "collection-valued parameter binding" in 6.0

Annotations
@Deprecated
makeBindingback to summary
protected QueryParameterBinding<T> makeBinding(QueryParameter<T> queryParameter)
Annotations
@SuppressWarnings:WeakerAccess
makeBindingback to summary
protected QueryParameterBinding<T> makeBinding(Type bindType)
Annotations
@SuppressWarnings:WeakerAccess
makeListBindingback to summary
protected <T> QueryParameterListBinding<T> makeListBinding(QueryParameter<T> param)
Annotations
@SuppressWarnings:unchecked, WeakerAccess
registerSyntheticParamFromListBindingsback to summary
private void registerSyntheticParamFromListBindings(QueryParameter<?> syntheticParam)
resolveParameterback to summary
private QueryParameter<T> resolveParameter(QueryParameter<T> queryParameter)
resolveQueryParameterback to summary
private <T> QueryParameter<T> resolveQueryParameter(String name)

Deprecated

(since 5.2) expected changes to "collection-valued parameter binding" in 6.0

Annotations
@Deprecated
@SuppressWarnings:unchecked
resolveQueryParameterback to summary
private <T> QueryParameter<T> resolveQueryParameter(int name)

Deprecated

(since 5.2) expected changes to "collection-valued parameter binding" in 6.0

Annotations
@Deprecated
@SuppressWarnings:unchecked
shouldValidateBindingValueback to summary
private boolean shouldValidateBindingValue()
transformQueryParameterBindingToQueryParameterListBindingback to summary
private <T> QueryParameterListBinding<T> transformQueryParameterBindingToQueryParameterListBinding(QueryParameter<T> queryParameter)

Deprecated

(since 5.2) expected changes to "collection-valued parameter binding" in 6.0

Annotations
@Deprecated
@SuppressWarnings:unchecked
verifyParametersBoundback to summary
public void verifyParametersBound(boolean reserveFirstParameter)

Implements org.hibernate.query.spi.QueryParameterBindings.verifyParametersBound.