Record Class JsonValueFunction.JsonValueArguments
java.lang.Object
java.lang.Record
org.hibernate.dialect.function.json.JsonValueFunction.JsonValueArguments
- Enclosing class:
JsonValueFunction
protected static record JsonValueFunction.JsonValueArguments(Expression jsonDocument, Expression jsonPath, boolean isJsonType, @Nullable JsonPathPassingClause passingClause, @Nullable CastTarget returningType, @Nullable JsonValueErrorBehavior errorBehavior, @Nullable JsonValueEmptyBehavior emptyBehavior)
extends Record
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsonValueArguments(Expression jsonDocument, Expression jsonPath, boolean isJsonType, @Nullable JsonPathPassingClause passingClause, @Nullable CastTarget returningType, @Nullable JsonValueErrorBehavior errorBehavior, @Nullable JsonValueEmptyBehavior emptyBehavior) Creates an instance of aJsonValueArgumentsrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable JsonValueEmptyBehaviorReturns the value of theemptyBehaviorrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable JsonValueErrorBehaviorReturns 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.@Nullable CastTargetReturns the value of thereturningTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JsonValueArguments
protected JsonValueArguments(Expression jsonDocument, Expression jsonPath, boolean isJsonType, @Nullable JsonPathPassingClause passingClause, @Nullable CastTarget returningType, @Nullable JsonValueErrorBehavior errorBehavior, @Nullable JsonValueEmptyBehavior emptyBehavior) Creates an instance of aJsonValueArgumentsrecord class.- Parameters:
jsonDocument- the value for thejsonDocumentrecord componentjsonPath- the value for thejsonPathrecord componentisJsonType- the value for theisJsonTyperecord componentpassingClause- the value for thepassingClauserecord componentreturningType- the value for thereturningTyperecord componenterrorBehavior- the value for theerrorBehaviorrecord componentemptyBehavior- the value for theemptyBehaviorrecord component
-
-
Method Details
-
extract
public static JsonValueFunction.JsonValueArguments 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
-
returningType
Returns the value of thereturningTyperecord component.- Returns:
- the value of the
returningTyperecord component
-
errorBehavior
Returns the value of theerrorBehaviorrecord component.- Returns:
- the value of the
errorBehaviorrecord component
-
emptyBehavior
Returns the value of theemptyBehaviorrecord component.- Returns:
- the value of the
emptyBehaviorrecord component
-