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
public abstract class AbstractJdbcMutation extends Object implements JdbcMutationOperation
-
-
Constructor Summary
Constructors Constructor Description AbstractJdbcMutation(TableMapping tableDetails, MutationTarget<?> mutationTarget, String sql, boolean callable, Expectation expectation, List<? extends JdbcParameterBinder> parameterBinders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JdbcValueDescriptor
findValueDescriptor(String columnName, ParameterUsage usage)
Find the JDBC parameter to be used for the specified column.Expectation
getExpectation()
The expected outcome of executionMutationTarget<?>
getMutationTarget()
The thing being mutatedList<JdbcParameterBinder>
getParameterBinders()
Get the list of parameter binders for the generated PreparedStatementString
getSqlString()
Get the SQL command we will be executing through JDBC PreparedStatement or CallableStatementTableMapping
getTableDetails()
The table against which operation is to be performedboolean
isCallable()
Whether the operation is callable-
Methods 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 Detail
-
AbstractJdbcMutation
public AbstractJdbcMutation(TableMapping tableDetails, MutationTarget<?> mutationTarget, String sql, boolean callable, Expectation expectation, List<? extends JdbcParameterBinder> parameterBinders)
-
-
Method Detail
-
getTableDetails
public TableMapping getTableDetails()
Description copied from interface:MutationOperation
The table against which operation is to be performed- Specified by:
getTableDetails
in interfaceMutationOperation
-
getMutationTarget
public MutationTarget<?> getMutationTarget()
Description copied from interface:MutationOperation
The thing being mutated- Specified by:
getMutationTarget
in interfaceMutationOperation
-
getSqlString
public String 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
public List<JdbcParameterBinder> 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
public JdbcValueDescriptor findValueDescriptor(String columnName, ParameterUsage usage)
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:
MutationOperation.getJdbcValueDescriptor(java.lang.String, org.hibernate.engine.jdbc.mutation.ParameterUsage)
-
isCallable
public boolean isCallable()
Description copied from interface:PreparableMutationOperation
Whether the operation is callable- Specified by:
isCallable
in interfacePreparableMutationOperation
-
getExpectation
public Expectation getExpectation()
Description copied from interface:PreparableMutationOperation
The expected outcome of execution- Specified by:
getExpectation
in interfacePreparableMutationOperation
-
-