Package de.xima.fc.gui.bean.project
Class ProjectBean.EntityListModelImpl
java.lang.Object
de.xima.fc.gui.common.utils.msg.I18nUtils
de.xima.fc.gui.common.utils.msg.MessageUtils
de.xima.fc.gui.common.utils.msg.AMessaging
de.xima.fc.gui.model.data.EntityListModel<Projekt>
de.xima.fc.gui.bean.project.ProjectBean.EntityListModelImpl
- All Implemented Interfaces:
IEntityListModel<Projekt>
,IUpdatable
,Serializable
- Enclosing class:
- ProjectBean
- See Also:
-
Field Summary
Fields inherited from class de.xima.fc.gui.model.data.EntityListModel
all, entityClass, filtered, globalFilter, hasAddNewEntity, marked, qcm, selected
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
create()
void
void
Can be overriden to initialize lazily loaded fields on the entity.void
save()
Saves the currently selected model to the database.void
setSelected
(Projekt selected) Sets the currently selected model to the given model.void
update()
void
Methods inherited from class de.xima.fc.gui.model.data.EntityListModel
addMarked, addNew, delete, delete, deleteEntity, deleteEntity, deleteMarkedEntities, ec, fetchAll, getAll, getAllPlusNew, getDao, getFiltered, getGlobalFilter, getMarked, getName, getNew, getSelected, hasEntity, isDetached, isEmptyList, isMarkedDeletable, isNew, onRowSelect, onRowSelectCheckbox, onRowUnselectCheckbox, onToggleSelect, performDelete, removeMarked, save, selectDefault, setFiltered, setGlobalFilter, setHasAddNewEntity, setMarked, setSelectedFromMarked, updateSelected
Methods inherited from class de.xima.fc.gui.common.utils.msg.MessageUtils
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, addMsgs, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, errorMsg, errorMsg, getErrorMessage, getNewErrorMsg, getNewErrorMsg, getNewErrorMsg, getNewInfoMsg, getNewInfoMsg, getNewMsg, getNewWarnMsg, getNewWarnMsg, msg
Methods inherited from class de.xima.fc.gui.common.utils.msg.I18nUtils
getFacesContext, getLocale, rbValue, rbValue, rbValue, rbValueOrDefault, rbValueOrDefault
-
Constructor Details
-
EntityListModelImpl
public EntityListModelImpl(de.xima.cmn.criteria.QueryCriteriaManager qcm)
-
-
Method Details
-
updateData
public void updateData()- Specified by:
updateData
in interfaceIUpdatable
- Overrides:
updateData
in classEntityListModel<Projekt>
-
loadLazyData
public void loadLazyData()Description copied from interface:IEntityListModel
Can be overriden to initialize lazily loaded fields on the entity. By default, does not load any lazy data.- Specified by:
loadLazyData
in interfaceIEntityListModel<Projekt>
- Overrides:
loadLazyData
in classEntityListModel<Projekt>
-
setSelected
Description copied from interface:IEntityListModel
Sets the currently selected model to the given model. If the given model exists in the database but is not currently managed by an entity manager, rereads the model from the database. Thus theIEntityListModel.getSelected()
model may not refer to the same instance as the given model.- Specified by:
setSelected
in interfaceIEntityListModel<Projekt>
- Overrides:
setSelected
in classEntityListModel<Projekt>
- Parameters:
selected
- The model to be selected.
-
createDefaultFormVersion
public void createDefaultFormVersion() -
create
public void create()- Overrides:
create
in classEntityListModel<Projekt>
-
update
public void update()- Overrides:
update
in classEntityListModel<Projekt>
-
save
public void save()Description copied from interface:IEntityListModel
Saves the currently selected model to the database. If itIEntityListModel.isNew()
, creates a new entry in the database, otherwise updates the existing entry.- Specified by:
save
in interfaceIEntityListModel<Projekt>
- Overrides:
save
in classEntityListModel<Projekt>
-