- All Implemented Interfaces:
Alias, Sql
public class TableAlias
extends Object
implements Alias
Represents an alias (label) for a table
-
Constructor Summary
Constructors
-
Method Summary
Gets the statement parameters introduced by this fragment.
Formats object as an SQL fragment.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
TableAlias
public TableAlias(String name)
Creates a table alias.
- Parameters:
name - the alias name.
-
Method Details
-
name
Description copied from interface: Alias
Gets the alias name.
- Specified by:
name in interface Alias
- Returns:
- the alias name.
-
sql
Description copied from interface: Sql
Formats object as an SQL fragment.
- Specified by:
sql in interface Sql
- Parameters:
context - the context (incl. dialect).
- Returns:
- the formatted SQL fragment.
-
params
Description copied from interface: Sql
Gets the statement parameters introduced by this fragment.
- Specified by:
params in interface Sql
- Parameters:
context - the context (incl. dialect).
- Returns:
- the statement parameters.