public class Statement extends AstNode
Constructor and Description |
---|
Statement() |
Modifier and Type | Method and Description |
---|---|
<ResultType,ExceptionType extends EcmException> |
accept(ExpressionVisitor<ResultType,ExceptionType> visitor)
This method accepts the given visitor and returns the result of its visit.
|
List<FieldOrderDescriptor> |
getFieldOrder()
Returns the list of field order descriptors, which prescribe the result set element order.
|
List<String> |
getFields()
Returns the list of fields that should be selected by the query.
|
Expression |
getWhere()
Returns the expression representing the where clause of the query.
|
void |
setFieldOrder(List<FieldOrderDescriptor> fieldOrder)
Sets the list of field order descriptors, which prescribe the result set element order.
|
void |
setFields(List<String> fields)
Sets list of fields that should be selected by the query.
|
void |
setWhere(Expression where)
Sets the expression representing the where clause of the query.
|
String |
toString() |
public List<String> getFields()
null
, all
available fields are selected.public List<FieldOrderDescriptor> getFieldOrder()
null
, the default ordering of the underlying object store is used.public Expression getWhere()
public void setFields(List<String> fields)
null
, all available fields
are selected.fields
- the field order descriptors to setpublic void setFieldOrder(List<FieldOrderDescriptor> fieldOrder)
null
, the default ordering of the underlying object store is used.fieldOrder
- the field order descriptorspublic void setWhere(Expression where)
where
- the where to setpublic <ResultType,ExceptionType extends EcmException> ResultType accept(ExpressionVisitor<ResultType,ExceptionType> visitor) throws ExceptionType extends EcmException
AstNode
accept
in class AstNode
visitor
- the visitor that implements the callbacksExceptionType
- indicates any exception during the visiting processExceptionType extends EcmException
Copyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.