Package de.xima.fc.dao.interfaces
Interface IClientCounterDao
- All Superinterfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<ClientCounter,
,Long, IEntityContext> IGenericDao<ClientCounter>
,IMandantDependentBaseDao<ClientCounter>
- All Known Implementing Classes:
ClientCounterDao
Common interface for DAO of
ClientCounter
s- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionfindUniqueName
(IEntityContext ec, Mandant client, String candidate, ClientCounter exclude) Returns a name that is not taken by anotherClientCounter
in the given client.getByName
(IEntityContext ec, Mandant client, String name) getByUuid
(IEntityContext ec, Mandant client, UUID uuid) 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, getEntityRefs, read
-
Method Details
-
getByUuid
- 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. - Since:
- 7.0.0
-
getByName
- 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. - Since:
- 7.0.0
-
findUniqueName
Returns a name that is not taken by anotherClientCounter
in the given client. An index will be added to the candidate if necessary.- 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
- Since:
- 7.0.0
-