Package de.xima.fc.dao.impl
Class ClientCounterDao
java.lang.Object
de.xima.cmn.dao.AbstractDao<T,Long,IEntityContext>
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<ClientCounter,,Long, IEntityContext> IClientCounterDao,IGenericDao<ClientCounter>,IMandantDependentBaseDao<ClientCounter>
public class ClientCounterDao
extends MandantDependentBaseDao<ClientCounter>
implements IClientCounterDao
The default implementation of
IClientCounterDao that can be accessed via DaoProvider.- Since:
- 7.0.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 TypeMethodDescriptionfindUniqueName(IEntityContext ec, Mandant client, String candidate, ClientCounter exclude) Returns a name that is not taken by anotherClientCounterin the given client.getByName(IEntityContext ec, Mandant client, String name) getByUuid(IEntityContext ec, Mandant client, UUID uuid) getEntityRefs(IEntityContext ec, ClientCounter resource) Returns a set of entities that reference the given entity and depend on it.protected IFCDaoActionHook<ClientCounter>Methods inherited from class de.xima.fc.dao.impl.GenericDao
getPostActionHook, readMethods 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, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, updateMethods inherited from interface de.xima.fc.dao.interfaces.IGenericDao
count, findAll, findSingle, read
-
Constructor Details
-
ClientCounterDao
public ClientCounterDao()
-
-
Method Details
-
findUniqueName
public String findUniqueName(IEntityContext ec, Mandant client, String candidate, ClientCounter exclude) Description copied from interface:IClientCounterDaoReturns a name that is not taken by anotherClientCounterin the given client. An index will be added to the candidate if necessary.- Specified by:
findUniqueNamein interfaceIClientCounterDao- Parameters:
ec-IEntityContextto be usedclient-Mandantfor which a unique client counter name should be generatedcandidate-Stringclient counter name candiate to be made uniqueexclude-ClientCounterclient resource to be excluded from the search- Returns:
- unique client resource name in the context of the given client
-
getByName
- Specified by:
getByNamein interfaceIClientCounterDao- Parameters:
ec- Current entity context for accessing the database.client- context to search for the counter.name- name of the counter.- Returns:
- The counter with the given name that belongs to the client, or
nullwhen no such counter exist.
-
getByUuid
- Specified by:
getByUuidin interfaceIClientCounterDao- Parameters:
ec- Current entity context for accessing the database.client- context to search for the counter.uuid- UUID of the counter.- Returns:
- The counter with the given UUID that belongs to the client, or
nullwhen no such counter exist.
-
getEntityRefs
public Set<de.xima.cmn.dao.interfaces.IEntity<Long>> getEntityRefs(IEntityContext ec, ClientCounter resource) 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<ClientCounter>- Overrides:
getEntityRefsin classGenericDao<ClientCounter>- Parameters:
ec- entity context for database transactions.resource- to get references for.- Returns:
- a set of entities that reference the given entity and depend on it.
-
getPreActionHook
- Overrides:
getPreActionHookin classGenericDao<ClientCounter>
-