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:
Bindable,JdbcMappingContainer,MappingModelExpressible,SqlExpressible,SqlSelectionProducer,Expression,JdbcParameter,SqlAstNode,JdbcParameterBinder
public class VersionTypeSeedParameterSpecification extends AbstractJdbcParameter
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.JdbcValuesConsumer
-
-
Field Summary
-
Fields inherited from interface org.hibernate.sql.exec.spi.JdbcParameterBinder
NOOP
-
-
Constructor Summary
Constructors Constructor Description VersionTypeSeedParameterSpecification(EntityVersionMapping versionMapping)Constructs a version seed parameter bind specification.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbindParameterValue(PreparedStatement statement, int startPosition, JdbcParameterBindings jdbcParamBindings, ExecutionContext executionContext)Bind the appropriate value in the JDBC statement-
Methods inherited from class org.hibernate.sql.exec.internal.AbstractJdbcParameter
accept, bindParameterValue, createSqlSelection, disassemble, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, getExpressionType, getJdbcMapping, getJdbcTypeCount, getParameterBinder
-
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.Bindable
forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, getJdbcMappings
-
Methods inherited from interface org.hibernate.sql.ast.tree.expression.Expression
getColumnReference
-
-
-
-
Constructor Detail
-
VersionTypeSeedParameterSpecification
public VersionTypeSeedParameterSpecification(EntityVersionMapping versionMapping)
Constructs a version seed parameter bind specification.- Parameters:
versionMapping- The version mapping.
-
-
Method Detail
-
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
-
-