Class ColumnValueParameter
java.lang.Object
org.hibernate.sql.exec.internal.AbstractJdbcParameter
org.hibernate.sql.ast.spi.model.ColumnValueParameter
- All Implemented Interfaces:
BasicValuedMapping, Bindable, JdbcMappingContainer, MappingModelExpressible, SqlExpressible, ValueMapping, SqlSelectionProducer, Expression, JdbcParameter, SqlAstNode, JdbcParameterBinder, JavaTypedExpressible
public class ColumnValueParameter
extends org.hibernate.sql.exec.internal.AbstractJdbcParameter
Parameter descriptor specific to mutations. It exposes metadata about the parameter.
[!NOTE]
Especially note the usage - we track parameters separately for assignments and restrictions to allow different values in each clause. E.g.
update ... set col = newValue where col = oldValue
The JDBC-parameter methods declared by this class are its provider-facing
contract. Provider code should invoke these methods directly and must not
depend on the internal superclass used to share implementation inside
Hibernate.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Bindable
Bindable.JdbcValuesBiConsumer<X,Y>, Bindable.JdbcValuesConsumer -
Field Summary
Fields inherited from interface JdbcParameterBinder
NOOP -
Constructor Summary
ConstructorsConstructorDescriptionColumnValueParameter(ColumnReference columnReference) ColumnValueParameter(ColumnReference columnReference, ParameterUsage usage) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(SqlAstWalker sqlTreeWalker) Accept the SQL AST walker as this parameter.The JDBC mapping of the referenced column.The binder for this parameter.The identifier of this parameter, which is alwaysnullfor a column value parameter.getUsage()toString()Methods inherited from class org.hibernate.sql.exec.internal.AbstractJdbcParameter
addToCacheKey, bindParameterValue, bindParameterValue, disassemble, forEachDisassembledJdbcValue, forEachJdbcType, getExpressionType, getJdbcTypeCount, getMappedType, getSingleJdbcMappingMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface BasicValuedMapping
getJdbcMappingMethods inherited from interface Bindable
forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue, forEachJdbcValueMethods inherited from interface Expression
createDomainResultSqlSelection, createSqlSelectionMethods inherited from interface ValueMapping
getExpressibleJavaType, treatAs
-
Constructor Details
-
ColumnValueParameter
-
ColumnValueParameter
-
-
Method Details
-
getColumnReference
-
getUsage
-
getParameterBinder
The binder for this parameter.- Specified by:
getParameterBinderin interfaceJdbcParameter- Overrides:
getParameterBinderin classorg.hibernate.sql.exec.internal.AbstractJdbcParameter- Since:
- 8.0
-
getParameterId
The identifier of this parameter, which is alwaysnullfor a column value parameter.- Specified by:
getParameterIdin interfaceJdbcParameter- Overrides:
getParameterIdin classorg.hibernate.sql.exec.internal.AbstractJdbcParameter- Since:
- 8.0
-
getJdbcMapping
The JDBC mapping of the referenced column.- Specified by:
getJdbcMappingin interfaceBasicValuedMapping- Specified by:
getJdbcMappingin interfaceSqlExpressible- Overrides:
getJdbcMappingin classorg.hibernate.sql.exec.internal.AbstractJdbcParameter- Since:
- 8.0
-
accept
Accept the SQL AST walker as this parameter.- Specified by:
acceptin interfaceSqlAstNode- Overrides:
acceptin classorg.hibernate.sql.exec.internal.AbstractJdbcParameter- Since:
- 8.0
-
toString
-