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 ofIDatenbankZugriffDaothat can be accessed viaDaoProvider.- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description DatenbankZugriffDao()Creates a new instance of this DAO.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatenbankZugriffgetByUUID(IEntityContext ec, Mandant client, String uuid)Returns the DB access with the given UUIDDatenbankZugriffgetByUUID(IEntityContext ec, Mandant client, UUID uuid)Returns the DB access with the given UUIDDatenbankZugriffgetDatenbankzugriffByName(Mandant m, String name)Liefert den via Namen angefordeten Mandanten-spezifische Datenbankzugriff.Set<de.xima.cmn.dao.interfaces.IEntity<Long>>getEntityRefs(IEntityContext ec, DatenbankZugriff dbConnection)Returns a set of entities that reference the given entity and depend on it.protected IFCDaoActionHook<DatenbankZugriff>getPostActionHook()protected IFCDaoActionHook<DatenbankZugriff>getPreActionHook()-
Methods inherited from class de.xima.fc.dao.impl.GenericDao
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 Detail
-
DatenbankZugriffDao
public DatenbankZugriffDao()
Creates a new instance of this DAO. Normally you should use the singleton instance provided byDaoProvider.DATENBANKZUGRIFF_DAO.
-
-
Method Detail
-
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
public DatenbankZugriff getByUUID(IEntityContext ec, Mandant client, String uuid)
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
public DatenbankZugriff getByUUID(IEntityContext ec, Mandant client, UUID uuid)
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
protected IFCDaoActionHook<DatenbankZugriff> getPreActionHook()
- Overrides:
getPreActionHookin classGenericDao<DatenbankZugriff>
-
getPostActionHook
protected IFCDaoActionHook<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
-
-