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.JdbcValuesBiConsumer<X,Y>, 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 void
bindParameterValue(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, addToCacheKey, bindParameterValue, createSqlSelection, disassemble, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, getExpressionType, getJdbcMapping, getJdbcTypeCount, 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.Bindable
forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue, getJdbcMappings
-
Methods inherited from interface org.hibernate.sql.ast.tree.expression.Expression
createDomainResultSqlSelection, createDomainResultSqlSelection, createSqlSelection, getColumnReference
-
Methods inherited from interface org.hibernate.metamodel.mapping.SqlExpressible
getJdbcMapping
-
-
-
-
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:JdbcParameterBinder
Bind the appropriate value in the JDBC statement- Specified by:
bindParameterValue
in interfaceJdbcParameterBinder
- Overrides:
bindParameterValue
in classAbstractJdbcParameter
- Throws:
SQLException
-
-