Class DtoJoinSpec

java.lang.Object
org.litebridge.orm.api.select.impl.AbstractConditionBasedSpec
org.litebridge.orm.api.select.impl.AbstractJoinSpec
org.litebridge.orm.api.dto.DtoJoinSpec
All Implemented Interfaces:
DtoDataSpec, JoinSpec

public final class DtoJoinSpec extends org.litebridge.orm.api.select.impl.AbstractJoinSpec implements DtoDataSpec
Specification for a JOIN clause in a DTO-based query.
  • Constructor Details

    • DtoJoinSpec

      public DtoJoinSpec(Class<?> dtoClass, OrmTable ormTable, Table table, SelectExpressionMapper selectExpressionMapper)
      Creates a new instance of DtoJoinSpec.
      Parameters:
      dtoClass - the class of the DTO being joined
      ormTable - the metadata of the table being joined
      table - the database table representation
      selectExpressionMapper - the mapper for select expressions
  • Method Details

    • dtoClass

      public Class<?> dtoClass()
      Returns the DTO class being joined.
      Returns:
      the DTO class
    • dtoTable

      public OrmTable dtoTable()
      Description copied from interface: DtoDataSpec
      Returns the ORM table metadata for the DTO.
      Specified by:
      dtoTable in interface DtoDataSpec
      Returns:
      the ORM table metadata
    • getFieldColumns

      public List<DtoSelectSpec.FieldColumn> getFieldColumns()
      Returns the list of field columns for this join.
      Returns:
      the list of field columns
    • setFieldColumns

      public void setFieldColumns(@Nullable List<DtoSelectSpec.FieldColumn> fieldColumns)
      Sets the list of field columns for this join.
      Parameters:
      fieldColumns - the list of field columns