Package com.tableau.hyperapi
Class TableName
java.lang.Object
com.tableau.hyperapi.TableName
- All Implemented Interfaces:
Comparable<TableName>
A table name.
-
Field Summary
Modifier and TypeFieldDescriptionstatic Comparator
<TableName> The null-safe table name comparator. -
Constructor Summary
ConstructorDescriptionTableName
(DatabaseName databaseName, Name schemaName, Name tableName) Constructs a properly escaped fully qualified TableName.TableName
(DatabaseName databaseName, Name schemaName, String tableName) Constructs a properly escaped fully qualified TableName.TableName
(DatabaseName databaseName, String schemaName, Name tableName) Constructs a properly escaped fully qualified TableName.TableName
(DatabaseName databaseName, String schemaName, String tableName) Constructs a properly escaped fully qualified TableName.Constructs a properly escaped non-qualified TableName from a NameConstructs a properly escaped qualified TableName.Constructs a properly escaped fully qualified TableName.Constructs a properly escaped fully qualified TableName.Constructs a properly escaped partly qualified TableName.Constructs a properly escaped fully qualified TableName.Constructs a properly escaped fully qualified TableName.TableName
(SchemaName schemaName, Name tableName) Constructs a properly escaped partly qualified TableName.TableName
(SchemaName schemaName, String tableName) Constructs a properly escaped partly qualified TableName.Constructs a properly escaped non-qualified TableName.Constructs a properly escaped partly qualified TableName.Constructs a properly escaped fully qualified TableName.Constructs a properly escaped fully qualified TableName.Constructs a properly escaped partly qualified TableName.Constructs a properly escaped fully qualified TableName.Constructs a properly escaped fully qualified TableName. -
Method Summary
Modifier and TypeMethodDescriptionint
Compares this name with the specified name for order.boolean
Checks for equality.Gets the optional Database name prefixgetName()
Gets the Schema name without the optional Schema name prefixGets the optional Schema name prefixint
hashCode()
Computes a hash code.boolean
Returns whether the table name is qualified i.e Whether the table name has a schema name prefixtoString()
Gets a correctly escaped string representation of this schema name, which can be used in a SQL query to refer to the schema
-
Field Details
-
nullSafeTableNameComparator
The null-safe table name comparator.
-
-
Constructor Details
-
TableName
Constructs a properly escaped non-qualified TableName from a Name- Parameters:
tableName
- A non-qualified escaped table name
-
TableName
Constructs a properly escaped non-qualified TableName.The name will be equivalent to calling Sql::escapeName().
- Parameters:
tableName
- A non-qualified unescaped table name.
-
TableName
Constructs a properly escaped partly qualified TableName.- Parameters:
schemaName
- The schema nametableName
- The table name.
-
TableName
Constructs a properly escaped partly qualified TableName.- Parameters:
schemaName
- The schema nametableName
- An unescaped table name.
-
TableName
Constructs a properly escaped qualified TableName.- Parameters:
schemaName
- The schema nametableName
- The table name.
-
TableName
Constructs a properly escaped partly qualified TableName.- Parameters:
schemaName
- The schema nametableName
- An unescaped table name.
-
TableName
Constructs a properly escaped partly qualified TableName.- Parameters:
schemaName
- An unescaped schema nametableName
- An unescaped table name
-
TableName
Constructs a properly escaped partly qualified TableName.- Parameters:
schemaName
- An unescaped schema nametableName
- The table name
-
TableName
Constructs a properly escaped fully qualified TableName.- Parameters:
databaseName
- The database nameschemaName
- The schema nametableName
- The table name.
-
TableName
Constructs a properly escaped fully qualified TableName.- Parameters:
databaseName
- The database nameschemaName
- An unescaped schema nametableName
- The table name.
-
TableName
Constructs a properly escaped fully qualified TableName.- Parameters:
databaseName
- The database nameschemaName
- An unescaped schema nametableName
- The table name.
-
TableName
Constructs a properly escaped fully qualified TableName.- Parameters:
databaseName
- The database nameschemaName
- An unescaped schema nametableName
- An unescaped table name.
-
TableName
Constructs a properly escaped fully qualified TableName.- Parameters:
databaseName
- The database nameschemaName
- The schema nametableName
- The table name.
-
TableName
Constructs a properly escaped fully qualified TableName.- Parameters:
databaseName
- The database nameschemaName
- The schema nametableName
- The table name.
-
TableName
Constructs a properly escaped fully qualified TableName.- Parameters:
databaseName
- The database nameschemaName
- The schema nametableName
- The table name.
-
TableName
Constructs a properly escaped fully qualified TableName.- Parameters:
databaseName
- The database nameschemaName
- The schema nametableName
- The table name.
-
TableName
Constructs a properly escaped fully qualified TableName.- Parameters:
databaseName
- An unescaped database nameschemaName
- An unescaped schema nametableName
- The table name.
-
TableName
Constructs a properly escaped fully qualified TableName.- Parameters:
databaseName
- An unescaped database nameschemaName
- The schema nametableName
- An unescaped table name.
-
TableName
Constructs a properly escaped fully qualified TableName.- Parameters:
databaseName
- An unescaped database nameschemaName
- An unescaped schema nametableName
- The table name.
-
TableName
Constructs a properly escaped fully qualified TableName.- Parameters:
databaseName
- An unescaped database nameschemaName
- An unescaped schema nametableName
- An unescaped table name.
-
-
Method Details
-
toString
Gets a correctly escaped string representation of this schema name, which can be used in a SQL query to refer to the schema -
getName
Gets the Schema name without the optional Schema name prefix- Returns:
- The schema name
-
getSchemaName
Gets the optional Schema name prefix- Returns:
- The optional schema name
-
getDatabaseName
Gets the optional Database name prefix- Returns:
- The optional database name
-
isFullyQualified
public boolean isFullyQualified()Returns whether the table name is qualified i.e Whether the table name has a schema name prefix- Returns:
- Whether the Table Name is fully qualified
-
equals
Checks for equality. -
compareTo
Compares this name with the specified name for order.- Specified by:
compareTo
in interfaceComparable<TableName>
- Parameters:
other
- The other table name.- Returns:
- A negative integer, zero, or a positive integer as this name is less than, equal to, or greater than the other name.
-
hashCode
public int hashCode()Computes a hash code.
-