Package org.opencms.db
Class CmsSelectQuery.TableAlias
- java.lang.Object
-
- org.opencms.db.CmsSelectQuery.TableAlias
-
- Enclosing class:
- CmsSelectQuery
public class CmsSelectQuery.TableAlias extends java.lang.Object
Helper class which wraps a table alias.
-
-
Constructor Summary
Constructors Constructor Description TableAlias(java.lang.String name)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
column(java.lang.String colName)
Adds the table alias before a column name.java.lang.String
getName()
Returns the name of the table alias.
-
-
-
Constructor Detail
-
TableAlias
public TableAlias(java.lang.String name)
Creates a new instance.- Parameters:
name
- the table alias
-
-
Method Detail
-
column
public java.lang.String column(java.lang.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 java.lang.String getName()
Returns the name of the table alias.- Returns:
- the name of the table alias
-
-