T - the PDO typepublic interface PdoSearch<T extends PersistentDomainObject<T>> extends DomainContextProvider
| Modifier and Type | Method and Description |
|---|---|
T |
createPdo()
Creates a new PDO for this search.
|
void |
execute(Consumer<List<T>> pdoDisplay)
Executes the search.
|
String |
getFormTableName()
Overrides the
FormTable preferences name. |
Class<T> |
getPdoClass()
Gets the PDO class.
|
int |
getPdoClassId()
Gets the PDO class id.
|
String |
getSearchCriteriaAsString()
Gets a short description of the search criteria.
|
FormPanel |
getSearchPanel()
Gets the panel to enter the search criteria.
|
boolean |
isDialogNotShownIfSearchImmediateFindsSingleMatch()
Dont show the dialog if exactly a single object is found.
Makes only sense with isSearchImmediate(). |
boolean |
isDialogShownIfSearchImmediateFails()
Show dialog if searchImmediate fails.
|
boolean |
isResultValid(List<T> list)
Validates the result.
|
boolean |
isSearchCriteriaValid()
Performs a validation of the search criteria.
|
boolean |
isSearchImmediate()
Start search immediately without asking the user to enter the search criteria.
|
boolean |
isSearchPanelInvisible()
Search criteria panel visibility.
|
boolean |
isSearchRetrievingAll()
Returns whether the search will retrieve all PDOs.
Usually, if nothing is entered, all PDOs will be retrieved. |
boolean |
isTableViewInitiallyShown()
Initially show table-view instead of tree-view.
|
boolean |
isViewModeFixed()
Don't allow the user to change the view mode.
|
boolean |
isViewRebuildNecessary()
View should be rebuilt for each new display of search results.
|
void |
presetSearchCriteria(T template)
Presets the search parameter with default values from given PDO.
|
void |
resetSearchCriteria()
Resets the search criteria to its default.
|
getDomainContext, on, opvoid execute(Consumer<List<T>> pdoDisplay)
pdoDisplay - the display for the retrieved pdosint getPdoClassId()
T createPdo()
FormPanel getSearchPanel()
String getSearchCriteriaAsString()
boolean isSearchCriteriaValid()
void resetSearchCriteria()
void presetSearchCriteria(T template)
template - the PDO to extract the search criteria fromboolean isSearchRetrievingAll()
boolean isResultValid(List<T> list)
list - the retrieved PDOs from execute()boolean isSearchImmediate()
boolean isSearchPanelInvisible()
boolean isDialogNotShownIfSearchImmediateFindsSingleMatch()
boolean isDialogShownIfSearchImmediateFails()
boolean isTableViewInitiallyShown()
boolean isViewModeFixed()
boolean isViewRebuildNecessary()
Tentackle - a domain driven enterprise framework