public class OptimisticLockException 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 |
OptimisticLockException(MessageResource messageCode,
SqlKind kind,
java.lang.String rawSql,
java.lang.String sqlFilePath) |
|
OptimisticLockException(SqlLogType logType,
Sql<?> sql) |
|
OptimisticLockException(SqlLogType logType,
SqlKind kind,
java.lang.String rawSql,
java.lang.String formattedSql,
java.lang.String sqlFilePath) |
| 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 OptimisticLockException(SqlLogType logType, Sql<?> sql)
public OptimisticLockException(SqlLogType logType, SqlKind kind, java.lang.String rawSql, java.lang.String formattedSql, java.lang.String sqlFilePath)
protected OptimisticLockException(MessageResource messageCode, SqlKind kind, java.lang.String rawSql, java.lang.String sqlFilePath)
public SqlKind getKind()
public java.lang.String getRawSql()
public java.lang.String getFormattedSql()
null if it does not existpublic java.lang.String getSqlFilePath()
null if the SQL is auto generated