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 ofIDatenbankZugriffDao
that 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 DatenbankZugriff
getByUUID(IEntityContext ec, Mandant client, String uuid)
Returns the DB access with the given UUIDDatenbankZugriff
getByUUID(IEntityContext ec, Mandant client, UUID uuid)
Returns the DB access with the given UUIDDatenbankZugriff
getDatenbankzugriffByName(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: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<DatenbankZugriff>
- Overrides:
getEntityRefs
in 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:IDatenbankZugriffDao
Returns the DB access with the given UUID- Specified by:
getByUUID
in interfaceIDatenbankZugriffDao
- Parameters:
ec
-IEntityContext
to useclient
-Mandant
context in which to look for DB accessuuid
-String
UUID of the DB access- Returns:
DatenbankZugriff
for the given UUID and client
-
getByUUID
public DatenbankZugriff getByUUID(IEntityContext ec, Mandant client, UUID uuid)
Description copied from interface:IDatenbankZugriffDao
Returns the DB access with the given UUID- Specified by:
getByUUID
in interfaceIDatenbankZugriffDao
- Parameters:
ec
-IEntityContext
to useclient
-Mandant
context in which to look for DB accessuuid
-UUID
UUID of the DB access- Returns:
DatenbankZugriff
for the given UUID and client
-
getPreActionHook
protected IFCDaoActionHook<DatenbankZugriff> getPreActionHook()
- Overrides:
getPreActionHook
in classGenericDao<DatenbankZugriff>
-
getPostActionHook
protected IFCDaoActionHook<DatenbankZugriff> getPostActionHook()
- Overrides:
getPostActionHook
in 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:
getDatenbankzugriffByName
in 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
-
-