Class DtoProtoExpressionResolver

java.lang.Object
org.litebridge.orm.api.select.model.ProtoExpressionResolver
org.litebridge.orm.api.select.dto.DtoProtoExpressionResolver

public final class DtoProtoExpressionResolver extends ProtoExpressionResolver
Resolves proto-expressions into DTO-based select expressions.
  • Constructor Details

    • DtoProtoExpressionResolver

      public DtoProtoExpressionResolver(TableRegistry tableRegistry)
      Creates a new instance of DtoProtoExpressionResolver without a select specification.
      Parameters:
      tableRegistry - the table registry
  • Method Details

    • resolveSelectColumnSpec

      protected ColumnExpressionSpec resolveSelectColumnSpec(Resolvable resolvable, @Nullable OrmTable ormTable, Table table, @Nullable String tableAlias, ClauseType clause)
      Description copied from class: ProtoExpressionResolver
      Resolves a resolvable into a column expression specification.
      Specified by:
      resolveSelectColumnSpec in class ProtoExpressionResolver
      Parameters:
      resolvable - the resolvable to resolve
      ormTable - the ORM table metadata, or null
      table - the target database table
      tableAlias - optional table alias
      clause - the clause type where the expression is being used
      Returns:
      the resolved column expression specification
    • resolveSelectColumnSpec

      protected Stream<ExpressionSpec> resolveSelectColumnSpec(QueryField queryField, @Nullable OrmTable ormTable, Table table, @Nullable String tableAlias, ClauseType clause)
      Description copied from class: ProtoExpressionResolver
      Resolves a query field into a column expression specification.
      Specified by:
      resolveSelectColumnSpec in class ProtoExpressionResolver
      Parameters:
      queryField - the query field to resolve
      ormTable - the ORM table metadata, or null
      table - the target database table
      clause - the clause type where the expression is being used
      Returns:
      the resolved column expression specification
    • getColumn

      protected Column getColumn(Resolvable resolvable, @Nullable OrmTable ormTable, Table table, ClauseType clause)
      Description copied from class: ProtoExpressionResolver
      Returns the database column for a resolvable.
      Specified by:
      getColumn in class ProtoExpressionResolver
      Parameters:
      resolvable - the resolvable to get the column for
      ormTable - the ORM table metadata, or null
      table - the target database table
      clause - the clause type where the expression is being used
      Returns:
      the database column