Package de.xima.fc.dao.interfaces
Interface IUserEmailDao
-
- All Superinterfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<UserEmail,Long,IEntityContext>
,IGenericDao<UserEmail>
- All Known Implementing Classes:
UserEmailDao
public interface IUserEmailDao extends IGenericDao<UserEmail>
DAO for reading and writingUserEmail
entities.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
assertUserEmail(IEntityContext ec, UserEmail email)
Checks if the user email can be persisted (create/update).List<UserEmail>
getByAddress(IEntityContext ec, String address)
Finds the user email entities with the given address.UserEmail
getByVerifiedAddress(IEntityContext ec, String address)
Finds the verified user email entity with the given address.-
Methods inherited from interface de.xima.cmn.dao.interfaces.IAbstractDao
all, bulkDelete, bulkUpdate, checkLockingVersion, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, update
-
Methods inherited from interface de.xima.fc.dao.interfaces.IGenericDao
count, findAll, findSingle, getEntityRefs, read
-
-
-
-
Method Detail
-
getByAddress
List<UserEmail> getByAddress(IEntityContext ec, String address)
Finds the user email entities with the given address. There may be multiple user email entities with the same address. But there can only be one verified user email with the given address.- Parameters:
ec
- entity context for accessing the database.address
- of the user email entity (case irrelevant).- Returns:
- A list of user email entities with the given email address.
-
getByVerifiedAddress
UserEmail getByVerifiedAddress(IEntityContext ec, String address)
Finds the verified user email entity with the given address. There may only be one verified user email entity with the given address.- Parameters:
ec
- entity context for accessing the database.address
- of the verified user email entity (case irrelevant).- Returns:
- The verified user email entity with the given email address or
null
.
-
assertUserEmail
void assertUserEmail(IEntityContext ec, UserEmail email)
Checks if the user email can be persisted (create/update). If the state of the user identity does not allow persisting than aDatabaseAccessException
will be thrown.- Parameters:
ec
- entity context for accessing the database.email
- to check.- Throws:
de.xima.cmn.dao.exceptions.DatabaseAccessException
- if the user identity can't be persisted.
-
-