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 OcreateMutationOperation(String sql, List<JdbcParameterBinder> parameterBinders) Intended for use fromSqlAstTranslatorprotected abstract OcreateMutationOperation(TableMapping tableDetails, String sql, List<JdbcParameterBinder> effectiveBinders) Intended for use fromSqlAstTranslatorcreateMutationOperation(ValuesAnalysis valuesAnalysis, SessionFactoryImplementor factory) voidforEachParameter(Consumer<ColumnValueParameter> consumer) Visit the JDBC parameters associated with this mutation.protected static <T> voidforEachThing(List<T> list, BiConsumer<Integer, T> action) protected abstract StringThe table being mutatedThe comment to be used in the SQL if enabled and supportedThe JDBC parameters associated with this mutation.booleantoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:TableMutationThe table being mutated- Specified by:
getMutatingTablein interfaceTableMutation<O extends MutationOperation>
-
getMutationTarget
-
getMutationComment
Description copied from interface:TableMutationThe comment to be used in the SQL if enabled and supported- Specified by:
getMutationCommentin interfaceTableMutation<O extends MutationOperation>
-
getParameters
Description copied from interface:TableMutationThe JDBC parameters associated with this mutation. The order here is the expected binding order for thePreparedStatement.- Specified by:
getParametersin interfaceTableMutation<O extends MutationOperation>- See Also:
-
forEachParameter
Description copied from interface:TableMutationVisit the JDBC parameters associated with this mutation. The order here is the expected binding order for thePreparedStatement.- Specified by:
forEachParameterin interfaceTableMutation<O extends MutationOperation>- See Also:
-
forEachThing
-
createMutationOperation
- Specified by:
createMutationOperationin interfaceTableMutation<O extends MutationOperation>
-
createMutationOperation
Intended for use fromSqlAstTranslator- Specified by:
createMutationOperationin 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
-