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.common.model.data.ItemListModel<T,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
public final class ProjectBean.EntityListModelImpl extends EntityListModel<Projekt>
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.xima.fc.gui.model.data.EntityListModel
entityClass, qcm
-
Fields inherited from class de.xima.fc.gui.common.model.data.ItemListModel
all, filtered, globalFilter, hasAddNewEntity, LOG, marked, selected
-
-
Constructor Summary
Constructors Constructor Description EntityListModelImpl(de.xima.cmn.criteria.QueryCriteriaManager qcm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreate()voidcreateDefaultFormVersion()voidloadLazyData()Can 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()voidupdateData()-
Methods inherited from class de.xima.fc.gui.model.data.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, 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
-
-
-
-
Method Detail
-
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
public void setSelected(Projekt selected)
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
public void create() throws Exception- Overrides:
createin classEntityListModel<Projekt>- Throws:
Exception
-
update
public void update() throws Exception- 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>
-
-