Package de.xima.fc.dao.impl
Class UserEmailDao
java.lang.Object
de.xima.cmn.dao.AbstractDao<T,Long,IEntityContext>
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<UserEmail,
,Long, IEntityContext> IGenericDao<UserEmail>
,IUserEmailDao
Implementation of the
IUserEmailDao
for reading and writing UserEmail
entities.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
Field Summary
Fields inherited from class de.xima.cmn.dao.AbstractDao
entityClass, LOG
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
assertUserEmail
(IEntityContext ec, UserEmail email) Checks if the user email can be persisted (create/update).getByAddress
(IEntityContext ec, String address) Finds the user email entities with the given address.getByVerifiedAddress
(IEntityContext ec, String address) Finds the verified user email entity with the given address.getEntityRefs
(IEntityContext ec, UserEmail entity) Returns a set of entities that reference the given entity and depend on it.protected IFCDaoActionHook<UserEmail>
Methods inherited from class de.xima.fc.dao.impl.GenericDao
getPostActionHook, read
Methods inherited from class de.xima.cmn.dao.AbstractDao
all, bulkDelete, bulkUpdate, cb, checkLockingVersion, cq, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, notifyListener, notifyListener, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, update
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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, read
-
Constructor Details
-
UserEmailDao
public UserEmailDao()
-
-
Method Details
-
getByAddress
Description copied from interface:IUserEmailDao
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.- Specified by:
getByAddress
in interfaceIUserEmailDao
- 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
Description copied from interface:IUserEmailDao
Finds the verified user email entity with the given address. There may only be one verified user email entity with the given address.- Specified by:
getByVerifiedAddress
in interfaceIUserEmailDao
- 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
.
-
getEntityRefs
public Set<de.xima.cmn.dao.interfaces.IEntity<Long>> getEntityRefs(IEntityContext ec, UserEmail entity) Description copied from interface:IGenericDao
Returns a set of entities that reference the given entity and depend on it. An entity can usually not be deleted if it is still being referenced by and depended on by other entities.- Specified by:
getEntityRefs
in interfaceIGenericDao<UserEmail>
- Overrides:
getEntityRefs
in classGenericDao<UserEmail>
- Parameters:
ec
- entity context for database transactions.entity
- to get references for.- Returns:
- a set of entities that reference the given entity and depend on it.
-
assertUserEmail
Description copied from interface:IUserEmailDao
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.- Specified by:
assertUserEmail
in interfaceIUserEmailDao
- Parameters:
ec
- entity context for accessing the database.email
- to check.
-
getPreActionHook
- Overrides:
getPreActionHook
in classGenericDao<UserEmail>
-