Interface ColumnExpression

All Superinterfaces:
SelectExpression
All Known Subinterfaces:
ColumnReference
All Known Implementing Classes:
AbstractColumnExpression, SelectColumn

public interface ColumnExpression extends SelectExpression
A column-based expression within a SQL query.

This interface serves as a contract for defining expressions that specifically target database columns. It extends SelectExpression, requiring the implementation of methods to produce SQL representations and mandates the ability to retrieve the underlying Column instance associated with the expression.

  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable String
    Retrieves the alias of this expression.
    Retrieves the target column of this expression.
    @Nullable String
    Retrieves the parent table alias for the expression.

    Methods inherited from interface org.litebridge.db.spi.expression.SelectExpression

    toSql, toSql
  • Method Details

    • column

      Column column()
      Retrieves the target column of this expression.
      Returns:
      The target column.
    • alias

      @Nullable String alias()
      Retrieves the alias of this expression.
      Returns:
      The optional alias.
    • tableAlias

      @Nullable String tableAlias()
      Retrieves the parent table alias for the expression.
      Returns:
      The optional parent table alias.