Class JdbcValueBindings
java.lang.Object
org.hibernate.action.queue.spi.bind.JdbcValueBindings
Used to track JDBC value bindings (generally parameters) used in mutation operations.
- Since:
- 8.0
-
Constructor Summary
ConstructorsConstructorDescriptionJdbcValueBindings(TableDescriptor tableDescriptor, JdbcValueDescriptorAccess jdbcValueDescriptorAccess) -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeStatement(PreparedStatement preparedStatement, SharedSessionContractImplementor session) voidbindAssignment(int valueIndex, Object value, SelectableMapping jdbcValueMapping) Form ofbindValue(Object, String, ParameterUsage)which is intended for use as aModelPart.JdbcValueConsumerwithParameterUsage.SETsemantics.voidbindInsertAssignment(int valueIndex, Object value, SelectableMapping jdbcValueMapping) Form ofbindAssignment(int, Object, SelectableMapping)which performs the binding only if the passedjdbcValueMappingis insertable.voidbindRestriction(int valueIndex, Object value, SelectableMapping jdbcValueMapping) Form ofbindValue(Object, String, ParameterUsage)which is intended for use as aModelPart.JdbcValueConsumerwithParameterUsage.RESTRICTsemantics.voidbindUpdateAssignment(int valueIndex, Object value, SelectableMapping jdbcValueMapping) Form ofbindAssignment(int, Object, SelectableMapping)which performs the binding only if the passedjdbcValueMappingis updateable.voidbindUpdateRestriction(int valueIndex, Object value, SelectableMapping jdbcValueMapping) Form ofbindRestriction(int, Object, SelectableMapping)which performs the binding only if the passedjdbcValueMappingis updateable.voidbindValue(Object columnValue, String columnName, ParameterUsage parameterUsage) voidclear()getBoundValue(String columnName, ParameterUsage usage) booleanhasBinding(String columnName, ParameterUsage usage) voidreplaceValue(String columnName, ParameterUsage parameterUsage, Object newValue) static ObjectresolveValue(Object value)
-
Constructor Details
-
JdbcValueBindings
public JdbcValueBindings(TableDescriptor tableDescriptor, JdbcValueDescriptorAccess jdbcValueDescriptorAccess)
-
-
Method Details
-
resolveValue
-
bindValue
-
getBoundValue
-
hasBinding
-
getBindingGroup
-
replaceValue
-
clear
public void clear() -
bindAssignment
Form ofbindValue(Object, String, ParameterUsage)which is intended for use as aModelPart.JdbcValueConsumerwithParameterUsage.SETsemantics.- See Also:
-
bindInsertAssignment
Form ofbindAssignment(int, Object, SelectableMapping)which performs the binding only if the passedjdbcValueMappingis insertable.- API Note:
- We define this as a separate method to avoid lambda creation.
-
bindUpdateAssignment
Form ofbindAssignment(int, Object, SelectableMapping)which performs the binding only if the passedjdbcValueMappingis updateable.- API Note:
- We define this as a separate method to avoid lambda creation.
-
bindRestriction
Form ofbindValue(Object, String, ParameterUsage)which is intended for use as aModelPart.JdbcValueConsumerwithParameterUsage.RESTRICTsemantics.- See Also:
-
bindUpdateRestriction
Form ofbindRestriction(int, Object, SelectableMapping)which performs the binding only if the passedjdbcValueMappingis updateable.- API Note:
- We define this as a separate method to avoid lambda creation.