org.castor.cpa.persistence.sql.query
Class TableAlias

java.lang.Object
  extended by org.castor.cpa.persistence.sql.query.Qualifier
      extended by 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 Summary
TableAlias(String table, String name)
          Method constructing a table from a string to be aliased by the second passed string.
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.
 
Method Summary
 void accept(Visitor visitor)
          Accept method to handle incoming visitors.
 Table getTable()
          Get method returning table currently set.
 
Methods inherited from class org.castor.cpa.persistence.sql.query.Qualifier
addFullJoin, addFullJoin, addInnerJoin, addInnerJoin, addJoin, addLeftJoin, addLeftJoin, addRightJoin, addRightJoin, column, getJoins, hasJoin, name, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 Detail

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.


Copyright © 2011. All Rights Reserved.