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

public class TableRef extends Object
Table Ref is used as a reference to a Table in SQL.
Version:
Alpha v.0.3
Author:
Logan Ferree (Tadukoo)
  • Field Details

    • tableName

      private final String tableName
      The name of the table
    • alias

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

    • TableRef

      private TableRef(String tableName, String alias)
      Constructs a new TableRef using the given parameters.
      Parameters:
      tableName - The name of the table
      alias - The alias to use for the table
  • Method Details

    • builder

      public static TableRef.TableName builder()
      Returns:
      A new builder to use to build a TableRef
    • getTableName

      public String getTableName()
      Returns:
      The name of the table
    • getAlias

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

      public String toString()
      Overrides:
      toString in class Object