public class TextbausteinDao extends MandantDependentBaseDao<Textbaustein> implements ITextbausteinDao
| Constructor and Description |
|---|
TextbausteinDao() |
| Modifier and Type | Method and Description |
|---|---|
String |
findUniqueName(IEntityContext ec,
Mandant client,
String candidate)
Returns a name that is not taken by another
Textbaustein in the given client. |
String |
findUniqueName(IEntityContext ec,
Mandant client,
String candidate,
Textbaustein exclude)
Returns a name that is not taken by another
Textbaustein in the given client other than the excluded
template. |
List<Textbaustein> |
getAll(IEntityContext ec,
Mandant mandant) |
List<Textbaustein> |
getAllByKat(IEntityContext ec,
Mandant mandant,
ETextbausteinKategorie kategorie) |
List<Textbaustein> |
getAllByProject(IEntityContext ec,
Projekt project)
Returns all templates that are being used by the given project
|
Textbaustein |
getByKatAndName(IEntityContext ec,
Mandant mandant,
ETextbausteinKategorie kategorie,
String name) |
Textbaustein |
getByMsgCode(IEntityContext ec,
Mandant m,
String msgCode) |
Textbaustein |
getByName(IEntityContext ec,
Mandant mandant,
String name) |
Textbaustein |
getByUUID(IEntityContext ec,
Mandant client,
String uuid)
Returns the template with the given UUID string
|
Textbaustein |
getByUUID(IEntityContext ec,
Mandant client,
UUID uuid)
Returns the template with the given UUID
|
Set<de.xima.cmn.dao.interfaces.IEntity<Long>> |
getEntityRefs(IEntityContext ec,
Textbaustein template) |
protected IFCDaoActionHook<Textbaustein> |
getPostActionHook() |
protected IFCDaoActionHook<Textbaustein> |
getPreActionHook() |
Textbaustein |
getTextbausteinByMsgCode(IEntityContext ec,
Mandant m,
ETextbausteinMsgCode msgCode) |
boolean |
isNameExisiting(IEntityContext ec,
Mandant client,
String name)
Returns whether or not the given template name exists within the given client
|
readall, 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, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadall, 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, updatepublic Set<de.xima.cmn.dao.interfaces.IEntity<Long>> getEntityRefs(IEntityContext ec, Textbaustein template)
getEntityRefs in interface IGenericDao<Textbaustein>getEntityRefs in class GenericDao<Textbaustein>public Textbaustein getTextbausteinByMsgCode(IEntityContext ec, Mandant m, ETextbausteinMsgCode msgCode)
getTextbausteinByMsgCode in interface ITextbausteinDaopublic List<Textbaustein> getAll(IEntityContext ec, Mandant mandant)
getAll in interface ITextbausteinDaopublic Textbaustein getByName(IEntityContext ec, Mandant mandant, String name)
getByName in interface ITextbausteinDaopublic List<Textbaustein> getAllByKat(IEntityContext ec, Mandant mandant, ETextbausteinKategorie kategorie)
getAllByKat in interface ITextbausteinDaopublic Textbaustein getByMsgCode(IEntityContext ec, Mandant m, String msgCode)
getByMsgCode in interface ITextbausteinDaopublic Textbaustein getByKatAndName(IEntityContext ec, Mandant mandant, ETextbausteinKategorie kategorie, String name)
getByKatAndName in interface ITextbausteinDaopublic Textbaustein getByUUID(IEntityContext ec, Mandant client, String uuid)
ITextbausteinDaogetByUUID in interface ITextbausteinDaoec - IEntityContext to useclient - Mandant context in which to look for templateuuid - String UUID of the templateTextbaustein for the given UUID and clientpublic Textbaustein getByUUID(IEntityContext ec, Mandant client, UUID uuid)
ITextbausteinDaogetByUUID in interface ITextbausteinDaoec - IEntityContext to useclient - Mandant context in which to look for templateuuid - UUID UUID of the templateTextbaustein for the given UUID and clientpublic List<Textbaustein> getAllByProject(IEntityContext ec, Projekt project)
ITextbausteinDaogetAllByProject in interface ITextbausteinDaoec - IEntityContext to be usedproject - Projekt project to search for templatesList of Textbausteins that are being used by the projectpublic String findUniqueName(IEntityContext ec, Mandant client, String candidate)
ITextbausteinDaoTextbaustein in the given client. An index will be added to the
candidate if necessary.findUniqueName in interface ITextbausteinDaoec - IEntityContext to be usedclient - Mandant for which a unique template name should be generatedcandidate - String template name candiate to be made uniquepublic String findUniqueName(IEntityContext ec, Mandant client, String candidate, Textbaustein exclude)
ITextbausteinDaoTextbaustein in the given client other than the excluded
template. An index will be added to the candidate if necessary.findUniqueName in interface ITextbausteinDaoec - IEntityContext to be usedclient - Mandant for which a unique template name should be generatedcandidate - String template name candiate to be made uniqueexclude - Textbaustein template to be excluded from searchpublic boolean isNameExisiting(IEntityContext ec, Mandant client, String name)
ITextbausteinDaoisNameExisiting in interface ITextbausteinDaoec - IEntityContext to be usedclient - Mandant for which to check uniquenessname - String template name to checkprotected IFCDaoActionHook<Textbaustein> getPreActionHook()
getPreActionHook in class GenericDao<Textbaustein>protected IFCDaoActionHook<Textbaustein> getPostActionHook()
getPostActionHook in class GenericDao<Textbaustein>Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.