Class TableReference
java.lang.Object
org.apache.sis.internal.sql.feature.TableReference
A (catalog, schema, table) name tuple, which can be used as keys in hash map.
- Since:
- 1.0
- Version:
- 1.2
- Author:
- Johann Sorel (Geomatys), Martin Desruisseaux (Geomatys)
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanReturnstrueif the given object is aTableReferencewith equal table, schema and catalog names.final inthashCode()Computes a hash code from the catalog, schema and table names.toString()Formats a string representation of this object for debugging purpose.
-
Field Details
-
catalog
The catalog, schema and table name of a table. The table name is mandatory, but the schema and catalog names may be null or empty. Note that an empty string and null values have different meanings in JDBC metadata:- An empty string means that the table name has no catalog (or schema).
- A null value means that the catalog (or schema) name should be ignored.
-
schema
The catalog, schema and table name of a table. The table name is mandatory, but the schema and catalog names may be null or empty. Note that an empty string and null values have different meanings in JDBC metadata:- An empty string means that the table name has no catalog (or schema).
- A null value means that the catalog (or schema) name should be ignored.
-
table
The catalog, schema and table name of a table. The table name is mandatory, but the schema and catalog names may be null or empty. Note that an empty string and null values have different meanings in JDBC metadata:- An empty string means that the table name has no catalog (or schema).
- A null value means that the catalog (or schema) name should be ignored.
-
-
Method Details
-
equals
Returnstrueif the given object is aTableReferencewith equal table, schema and catalog names. All other properties that may be defined in subclasses (column names, action on delete, etc.) are ignored; this method is not for testing if twoRelationare fully equal. The purpose of this method is only to useTableReferenceas keys in aHashSetfor remembering full coordinates of tables that may need to be analyzed later. -
hashCode
public final int hashCode()Computes a hash code from the catalog, schema and table names. Seeequals(Object)for information about the purpose. -
toString
Formats a string representation of this object for debugging purpose.
-