public final class CurrentProjectBean.EntitySelectModelImpl extends EntitySelectModel<Projekt>
entityClass, selected
Constructor and Description |
---|
EntitySelectModelImpl() |
Modifier and Type | Method and Description |
---|---|
void |
create() |
void |
loadLazyData()
Can be overriden to initialize lazily loaded fields on the entity.
|
String |
save(String targetView,
boolean addSuccessMessage,
boolean addErrorMessage)
Saves the currently selected model to the database.
|
void |
setSelected(Projekt newProject)
Sets the currently selected model to the given model.
|
void |
update() |
addNew, delete, delete, ec, getDao, getNew, getSelected, isDetached, isNew, redirect, save, save, setSelectedById, updateSelected
addErrorMsg, 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, getErrorMessage, getNewErrorMsg, getNewErrorMsg, getNewErrorMsg, getNewInfoMsg, getNewInfoMsg, getNewMsg, getNewWarnMsg, getNewWarnMsg
public void setSelected(Projekt newProject)
IEntitySelectModel
IEntitySelectModel.getSelected()
model
may not refer to the same instance as the given model.setSelected
in interface IEntitySelectModel<Projekt>
setSelected
in class EntitySelectModel<Projekt>
newProject
- The model to be selected.public void loadLazyData()
IEntitySelectModel
loadLazyData
in interface IEntitySelectModel<Projekt>
loadLazyData
in class EntitySelectModel<Projekt>
public void create()
create
in class EntitySelectModel<Projekt>
public void update()
update
in class EntitySelectModel<Projekt>
public String save(String targetView, boolean addSuccessMessage, boolean addErrorMessage)
IEntitySelectModel
IEntitySelectModel.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).Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.