Package de.xima.fc.dao.impl
Class ClientCounterDao
- java.lang.Object
-
- de.xima.cmn.dao.AbstractDao<T,Long,IEntityContext>
-
- de.xima.fc.dao.impl.GenericDao<E>
-
- de.xima.fc.dao.impl.MandantDependentBaseDao<ClientCounter>
-
- de.xima.fc.dao.impl.ClientCounterDao
-
- 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 ofIClientCounterDao
that can be accessed viaDaoProvider
.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description ClientCounterDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
findUniqueName(IEntityContext ec, Mandant client, String candidate, ClientCounter exclude)
Returns a name that is not taken by anotherClientCounter
in the given client.ClientCounter
getByName(IEntityContext ec, Mandant client, String name)
ClientCounter
getByUuid(IEntityContext ec, Mandant client, UUID uuid)
Set<de.xima.cmn.dao.interfaces.IEntity<Long>>
getEntityRefs(IEntityContext ec, ClientCounter resource)
protected IFCDaoActionHook<ClientCounter>
getPreActionHook()
-
Methods inherited from class de.xima.fc.dao.impl.GenericDao
getPostActionHook, 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
read
-
-
-
-
Method Detail
-
findUniqueName
public String findUniqueName(IEntityContext ec, Mandant client, String candidate, ClientCounter exclude)
Description copied from interface:IClientCounterDao
Returns a name that is not taken by anotherClientCounter
in the given client. An index will be added to the candidate if necessary.- Specified by:
findUniqueName
in interfaceIClientCounterDao
- Parameters:
ec
-IEntityContext
to be usedclient
-Mandant
for which a unique client counter name should be generatedcandidate
-String
client counter name candiate to be made uniqueexclude
-ClientCounter
client resource to be excluded from the search- Returns:
- unique client resource name in the context of the given client
-
getByName
public ClientCounter getByName(IEntityContext ec, Mandant client, String name)
- Specified by:
getByName
in 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
null
when no such counter exist.
-
getByUuid
public ClientCounter getByUuid(IEntityContext ec, Mandant client, UUID uuid)
- Specified by:
getByUuid
in 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
null
when no such counter exist.
-
getEntityRefs
public Set<de.xima.cmn.dao.interfaces.IEntity<Long>> getEntityRefs(IEntityContext ec, ClientCounter resource)
- Specified by:
getEntityRefs
in interfaceIGenericDao<ClientCounter>
- Overrides:
getEntityRefs
in classGenericDao<ClientCounter>
-
getPreActionHook
protected IFCDaoActionHook<ClientCounter> getPreActionHook()
- Overrides:
getPreActionHook
in classGenericDao<ClientCounter>
-
-