Class StandardInsertConflictRenderingSupport
java.lang.Object
org.hibernate.dialect.sql.ast.spi.StandardInsertConflictRenderingSupport
Standard immutable insert-conflict rendering profiles.
- Since:
- 8.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final InsertConflictRenderingSupportEmulate supported do-nothing requests through constraint-violation handling.static final InsertConflictRenderingSupportRender do-update requests as merge and emulate do-nothing through constraint handling.static final InsertConflictRenderingSupportRender GaussDB'snothingaction and implicitexcludedpseudo-row.static final InsertConflictRenderingSupportRender MySQL-family proposed-row references through an explicit row alias.static final InsertConflictRenderingSupportRender legacy MySQL-family proposed-row references withvalues(column).static final InsertConflictRenderingSupportRender standardon conflictsyntax.static final InsertConflictRenderingSupportRender do-update requests as a semicolon-terminated merge statement. -
Method Summary
Modifier and TypeMethodDescriptionmerge(boolean terminateStatement) Create a merge profile with optional statement termination.onDuplicateKey(DoNothingSyntax doNothingSyntax, ValuesRowReferenceStyle valuesRowReferenceStyle) Create an on-duplicate-key profile.
-
Field Details
-
CONSTRAINT_VIOLATION
Emulate supported do-nothing requests through constraint-violation handling. -
STANDARD
Render standardon conflictsyntax. -
MERGE
Render do-update requests as merge and emulate do-nothing through constraint handling. -
TERMINATED_MERGE
Render do-update requests as a semicolon-terminated merge statement. -
ON_DUPLICATE_KEY_VALUES_FUNCTION
Render legacy MySQL-family proposed-row references withvalues(column). -
ON_DUPLICATE_KEY_ROW_ALIAS
Render MySQL-family proposed-row references through an explicit row alias. -
ON_DUPLICATE_KEY_NOTHING
Render GaussDB'snothingaction and implicitexcludedpseudo-row.
-
-
Method Details
-
merge
Create a merge profile with optional statement termination. -
onDuplicateKey
public static InsertConflictRenderingSupport onDuplicateKey(DoNothingSyntax doNothingSyntax, ValuesRowReferenceStyle valuesRowReferenceStyle) Create an on-duplicate-key profile.
-