Record Class JsonExistsFunction.JsonExistsArguments
java.lang.Object
java.lang.Record
org.hibernate.dialect.function.json.JsonExistsFunction.JsonExistsArguments
- Enclosing class:
JsonExistsFunction
protected static record JsonExistsFunction.JsonExistsArguments(Expression jsonDocument, Expression jsonPath, boolean isJsonType, @Nullable JsonPathPassingClause passingClause, @Nullable JsonExistsErrorBehavior errorBehavior)
extends Record
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsonExistsArguments(Expression jsonDocument, Expression jsonPath, boolean isJsonType, @Nullable JsonPathPassingClause passingClause, @Nullable JsonExistsErrorBehavior errorBehavior) Creates an instance of aJsonExistsArgumentsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@Nullable JsonExistsErrorBehaviorReturns the value of theerrorBehaviorrecord component.extract(List<? extends SqlAstNode> sqlAstArguments) final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisJsonTyperecord component.Returns the value of thejsonDocumentrecord component.jsonPath()Returns the value of thejsonPathrecord component.@Nullable JsonPathPassingClauseReturns the value of thepassingClauserecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JsonExistsArguments
protected JsonExistsArguments(Expression jsonDocument, Expression jsonPath, boolean isJsonType, @Nullable JsonPathPassingClause passingClause, @Nullable JsonExistsErrorBehavior errorBehavior) Creates an instance of aJsonExistsArgumentsrecord class.- Parameters:
jsonDocument- the value for thejsonDocumentrecord componentjsonPath- the value for thejsonPathrecord componentisJsonType- the value for theisJsonTyperecord componentpassingClause- the value for thepassingClauserecord componenterrorBehavior- the value for theerrorBehaviorrecord component
-
-
Method Details
-
extract
public static JsonExistsFunction.JsonExistsArguments extract(List<? extends SqlAstNode> sqlAstArguments) -
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 '=='. -
jsonDocument
Returns the value of thejsonDocumentrecord component.- Returns:
- the value of the
jsonDocumentrecord component
-
jsonPath
Returns the value of thejsonPathrecord component.- Returns:
- the value of the
jsonPathrecord component
-
isJsonType
public boolean isJsonType()Returns the value of theisJsonTyperecord component.- Returns:
- the value of the
isJsonTyperecord component
-
passingClause
Returns the value of thepassingClauserecord component.- Returns:
- the value of the
passingClauserecord component
-
errorBehavior
Returns the value of theerrorBehaviorrecord component.- Returns:
- the value of the
errorBehaviorrecord component
-