Class TableAlias

java.lang.Object
org.castor.cpa.persistence.sql.query.Qualifier
org.castor.cpa.persistence.sql.query.TableAlias
All Implemented Interfaces:
QueryObject

public final class TableAlias extends Qualifier
Visitor constructing queryString.
Version:
$Revision: 8469 $ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
Author:
Dennis Butterstein, Ralf Joachim
  • Constructor Details

    • TableAlias

      public TableAlias(String table, String name)
      Method constructing a table from a string to be aliased by the second passed string.
      Parameters:
      table - String to construct table with.
      name - String used to alias the table.
    • TableAlias

      public TableAlias(Table table, String name)
      Method constructing a new TableAlias by taking a pre-constructed table and a string to be used as alias for the given table.
      Parameters:
      table - Table to be aliased.
      name - String to be used to alias table.
  • Method Details

    • getTable

      public Table getTable()
      Get method returning table currently set.
      Returns:
      Table currently set.
    • accept

      public void accept(Visitor visitor)
      Accept method to handle incoming visitors.
      Parameters:
      visitor - Visitor to be handled.