Record Class CommentRequest
java.lang.Object
java.lang.Record
org.hibernate.dialect.schema.spi.CommentRequest
@SPI(USE)
public record CommentRequest(CommentTarget target, String qualifiedName, String comment)
extends Record
Describes a comment attached to one database schema object.
The qualified name is already formatted for the database. The raw comment
may be empty and is escaped by the selected SchemaCommentSupport.
- Since:
- 8.0
-
Constructor Summary
ConstructorsConstructorDescriptionCommentRequest(CommentTarget target, String qualifiedName, String comment) Creates an instance of aCommentRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncomment()Returns the value of thecommentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thequalifiedNamerecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CommentRequest
Creates an instance of aCommentRequestrecord class.- Parameters:
target- the value for thetargetrecord componentqualifiedName- the value for thequalifiedNamerecord componentcomment- the value for thecommentrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
qualifiedName
Returns the value of thequalifiedNamerecord component.- Returns:
- the value of the
qualifiedNamerecord component
-
comment
Returns the value of thecommentrecord component.- Returns:
- the value of the
commentrecord component
-