public class OptionalSyntax extends Object
Constructor and Description |
---|
OptionalSyntax(QueryMessage mess)
Constructor OptionalSyntax
|
Modifier and Type | Method and Description |
---|---|
String |
generate()
Method to get the string value for the query message
|
QueryMessage |
getMessage()
Method to get the query message
|
OptionalSyntax |
orderBy(Path<?>... path)
Method to get the optional syntax for order by operator
|
OptionalSyntax |
orderByAscending(Path<?>... path)
Method to get the optional syntax for order by asc operator
|
OptionalSyntax |
orderByDescending(Path<?>... path)
Method to get the optional syntax for order by desc operator
|
void |
setMessage(QueryMessage message)
Method to set the query message
|
OptionalSyntax |
skip(int num)
Method to get the optional syntax for skip operator
|
OptionalSyntax |
take(int num)
Method to get the optional syntax for take operator
|
String |
toString()
}
|
OptionalSyntax |
where(Expression<?>... expression)
Method to get the optional syntax for where operator
|
public OptionalSyntax(QueryMessage mess)
mess
- the query messagepublic OptionalSyntax where(Expression<?>... expression)
expression
- the expressionpublic OptionalSyntax orderBy(Path<?>... path)
Path
- the pathpublic OptionalSyntax orderByAscending(Path<?>... path)
Path
- the pathpublic OptionalSyntax orderByDescending(Path<?>... path)
Path
- the pathpublic OptionalSyntax skip(int num)
num
- the numberpublic OptionalSyntax take(int num)
num
- the numberpublic QueryMessage getMessage()
public void setMessage(QueryMessage message)
message
- the query messagepublic String generate()
Copyright © 2021. All Rights Reserved.