Package org.hibernate.boot.model
Record Class CustomSql
java.lang.Object
java.lang.Record
org.hibernate.boot.model.CustomSql
public record CustomSql(String sql, boolean callable, ExecuteUpdateResultCheckStyle checkStyle)
extends Record
Models the information for custom SQL execution defined as part of
the mapping for a primary or secondary table.
-
Constructor Summary
ConstructorsConstructorDescriptionCustomSql
(String sql, boolean callable, ExecuteUpdateResultCheckStyle checkStyle) Creates an instance of aCustomSql
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
callable()
Returns the value of thecallable
record component.Returns the value of thecheckStyle
record component.final boolean
Indicates whether some other object is "equal to" this one.Deprecated.getSql()
Deprecated.final int
hashCode()
Returns a hash code value for this object.boolean
Deprecated.sql()
Returns the value of thesql
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CustomSql
Creates an instance of aCustomSql
record class.- Parameters:
sql
- the value for thesql
record componentcallable
- the value for thecallable
record componentcheckStyle
- the value for thecheckStyle
record component
-
-
Method Details
-
getSql
Deprecated. -
isCallable
Deprecated. -
getCheckStyle
Deprecated. -
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
sql
Returns the value of thesql
record component.- Returns:
- the value of the
sql
record component
-
callable
public boolean callable()Returns the value of thecallable
record component.- Returns:
- the value of the
callable
record component
-
checkStyle
Returns the value of thecheckStyle
record component.- Returns:
- the value of the
checkStyle
record component
-