Interface ProtoNestableExpressionSpec

All Superinterfaces:
ExpressionSpec, ProtoExpressionSpec, Resolvable
All Known Implementing Classes:
ProtoNestableBasicExprSpec, ProtoNestableTOExpr

public sealed interface ProtoNestableExpressionSpec extends ProtoExpressionSpec permits ProtoNestableBasicExprSpec, ProtoNestableTOExpr<T>
A proto-expression capable of nesting other proto-expressions.

This interface is a specialised extension of ProtoExpressionSpec and encapsulates specifications for expressions that can be nested within other expressions.

  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    Retrieves the column name associated with the target expression.
    The nested target expression.

    Methods inherited from interface org.litebridgedb.orm.expression.ProtoExpressionSpec

    alias, args

    Methods inherited from interface org.litebridgedb.orm.expression.Resolvable

    type
  • Method Details

    • target

      ExpressionSpec target()
      The nested target expression.

      Target expressions are typically a column name to select via SelectColumnSpec or SelectFieldSpec, but are not limited to these.

      Returns:
      the nested target expression.
    • column

      default String column()
      Retrieves the column name associated with the target expression.

      The default implementation handles various types of target expressions and returns the appropriate column name.

      Specified by:
      column in interface Resolvable
      Returns:
      the column name retrieved from the target expression.
      Throws:
      IllegalArgumentException - if the target expression is of an invalid type.