Package de.xima.fc.dao.impl
Class WebDavAccessDao
java.lang.Object
de.xima.cmn.dao.AbstractDao<T,Long,IEntityContext>
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<WebDavAccess,
,Long, IEntityContext> IGenericDao<WebDavAccess>
,IMandantDependentBaseDao<WebDavAccess>
,IWebDavAccessDao
public class WebDavAccessDao
extends MandantDependentBaseDao<WebDavAccess>
implements IWebDavAccessDao
The default implementation of
IWebDavAccessDao
that can be accessed via DaoProvider
.- Since:
- 7.1.0
- Author:
- XIMA MEDIA GmbH
-
Field Summary
Fields inherited from class de.xima.cmn.dao.AbstractDao
entityClass, LOG
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetByName
(IEntityContext ec, Mandant client, String name) getByUUID
(IEntityContext ec, Mandant client, String uuid) Returns the WebDAV access with the given UUID.getByUUID
(IEntityContext ec, Mandant client, UUID uuid) Returns the WebDAV access with the given UUID.getEntityRefs
(IEntityContext ec, WebDavAccess entity) Returns a set of entities that reference the given entity and depend on it.protected IFCDaoActionHook<WebDavAccess>
protected IFCDaoActionHook<WebDavAccess>
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
-
WebDavAccessDao
public WebDavAccessDao()Creates a new instance of this DAO. Normally you should use the singleton instance provided byDaoProvider.WEBDAVACCESS_DAO
.
-
-
Method Details
-
getByUUID
Description copied from interface:IWebDavAccessDao
Returns the WebDAV access with the given UUID.- Specified by:
getByUUID
in interfaceIWebDavAccessDao
- Parameters:
ec
- AnIEntityContext
to use for accessing the database.client
-client
context in which to look for WebDAV accessuuid
- The UUID of the WebDAV access.- Returns:
- The WebDAV access for the given UUID and client.
-
getByUUID
Description copied from interface:IWebDavAccessDao
Returns the WebDAV access with the given UUID.- Specified by:
getByUUID
in interfaceIWebDavAccessDao
- Parameters:
ec
- AnIEntityContext
to use for accessing the database.client
-client
context in which to look for WebDAV accessuuid
- The UUID of the WebDAV access.- Returns:
- The WebDAV access for the given UUID and client.
-
getByName
public WebDavAccess getByName(IEntityContext ec, Mandant client, String name) throws de.xima.cmn.dao.exceptions.ReadException - Specified by:
getByName
in interfaceIWebDavAccessDao
- Parameters:
ec
- AnIEntityContext
to use for accessing the database.client
- A client scope to which to limit the search.name
- Name of a WebDAV connection to search for.- Returns:
- The WebDAV connection with the given name, or
null
when not found. - Throws:
de.xima.cmn.dao.exceptions.ReadException
-
getEntityRefs
public Set<de.xima.cmn.dao.interfaces.IEntity<Long>> getEntityRefs(IEntityContext ec, WebDavAccess entity) 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<WebDavAccess>
- Overrides:
getEntityRefs
in classGenericDao<WebDavAccess>
- Parameters:
ec
- entity context for database transactions.entity
- to get references for.- Returns:
- a set of entities that reference the given entity and depend on it.
-
getPreActionHook
- Overrides:
getPreActionHook
in classGenericDao<WebDavAccess>
-
getPostActionHook
- Overrides:
getPostActionHook
in classGenericDao<WebDavAccess>
-