Interface Projection

All Superinterfaces:
Prototype.Api
All Known Implementing Classes:
Projection.BuilderBase.ProjectionImpl

public interface Projection extends Prototype.Api
Data query projection.
See Also:
  • Method Details

    • builder

      static Projection.Builder builder()
      Create a new fluent API builder to customize configuration.
      Returns:
      a new builder
    • builder

      static Projection.Builder builder(Projection instance)
      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

      static Projection create()
      Create a new instance with default values.
      Returns:
      a new instance
    • select

      static Projection select()
      Create SELECT projection with no additional arguments. Query will return all and unmodified entity instances.
      Returns:
      new instance of Projection
    • selectDistinct

      static Projection selectDistinct()
      Create SELECT DISTINCT projection with no additional arguments. Query will return only distinct but unmodified entity instances.
      Returns:
      new instance of Projection
    • selectFirst

      static Projection selectFirst(int count)
      Create SELECT projection with returned records count limit. Query will return first count of unmodified entity instances.
      Parameters:
      count - returned records count limit
      Returns:
      new instance of Projection
    • selectCount

      static Projection selectCount()
      Create SELECT COUNT projection. Query will return number of records matching query criteria.
      Returns:
      new instance of Projection
    • selectExists

      static Projection selectExists()
      Create SELECT projection to check whether at least one records matching query criteria exists.
      Returns:
      new instance of Projection
    • delete

      static Projection delete()
      Create DELETE DML statement.
      Returns:
      new instance of Projection
    • update

      static Projection update()
      Create UPDATE DML statement.
      Returns:
      new instance of Projection
    • action

      Projection action, e.g. SELECT, DELETE, UPDATE.
      Returns:
      the projection action
    • result

      Projection return type limitation.
      Returns:
      the return type limitation
    • expression

      Projection expression.
      Returns:
      the projection expression.
    • property

      Optional<Property> property()
      Projection property.
      Returns:
      the projection property.
    • distinct

      boolean distinct()
      Whether projection is distinct.
      Returns:
      value of true when projection is distinct or false otherwise