Class DtoSelector<DTO>

java.lang.Object
org.litebridgedb.orm.api.select.impl.AbstractSelector<DTO,DtoSelectSpec>
org.litebridgedb.orm.api.dto.DtoSelector<DTO>
All Implemented Interfaces:
org.litebridgedb.orm.api.select.SelectTerminal<DTO>

public final class DtoSelector<DTO> extends org.litebridgedb.orm.api.select.impl.AbstractSelector<DTO,DtoSelectSpec>
  • Constructor Details

  • Method Details

    • select

      public DtoFromClauseTerminal<DTO> select(String... fields)
    • select

      public DtoFromClauseTerminal<DTO> select(Aliased... fields)
    • select

      public DtoFromClauseTerminal<DTO> select()
    • oneOrNull

      public @Nullable DTO oneOrNull()
      Description copied from interface: org.litebridgedb.orm.api.select.SelectTerminal
      Executes the query and expects exactly one result.
      Specified by:
      oneOrNull in interface org.litebridgedb.orm.api.select.SelectTerminal<DTO>
      Specified by:
      oneOrNull in class org.litebridgedb.orm.api.select.impl.AbstractSelector<DTO,DtoSelectSpec>
      Returns:
      the single result, or null when no row matches
    • firstOrNull

      public @Nullable DTO firstOrNull()
      Description copied from interface: org.litebridgedb.orm.api.select.SelectTerminal
      Executes the query and returns the first row if present.
      Specified by:
      firstOrNull in interface org.litebridgedb.orm.api.select.SelectTerminal<DTO>
      Specified by:
      firstOrNull in class org.litebridgedb.orm.api.select.impl.AbstractSelector<DTO,DtoSelectSpec>
      Returns:
      the first result, or null when no row matches
    • list

      public List<DTO> list()
      Description copied from interface: org.litebridgedb.orm.api.select.SelectTerminal
      Executes the query and materializes all results into a List.
      Specified by:
      list in interface org.litebridgedb.orm.api.select.SelectTerminal<DTO>
      Specified by:
      list in class org.litebridgedb.orm.api.select.impl.AbstractSelector<DTO,DtoSelectSpec>
      Returns:
      list of all matching results (possibly empty)
    • selectSpec

      protected DtoSelectSpec selectSpec()
      Overrides:
      selectSpec in class org.litebridgedb.orm.api.select.impl.AbstractSelector<DTO,DtoSelectSpec>
    • classFieldAccessorCache

      public ClassFieldAccessorCache classFieldAccessorCache()