public class SemiFullTextQueryBuilder extends QueryBuilder implements java.awt.event.FocusListener, QueryGUII, QueryGUIListenerI, java.awt.event.ActionListener, QueryInfoI
QueryBuilder
subclass for creating OQL queries from bookmarks in the Solstice GUI using search terms from the
"search bar", filter clauses defined in the bookmark XML and values from the GUI filter controls.Constructor and Description |
---|
SemiFullTextQueryBuilder(SchemaI _schema,
java.lang.Class<? extends BOI> clazz) |
SemiFullTextQueryBuilder(SchemaI _schema,
java.lang.Class<? extends BOI> clazz,
FulltextSearcherI _fts) |
SemiFullTextQueryBuilder(SchemaI _schema,
electric.xml.Element _root) |
SemiFullTextQueryBuilder(SchemaI _schema,
electric.xml.Element _root,
java.lang.String _classtip) |
SemiFullTextQueryBuilder(SchemaI _schema,
electric.xml.Element _root,
java.lang.String _classtip,
BOLoaderI _bol) |
SemiFullTextQueryBuilder(SchemaI _schema,
electric.xml.Element _root,
java.lang.String _classtip,
BOLoaderI _bol,
java.util.Map _scriptVars) |
SemiFullTextQueryBuilder(SchemaI _schema,
electric.xml.Element _root,
java.lang.String _classtip,
BOLoaderI _bol,
java.util.Map _scriptVars,
FulltextSearcherI _fts) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent a) |
void |
addGUIFilter(QueryGUIElementI qg) |
void |
addQueryGUIListener(QueryGUIListenerI l) |
void |
addSystemFilter(java.lang.String groupn,
FilterClauseProvider fcp)
Used to add selectionFilter clauses from the schema.
|
static void |
appendAndClause(java.lang.StringBuilder q,
java.lang.String cl) |
void |
cacheAttNamesFor(EntityI _ent) |
void |
cacheAttNamesFor(EntityI _ent,
java.lang.String _prefix) |
void |
close() |
void |
focusGained(java.awt.event.FocusEvent f) |
void |
focusLost(java.awt.event.FocusEvent f) |
java.util.HashMap |
getAttributeCache() |
java.lang.String |
getAttributeName(java.lang.String st) |
java.util.ArrayList |
getAttributeNamesCache() |
EntityI |
getBaseEntity() |
BOLoaderI |
getBol() |
javax.swing.JPanel |
getComp() |
java.util.List |
getDependsOn() |
java.lang.String |
getDependsOnClause() |
EntityI |
getEntity() |
int |
getFieldWidth() |
java.lang.String |
getFilterClause() |
java.util.Collection<FilterClauseProvider> |
getFilterClauseProviders() |
java.lang.String |
getGroup() |
java.util.TreeMap |
getGroups() |
java.util.ArrayList |
getGuiElements() |
java.util.TreeMap |
getGuiFiltersByVariablename() |
java.util.LinkedList |
getLastLookup() |
int |
getMinSearchLength() |
java.lang.String |
getName()
Gets the name of the filter which is used for a few error messages and in the context of "dependentOn" filters.
|
java.lang.String |
getPrefetch() |
java.lang.String |
getPrefixTerms() |
java.lang.String |
getProjection() |
javax.swing.JComponent |
getQueryGUI()
Gets the
JComponent that represents the GUI part of this filter. |
java.util.Map |
getQueryGUIElementsMap() |
EntityI |
getResultsEntity()
Returns the EntityI of the objects this query returns.
|
java.lang.String |
getTemplate() |
de.ipcon.swing.ITextField |
getTextInput() |
java.lang.String |
getUserInput()
Gets the raw text the user (might have) entered in the "search bar".
|
java.lang.String |
getUserInputAsClausePart()
Gets the text the user (might have) entered in the "search bar" or "NULL" if no text was entered.
|
java.lang.String |
getVariable()
If given the value entered in/returned by the filter is stored under this name and accessible by this in the query
template.
|
void |
handleQueryGUIEvent(QueryGUIEvent e) |
void |
handleTransformScript(electric.xml.Element el) |
boolean |
isGrabFocus() |
boolean |
isSelectAllAtNextFocusGain() |
boolean |
isShowDeleted() |
boolean |
isShowFtsPopup() |
void |
newQuery() |
void |
removeQueryGUIListener(QueryGUIListenerI l) |
boolean |
requestFocusInWindow() |
void |
reset() |
void |
setAttributeCache(java.util.HashMap $76) |
void |
setAttributeNamesCache(java.util.ArrayList $75) |
void |
setBol(BOLoaderI $62) |
void |
setComp(javax.swing.JPanel $59) |
void |
setEntity(EntityI $54) |
void |
setFieldWidth(int $58) |
void |
setGroup(java.lang.String $64) |
void |
setGroups(java.util.TreeMap $67) |
void |
setGuiElements(java.util.ArrayList $69) |
void |
setGuiFiltersByVariablename(java.util.TreeMap $68) |
void |
setLastLookup(java.util.LinkedList $74) |
void |
setMinSearchLength(int $73) |
void |
setName(java.lang.String $61) |
void |
setPrefetch(java.lang.String $57) |
void |
setPrefixTerms(java.lang.String $55) |
void |
setProjection(java.lang.String $63) |
void |
setQueryGUIElementsMap(java.util.Map $70) |
void |
setSelectAllAtNextFocusGain(boolean $71)
Used to tell the normally used QueryGUII (which uses a freetext field for
entering search terms/query) to select all the input in the field for easy
overwriting/clearing e.g. when the QueryGUII is shown first time when a
FPopup is opened.
|
void |
setShowDeleted(boolean $56) |
void |
setShowFtsPopup(boolean $72) |
void |
setTemplate(java.lang.String $66) |
void |
setTextInput(de.ipcon.swing.ITextField $60) |
void |
setVariable(java.lang.String $65) |
void |
sprayEvent(QueryGUIEvent myEvent) |
de.ipcon.db.core.QueryResultsI |
startQuery(java.lang.Object[] _parms,
BOLoaderI _bol) |
java.lang.String |
toString() |
addSystemFilter, addUserFilter, clearSystemFilters, clearUserFilters, getClasstip, getQueryAsString, getRoot, getSchema, getScript, getScript, getScriptVariables, getSystemFilterAt, getSystemFilterCount, getUserFilterAt, getUserFilterCount, injectScriptVariable, removeSystemFilter, removeUserFilter, setClasstip, setRoot, setSchema
public SemiFullTextQueryBuilder(SchemaI _schema, java.lang.Class<? extends BOI> clazz)
public SemiFullTextQueryBuilder(SchemaI _schema, java.lang.Class<? extends BOI> clazz, FulltextSearcherI _fts)
public SemiFullTextQueryBuilder(SchemaI _schema, electric.xml.Element _root)
public SemiFullTextQueryBuilder(SchemaI _schema, electric.xml.Element _root, java.lang.String _classtip)
public SemiFullTextQueryBuilder(SchemaI _schema, electric.xml.Element _root, java.lang.String _classtip, BOLoaderI _bol)
public SemiFullTextQueryBuilder(SchemaI _schema, electric.xml.Element _root, java.lang.String _classtip, BOLoaderI _bol, java.util.Map _scriptVars)
public SemiFullTextQueryBuilder(SchemaI _schema, electric.xml.Element _root, java.lang.String _classtip, BOLoaderI _bol, java.util.Map _scriptVars, FulltextSearcherI _fts)
public java.util.Collection<FilterClauseProvider> getFilterClauseProviders()
getFilterClauseProviders
in interface QueryGUIElementI
public void addGUIFilter(QueryGUIElementI qg)
public void addSystemFilter(java.lang.String groupn, FilterClauseProvider fcp)
public java.lang.String getUserInput()
getUserInput
in interface QueryGUIElementI
public java.lang.String getUserInputAsClausePart()
getUserInputAsClausePart
in interface QueryGUIElementI
public static void appendAndClause(java.lang.StringBuilder q, java.lang.String cl)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getAttributeName(java.lang.String st)
public void cacheAttNamesFor(EntityI _ent)
public void cacheAttNamesFor(EntityI _ent, java.lang.String _prefix)
public javax.swing.JComponent getQueryGUI()
QueryGUIElementI
JComponent
that represents the GUI part of this filter.getQueryGUI
in interface QueryGUIElementI
public void close()
close
in interface QueryGUIElementI
public java.lang.String getFilterClause()
public boolean requestFocusInWindow()
requestFocusInWindow
in interface QueryGUIElementI
requestFocusInWindow
in interface QueryGUII
public boolean isGrabFocus()
isGrabFocus
in interface QueryGUIElementI
public java.util.List getDependsOn()
getDependsOn
in interface QueryGUIElementI
public java.lang.String getDependsOnClause()
public void reset()
reset
in interface QueryGUIElementI
public void addQueryGUIListener(QueryGUIListenerI l)
addQueryGUIListener
in interface QueryGUIElementI
public void removeQueryGUIListener(QueryGUIListenerI l)
removeQueryGUIListener
in interface QueryGUIElementI
public void handleQueryGUIEvent(QueryGUIEvent e)
handleQueryGUIEvent
in interface QueryGUIListenerI
public void actionPerformed(java.awt.event.ActionEvent a)
actionPerformed
in interface java.awt.event.ActionListener
public void sprayEvent(QueryGUIEvent myEvent)
public void handleTransformScript(electric.xml.Element el)
public de.ipcon.db.core.QueryResultsI startQuery(java.lang.Object[] _parms, BOLoaderI _bol)
startQuery
in class QueryBuilder
public EntityI getResultsEntity()
QueryBuilder
getResultsEntity
in interface QueryInfoI
getResultsEntity
in class QueryBuilder
public void focusGained(java.awt.event.FocusEvent f)
focusGained
in interface java.awt.event.FocusListener
public void focusLost(java.awt.event.FocusEvent f)
focusLost
in interface java.awt.event.FocusListener
public EntityI getBaseEntity()
public EntityI getEntity()
public void setEntity(EntityI $54)
public java.lang.String getPrefixTerms()
public void setPrefixTerms(java.lang.String $55)
public boolean isShowDeleted()
isShowDeleted
in interface QueryInfoI
public void setShowDeleted(boolean $56)
public java.lang.String getPrefetch()
public void setPrefetch(java.lang.String $57)
public int getFieldWidth()
public void setFieldWidth(int $58)
public javax.swing.JPanel getComp()
public void setComp(javax.swing.JPanel $59)
public de.ipcon.swing.ITextField getTextInput()
public void setTextInput(de.ipcon.swing.ITextField $60)
public java.lang.String getName()
QueryGUIElementI
getName
in interface QueryGUIElementI
public void setName(java.lang.String $61)
public BOLoaderI getBol()
public void setBol(BOLoaderI $62)
public java.lang.String getProjection()
public void setProjection(java.lang.String $63)
public java.lang.String getGroup()
getGroup
in interface QueryGUIElementI
public void setGroup(java.lang.String $64)
public java.lang.String getVariable()
QueryGUIElementI
getVariable
in interface QueryGUIElementI
public void setVariable(java.lang.String $65)
public java.lang.String getTemplate()
public void setTemplate(java.lang.String $66)
public java.util.TreeMap getGroups()
public void setGroups(java.util.TreeMap $67)
public java.util.TreeMap getGuiFiltersByVariablename()
public void setGuiFiltersByVariablename(java.util.TreeMap $68)
public java.util.ArrayList getGuiElements()
public void setGuiElements(java.util.ArrayList $69)
public java.util.Map getQueryGUIElementsMap()
getQueryGUIElementsMap
in class QueryBuilder
public void setQueryGUIElementsMap(java.util.Map $70)
public boolean isSelectAllAtNextFocusGain()
public void setSelectAllAtNextFocusGain(boolean $71)
QueryGUII
setSelectAllAtNextFocusGain
in interface QueryGUII
public boolean isShowFtsPopup()
public void setShowFtsPopup(boolean $72)
public int getMinSearchLength()
public void setMinSearchLength(int $73)
public java.util.LinkedList getLastLookup()
public void setLastLookup(java.util.LinkedList $74)
public java.util.ArrayList getAttributeNamesCache()
public void setAttributeNamesCache(java.util.ArrayList $75)
public java.util.HashMap getAttributeCache()
public void setAttributeCache(java.util.HashMap $76)
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.