public class Table extends SqlObject
It can be constructed with a name only, or optionally with a schema and an alias.
It is also possible to create a Column
object, using the alias of
this table with column(String)
.
VirtualTable
,
Serialized FormConstructor and Description |
---|
Table(String name)
Creates a new table object with a name only.
|
Table(String name,
String alias)
Creates a table object with a name and an alias, but without a schema.
|
Table(String schema,
String name,
String alias)
Create a table object with a schema, name and an alias.
|
Modifier and Type | Method and Description |
---|---|
protected void |
_updateDelegate(String name) |
protected void |
_updateDelegate(String name,
String alias) |
protected void |
_updateDelegate(String schema,
String name,
String alias) |
Table |
AS(String alias)
Returns a new table object with a new alias.
|
Column |
column(String name)
Creates a column object with this table as prefix.
|
String |
getAlias()
Returns the alias of this table object, may be
null . |
String |
getSchema()
Returns the schema of this table object, may be
null . |
String |
getTableName()
Returns the name of this table object.
|
public Table(String name)
name
- the name of the tablepublic Table(String name, String alias)
name
- the name of the tablealias
- the alias of the tableprotected void _updateDelegate(String name)
public Table AS(String alias)
The name and schema are taken from this table object.
alias
- the new alias.public String getSchema()
null
.public String getTableName()
public String getAlias()
null
.Copyright © 2003–2021 XDEV Software. All rights reserved.