Interface IScalarExpressionStateObjectBuilder<T extends IScalarExpressionStateObjectBuilder<T>>
- All Known Subinterfaces:
IAbstractConditionalExpressionStateObjectBuilder<T>
,ICaseExpressionStateObjectBuilder
,IConditionalExpressionStateObjectBuilder
,IEclipseLinkConditionalStateObjectBuilder
,IEclipseLinkSelectExpressionStateObjectBuilder
,IEclipseLinkSimpleSelectExpressionStateObjectBuilder
,INewValueStateObjectBuilder
,ISelectExpressionStateObjectBuilder
,ISimpleSelectExpressionStateObjectBuilder
- All Known Implementing Classes:
AbstractCaseExpressionStateObjectBuilder
,AbstractConditionalExpressionStateObjectBuilder
,AbstractConditionalStateObjectBuilderWrapper
,AbstractEclipseLinkSelectExpressionStateObjectBuilder
,AbstractEclipseLinkSimpleSelectExpressionStateObjectBuilder
,AbstractNewValueStateObjectBuilder
,AbstractScalarExpressionStateObjectBuilder
,AbstractSelectExpressionStateObjectBuilder
,AbstractSimpleSelectExpressionStateObjectBuilder
,DefaultCaseExpressionStateObjectBuilder
,DefaultConditionalExpressionStateObjectBuilder
,DefaultNewValueStateObjectBuilder
,DefaultSelectExpressionStateObjectBuilder
,DefaultSimpleSelectExpressionStateObjectBuilder
,EclipseLinkConditionalStateObjectBuilder
,EclipseLinkSelectExpressionStateObjectBuilder
,EclipseLinkSimpleSelectExpressionStateObjectBuilder
public interface IScalarExpressionStateObjectBuilder<T extends IScalarExpressionStateObjectBuilder<T>>
This builder can be used to easily create a scalar expression without having to create each
object manually.
- Since:
- 2.4
- Version:
- 2.4
-
Method Summary
Modifier and TypeMethodDescriptionCreates the expressionABS(x)
.Creates the expressionx + y
.Creates the expressionAVG(path)
.avgDistinct
(String path) Creates the expressionAVG(DISTINCT path)
.case_
(ICaseExpressionStateObjectBuilder builder) Creates a newCASE
expression.Create the expressionCOALESCE(scalar_expression {, scalar_expression}+)
.Create the expressionCOALESCE(scalar_expression {, scalar_expression}+)
.Creates the expressionCONCAT(string_primary, string_primary {, string_primary}*)
.Creates the expressionCONCAT(string_primary, string_primary {, string_primary}*)
.Creates the expressionCOUNT(identification_variable | state_field_path_expression | single_valued_object_path_expression)
.countDistinct
(String path) Creates the expressionCOUNT(DISTINCT identification_variable | state_field_path_expression | single_valued_object_path_expression)
.Creates the expression representingCURRENT_DATE
.Creates the expression representingCURRENT_TIME
.Creates the expression representingCURRENT_TIMESTAMP
.Creates a new date using the JDBC syntax of a date.Creates the expressionx / y
.entityType
(String entityTypeName) Creates a new entity type literal.enumLiteral
(Enum<? extends Enum<?>> enumConstant) Creates a new enum literal.Creates the expression<identifier>('functionName' {, expression}*)
.Creates the expression<identifier>('functionName' {, expression}*)
.Creates the expression<identifier>('functionName' {, expression}*)
.Returns the builder that can create aCASE
expression, which requires aIConditionalExpressionStateObjectBuilder
to build theWHEN
clauses.Creates the expressionINDEX(identification_variable)
.Creates the expressionLENGTH(expression)
.Creates the expressionLOCATE(string_primary, string_primary)
.Creates the expressionLOCATE(string_primary, string_primary [, simple_arithmetic_expression])
.Creates the expressionMAX(path)
.maxDistinct
(String path) Creates the expressionMAX(DISTINCT path)
.Creates the expressionAVG(path)
.minDistinct
(String path) Creates the expressionAVG(DISTINCT path)
.Creates the expression- x
.Creates the expressionMOD(simple_arithmetic_expression, simple_arithmetic_expression)
.Creates the expressionx * y
.Create the expressionNULLIF(scalar_expression, scalar_expression)
.Creates the numeric literal.Creates the numeric literal.Creates the input parameter.Creates a new state field path expression.Creates the expression+ x
.Creates the expressionSIZE(collection_valued_path_expression)
.Creates the expressionSQRT(x)
.Creates a new string literal.Creates an encapsulated expression:(expression)
.Creates the expressionx - y
.Creates the expressionSUM(path)
.sumDistinct
(String path) Creates the expressionSUM(path)
.Creates the expressionTYPE(identification_variable | single_valued_object_path_expression | input_parameter)
.
-
Method Details
-
abs
Creates the expressionABS(x)
.- Parameters:
builder
- The parameter of theABS
expression- Returns:
- This builder
-
add
Creates the expressionx + y
.- Parameters:
builder
- The right side of the addition expression- Returns:
- This builder
-
avg
Creates the expressionAVG(path)
.- Parameters:
path
- The state field path expression- Returns:
- This builder
-
avgDistinct
Creates the expressionAVG(DISTINCT path)
.- Parameters:
path
- The state field path expression- Returns:
- This builder
-
case_
Creates a newCASE
expression.- Parameters:
builder
- Thebuilder
of aCASE
expression- Returns:
- This builder
-
coalesce
Create the expressionCOALESCE(scalar_expression {, scalar_expression}+)
.- Parameters:
builder1
- The first scalar expressionbuilder2
- The second scalar expression- Returns:
- This builder
-
coalesce
Create the expressionCOALESCE(scalar_expression {, scalar_expression}+)
.- Parameters:
builder1
- The first scalar expressionbuilder2
- The second scalar expressionbuilders
- The subsequent scalar expressions- Returns:
- This builder
-
concat
Creates the expressionCONCAT(string_primary, string_primary {, string_primary}*)
.- Parameters:
builder1
- The first argument of the expressionbuilder2
- The second argument of the expression- Returns:
- This builder
-
concat
Creates the expressionCONCAT(string_primary, string_primary {, string_primary}*)
.- Parameters:
builder1
- The first argument of the expressionbuilder2
- The second argument of the expressionbuilders
- The subsequence arguments of the expression, which are optional- Returns:
- This builder
-
count
Creates the expressionCOUNT(identification_variable | state_field_path_expression | single_valued_object_path_expression)
.- Parameters:
path
- The state field path expression- Returns:
- This builder
-
countDistinct
Creates the expressionCOUNT(DISTINCT identification_variable | state_field_path_expression | single_valued_object_path_expression)
.- Parameters:
path
- The state field path expression- Returns:
- This builder
-
currentDate
T currentDate()Creates the expression representingCURRENT_DATE
.- Returns:
- This builder
-
currentTime
T currentTime()Creates the expression representingCURRENT_TIME
.- Returns:
- This builder
-
currentTimestamp
T currentTimestamp()Creates the expression representingCURRENT_TIMESTAMP
.- Returns:
- This builder
-
date
Creates a new date using the JDBC syntax of a date.- Returns:
- This builder
-
divide
Creates the expressionx / y
.- Parameters:
builder
- The right side of the division expression- Returns:
- This builder
-
entityType
Creates a new entity type literal.- Parameters:
entityTypeName
- The short name of the entity- Returns:
- This builder
-
enumLiteral
Creates a new enum literal.- Parameters:
enumConstant
- The enum constant- Returns:
- This builder
-
function
Creates the expression<identifier>('functionName' {, expression}*)
.- Parameters:
identifier
- The JPQL identifier that is used to identify the SQL expressionfunctionName
- The name of the native SQL functionarguments
- The arguments of the expression- Returns:
- This builder
-
function
Creates the expression<identifier>('functionName' {, expression}*)
.- Parameters:
identifier
- The JPQL identifier that is used to identify the SQL expressionfunctionName
- The name of the native SQL function- Returns:
- This builder
-
function
Creates the expression<identifier>('functionName' {, expression}*)
.- Parameters:
identifier
- The JPQL identifier that is used to identify the SQL expressionfunctionName
- The name of the native SQL functionarguments
- The arguments of the expression- Returns:
- This builder
-
getCaseBuilder
ICaseExpressionStateObjectBuilder getCaseBuilder()Returns the builder that can create aCASE
expression, which requires aIConditionalExpressionStateObjectBuilder
to build theWHEN
clauses.- Returns:
- The builder of a
CASE
expression
-
index
Creates the expressionINDEX(identification_variable)
.- Parameters:
variable
- The identification variable- Returns:
- This builder
-
length
Creates the expressionLENGTH(expression)
.- Parameters:
builder
- The encapsulated expression- Returns:
- This builder
-
locate
Creates the expressionLOCATE(string_primary, string_primary)
.- Parameters:
parameter1
- The first string primaryparameter2
- The second string primary- Returns:
- This builder
-
locate
Creates the expressionLOCATE(string_primary, string_primary [, simple_arithmetic_expression])
.- Parameters:
parameter1
- The first string primaryparameter2
- The second string primaryparameter3
- The position of the search within the string- Returns:
- This builder
-
max
Creates the expressionMAX(path)
.- Parameters:
path
- The state field path expression- Returns:
- This builder
-
maxDistinct
Creates the expressionMAX(DISTINCT path)
.- Parameters:
path
- The state field path expression- Returns:
- This builder
-
min
Creates the expressionAVG(path)
.- Parameters:
path
- The state field path expression- Returns:
- This builder
-
minDistinct
Creates the expressionAVG(DISTINCT path)
.- Parameters:
path
- The state field path expression- Returns:
- This builder
-
minus
Creates the expression- x
.- Parameters:
builder
- The expression that will have the plus sign prepended- Returns:
- This builder
-
mod
Creates the expressionMOD(simple_arithmetic_expression, simple_arithmetic_expression)
.- Parameters:
parameter1
- The first parameterparameter2
- The second parameter- Returns:
- This builder
-
multiply
Creates the expressionx * y
.- Parameters:
builder
- The right side of the multiply expression- Returns:
- This builder
-
nullIf
Create the expressionNULLIF(scalar_expression, scalar_expression)
.- Parameters:
builder1
- The first scalar expressionbuilder2
- The second scalar expression- Returns:
- This builder
-
numeric
Creates the numeric literal.- Parameters:
number
- The numeric literal- Returns:
- This builder
-
numeric
Creates the numeric literal.- Parameters:
number
- The numeric literal- Returns:
- This builder
-
parameter
Creates the input parameter.- Parameters:
parameter
- The named or positional input parameter- Returns:
- This builder
-
path
Creates a new state field path expression.- Parameters:
path
- The state field path path expression- Returns:
- This builder
-
plus
Creates the expression+ x
.- Parameters:
builder
- The expression that will have the plus sign prepended- Returns:
- This builder
-
size
Creates the expressionSIZE(collection_valued_path_expression)
.- Parameters:
path
- The collection-valued path expression- Returns:
- This builder
-
sqrt
Creates the expressionSQRT(x)
.- Parameters:
builder
- The parameter of theABS
expression- Returns:
- This builder
-
string
Creates a new string literal.- Parameters:
literal
- The string literal- Returns:
- This builder
-
sub
Creates an encapsulated expression:(expression)
.- Parameters:
builder
- The expression that will be encapsulated- Returns:
- This builder
-
subtract
Creates the expressionx - y
.- Parameters:
builder
- The right side of the addition expression- Returns:
- This builder
-
sum
Creates the expressionSUM(path)
.- Parameters:
path
- The state field path expression- Returns:
- This builder
-
sumDistinct
Creates the expressionSUM(path)
.- Parameters:
path
- The state field path expression- Returns:
- This builder
-
type
Creates the expressionTYPE(identification_variable | single_valued_object_path_expression | input_parameter)
.- Parameters:
path
- The identification variable or the input parameter- Returns:
- This builder
-