public class UniqueConstraintException extends JdbcException
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
formattedSql |
protected SqlKind |
kind |
protected java.lang.String |
rawSql |
protected java.lang.String |
sqlFilePath |
args, messageResource| Modifier | Constructor and Description |
|---|---|
protected |
UniqueConstraintException(MessageResource messageCode,
SqlKind kind,
java.lang.String rawSql,
java.lang.String sqlFilePath,
java.lang.Throwable cause) |
|
UniqueConstraintException(SqlLogType logType,
Sql<?> sql,
java.lang.Throwable cause) |
|
UniqueConstraintException(SqlLogType logType,
SqlKind kind,
java.lang.String rawSql,
java.lang.String formattedSql,
java.lang.String sqlFilePath,
java.lang.Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFormattedSql()
Returns the formatted SQL string
|
SqlKind |
getKind()
Returns the SQL kind.
|
java.lang.String |
getRawSql()
Returns the raw SQL string.
|
java.lang.String |
getSqlFilePath()
Returns the SQL file path.
|
choiceSqlgetArgs, getMessageResourceprotected final SqlKind kind
protected final java.lang.String rawSql
protected final java.lang.String formattedSql
protected final java.lang.String sqlFilePath
public UniqueConstraintException(SqlLogType logType, Sql<?> sql, java.lang.Throwable cause)
public UniqueConstraintException(SqlLogType logType, SqlKind kind, java.lang.String rawSql, java.lang.String formattedSql, java.lang.String sqlFilePath, java.lang.Throwable cause)
protected UniqueConstraintException(MessageResource messageCode, SqlKind kind, java.lang.String rawSql, java.lang.String sqlFilePath, java.lang.Throwable cause)
public SqlKind getKind()
public java.lang.String getRawSql()
public java.lang.String getFormattedSql()
null if this exception is thrown in the batch processpublic java.lang.String getSqlFilePath()
null if the SQL is auto generated