- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
Projection.BuilderBase.ProjectionImpl
Data query projection.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forProjection.static classProjection.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.Builderbuilder()Create a new fluent API builder to customize configuration.static Projection.Builderbuilder(Projection instance) Create a new fluent API builder from an existing instance.static Projectioncreate()Create a new instance with default values.static Projectiondelete()CreateDELETEDML statement.booleandistinct()Whether projection is distinct.Projection expression.property()Projection property.result()Projection return type limitation.static Projectionselect()CreateSELECTprojection with no additional arguments.static ProjectionCreateSELECT COUNTprojection.static ProjectionCreateSELECT DISTINCTprojection with no additional arguments.static ProjectionCreateSELECTprojection to check whether at least one records matching query criteria exists.static ProjectionselectFirst(int count) CreateSELECTprojection with returned records count limit.static Projectionupdate()CreateUPDATEDML 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
CreateSELECTprojection with no additional arguments. Query will return all and unmodified entity instances.- Returns:
- new instance of
Projection
-
selectDistinct
CreateSELECT DISTINCTprojection with no additional arguments. Query will return only distinct but unmodified entity instances.- Returns:
- new instance of
Projection
-
selectFirst
CreateSELECTprojection with returned records count limit. Query will return firstcountof unmodified entity instances.- Parameters:
count- returned records count limit- Returns:
- new instance of
Projection
-
selectCount
CreateSELECT COUNTprojection. Query will return number of records matching query criteria.- Returns:
- new instance of
Projection
-
selectExists
CreateSELECTprojection to check whether at least one records matching query criteria exists.- Returns:
- new instance of
Projection
-
delete
CreateDELETEDML statement.- Returns:
- new instance of
Projection
-
update
CreateUPDATEDML 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
truewhen projection is distinct orfalseotherwise
-