Package org.hibernate.sql.model.jdbc
Class AbstractJdbcMutation
java.lang.Object
org.hibernate.sql.model.jdbc.AbstractJdbcMutation
- All Implemented Interfaces:
JdbcOperation
,JdbcMutationOperation
,MutationOperation
,PreparableMutationOperation
- Direct Known Subclasses:
JdbcDeleteMutation
,JdbcInsertMutation
,JdbcUpdateMutation
,MergeOperation
,UpsertOperation
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractJdbcMutation
(TableMapping tableDetails, MutationTarget<?> mutationTarget, String sql, boolean callable, Expectation expectation, List<? extends JdbcParameterBinder> parameterBinders) -
Method Summary
Modifier and TypeMethodDescriptionfindValueDescriptor
(String columnName, ParameterUsage usage) Find the JDBC parameter to be used for the specified column.The expected outcome of executionThe thing being mutatedGet the list of parameter binders for the generated PreparedStatementGet the SQL command we will be executing through JDBC PreparedStatement or CallableStatementThe table against which operation is to be performedboolean
Whether the operation is callableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.sql.model.MutationOperation
getJdbcValueDescriptor, getMutationType
Methods inherited from interface org.hibernate.sql.model.PreparableMutationOperation
canBeBatched
-
Constructor Details
-
AbstractJdbcMutation
public AbstractJdbcMutation(TableMapping tableDetails, MutationTarget<?> mutationTarget, String sql, boolean callable, Expectation expectation, List<? extends JdbcParameterBinder> parameterBinders)
-
-
Method Details
-
getTableDetails
Description copied from interface:MutationOperation
The table against which operation is to be performed- Specified by:
getTableDetails
in interfaceMutationOperation
-
getMutationTarget
Description copied from interface:MutationOperation
The thing being mutated- Specified by:
getMutationTarget
in interfaceMutationOperation
-
getSqlString
Description copied from interface:JdbcOperation
Get the SQL command we will be executing through JDBC PreparedStatement or CallableStatement- Specified by:
getSqlString
in interfaceJdbcOperation
- Specified by:
getSqlString
in interfacePreparableMutationOperation
-
getParameterBinders
Description copied from interface:JdbcOperation
Get the list of parameter binders for the generated PreparedStatement- Specified by:
getParameterBinders
in interfaceJdbcOperation
- Specified by:
getParameterBinders
in interfacePreparableMutationOperation
-
findValueDescriptor
Description copied from interface:MutationOperation
Find the JDBC parameter to be used for the specified column.- Specified by:
findValueDescriptor
in interfaceMutationOperation
- Returns:
- The descriptor, or null if none match.
- See Also:
-
isCallable
public boolean isCallable()Description copied from interface:PreparableMutationOperation
Whether the operation is callable- Specified by:
isCallable
in interfacePreparableMutationOperation
-
getExpectation
Description copied from interface:PreparableMutationOperation
The expected outcome of execution- Specified by:
getExpectation
in interfacePreparableMutationOperation
-