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 aCustomSqlrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleancallable()Returns the value of thecallablerecord component.Returns the value of thecheckStylerecord component.final booleanIndicates whether some other object is "equal to" this one.Deprecated.getSql()Deprecated.final inthashCode()Returns a hash code value for this object.booleanDeprecated.sql()Returns the value of thesqlrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CustomSql
Creates an instance of aCustomSqlrecord class.- Parameters:
sql- the value for thesqlrecord componentcallable- the value for thecallablerecord componentcheckStyle- the value for thecheckStylerecord 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 thesqlrecord component.- Returns:
- the value of the
sqlrecord component
-
callable
public boolean callable()Returns the value of thecallablerecord component.- Returns:
- the value of the
callablerecord component
-
checkStyle
Returns the value of thecheckStylerecord component.- Returns:
- the value of the
checkStylerecord component
-