Class TableRef.TableRefBuilder
java.lang.Object
com.github.tadukoo.database.mysql.syntax.reference.TableRef.TableRefBuilder
- All Implemented Interfaces:
TableRef.AliasAndBuild,TableRef.TableName
- Enclosing class:
- TableRef
public static class TableRef.TableRefBuilder
extends Object
implements TableRef.TableName, TableRef.AliasAndBuild
A builder to build a new
TableRef. It uses the following parameters:
| Parameter | Description | Required or Default |
|---|---|---|
| tableName | The name of the table | Required |
| alias | The alias to use for the table | Defaults to null (no alias) |
- Version:
- Alpha v.0.3
- Author:
- Logan Ferree (Tadukoo)
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateNot allowed to instantiate outside TableRef -
Method Summary
-
Field Details
-
tableName
The name of the table -
alias
The alias to use for the table
-
-
Constructor Details
-
TableRefBuilder
private TableRefBuilder()Not allowed to instantiate outside TableRef
-
-
Method Details
-
tableName
- Specified by:
tableNamein interfaceTableRef.TableName- Parameters:
tableName- The name of the table- Returns:
- this, to continue building
-
alias
- Specified by:
aliasin interfaceTableRef.AliasAndBuild- Parameters:
alias- The alias to use for the table- Returns:
- this, to continue building
-
checkForErrors
private void checkForErrors()Checks for any errors with the set parameters -
build
Builds a newTableRefwith the set parameters- Specified by:
buildin interfaceTableRef.AliasAndBuild- Returns:
- The newly built
TableRef
-