| Modifier and Type | Field and Description |
|---|---|
| private final Function |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public @Nullable String | extractConstraintName(SQLException
The exception that was the result of the constraint violation. sqle)Implements org. SQLException.
|
| public static @Nullable String | Returns: The found constraint name, or null.The pattern denoting the start of the constraint name within the message. templateStart, String The pattern denoting the end of the constraint name within the message. templateEnd, String The templated error message containing the constraint name. message)Extracts the constraint name based on a template of form templateStartconstraintNametemplateEnd. |
| extractConstraintName | back to summary |
|---|---|
| private final Function<SQLException, String> extractConstraintName | |
| TemplatedViolatedConstraintNameExtractor | back to summary |
|---|---|
| public TemplatedViolatedConstraintNameExtractor(Function<SQLException, String> extractConstraintName) | |
| extractConstraintName | back to summary |
|---|---|
| public @Nullable String extractConstraintName(SQLException sqle) Implements org. Doc from org. Extract the name of the violated constraint from the given
| |
| extractUsingTemplate | back to summary |
|---|---|
| public static @Nullable String extractUsingTemplate(String templateStart, String templateEnd, String message) Extracts the constraint name based on a template of form templateStartconstraintNametemplateEnd. | |