Package org.hibernate.sql.exec.internal
Class VersionTypeSeedParameterSpecification
java.lang.Object
org.hibernate.sql.exec.internal.AbstractJdbcParameter
org.hibernate.sql.exec.internal.VersionTypeSeedParameterSpecification
- All Implemented Interfaces:
BasicValuedMapping
,Bindable
,JdbcMappingContainer
,MappingModelExpressible
,SqlExpressible
,ValueMapping
,SqlSelectionProducer
,Expression
,JdbcParameter
,SqlAstNode
,JdbcParameterBinder
,JavaTypedExpressible
Parameter bind specification used for optimistic lock version seeding (from insert statements).
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.Bindable
Bindable.JdbcValuesBiConsumer<X,
Y>, Bindable.JdbcValuesConsumer -
Field Summary
Fields inherited from interface org.hibernate.sql.exec.spi.JdbcParameterBinder
NOOP
-
Constructor Summary
ConstructorDescriptionVersionTypeSeedParameterSpecification
(EntityVersionMapping versionMapping) Constructs a version seed parameter bind specification. -
Method Summary
Modifier and TypeMethodDescriptionvoid
bindParameterValue
(PreparedStatement statement, int startPosition, JdbcParameterBindings jdbcParamBindings, ExecutionContext executionContext) Bind the appropriate value in the JDBC statementMethods inherited from class org.hibernate.sql.exec.internal.AbstractJdbcParameter
accept, addToCacheKey, bindParameterValue, disassemble, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, getExpressionType, getJdbcMapping, getJdbcTypeCount, getMappedType, getParameterBinder, getSingleJdbcMapping
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.metamodel.mapping.BasicValuedMapping
getJdbcMapping
Methods inherited from interface org.hibernate.metamodel.mapping.Bindable
forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue
Methods inherited from interface org.hibernate.sql.ast.tree.expression.Expression
createDomainResultSqlSelection, createSqlSelection, getColumnReference
Methods inherited from interface org.hibernate.metamodel.mapping.ValueMapping
getExpressibleJavaType, treatAs
-
Constructor Details
-
VersionTypeSeedParameterSpecification
Constructs a version seed parameter bind specification.- Parameters:
versionMapping
- The version mapping.
-
-
Method Details
-
bindParameterValue
public void bindParameterValue(PreparedStatement statement, int startPosition, JdbcParameterBindings jdbcParamBindings, ExecutionContext executionContext) throws SQLException Description copied from interface:JdbcParameterBinder
Bind the appropriate value in the JDBC statement- Specified by:
bindParameterValue
in interfaceJdbcParameterBinder
- Overrides:
bindParameterValue
in classAbstractJdbcParameter
- Throws:
SQLException
-