Package de.xima.fc.dao.impl
Class DatenbankZugriffDao
java.lang.Object
de.xima.cmn.dao.AbstractDao<T,Long,IEntityContext>
de.xima.fc.dao.impl.GenericDao<E>
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>
public class DatenbankZugriffDao
extends MandantDependentBaseDao<DatenbankZugriff>
implements IDatenbankZugriffDao
The default implementation of
IDatenbankZugriffDao that can be accessed via DaoProvider.- Author:
- XIMA MEDIA GmbH
-
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 de.xima.fc.dao.impl.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 java.lang.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 de.xima.fc.dao.interfaces.IGenericDao
count, findAll, findSingle, read
-
Constructor Details
-
DatenbankZugriffDao
public DatenbankZugriffDao()Creates a new instance of this DAO. Normally you should use the singleton instance provided byDaoProvider.DATENBANKZUGRIFF_DAO.
-
-
Method Details
-
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.
-
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
-
getPreActionHook
- Overrides:
getPreActionHookin classGenericDao<DatenbankZugriff>
-
getPostActionHook
- Overrides:
getPostActionHookin classGenericDao<DatenbankZugriff>
-
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
-