public class ScientistBean extends AbstractCrudSingleEntityUsingEntityManagerBean<Scientist>
AbstractCrudItemBean.DetailItemDelegate, AbstractCrudItemBean.SearchItemsDelegate
Constructor and Description |
---|
ScientistBean()
Public default constructor to make this a bean.
|
Modifier and Type | Method and Description |
---|---|
List<Scientist> |
autoCompleteScientists(String displayName)
Creates an ordered auto complete list of Scientists.
|
Class<Scientist> |
getItemType()
Gets the type of the Entity to maintain.
|
Scientist |
getScientist()
Gets the Scientist.
|
ScientistSearchCriteria |
getSearchCriteria()
Gets the search criteria.
|
void |
init()
Fetches all Scientists and sorts them on the last name.
|
void |
lookupScientistListener(javax.faces.event.ActionEvent actionEvent)
Called when a Scientist needs to be looked up.
|
merge, persist, preMerge, prePersist, preRemove, remove, searchItems, selectItem
sort
backToSearchItemsListener, getDetailDelegate, getItemObservable, getSearchDelegate, getSearchModePhaseListener, newItemListener, removeItemListener, resetSearchCriteriaListener, searchItemsListener, selectItemListener, submitItemListener, update
public ScientistBean()
@PostConstruct public void init()
public Class<Scientist> getItemType()
getItemType
in class AbstractCrudItemBean<Scientist>
public Scientist getScientist()
public ScientistSearchCriteria getSearchCriteria()
getSearchCriteria
in class AbstractCrudItemBean<Scientist>
public void lookupScientistListener(javax.faces.event.ActionEvent actionEvent)
actionEvent
- The action event.public List<Scientist> autoCompleteScientists(String displayName)
displayName
- Starting part of the Scientists display name.Scientists
, ordered
by display name.
Copyright © 2008–2018. All rights reserved.