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 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:
tableName
in interfaceTableRef.TableName
- Parameters:
tableName
- The name of the table- Returns:
- this, to continue building
-
alias
- Specified by:
alias
in 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 newTableRef
with the set parameters- Specified by:
build
in interfaceTableRef.AliasAndBuild
- Returns:
- The newly built
TableRef
-