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
ConstructorsConstructorDescriptionVersionTypeSeedParameterSpecification(EntityVersionMapping versionMapping) Constructs a version seed parameter bind specification. -
Method Summary
Modifier and TypeMethodDescriptionvoidbindParameterValue(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, getParameterId, getSingleJdbcMappingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.metamodel.mapping.BasicValuedMapping
getJdbcMappingMethods inherited from interface org.hibernate.metamodel.mapping.Bindable
forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachJdbcValue, forEachJdbcValueMethods inherited from interface org.hibernate.sql.ast.tree.expression.Expression
createDomainResultSqlSelection, createSqlSelection, getColumnReferenceMethods 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:JdbcParameterBinderBind the appropriate value in the JDBC statement- Specified by:
bindParameterValuein interfaceJdbcParameterBinder- Overrides:
bindParameterValuein classAbstractJdbcParameter- Throws:
SQLException
-