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 names of tables referred to by this operation.The expected outcome of executionThe thing being mutatedThe list of parameter binders for the generated PreparedStatement.The SQL command we will be executing through JDBC.The 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
-
getAffectedTableNames
Description copied from interface:JdbcOperation
The names of tables referred to by this operation.- Specified by:
getAffectedTableNames
in interfaceJdbcOperation
-
getMutationTarget
Description copied from interface:MutationOperation
The thing being mutated- Specified by:
getMutationTarget
in interfaceMutationOperation
-
getSqlString
Description copied from interface:JdbcOperation
The SQL command we will be executing through JDBC.- Specified by:
getSqlString
in interfaceJdbcOperation
- Specified by:
getSqlString
in interfacePreparableMutationOperation
-
getParameterBinders
Description copied from interface:JdbcOperation
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
-