org.opencms.db
Class CmsSelectQuery.TableAlias

java.lang.Object
  extended by org.opencms.db.CmsSelectQuery.TableAlias
Enclosing class:
CmsSelectQuery

public class CmsSelectQuery.TableAlias
extends Object

Helper class which wraps a table alias.


Constructor Summary
CmsSelectQuery.TableAlias(String name)
          Creates a new instance.
 
Method Summary
 String column(String colName)
          Adds the table alias before a column name.
 String getName()
          Returns the name of the table alias.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsSelectQuery.TableAlias

public CmsSelectQuery.TableAlias(String name)
Creates a new instance.

Parameters:
name - the table alias
Method Detail

column

public String column(String colName)
Adds the table alias before a column name.

Parameters:
colName - the column name
Returns:
the column name, qualified by the table alias

getName

public String getName()
Returns the name of the table alias.

Returns:
the name of the table alias