public final class ProjectTemplateBean.EntitySelectModelImpl extends EntitySelectModel<Projekt>
entityClass, selected| Constructor and Description |
|---|
EntitySelectModelImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
create() |
String |
delete(String targetView)
Deletes the currently selected model from the database.
|
String |
save(String targetView,
boolean addSuccessMessage,
boolean addErrorMessage)
Saves the currently selected model to the database.
|
protected void |
update() |
addNew, delete, ec, getDao, getNew, getSelected, isDetached, isNew, loadLazyData, redirect, save, save, setSelected, setSelectedById, updateSelectedaddErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsgFromString, addErrorMsgFromString, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsgFromString, addInfoMsgFromString, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addMsg, addMsg, addMsg, addMsg, addMsgs, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, getErrorMessagepublic String save(String targetView, boolean addSuccessMessage, boolean addErrorMessage)
IEntitySelectModelIEntitySelectModel.isNew(), creates a new entry in the database,
otherwise updates the existing entry. Performs a redirect to the view, if given.save in interface IEntitySelectModel<Projekt>save in class EntitySelectModel<Projekt>targetView - If given, performs a redirect to this view if the action succeeds. Must be a name of
Enum.name(), or a relative link.addSuccessMessage - Whether a success message is added to the faces context (in case of success).addErrorMessage - Whether an error message is added to the faces context (in case of an error).public String delete(String targetView)
IEntitySelectModelIEntitySelectModel.isNew(), does
nothing.delete in interface IEntitySelectModel<Projekt>delete in class EntitySelectModel<Projekt>targetView - The Enum.name() of a view whose view ID is returned after this operation completes
successfully. Can also be a relative path, in which case that path is returned.protected void update()
update in class EntitySelectModel<Projekt>protected void create()
create in class EntitySelectModel<Projekt>Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.