public class SelectForm extends AbstractSparqFormExpression
parentRequestTYPE_DELETE, TYPE_INSERT, TYPE_INSERT_DATA, TYPE_SELECT, TYPE_WHERE| Constructor and Description |
|---|
SelectForm(ISparqlRequestGroup parentRequest) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addSelect(Expression expr,
java.lang.String asVar)
Add an expression to use for the SELECT part of the Sparql request.
|
boolean |
addSelect(SelectExpression selectExpr)
Add an expression to use for the SELECT part of the Sparql request.
|
boolean |
addSelect(java.lang.String... vars)
Add several variables to use for the SELECT part of the Sparql request.
|
boolean |
addSelect(java.lang.String var)
Add a variable to use for the SELECT part of the Sparql request.
|
Variable |
addSelectVariable(SelectExpression selectExpr)
Add a variable for a select expression.
|
java.lang.String |
formExpressionTypeAsString() |
char |
getFormExpressionType() |
java.util.List<SelectItem> |
getSelectList() |
java.util.Map<java.lang.String,SelectItem> |
getSelectMap()
Return the map of SELECT items.
|
boolean |
hasSelectForm() |
boolean |
isEmptySelect() |
boolean |
isSelect(java.lang.String var)
Return true if a variable is in the SELECT list of variables.
|
boolean |
isSelectAll()
Return true if SELECT * is set.
|
boolean |
isSelectDistinct()
Return true if the SELECT expression should be SELECT DISTINCT.
|
void |
selectDistinct(boolean selectDistinct)
Set if the SELECT expression should be SELECT DISTINCT.
|
void |
setHasSelectForm(boolean hasSelectForm) |
void |
setSelect(java.lang.String... vars)
Set the variables to use for the SELECT part of the Sparql request.
|
boolean |
setSelectAll()
Set "*" for SELECT all variables.
|
getSparqlRequestpublic SelectForm(ISparqlRequestGroup parentRequest)
public char getFormExpressionType()
public java.lang.String formExpressionTypeAsString()
public void setHasSelectForm(boolean hasSelectForm)
public boolean hasSelectForm()
public boolean isSelectAll()
public void selectDistinct(boolean selectDistinct)
selectDistinct - true for SELECT DISTINCTpublic boolean isSelectDistinct()
public boolean isSelect(java.lang.String var)
var - the variable namepublic java.util.Map<java.lang.String,SelectItem> getSelectMap()
public java.util.List<SelectItem> getSelectList()
public boolean isEmptySelect()
public boolean addSelect(SelectExpression selectExpr)
selectExpr - the select expressionpublic boolean addSelect(Expression expr, java.lang.String asVar)
expr - the expressionasVar - the AS variablepublic Variable addSelectVariable(SelectExpression selectExpr)
selectExpr - the select expressionpublic void setSelect(java.lang.String... vars)
isSelectAll() property.vars - the variablespublic boolean addSelect(java.lang.String var)
var - the variablepublic boolean addSelect(java.lang.String... vars)
vars - the variablespublic boolean setSelectAll()
Copyright © 2025 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence