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
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
-
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: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
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
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
- Overrides:
getPreActionHook
in classGenericDao<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
-