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 aName
record class. -
Method Summary
Modifier and TypeMethodDescriptioncatalog()
Returns the value of thecatalog
record component.int
compareTo
(Namespace.Name that) final boolean
Indicates whether some other object is "equal to" this one.Deprecated.Deprecated.final int
hashCode()
Returns a hash code value for this object.schema()
Returns the value of theschema
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Name
Creates an instance of aName
record class.- Parameters:
catalog
- the value for thecatalog
record componentschema
- the value for theschema
record component
-
-
Method Details
-
getCatalog
Deprecated. -
getSchema
Deprecated. -
compareTo
- Specified by:
compareTo
in 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 thecatalog
record component.- Returns:
- the value of the
catalog
record component
-
schema
Returns the value of theschema
record component.- Returns:
- the value of the
schema
record component
-