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.common.model.data.ItemListModel<Projekt,Long>
de.xima.fc.gui.model.data.EntityListModel<Projekt>
de.xima.fc.gui.bean.project.ProjectBean.EntityListModelImpl
- All Implemented Interfaces:
IItemListModel<Projekt>, IUpdatable, IEntityListModel<Projekt>, Serializable
- Enclosing class:
ProjectBean
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
Fields inherited from class EntityListModel
entityClass, qcmFields inherited from class ItemListModel
all, filtered, globalFilter, hasAddNewEntity, LOG, marked, selected -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate()voidvoidCan be overridden to initialize lazily loaded fields on the entity.voidsave()Saves the currently selected model to the database.voidsetSelected(Projekt selected) Sets the currently selected model to the given model.voidupdate()voidMethods inherited from class EntityListModel
addMarked, addNew, castTo, crudCreate, crudDelete, crudRead, crudUpdate, delete, delete, deleteEntity, deleteEntity, deleteMarkedEntities, ec, fetchAll, findName, getAll, getAllPlusNew, getDao, getFiltered, getGlobalFilter, getId, getMarked, getName, getNew, getSelected, hasEntity, isDetached, isDetached, isEmptyList, isHasAddNewEntity, isMarkedDeletable, isNew, isPersisted, onRowSelect, onRowSelectCheckbox, onRowUnselectCheckbox, onSelectionChanged, onToggleSelect, performDelete, removeMarked, save, selectDefault, setFiltered, setGlobalFilter, setHasAddNewEntity, setMarked, setSelectedFromMarked, updateSelectedMethods inherited from class 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, msgMethods inherited from class 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:
updateDatain interfaceIUpdatable- Overrides:
updateDatain classEntityListModel<Projekt>
-
loadLazyData
public void loadLazyData()Description copied from interface:IItemListModelCan be overridden to initialize lazily loaded fields on the entity. By default, does not load any lazy data.- Specified by:
loadLazyDatain interfaceIEntityListModel<Projekt>- Specified by:
loadLazyDatain interfaceIItemListModel<Projekt>- Overrides:
loadLazyDatain classEntityListModel<Projekt>
-
setSelected
Description copied from interface:IItemListModelSets 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 theIItemListModel.getSelected()model may not refer to the same instance as the given model.- Specified by:
setSelectedin interfaceIEntityListModel<Projekt>- Specified by:
setSelectedin interfaceIItemListModel<Projekt>- Overrides:
setSelectedin classEntityListModel<Projekt>- Parameters:
selected- The model to be selected.
-
createDefaultFormVersion
public void createDefaultFormVersion() -
create
- Overrides:
createin classEntityListModel<Projekt>- Throws:
Exception
-
update
- Overrides:
updatein classEntityListModel<Projekt>- Throws:
Exception
-
save
public void save()Description copied from interface:IItemListModelSaves the currently selected model to the database. If itIItemListModel.isNew(), creates a new entry in the database, otherwise updates the existing entry.- Specified by:
savein interfaceIEntityListModel<Projekt>- Specified by:
savein interfaceIItemListModel<Projekt>- Overrides:
savein classEntityListModel<Projekt>
-