public class DefaultEmailAddressFetchStrategy extends java.lang.Object implements EmailAddressFetchStrategy
EmailAddressModel| Constructor and Description |
|---|
DefaultEmailAddressFetchStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
disableNestedTransactions(SessionContext loclCtx) |
EmailAddressModel |
fetch(java.lang.String emailAddress,
java.lang.String displayName) |
protected EmailAddressDao |
getEmailAddressDao() |
protected ModelService |
getModelService() |
protected EmailAddressModel |
handleEmailAddressCreation(java.lang.String emailAddress,
java.lang.String displayName,
Transaction tx,
boolean txRollbackOnlyBefore) |
protected EmailAddressModel |
handleMissingEmailAfterInsertConflict(ModelSavingException e,
java.lang.String emailAddress,
java.lang.String displayName)
Tries to fetch the given email address 10 times with 10 ms interval.
|
protected boolean |
isIgnorableConstraintViolationException(java.lang.Exception exception) |
protected boolean |
isInsertConditionException(java.lang.Exception exception) |
protected EmailAddressModel |
loadEmailAddressFromDatabase(java.lang.String emailAddress,
java.lang.String displayName) |
protected void |
logDebugInfo(ModelSavingException e,
java.lang.String message) |
void |
setEmailAddressDao(EmailAddressDao emailAddressDao) |
void |
setModelService(ModelService modelService) |
public EmailAddressModel fetch(java.lang.String emailAddress, java.lang.String displayName)
fetch in interface EmailAddressFetchStrategyemailAddress - email for which the email address object should be fetcheddisplayName - display name for which the email address object should be fetchedprotected EmailAddressModel loadEmailAddressFromDatabase(java.lang.String emailAddress, java.lang.String displayName)
protected EmailAddressModel handleEmailAddressCreation(java.lang.String emailAddress, java.lang.String displayName, Transaction tx, boolean txRollbackOnlyBefore)
protected boolean isIgnorableConstraintViolationException(java.lang.Exception exception)
protected boolean isInsertConditionException(java.lang.Exception exception)
protected void disableNestedTransactions(SessionContext loclCtx)
protected EmailAddressDao getEmailAddressDao()
public void setEmailAddressDao(EmailAddressDao emailAddressDao)
protected ModelService getModelService()
public void setModelService(ModelService modelService)
protected EmailAddressModel handleMissingEmailAfterInsertConflict(ModelSavingException e, java.lang.String emailAddress, java.lang.String displayName)
e - emailAddress - displayName - protected void logDebugInfo(ModelSavingException e, java.lang.String message)
Copyright © 2018 SAP SE. All Rights Reserved.