Record Class Namespace.Name
java.lang.Object
java.lang.Record
org.hibernate.boot.model.relational.Namespace.Name
- All Implemented Interfaces:
Comparable<Namespace.Name>
- Enclosing class:
Namespace
public static record Namespace.Name(Identifier catalog, Identifier schema)
extends Record
implements Comparable<Namespace.Name>
-
Constructor Summary
ConstructorsConstructorDescriptionName(Identifier catalog, Identifier schema) Creates an instance of aNamerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncatalog()Returns the value of thecatalogrecord component.intcompareTo(Namespace.Name that) final booleanIndicates whether some other object is "equal to" this one.Deprecated.Deprecated.final inthashCode()Returns a hash code value for this object.schema()Returns the value of theschemarecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Name
Creates an instance of aNamerecord class.- Parameters:
catalog- the value for thecatalogrecord componentschema- the value for theschemarecord component
-
-
Method Details
-
getCatalog
Deprecated. -
getSchema
Deprecated. -
compareTo
- Specified by:
compareToin interfaceComparable<Namespace.Name>
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
catalog
Returns the value of thecatalogrecord component.- Returns:
- the value of the
catalogrecord component
-
schema
Returns the value of theschemarecord component.- Returns:
- the value of the
schemarecord component
-