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 JdbcValueDescriptorfindValueDescriptor(String columnName, ParameterUsage usage)Find the JDBC parameter to be used for the specified column.ExpectationgetExpectation()The expected outcome of executionMutationTarget<?>getMutationTarget()The thing being mutatedList<JdbcParameterBinder>getParameterBinders()Get the list of parameter binders for the generated PreparedStatementStringgetSqlString()Get the SQL command we will be executing through JDBC PreparedStatement or CallableStatementTableMappinggetTableDetails()The table against which operation is to be performedbooleanisCallable()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:MutationOperationThe table against which operation is to be performed- Specified by:
getTableDetailsin interfaceMutationOperation
-
getMutationTarget
public MutationTarget<?> getMutationTarget()
Description copied from interface:MutationOperationThe thing being mutated- Specified by:
getMutationTargetin interfaceMutationOperation
-
getSqlString
public String 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
public List<JdbcParameterBinder> getParameterBinders()
Description copied from interface:JdbcOperationGet the list of parameter binders for the generated PreparedStatement- Specified by:
getParameterBindersin interfaceJdbcOperation- Specified by:
getParameterBindersin interfacePreparableMutationOperation
-
findValueDescriptor
public JdbcValueDescriptor findValueDescriptor(String columnName, ParameterUsage usage)
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:
MutationOperation.getJdbcValueDescriptor(java.lang.String, org.hibernate.engine.jdbc.mutation.ParameterUsage)
-
isCallable
public boolean isCallable()
Description copied from interface:PreparableMutationOperationWhether the operation is callable- Specified by:
isCallablein interfacePreparableMutationOperation
-
getExpectation
public Expectation getExpectation()
Description copied from interface:PreparableMutationOperationThe expected outcome of execution- Specified by:
getExpectationin interfacePreparableMutationOperation
-
-