|
EclipseLink 2.4.1, build 'v20121003-ad44345' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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.
| Method Summary | |
|---|---|
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). |
| Method Detail |
|---|
T abs(T builder)
ABS(x).
builder - The parameter of the ABS expression
T add(T builder)
x + y.
builder - The right side of the addition expression
T avg(java.lang.String path)
AVG(path).
path - The state field path expression
T avgDistinct(java.lang.String path)
AVG(DISTINCT path).
path - The state field path expression
T case_(ICaseExpressionStateObjectBuilder builder)
CASE expression.
builder - The builder of a CASE
expression
T coalesce(T builder1,
T builder2,
T... builders)
COALESCE(scalar_expression {, scalar_expression}+).
- Parameters:
builder1 - The first scalar expressionbuilder2 - The second scalar expressionbuilders - The subsequent scalar expressions
- Returns:
- This This builder
T 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 optional
T count(java.lang.String path)
COUNT(identification_variable |
state_field_path_expression |
single_valued_object_path_expression).
path - The state field path expression
T countDistinct(java.lang.String path)
COUNT(DISTINCT identification_variable |
state_field_path_expression |
single_valued_object_path_expression).
path - The state field path expression
T 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 addition expression
T entityType(java.lang.String entityTypeName)
entityTypeName - The short name of the entity
T enumLiteral(java.lang.Enum<? extends java.lang.Enum<?>> enumConstant)
enumConstant - The enum constant
T 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 expression
T 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 expression
ICaseExpressionStateObjectBuilder 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 variable
T length(T builder)
LENGTH(expression).
builder - The encapsulated expression
T locate(T parameter1,
T parameter2)
LOCATE(string_primary, string_primary).
parameter1 - The first string primaryparameter2 - The second string primary
T 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 string
T max(java.lang.String path)
MAX(path).
path - The state field path expression
T maxDistinct(java.lang.String path)
MAX(DISTINCT path).
path - The state field path expression
T min(java.lang.String path)
AVG(path).
path - The state field path expression
T minDistinct(java.lang.String path)
AVG(DISTINCT path).
path - The state field path expression
T minus(T builder)
- x.
builder - The expression that will have the plus sign prepended
T mod(T parameter1,
T parameter2)
MOD(simple_arithmetic_expression, simple_arithmetic_expression).
parameter1 - The first parameterparameter2 - The second parameter
T multiply(T builder)
x × y.
builder - The right side of the addition expression
T nullIf(T builder1,
T builder2)
NULLIF(scalar_expression, scalar_expression).
- Parameters:
builder1 - The first scalar expressionbuilder2 - The second scalar expression
- Returns:
- This This builder
T numeric(java.lang.Number number)
number - The numeric literal
T numeric(java.lang.String number)
number - The numeric literal
T parameter(java.lang.String parameter)
parameter - The named or positional input parameter
T path(java.lang.String path)
path - The state field path path expression
T plus(T builder)
+ x.
builder - The expression that will have the plus sign prepended
T size(java.lang.String path)
SIZE(collection_valued_path_expression).
path - The collection-valued path expression
T sqrt(T builder)
SQRT(x).
builder - The parameter of the ABS expression
T string(java.lang.String literal)
literal - The string literal
T sub(T builder)
(expression).
builder - The expression that will be encapsulated
T subtract(T builder)
x - y.
builder - The right side of the addition expression
T sum(java.lang.String path)
SUM(path).
path - The state field path expression
T sumDistinct(java.lang.String path)
SUM(path).
path - The state field path expression
T type(java.lang.String path)
TYPE(identification_variable | single_valued_object_path_expression | input_parameter).
path - The identification variable or the input parameter
|
EclipseLink 2.4.1, build 'v20121003-ad44345' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||