java.lang.Object
com.github.tadukoo.database.mysql.syntax.reference.ColumnRef

public class ColumnRef extends Object
Column Ref is a reference to a column in SQL
Version:
Alpha v.0.3
Author:
Logan Ferree (Tadukoo)
  • Field Details

    • tableName

      private final String tableName
      The name of the table the column is on
    • columnName

      private final String columnName
      The name of the column
    • alias

      private final String alias
      The alias to use for the column
  • Constructor Details

    • ColumnRef

      private ColumnRef(String tableName, String columnName, String alias)
      Constructs a ColumnRef using the given parameters
      Parameters:
      tableName - The name of the table the column is on
      columnName - The name of the column
      alias - The alias to use for the column
  • Method Details

    • builder

      public static ColumnRef.TableNameOrColumnName builder()
      Returns:
      A builder to use to build a ColumnRef
    • getTableName

      public String getTableName()
      Returns:
      The name of the table the column is on
    • getColumnName

      public String getColumnName()
      Returns:
      The name of the column
    • getAlias

      public String getAlias()
      Returns:
      The alias to use for the column
    • toString

      public String toString()
      Overrides:
      toString in class Object