public interface IScalarExpressionStateObjectBuilder<T extends IScalarExpressionStateObjectBuilder<T>>
Modifier and Type | Method and Description |
---|---|
T |
abs(T builder)
Creates the expression
ABS(x) . |
T |
add(T builder)
Creates the expression
x + y . |
T |
avg(java.lang.String path)
Creates the expression
AVG(path) . |
T |
avgDistinct(java.lang.String path)
Creates the expression
AVG(DISTINCT path) . |
T |
case_(ICaseExpressionStateObjectBuilder builder)
Creates a new
CASE expression. |
T |
coalesce(T builder1,
T builder2,
T... builders)
Create the expression
COALESCE(scalar_expression {, scalar_expression}+) . |
T |
concat(T builder1,
T builder2,
T... builders)
Creates the expression
CONCAT(string_primary, string_primary {, string_primary}*) . |
T |
count(java.lang.String path)
Creates the expression
COUNT(identification_variable |
state_field_path_expression |
single_valued_object_path_expression) . |
T |
countDistinct(java.lang.String path)
Creates the expression
COUNT(DISTINCT identification_variable |
state_field_path_expression |
single_valued_object_path_expression) . |
T |
currentDate()
Creates the expression representing
CURRENT_DATE . |
T |
currentTime()
Creates the expression representing
CURRENT_TIME . |
T |
currentTimestamp()
Creates the expression representing
CURRENT_TIMESTAMP . |
T |
date(java.lang.String jdbcDate)
Creates a new date using the JDBC syntax of a date.
|
T |
divide(T builder)
Creates the expression
x / y . |
T |
entityType(java.lang.String entityTypeName)
Creates a new entity type literal.
|
T |
enumLiteral(java.lang.Enum<? extends java.lang.Enum<?>> enumConstant)
Creates a new enum literal.
|
T |
function(java.lang.String identifier,
java.lang.String functionName,
java.lang.String... arguments)
Creates the expression
<identifier>('functionName' {, expression}*) . |
T |
function(java.lang.String identifier,
java.lang.String functionName,
T... arguments)
Creates the expression
<identifier>('functionName' {, expression}*) . |
ICaseExpressionStateObjectBuilder |
getCaseBuilder()
Returns the builder that can create a
CASE expression, which requires a
IConditionalExpressionStateObjectBuilder to build the WHEN clauses. |
T |
index(java.lang.String variable)
Creates the expression
INDEX(identification_variable) . |
T |
length(T builder)
Creates the expression
LENGTH(expression) . |
T |
locate(T parameter1,
T parameter2)
Creates the expression
LOCATE(string_primary, string_primary) . |
T |
locate(T parameter1,
T parameter2,
T parameter3)
Creates the expression
LOCATE(string_primary, string_primary [, simple_arithmetic_expression]) . |
T |
max(java.lang.String path)
Creates the expression
MAX(path) . |
T |
maxDistinct(java.lang.String path)
Creates the expression
MAX(DISTINCT path) . |
T |
min(java.lang.String path)
Creates the expression
AVG(path) . |
T |
minDistinct(java.lang.String path)
Creates the expression
AVG(DISTINCT path) . |
T |
minus(T builder)
Creates the expression
- x . |
T |
mod(T parameter1,
T parameter2)
Creates the expression
MOD(simple_arithmetic_expression, simple_arithmetic_expression) . |
T |
multiply(T builder)
Creates the expression
x * y . |
T |
nullIf(T builder1,
T builder2)
Create the expression
NULLIF(scalar_expression, scalar_expression) . |
T |
numeric(java.lang.Number number)
Creates the numeric literal.
|
T |
numeric(java.lang.String number)
Creates the numeric literal.
|
T |
parameter(java.lang.String parameter)
Creates the input parameter.
|
T |
path(java.lang.String path)
Creates a new state field path expression.
|
T |
plus(T builder)
Creates the expression
+ x . |
T |
size(java.lang.String path)
Creates the expression
SIZE(collection_valued_path_expression) . |
T |
sqrt(T builder)
Creates the expression
SQRT(x) . |
T |
string(java.lang.String literal)
Creates a new string literal.
|
T |
sub(T builder)
Creates an encapsulated expression:
(expression) . |
T |
subtract(T builder)
Creates the expression
x - y . |
T |
sum(java.lang.String path)
Creates the expression
SUM(path) . |
T |
sumDistinct(java.lang.String path)
Creates the expression
SUM(path) . |
T |
type(java.lang.String path)
Creates the expression
TYPE(identification_variable | single_valued_object_path_expression | input_parameter) . |
T abs(T builder)
ABS(x)
.builder
- The parameter of the ABS
expressionT add(T builder)
x + y
.builder
- The right side of the addition expressionT avg(java.lang.String path)
AVG(path)
.path
- The state field path expressionT avgDistinct(java.lang.String path)
AVG(DISTINCT path)
.path
- The state field path expressionT case_(ICaseExpressionStateObjectBuilder builder)
CASE
expression.builder
- The builder
of a CASE
expressionT coalesce(T builder1, T builder2, T... builders)
COALESCE(scalar_expression {, scalar_expression}+)
.builder1
- The first scalar expressionbuilder2
- The second scalar expressionbuilders
- The subsequent scalar expressionsT concat(T builder1, T builder2, T... builders)
CONCAT(string_primary, string_primary {, string_primary}*)
.builder1
- The first argument of the expressionbuilder2
- The second argument of the expressionbuilders
- The subsequence arguments of the expression, which are optionalT count(java.lang.String path)
COUNT(identification_variable |
state_field_path_expression |
single_valued_object_path_expression)
.path
- The state field path expressionT countDistinct(java.lang.String path)
COUNT(DISTINCT identification_variable |
state_field_path_expression |
single_valued_object_path_expression)
.path
- The state field path expressionT currentDate()
CURRENT_DATE
.T currentTime()
CURRENT_TIME
.T currentTimestamp()
CURRENT_TIMESTAMP
.T date(java.lang.String jdbcDate)
T divide(T builder)
x / y
.builder
- The right side of the division expressionT entityType(java.lang.String entityTypeName)
entityTypeName
- The short name of the entityT enumLiteral(java.lang.Enum<? extends java.lang.Enum<?>> enumConstant)
enumConstant
- The enum constantT function(java.lang.String identifier, java.lang.String functionName, java.lang.String... arguments)
<identifier>('functionName' {, expression}*)
.identifier
- The JPQL identifier that is used to identify the SQL expressionfunctionName
- The name of the native SQL functionarguments
- The arguments of the expressionT function(java.lang.String identifier, java.lang.String functionName, T... arguments)
<identifier>('functionName' {, expression}*)
.identifier
- The JPQL identifier that is used to identify the SQL expressionfunctionName
- The name of the native SQL functionarguments
- The arguments of the expressionICaseExpressionStateObjectBuilder getCaseBuilder()
CASE
expression, which requires a
IConditionalExpressionStateObjectBuilder
to build the WHEN
clauses.CASE
expressionT index(java.lang.String variable)
INDEX(identification_variable)
.variable
- The identification variableT length(T builder)
LENGTH(expression)
.builder
- The encapsulated expressionT locate(T parameter1, T parameter2)
LOCATE(string_primary, string_primary)
.parameter1
- The first string primaryparameter2
- The second string primaryT locate(T parameter1, T parameter2, T parameter3)
LOCATE(string_primary, string_primary [, simple_arithmetic_expression])
.parameter1
- The first string primaryparameter2
- The second string primaryparameter3
- The position of the search within the stringT max(java.lang.String path)
MAX(path)
.path
- The state field path expressionT maxDistinct(java.lang.String path)
MAX(DISTINCT path)
.path
- The state field path expressionT min(java.lang.String path)
AVG(path)
.path
- The state field path expressionT minDistinct(java.lang.String path)
AVG(DISTINCT path)
.path
- The state field path expressionT minus(T builder)
- x
.builder
- The expression that will have the plus sign prependedT mod(T parameter1, T parameter2)
MOD(simple_arithmetic_expression, simple_arithmetic_expression)
.parameter1
- The first parameterparameter2
- The second parameterT multiply(T builder)
x * y
.builder
- The right side of the multiply expressionT nullIf(T builder1, T builder2)
NULLIF(scalar_expression, scalar_expression)
.builder1
- The first scalar expressionbuilder2
- The second scalar expressionT numeric(java.lang.Number number)
number
- The numeric literalT numeric(java.lang.String number)
number
- The numeric literalT parameter(java.lang.String parameter)
parameter
- The named or positional input parameterT path(java.lang.String path)
path
- The state field path path expressionT plus(T builder)
+ x
.builder
- The expression that will have the plus sign prependedT size(java.lang.String path)
SIZE(collection_valued_path_expression)
.path
- The collection-valued path expressionT sqrt(T builder)
SQRT(x)
.builder
- The parameter of the ABS
expressionT string(java.lang.String literal)
literal
- The string literalT sub(T builder)
(expression)
.builder
- The expression that will be encapsulatedT subtract(T builder)
x - y
.builder
- The right side of the addition expressionT sum(java.lang.String path)
SUM(path)
.path
- The state field path expressionT sumDistinct(java.lang.String path)
SUM(path)
.path
- The state field path expressionT type(java.lang.String path)
TYPE(identification_variable | single_valued_object_path_expression | input_parameter)
.path
- The identification variable or the input parameter