public abstract class IncrementalSmartQuery extends Object implements SmartQuery
Specific getters and setters have been defined instead of a generic one for a better resolution of target types.
Modifier and Type | Field and Description |
---|---|
protected Boolean |
addNotOperator
Boolean indicating if the query part to add should be negated (for instance by adding the 'NOT' marker before)
|
protected Boolean |
booleanValue
Boolean value binding.
|
protected Boolean |
closeParenthesis
Boolean indicating if an closed parenthesis should be added after the query part to add.
|
protected String |
conditionalOperator
String representing the conditional operator to use when building the query part to add (for instance '=',
'LIKE',...)
|
protected Date |
datetimeValue
Date and time value binding.
|
protected Date |
dateValue
Date value binding
|
protected Boolean |
escapeValue |
protected String |
existingQueryPart
Stores the current existing query part.
|
protected Double |
floatValue
Float value binding.
|
protected Long |
integerValue
Integer value binding.
|
protected String |
leftExpression
String typically representing the search index for the query part to add.
|
protected String |
logicalOperator
String containing the logical operator at start of the query part to add (for instance 'AND' or 'OR').
|
protected Boolean |
openParenthesis
Boolean indicating if an open parenthesis should be added prior to the query part to add.
|
protected Date |
otherDatetimeValue
Another date and time value binding (useful when using the 'BETWEEN' operator for instance)
|
protected Date |
otherDateValue
Another date value binding (useful when using the 'BETWEEN' operator for instance)
|
protected String |
selectedRowName
Marker for layout row selection that will make it possible to display only the widgets defined in this row for
the rest of the query part definition.
|
protected String[] |
stringArrayValue
String array value binding.
|
protected List<String> |
stringListValue
String list value binding.
|
protected String |
stringValue
String value binding.
|
protected Object |
value
Generic set value for the new query part to add.
|
Constructor and Description |
---|
IncrementalSmartQuery(String existingQueryPart) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
buildQuery, isValid
protected String existingQueryPart
This does not need to be a valid query as it can still be refined after.
protected String logicalOperator
protected Boolean addNotOperator
protected Boolean openParenthesis
protected Boolean closeParenthesis
protected String selectedRowName
protected String leftExpression
protected String conditionalOperator
protected Boolean escapeValue
protected Object value
Holds the last value set on one of the specific value setters.
protected Boolean booleanValue
protected String stringValue
protected List<String> stringListValue
protected String[] stringArrayValue
protected Date datetimeValue
protected Date otherDatetimeValue
protected Date otherDateValue
protected Long integerValue
protected Double floatValue
public IncrementalSmartQuery(String existingQueryPart)
public String getExistingQueryPart()
public void setExistingQueryPart(String existingQueryPart)
public boolean getShowLogicalOperator()
public String getLogicalOperator()
public void setLogicalOperator(String logicalOperator)
public boolean getShowAddNotOperator()
public Boolean getAddNotOperator()
public void setAddNotOperator(Boolean addNotOperator)
public boolean getShowOpenParenthesis()
public Boolean getOpenParenthesis()
public void setOpenParenthesis(Boolean openParenthesis)
public boolean getShowCloseParenthesis()
public Boolean getCloseParenthesis()
public void setCloseParenthesis(Boolean closeParenthesis)
public String getSelectedRowName()
public void setSelectedRowName(String selectedRowName)
Also resets the left expression, conditional operator, and all value bindings, as they may be set to values that are not relevant in this new row context.
public List<String> getSelectedRowNames()
public String getLeftExpression()
public void setLeftExpression(String leftExpression)
public String getConditionalOperator()
public void setConditionalOperator(String conditionalOperator)
Also resets all the value bindings, as they may be set to values that are not relevant in this new conditional operator context.
public Boolean getEscapeValue()
public void setEscapeValue(Boolean escapeValue)
public Boolean getBooleanValue()
public void setBooleanValue(Boolean booleanValue)
public String getStringValue()
public void setStringValue(String stringValue)
public List<String> getStringListValue()
public void setStringListValue(List<String> stringListValue)
public String[] getStringArrayValue()
public void setStringArrayValue(String[] stringArrayValue)
public Date getDatetimeValue()
public void setDatetimeValue(Date datetimeValue)
public Date getOtherDatetimeValue()
public void setOtherDatetimeValue(Date otherDatetimeValue)
public Date getDateValue()
public void setDateValue(Date dateValue)
public Date getOtherDateValue()
public void setOtherDateValue(Date otherDateValue)
public Long getIntegerValue()
public void setIntegerValue(Long integerValue)
public Double getFloatValue()
public void setFloatValue(Double floatValue)
protected void clear()
protected void clearValues()
Copyright © 2016 Nuxeo SA. All rights reserved.