T - the pdo typepublic abstract class AbstractPdoSearch<T extends PersistentDomainObject<T>> extends Object implements PdoSearch<T>
| Modifier and Type | Field and Description |
|---|---|
static int |
defaultFetchSize
the default fetchsize.
|
static int |
defaultMaxRowCount
the default max row count.
|
static int |
defaultWarnRowCount
the default warn row count.
|
| Constructor and Description |
|---|
AbstractPdoSearch(Class<T> pdoClass,
DomainContext context)
|
AbstractPdoSearch(Class<T> pdoClass,
DomainContext context,
int fetchSize,
int warnRowCount,
int maxRowCount)
Creates a PDO search.
|
| Modifier and Type | Method and Description |
|---|---|
T |
createPdo()
Creates a new PDO for this search.
|
void |
execute(Consumer<List<T>> pdoDisplay)
Executes the search.
|
abstract org.tentackle.misc.ScrollableResource<T> |
findByCriteria(T proxy)
Finds the PDOs by selection criteria.
|
DomainContext |
getDomainContext() |
String |
getFormTableName()
Overrides the
FormTable preferences name. |
Class<T> |
getPdoClass()
Gets the PDO class.
|
int |
getPdoClassId()
Gets the PDO class id.
|
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 |
isSearchImmediate()
Start search immediately without asking the user to enter the search criteria.
|
boolean |
isSearchPanelInvisible()
Search criteria panel visibility.
|
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 |
setDialogNotShownIfSingleMatch(boolean dialogNotShownIfSingleMatch) |
void |
setDialogShownIfSearchImmediateFails(boolean dialogShownIfSearchImmediateFails) |
void |
setFormTableName(String formTableName) |
void |
setSearchImmediate(boolean searchImmediate) |
void |
setSearchPanelInvisible(boolean searchPanelInvisible) |
void |
setTableViewInitiallyShown(boolean tableViewInitiallyShown) |
void |
setViewModeFixed(boolean viewModeFixed) |
void |
setViewRebuildNecessary(boolean viewRebuildNecessary) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSearchCriteriaAsString, getSearchPanel, isResultValid, isSearchCriteriaValid, isSearchRetrievingAll, presetSearchCriteria, resetSearchCriteriaon, oppublic static int defaultFetchSize
public static int defaultWarnRowCount
public static int defaultMaxRowCount
public AbstractPdoSearch(Class<T> pdoClass, DomainContext context, int fetchSize, int warnRowCount, int maxRowCount)
pdoClass - the pdo classcontext - the domain contextfetchSize - the fetchsizewarnRowCount - number of rows displayable without warning, 0 = unlimitedmaxRowCount - maximum number of rows displayable, 0 = unlimitedpublic AbstractPdoSearch(Class<T> pdoClass, DomainContext context)
pdoClass - the pdo classcontext - the domain contextpublic int getPdoClassId()
PdoSearchgetPdoClassId in interface PdoSearch<T extends PersistentDomainObject<T>>public Class<T> getPdoClass()
PdoSearchgetPdoClass in interface PdoSearch<T extends PersistentDomainObject<T>>public DomainContext getDomainContext()
getDomainContext in interface DomainContextProviderpublic T createPdo()
PdoSearchcreatePdo in interface PdoSearch<T extends PersistentDomainObject<T>>public void execute(Consumer<List<T>> pdoDisplay)
PdoSearchexecute in interface PdoSearch<T extends PersistentDomainObject<T>>pdoDisplay - the display for the retrieved pdospublic abstract org.tentackle.misc.ScrollableResource<T> findByCriteria(T proxy)
proxy - the pdo to invoke the method(s) onpublic boolean isSearchImmediate()
PdoSearchisSearchImmediate in interface PdoSearch<T extends PersistentDomainObject<T>>public void setSearchImmediate(boolean searchImmediate)
public boolean isDialogNotShownIfSearchImmediateFindsSingleMatch()
PdoSearchisDialogNotShownIfSearchImmediateFindsSingleMatch in interface PdoSearch<T extends PersistentDomainObject<T>>public void setDialogNotShownIfSingleMatch(boolean dialogNotShownIfSingleMatch)
public boolean isSearchPanelInvisible()
PdoSearchisSearchPanelInvisible in interface PdoSearch<T extends PersistentDomainObject<T>>public void setSearchPanelInvisible(boolean searchPanelInvisible)
public boolean isDialogShownIfSearchImmediateFails()
PdoSearchisDialogShownIfSearchImmediateFails in interface PdoSearch<T extends PersistentDomainObject<T>>public void setDialogShownIfSearchImmediateFails(boolean dialogShownIfSearchImmediateFails)
public boolean isTableViewInitiallyShown()
PdoSearchisTableViewInitiallyShown in interface PdoSearch<T extends PersistentDomainObject<T>>public void setTableViewInitiallyShown(boolean tableViewInitiallyShown)
public boolean isViewModeFixed()
PdoSearchisViewModeFixed in interface PdoSearch<T extends PersistentDomainObject<T>>public void setViewModeFixed(boolean viewModeFixed)
public boolean isViewRebuildNecessary()
PdoSearchisViewRebuildNecessary in interface PdoSearch<T extends PersistentDomainObject<T>>public void setViewRebuildNecessary(boolean viewRebuildNecessary)
public String getFormTableName()
PdoSearchFormTable preferences name.getFormTableName in interface PdoSearch<T extends PersistentDomainObject<T>>public void setFormTableName(String formTableName)
Tentackle - distributed, domain- and model-driven