|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TableReferenceFactory
A factory for creating builders and syntax elements related to tables. This factory is obtainable from
SQLVendor.
SQLVendor| Method Summary | |
|---|---|
JoinCondition |
jc(BooleanExpression condition)
Creates a join-condition using specified boolean expression to join tables. |
NamedColumnsJoin |
nc(ColumnNameList columnNames)
Creates a new named columns join specification, which will use column names to join tables. |
TableReferenceByExpression |
table(QueryExpression query)
Creates a new table reference, which will use the values returned by query as if they were values of the table. |
TableReferenceByExpression |
table(QueryExpression query,
TableAlias alias)
Creates a new table reference, which will use the values returned by query as if they were values of the table. |
TableReferenceByName |
table(TableName tableName)
Creates a new table reference, which uses given table name, without table alias. |
TableReferenceByName |
table(TableName tableName,
TableAlias alias)
Creates a new table references, which uses given table name along with given table alias. |
TableAlias |
tableAlias(java.lang.String tableNameAlias)
Creates a new alias for table. |
TableAlias |
tableAliasWithCols(java.lang.String tableNameAlias,
java.lang.String... colNames)
Creates a new table alias for table, with renamed columns. |
TableReferenceBuilder |
tableBuilder(TableReferencePrimary firstTable)
Creates a new TableReferenceBuilder typically used to build joined tables. |
TableName |
tableName(java.lang.String tableName)
Creates a new table name, which isn't schema-qualified. |
TableName |
tableName(java.lang.String schemaName,
java.lang.String tableName)
Creates a new table name. |
| Method Detail |
|---|
TableReferenceByName table(TableName tableName)
Creates a new table reference, which uses given table name, without table alias.
Calling this method is equivalent to calling table(TableName, TableAlias) and passing null as
second parameter.
tableName - The table name to use.
TableReferenceByName.
TableReferenceByName table(TableName tableName,
TableAlias alias)
tableName - The table name to use.alias - The table alias to use. May be null.
TableReferenceByName.TableName tableName(java.lang.String tableName)
Creates a new table name, which isn't schema-qualified.
Calling this method is equivalent to calling tableName(String, String) and passing null as first
parameter.
tableName - The name of the table.
TableName.
TableName tableName(java.lang.String schemaName,
java.lang.String tableName)
null, the table name is said to be
schema-qualified.
schemaName - The schema name to use. May be null.tableName - The table name to use.
TableName.TableAlias tableAlias(java.lang.String tableNameAlias)
Creates a new alias for table.
Calling this method is equivalent to calling tableAliasWithCols(String, String...) and not pass anything
to varargs parameter.
tableNameAlias - The alias for table name.
TableAlias.
TableAlias tableAliasWithCols(java.lang.String tableNameAlias,
java.lang.String... colNames)
tableNameAlias - The alias for table name.colNames - The new column names for table.
TableAlias.TableReferenceByExpression table(QueryExpression query)
Creates a new table reference, which will use the values returned by query as if they were values of the table.
Calling this method is equivalent to calling table(QueryExpression, TableAlias) and passing null
as second parameter.
query - The query to use.
TableReferenceByExpression.
TableReferenceByExpression table(QueryExpression query,
TableAlias alias)
query - The query to use.alias - The table alias to use. May be null if no alias is needed.
TableReferenceByExpression.TableReferenceBuilder tableBuilder(TableReferencePrimary firstTable)
TableReferenceBuilder typically used to build joined tables.
firstTable - The starting table.
TableReferenceBuilder.JoinCondition jc(BooleanExpression condition)
condition - The condition to join tables.
JoinCondition.NamedColumnsJoin nc(ColumnNameList columnNames)
columnNames - The column names to use to join tables.
NamedColumnsJoin.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||