Package org.hibernate.sql.model.ast
Class AbstractTableMutation<O extends MutationOperation>
java.lang.Object
org.hibernate.sql.model.ast.AbstractTableMutation<O>
- All Implemented Interfaces:
Statement
,TableMutation<O>
- Direct Known Subclasses:
AbstractRestrictedTableMutation
,AbstractTableInsert
public abstract class AbstractTableMutation<O extends MutationOperation>
extends Object
implements TableMutation<O>
Base
TableMutation
support-
Constructor Summary
ConstructorsConstructorDescriptionAbstractTableMutation
(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget, String sqlComment, List<ColumnValueParameter> parameters) -
Method Summary
Modifier and TypeMethodDescriptionfinal O
createMutationOperation
(String sql, List<JdbcParameterBinder> parameterBinders) Intended for use fromSqlAstTranslator
protected abstract O
createMutationOperation
(TableMapping tableDetails, String sql, List<JdbcParameterBinder> effectiveBinders) Intended for use fromSqlAstTranslator
createMutationOperation
(ValuesAnalysis valuesAnalysis, SessionFactoryImplementor factory) void
forEachParameter
(Consumer<ColumnValueParameter> consumer) Visit the JDBC parameters associated with this mutation.protected static <T> void
forEachThing
(List<T> list, BiConsumer<Integer, T> action) protected abstract String
The table being mutatedThe comment to be used in the SQL if enabled and supportedThe JDBC parameters associated with this mutation.boolean
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.hibernate.sql.model.ast.TableMutation
getExpectation, getTableName, isCallable
-
Constructor Details
-
AbstractTableMutation
public AbstractTableMutation(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget, String sqlComment, List<ColumnValueParameter> parameters)
-
-
Method Details
-
toString
-
isCustomSql
public boolean isCustomSql() -
getLoggableName
-
getMutatingTable
Description copied from interface:TableMutation
The table being mutated- Specified by:
getMutatingTable
in interfaceTableMutation<O extends MutationOperation>
-
getMutationTarget
-
getMutationComment
Description copied from interface:TableMutation
The comment to be used in the SQL if enabled and supported- Specified by:
getMutationComment
in interfaceTableMutation<O extends MutationOperation>
-
getParameters
Description copied from interface:TableMutation
The JDBC parameters associated with this mutation. The order here is the expected binding order for thePreparedStatement
.- Specified by:
getParameters
in interfaceTableMutation<O extends MutationOperation>
- See Also:
-
forEachParameter
Description copied from interface:TableMutation
Visit the JDBC parameters associated with this mutation. The order here is the expected binding order for thePreparedStatement
.- Specified by:
forEachParameter
in interfaceTableMutation<O extends MutationOperation>
- See Also:
-
forEachThing
-
createMutationOperation
- Specified by:
createMutationOperation
in interfaceTableMutation<O extends MutationOperation>
-
createMutationOperation
Intended for use fromSqlAstTranslator
- Specified by:
createMutationOperation
in interfaceTableMutation<O extends MutationOperation>
-
createMutationOperation
protected abstract O createMutationOperation(TableMapping tableDetails, String sql, List<JdbcParameterBinder> effectiveBinders) Intended for use fromSqlAstTranslator
- Parameters:
effectiveBinders
- The parameter binders effective for this table mutation
-