Class ObjectIdentifier

  • All Implemented Interfaces:
    Serializable

    @PublicEvolving
    public final class ObjectIdentifier
    extends Object
    implements Serializable
    Identifies an object in a catalog. It allows to identify objects such as tables, views, function, or types in a catalog. An identifier must be fully qualified. It is the responsibility of the catalog manager to resolve an identifier to an object.

    While ObjectPath is used within the same catalog, instances of this class can be used across catalogs.

    Two objects are considered equal if they share the same object identifier in a stable session context.

    See Also:
    Serialized Form
    • Method Detail

      • getCatalogName

        public String getCatalogName()
      • getDatabaseName

        public String getDatabaseName()
      • getObjectName

        public String getObjectName()
      • toList

        public List<String> toList()
        List of the component names of this object identifier.
      • asSerializableString

        public String asSerializableString()
                                    throws TableException
        Returns a string that fully serializes this instance. The serialized string can be used for transmitting or persisting an object identifier.
        Throws:
        TableException - if the identifier cannot be serialized
      • asSummaryString

        public String asSummaryString()
        Returns a string that summarizes this instance for printing to a console or log.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object