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

public abstract Class AbstractCaseExpressionStateObjectBuilder

extends AbstractConditionalExpressionStateObjectBuilder<ICaseExpressionStateObjectBuilder>
implements ICaseExpressionStateObjectBuilder
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.jpa.jpql.tools.model.ICaseExpressionStateObjectBuilder, org.eclipse.persistence.jpa.jpql.tools.model.IAbstractConditionalExpressionStateObjectBuilder, org.eclipse.persistence.jpa.jpql.tools.model.IScalarExpressionStateObjectBuilder
Known Direct Subclasses
org.eclipse.persistence.jpa.jpql.tools.model.DefaultCaseExpressionStateObjectBuilder
Imports
org.eclipse.persistence.jpa.jpql.tools.model.query.CaseExpressionStateObject, .StateObject, .WhenClauseStateObject

This abstract implementation of ICaseExpressionStateObjectBuilder adds support for creating a CASE expression.
Author
Pascal Filion
Since
2.4
Version
2.4

Field Summary

Modifier and TypeField and Description
private CaseExpressionStateObject
caseExpressionStateObject

Keeps track of the actual CaseExpressionStateObject since it is needed when creating new WhenClauseStateObject due to strongly typed parent.

Constructor Summary

AccessConstructor and Description
protected
AbstractCaseExpressionStateObjectBuilder(StateObject
The parent of the CASE expression to build, which is only required when a JPQL fragment needs to be parsed
parent
)

Creates a new AbstractCaseExpressionStateObjectBuilder.

Method Summary

Modifier and TypeMethod and Description
public CaseExpressionStateObject
buildStateObject()

Implements org.eclipse.persistence.jpa.jpql.tools.model.ICaseExpressionStateObjectBuilder.buildStateObject.

Creates the actual state object based on the information this builder gathered.
public ICaseExpressionStateObjectBuilder
Inherited from org.eclipse.persistence.jpa.jpql.tools.model.AbstractConditionalExpressionStateObjectBuilder:
allallOrAnyandanybetweenbetweencollectionPathcomparisoncomparisondifferentdifferentdifferentequalequalequalexistsexistsFALSEgreaterThangreaterThangreaterThangreaterThanOrEqualgreaterThanOrEqualgreaterThanOrEqualinininininininisEmptyisEmptyisNotEmptyisNotNullisNullisNullkeywordlikelikelikelikelowerlowerThanlowerThanlowerThanlowerThanOrEquallowerThanOrEquallowerThanOrEqualmembermembermemberOfnotBetweennotExistsnotInnotInnotInnotInnotLikenotLikenotLikenotMembernotMemberOfNULLorsomesubsubstringtrimtrimTRUEuppervariable

Field Detail

caseExpressionStateObjectback to summary
private CaseExpressionStateObject caseExpressionStateObject

Keeps track of the actual CaseExpressionStateObject since it is needed when creating new WhenClauseStateObject due to strongly typed parent.

Constructor Detail

AbstractCaseExpressionStateObjectBuilderback to summary
protected AbstractCaseExpressionStateObjectBuilder(StateObject parent)

Creates a new AbstractCaseExpressionStateObjectBuilder.

Parameters
parent:StateObject

The parent of the CASE expression to build, which is only required when a JPQL fragment needs to be parsed

Method Detail

buildStateObjectback to summary
public CaseExpressionStateObject buildStateObject()

Implements org.eclipse.persistence.jpa.jpql.tools.model.ICaseExpressionStateObjectBuilder.buildStateObject.

Doc from org.eclipse.persistence.jpa.jpql.tools.model.ICaseExpressionStateObjectBuilder.buildStateObject.

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

Returns:CaseExpressionStateObject

The newly created CaseExpressionStateObject

Annotations
@Override
whenback to summary
public ICaseExpressionStateObjectBuilder when(ICaseExpressionStateObjectBuilder when, ICaseExpressionStateObjectBuilder then)

Implements org.eclipse.persistence.jpa.jpql.tools.model.ICaseExpressionStateObjectBuilder.when.

Doc from org.eclipse.persistence.jpa.jpql.tools.model.ICaseExpressionStateObjectBuilder.when.

Creates a single WHEN expression.

Parameters
when:ICaseExpressionStateObjectBuilder

The WHEN expression

then:ICaseExpressionStateObjectBuilder

The THEN expression

Returns:ICaseExpressionStateObjectBuilder

This builder

Annotations
@Override