public abstract class AbstractSqlExceptionHandler extends Object implements SqlExceptionHandler
| Constructor and Description |
|---|
AbstractSqlExceptionHandler()
Crée une nouvelle instance de AbstractSqlExceptionHandler.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
extractConstraintName(String msg) |
protected void |
handleConstraintSQLException(SQLException sqle,
MessageKey defaultMsg)
Traite l'exception lié à la contrainte d'intégrité.
|
protected void |
handleForeignConstraintSQLException(SQLException sqle) |
protected void |
handleOtherSQLException(SQLException sqle,
SqlPreparedStatement statement) |
protected void |
handleTooLargeValueSqlException(SQLException sqle) |
protected void |
handleUniqueConstraintSQLException(SQLException sqle) |
protected void |
handleUserSQLException(SQLException sqle) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleSQLExceptionpublic AbstractSqlExceptionHandler()
protected abstract String extractConstraintName(String msg)
msg - Message base de donnéesprotected void handleTooLargeValueSqlException(SQLException sqle)
sqle - Exception base de donnéesprotected void handleUserSQLException(SQLException sqle)
sqle - SQLException launch by SQL (often PLSQL application specific exception with <text> tag)protected final void handleConstraintSQLException(SQLException sqle, MessageKey defaultMsg)
sqle - Exception SQLdefaultMsg - Message par defautprotected void handleForeignConstraintSQLException(SQLException sqle)
sqle - ForeignConstraintSQLExceptionprotected void handleUniqueConstraintSQLException(SQLException sqle)
sqle - UniqueConstraintSQLExceptionprotected void handleOtherSQLException(SQLException sqle, SqlPreparedStatement statement)
sqle - OtherSQLExceptionstatement - SqlPreparedStatementCopyright © 2015. All Rights Reserved.