Class DatenbankZugriffDao
java.lang.Object
de.xima.cmn.dao.AbstractDao<DatenbankZugriff, Long, IEntityContext>
de.xima.fc.dao.impl.GenericDao<DatenbankZugriff>
de.xima.fc.dao.impl.MandantDependentBaseDao<DatenbankZugriff>
de.xima.fc.dao.impl.DatenbankZugriffDao
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<DatenbankZugriff, Long, IEntityContext>, IDatenbankZugriffDao, IGenericDao<DatenbankZugriff>, IMandantDependentBaseDao<DatenbankZugriff>
@ApplicationScoped
public class DatenbankZugriffDao
extends MandantDependentBaseDao<DatenbankZugriff>
implements IDatenbankZugriffDao
The default implementation of
IDatenbankZugriffDao that can be accessed via DaoProvider.- Author:
- XIMA MEDIA GmbH
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class de.xima.cmn.dao.AbstractDao
entityClass, LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetByUUID(IEntityContext ec, Mandant client, String uuid) Returns the DB access with the given UUIDgetByUUID(IEntityContext ec, Mandant client, UUID uuid) Returns the DB access with the given UUIDgetDatenbankzugriffByName(Mandant m, String name) Liefert den via Namen angefordeten Mandanten-spezifische Datenbankzugriff.getEntityRefs(IEntityContext ec, DatenbankZugriff dbConnection) Returns a set of entities that reference the given entity and depend on it.protected IFCDaoActionHook<DatenbankZugriff> protected IFCDaoActionHook<DatenbankZugriff> Methods inherited from class GenericDao
readMethods 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, updateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, updateMethods inherited from interface IGenericDao
count, createOrUpdate, findAll, findSingle, read
-
Constructor Details
-
DatenbankZugriffDao
public DatenbankZugriffDao()
-
-
Method Details
-
getByUUID
Description copied from interface:IDatenbankZugriffDaoReturns the DB access with the given UUID- Specified by:
getByUUIDin interfaceIDatenbankZugriffDao- Parameters:
ec-IEntityContextto useclient-Mandantcontext in which to look for DB accessuuid-StringUUID of the DB access- Returns:
DatenbankZugrifffor the given UUID and client
-
getByUUID
Description copied from interface:IDatenbankZugriffDaoReturns the DB access with the given UUID- Specified by:
getByUUIDin interfaceIDatenbankZugriffDao- Parameters:
ec-IEntityContextto useclient-Mandantcontext in which to look for DB accessuuid-UUIDUUID of the DB access- Returns:
DatenbankZugrifffor the given UUID and client
-
getDatenbankzugriffByName
public DatenbankZugriff getDatenbankzugriffByName(Mandant m, String name) throws de.xima.cmn.dao.exceptions.ReadException Liefert den via Namen angefordeten Mandanten-spezifische Datenbankzugriff.- Specified by:
getDatenbankzugriffByNamein interfaceIDatenbankZugriffDao- Parameters:
m- der betreffende Mandantname- des Datenbankzugriff- Returns:
- Datenbankzugriff oder
null, wenn kein passender Datenbankzugriff gefunden wurde. - Throws:
de.xima.cmn.dao.exceptions.ReadException
-
getEntityRefs
public Set<de.xima.cmn.dao.interfaces.IEntity<Long>> getEntityRefs(IEntityContext ec, DatenbankZugriff dbConnection) Description copied from interface:IGenericDaoReturns 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:
getEntityRefsin interfaceIGenericDao<DatenbankZugriff>- Overrides:
getEntityRefsin classGenericDao<DatenbankZugriff>- Parameters:
ec- entity context for database transactions.dbConnection- to get references for.- Returns:
- a set of entities that reference the given entity and depend on it.
-
getPostActionHook
- Overrides:
getPostActionHookin classGenericDao<DatenbankZugriff>
-
getPreActionHook
- Overrides:
getPreActionHookin classGenericDao<DatenbankZugriff>
-