Record Class XmlTableQueryColumnDefinition
java.lang.Object
java.lang.Record
org.hibernate.sql.ast.tree.expression.XmlTableQueryColumnDefinition
- All Implemented Interfaces:
XmlTableColumnDefinition
,SqlAstNode
public record XmlTableQueryColumnDefinition(String name, BasicType<String> type, @Nullable String xpath, @Nullable Expression defaultExpression)
extends Record
implements XmlTableColumnDefinition
- Since:
- 7.0
-
Constructor Summary
ConstructorsConstructorDescriptionXmlTableQueryColumnDefinition
(String name, BasicType<String> type, @Nullable String xpath, @Nullable Expression defaultExpression) Creates an instance of aXmlTableQueryColumnDefinition
record class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Expression
Returns the value of thedefaultExpression
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.@Nullable String
xpath()
Returns the value of thexpath
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.hibernate.sql.ast.tree.expression.XmlTableColumnDefinition
accept
-
Constructor Details
-
XmlTableQueryColumnDefinition
public XmlTableQueryColumnDefinition(String name, BasicType<String> type, @Nullable String xpath, @Nullable Expression defaultExpression) Creates an instance of aXmlTableQueryColumnDefinition
record class.- Parameters:
name
- the value for thename
record componenttype
- the value for thetype
record componentxpath
- the value for thexpath
record componentdefaultExpression
- the value for thedefaultExpression
record component
-
-
Method Details
-
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)
. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
xpath
Returns the value of thexpath
record component.- Returns:
- the value of the
xpath
record component
-
defaultExpression
Returns the value of thedefaultExpression
record component.- Returns:
- the value of the
defaultExpression
record component
-