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 performedbooleanWhether the operation is callableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.sql.model.MutationOperation
getJdbcValueDescriptor, getMutationTypeMethods 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:MutationOperationThe table against which operation is to be performed- Specified by:
getTableDetailsin interfaceMutationOperation
-
getMutationTarget
Description copied from interface:MutationOperationThe thing being mutated- Specified by:
getMutationTargetin interfaceMutationOperation
-
getSqlString
Description copied from interface:JdbcOperationGet the SQL command we will be executing through JDBC PreparedStatement or CallableStatement- Specified by:
getSqlStringin interfaceJdbcOperation- Specified by:
getSqlStringin interfacePreparableMutationOperation
-
getParameterBinders
Description copied from interface:JdbcOperationGet the list of parameter binders for the generated PreparedStatement- Specified by:
getParameterBindersin interfaceJdbcOperation- Specified by:
getParameterBindersin interfacePreparableMutationOperation
-
findValueDescriptor
Description copied from interface:MutationOperationFind the JDBC parameter to be used for the specified column.- Specified by:
findValueDescriptorin interfaceMutationOperation- Returns:
- The descriptor, or null if none match.
- See Also:
-
isCallable
public boolean isCallable()Description copied from interface:PreparableMutationOperationWhether the operation is callable- Specified by:
isCallablein interfacePreparableMutationOperation
-
getExpectation
Description copied from interface:PreparableMutationOperationThe expected outcome of execution- Specified by:
getExpectationin interfacePreparableMutationOperation
-