- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
Projection.BuilderBase.ProjectionImpl
Data query projection.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Fluent API builder forProjection
.static class
Projection.BuilderBase<BUILDER extends Projection.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends Projection> Fluent API builder base forProjection
. -
Method Summary
Modifier and TypeMethodDescriptionaction()
Projection action, e.g.static Projection.Builder
builder()
Create a new fluent API builder to customize configuration.static Projection.Builder
builder
(Projection instance) Create a new fluent API builder from an existing instance.static Projection
create()
Create a new instance with default values.static Projection
delete()
CreateDELETE
DML statement.boolean
distinct()
Whether projection is distinct.Projection expression.property()
Projection property.result()
Projection return type limitation.static Projection
select()
CreateSELECT
projection with no additional arguments.static Projection
CreateSELECT COUNT
projection.static Projection
CreateSELECT DISTINCT
projection with no additional arguments.static Projection
CreateSELECT
projection to check whether at least one records matching query criteria exists.static Projection
selectFirst
(int count) CreateSELECT
projection with returned records count limit.static Projection
update()
CreateUPDATE
DML statement.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance
- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance with default values.- Returns:
- a new instance
-
select
CreateSELECT
projection with no additional arguments. Query will return all and unmodified entity instances.- Returns:
- new instance of
Projection
-
selectDistinct
CreateSELECT DISTINCT
projection with no additional arguments. Query will return only distinct but unmodified entity instances.- Returns:
- new instance of
Projection
-
selectFirst
CreateSELECT
projection with returned records count limit. Query will return firstcount
of unmodified entity instances.- Parameters:
count
- returned records count limit- Returns:
- new instance of
Projection
-
selectCount
CreateSELECT COUNT
projection. Query will return number of records matching query criteria.- Returns:
- new instance of
Projection
-
selectExists
CreateSELECT
projection to check whether at least one records matching query criteria exists.- Returns:
- new instance of
Projection
-
delete
CreateDELETE
DML statement.- Returns:
- new instance of
Projection
-
update
CreateUPDATE
DML statement.- Returns:
- new instance of
Projection
-
action
ProjectionAction action()Projection action, e.g.SELECT
,DELETE
,UPDATE
.- Returns:
- the projection action
-
result
Optional<ProjectionResult> result()Projection return type limitation.- Returns:
- the return type limitation
-
expression
Optional<ProjectionExpression> expression()Projection expression.- Returns:
- the projection expression.
-
property
Projection property.- Returns:
- the projection property.
-
distinct
boolean distinct()Whether projection is distinct.- Returns:
- value of
true
when projection is distinct orfalse
otherwise
-