Top Description Methods
org.eclipse.persistence.jpa.jpql.tools.model

public Interface ICaseExpressionStateObjectBuilder

extends IAbstractConditionalExpressionStateObjectBuilder<ICaseExpressionStateObjectBuilder>
Known Direct Implementers
org.eclipse.persistence.jpa.jpql.tools.model.AbstractCaseExpressionStateObjectBuilder
Imports
org.eclipse.persistence.jpa.jpql.tools.model.query.CaseExpressionStateObject

This builder is responsible to create a CASE expression.
Author
Pascal Filion
Since
2.4
Version
2.4
See Also
ISimpleSelectExpressionStateObjectBuilder#getCaseBuilder()

Method Summary

Modifier and TypeMethod and Description
public CaseExpressionStateObject

Returns:

The newly created CaseExpressionStateObject
buildStateObject
()

Creates the actual state object based on the information this builder gathered.

public ICaseExpressionStateObjectBuilder

Returns:

This builder
when
(ICaseExpressionStateObjectBuilder
The WHEN expression
when
,
ICaseExpressionStateObjectBuilder
The THEN expression
then
)

Creates a single WHEN expression.

Inherited from org.eclipse.persistence.jpa.jpql.tools.model.IAbstractConditionalExpressionStateObjectBuilder:
allandanybetweencollectionPathdifferentdifferentdifferentequalequalequalexistsFALSEgreaterThangreaterThangreaterThangreaterThanOrEqualgreaterThanOrEqualgreaterThanOrEqualininininisEmptyisNotEmptyisNotNullisNulllikelikelikelowerlowerThanlowerThanlowerThanlowerThanOrEquallowerThanOrEquallowerThanOrEqualmembermemberOfnotBetweennotExistsnotInnotInnotInnotInnotLikenotLikenotLikenotMembernotMemberOfNULLorsomesubsubstringtrimtrimTRUEuppervariable

Method Detail

buildStateObjectback to summary
public CaseExpressionStateObject buildStateObject()

Creates the actual state object based on the information this builder gathered.

Returns:CaseExpressionStateObject

The newly created CaseExpressionStateObject

whenback to summary
public ICaseExpressionStateObjectBuilder when(ICaseExpressionStateObjectBuilder when, ICaseExpressionStateObjectBuilder then)

Creates a single WHEN expression.

Parameters
when:ICaseExpressionStateObjectBuilder

The WHEN expression

then:ICaseExpressionStateObjectBuilder

The THEN expression

Returns:ICaseExpressionStateObjectBuilder

This builder