Package de.xima.fc.dao.impl
Class WebDavAccessDao
- java.lang.Object
-
- de.xima.cmn.dao.AbstractDao<T,Long,IEntityContext>
-
- de.xima.fc.dao.impl.GenericDao<E>
-
- de.xima.fc.dao.impl.MandantDependentBaseDao<WebDavAccess>
-
- de.xima.fc.dao.impl.WebDavAccessDao
-
- 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 ofIWebDavAccessDao
that can be accessed viaDaoProvider
.- Since:
- 7.1.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description WebDavAccessDao()
Creates a new instance of this DAO.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebDavAccess
getByName(IEntityContext ec, Mandant client, String name)
WebDavAccess
getByUUID(IEntityContext ec, Mandant client, String uuid)
Returns the WebDAV access with the given UUID.WebDavAccess
getByUUID(IEntityContext ec, Mandant client, UUID uuid)
Returns the WebDAV access with the given UUID.Set<de.xima.cmn.dao.interfaces.IEntity<Long>>
getEntityRefs(IEntityContext ec, WebDavAccess entity)
Returns a set of entities that reference the given entity and depend on it.protected IFCDaoActionHook<WebDavAccess>
getPostActionHook()
protected IFCDaoActionHook<WebDavAccess>
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
-
WebDavAccessDao
public WebDavAccessDao()
Creates a new instance of this DAO. Normally you should use the singleton instance provided byDaoProvider.WEBDAVACCESS_DAO
.
-
-
Method Detail
-
getByUUID
public WebDavAccess getByUUID(IEntityContext ec, Mandant client, String uuid)
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
public WebDavAccess getByUUID(IEntityContext ec, Mandant client, UUID uuid)
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
protected IFCDaoActionHook<WebDavAccess> getPreActionHook()
- Overrides:
getPreActionHook
in classGenericDao<WebDavAccess>
-
getPostActionHook
protected IFCDaoActionHook<WebDavAccess> getPostActionHook()
- Overrides:
getPostActionHook
in classGenericDao<WebDavAccess>
-
-