Package com.tableau.hyperapi
Class DatabaseName
java.lang.Object
com.tableau.hyperapi.DatabaseName
- All Implemented Interfaces:
Comparable<DatabaseName>
A database name.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDatabaseName
(Name databaseName) Constructs a Database name from already properly escaped SQL NameDatabaseName
(String databaseName) Constructs a properly escaped Database Name. -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(DatabaseName other) Compares this name with the other database name for order.boolean
Checks two names for equality.getName()
Gets the database nameint
hashCode()
Computes a hash code.toString()
Gets a correctly escaped string representation of database name, which can be used in a SQL query to refer to the database entity
-
Field Details
-
nullSafeDatabaseNameComparator
The null safe comparator
-
-
Constructor Details
-
DatabaseName
Constructs a properly escaped Database Name.The name will be equivalent to calling Sql::escapeName().
- Parameters:
databaseName
- An unescaped database name.
-
DatabaseName
Constructs a Database name from already properly escaped SQL Name- Parameters:
databaseName
- The database name
-
-
Method Details
-
toString
Gets a correctly escaped string representation of database name, which can be used in a SQL query to refer to the database entity -
getName
Gets the database name- Returns:
- The name
-
equals
Checks two names for equality. -
compareTo
Compares this name with the other database name for order.- Specified by:
compareTo
in interfaceComparable<DatabaseName>
- Parameters:
other
- The other 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.
-