Class ProtoNestableTOExpr<T>

java.lang.Object
org.litebridge.orm.expression.AbstractAliasable
org.litebridge.orm.expression.ProtoNestableTOExpr<T>
All Implemented Interfaces:
Aliasable, ExpressionSpec, ProtoExpressionSpec, ProtoNestableExpressionSpec, Resolvable, TypeOverride<T>, TypeOverrideExpressionSpec<T>

public final class ProtoNestableTOExpr<T> extends AbstractAliasable implements ProtoNestableExpressionSpec, TypeOverrideExpressionSpec<T>
Type override proto-expression that allows nesting other proto-expressions.

This record is used to create a nested chain of expression instances (e.g. UpperSpec) when table information is available.

  • Constructor Details

    • ProtoNestableTOExpr

      public ProtoNestableTOExpr(Class<T> typeOverride, Class<? extends ExpressionSpec> type, ExpressionSpec target, @Nullable String alias, @Nullable Object @Nullable [] args)
      Parameters:
      typeOverride - The type of the expression result.
      type - The type of expression to create.
      target - The target expression; typically a column name to select via SelectColumnSpec
      alias - The column alias to use, or null if not specified.
      args - Extra expression-specific arguments.
    • ProtoNestableTOExpr

      public ProtoNestableTOExpr(Class<T> typeOverride, Class<? extends ExpressionSpec> type, ExpressionSpec target, @Nullable String alias)
      Constructs a new ProtoTOColumnExpression instance with empty extra arguments.
      Parameters:
      typeOverride - The type of the expression result.
      type - The type of expression to create.
      target - The target expression; typically a column name to select via SelectColumnSpec
      alias - The column alias to use, or null if not specified.
    • ProtoNestableTOExpr

      public ProtoNestableTOExpr(Class<T> typeOverride, Class<? extends ExpressionSpec> type, String column, @Nullable String alias)
      Constructs a new ProtoTOColumnExpression instance via column name.
      Parameters:
      typeOverride - The type of the expression result.
      type - The type of expression to create.
      column - The target column name to select.
      alias - The column alias to use, or null if not specified.
    • ProtoNestableTOExpr

      public ProtoNestableTOExpr(Class<T> typeOverride, Class<? extends ExpressionSpec> type, String column, @Nullable String alias, @Nullable Object @Nullable [] args)
      Constructs a new ProtoTOColumnExpression instance.
      Parameters:
      typeOverride - The type of the expression result.
      type - The type of expression to create.
      column - The target column name to select.
      alias - The column alias to use, or null if not specified.
      args - Extra expression-specific arguments.
  • Method Details