public abstract class AbstractSqlExceptionHandler extends Object implements SqlExceptionHandler
| Constructor and Description |
|---|
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, waithandleSQLExceptionprotected 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)
protected final void handleConstraintSQLException(SQLException sqle, MessageKey defaultMsg)
sqle - Exception SQLdefaultMsg - Message par defautprotected void handleForeignConstraintSQLException(SQLException sqle)
protected void handleUniqueConstraintSQLException(SQLException sqle)
protected void handleOtherSQLException(SQLException sqle, SqlPreparedStatement statement)
Copyright © 2014. All Rights Reserved.