|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.elca.el4j.services.monitoring.notification.PersistenceNotificationHelper
public final class PersistenceNotificationHelper
This class is used to notify on events which are persistence based.
| Method Summary | |
|---|---|
static void |
notifyDataIntegrityViolationFailure(String objectName)
Same behaviour as call of method notifyDataIntegrityViolationFailure(null, String). |
static void |
notifyDataIntegrityViolationFailure(String detailedMessage,
String objectName)
Notify violation of data integrity of an object. |
static void |
notifyDataRetrievalFailure(String objectName)
Same behaviour as call of method notifyDataRetrievalFailure(null, String). |
static void |
notifyDataRetrievalFailure(String detailedMessage,
String objectName)
Method to log that an object does not exist. |
static void |
notifyInsertionFailure(String objectName)
Same behaviour as call of method notifyInsertionFailure(null, String). |
static void |
notifyInsertionFailure(String detailedMessage,
String objectName)
Method to log that an object made problems while insertion. |
static void |
notifyJdbcUpdateAffectedIncorrectNumberOfRows(String objectName,
String sql,
int expected,
int actual)
Same behaviour as call of method notifyOptimisticLockingFailure(null, String, String, int, int)
. |
static void |
notifyJdbcUpdateAffectedIncorrectNumberOfRows(String detailedMessage,
String objectName,
String sql,
int expected,
int actual)
Method to log that the object could not be updated correctly. |
static void |
notifyObjectRetrievalFailure(Class<?> entityClass,
Object identifier,
String objectName)
Method to log that an object could not be retrieved. |
static void |
notifyObjectRetrievalFailure(Class<?> entityClass,
Object identifier,
String objectName,
String detailedMessage,
Throwable cause)
Method to log that an object could not be retrieved. |
static void |
notifyOptimisticLockingFailure(String objectName)
Same behaviour as call of method notifyOptimisticLockingFailure(null, String). |
static void |
notifyOptimisticLockingFailure(String detailedMessage,
String objectName,
OptimisticLockingFailureException optionalException)
Method to log that the object has already been modified. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void notifyDataRetrievalFailure(String detailedMessage,
String objectName)
throws DataRetrievalFailureException
detailedMessage - Is the detailed message.objectName - Is the name of the object.
DataRetrievalFailureException - Will be thrown in every case.
public static void notifyInsertionFailure(String detailedMessage,
String objectName)
throws InsertionFailureException
detailedMessage - Is the detailed message.objectName - Is the name of the object.
InsertionFailureException - Will be thrown in every case.
public static void notifyDataIntegrityViolationFailure(String detailedMessage,
String objectName)
throws DataIntegrityViolationException
detailedMessage - Is the detailed message.objectName - Is the name of the object.
DataIntegrityViolationException - Will be thrown in every case.
public static void notifyOptimisticLockingFailure(String detailedMessage,
String objectName,
OptimisticLockingFailureException optionalException)
throws OptimisticLockingFailureException
detailedMessage - Is the detailed message.objectName - Is the name of the object.optionalException - optionally returns the original OptimisticLockingFailureException
(in order not to loose information)
OptimisticLockingFailureException - Will be thrown in every case.
public static void notifyObjectRetrievalFailure(Class<?> entityClass,
Object identifier,
String objectName)
throws ObjectRetrievalFailureException
entityClass - The persistent class.identifier - The ID of the object that should have been retrieved.objectName - The name of the object.
ObjectRetrievalFailureException
public static void notifyObjectRetrievalFailure(Class<?> entityClass,
Object identifier,
String objectName,
String detailedMessage,
Throwable cause)
throws ObjectRetrievalFailureException
entityClass - The persistent class.identifier - The ID of the object that should have been retrieved.objectName - The name of the object.detailedMessage - A detailed message.cause - The source of the exception.
ObjectRetrievalFailureException
public static void notifyJdbcUpdateAffectedIncorrectNumberOfRows(String detailedMessage,
String objectName,
String sql,
int expected,
int actual)
throws JdbcUpdateAffectedIncorrectNumberOfRowsException
detailedMessage - Is the detailed message.objectName - Is the name of the object.sql - Is the SQL we tried to execute.expected - Is the expected number of rows affected.actual - Is the actual number of rows affected.
JdbcUpdateAffectedIncorrectNumberOfRowsException - Will be thrown in every case.
public static void notifyDataRetrievalFailure(String objectName)
throws DataRetrievalFailureException
notifyDataRetrievalFailure(null, String).
DataRetrievalFailureExceptionnotifyDataRetrievalFailure(String, String)
public static void notifyInsertionFailure(String objectName)
throws InsertionFailureException
notifyInsertionFailure(null, String).
InsertionFailureExceptionnotifyInsertionFailure(String, String)
public static void notifyDataIntegrityViolationFailure(String objectName)
throws DataIntegrityViolationException
notifyDataIntegrityViolationFailure(null, String).
DataIntegrityViolationExceptionnotifyDataIntegrityViolationFailure(String, String)
public static void notifyOptimisticLockingFailure(String objectName)
throws OptimisticLockingFailureException
notifyOptimisticLockingFailure(null, String).
OptimisticLockingFailureExceptionnotifyOptimisticLockingFailure(String, String, OptimisticLockingFailureException)
public static void notifyJdbcUpdateAffectedIncorrectNumberOfRows(String objectName,
String sql,
int expected,
int actual)
throws JdbcUpdateAffectedIncorrectNumberOfRowsException
notifyOptimisticLockingFailure(null, String, String, int, int)
.
JdbcUpdateAffectedIncorrectNumberOfRowsExceptionnotifyJdbcUpdateAffectedIncorrectNumberOfRows(String, String,
String, int, int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||