Record Class JsonQueryFunction.JsonQueryArguments
java.lang.Object
java.lang.Record
org.hibernate.dialect.function.json.JsonQueryFunction.JsonQueryArguments
- Enclosing class:
JsonQueryFunction
protected static record JsonQueryFunction.JsonQueryArguments(Expression jsonDocument, Expression jsonPath, boolean isJsonType, @Nullable JsonPathPassingClause passingClause, @Nullable JsonQueryWrapMode wrapMode, @Nullable JsonQueryErrorBehavior errorBehavior, @Nullable JsonQueryEmptyBehavior emptyBehavior)
extends Record
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsonQueryArguments(Expression jsonDocument, Expression jsonPath, boolean isJsonType, @Nullable JsonPathPassingClause passingClause, @Nullable JsonQueryWrapMode wrapMode, @Nullable JsonQueryErrorBehavior errorBehavior, @Nullable JsonQueryEmptyBehavior emptyBehavior) Creates an instance of aJsonQueryArgumentsrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable JsonQueryEmptyBehaviorReturns the value of theemptyBehaviorrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable JsonQueryErrorBehaviorReturns 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.@Nullable JsonQueryWrapModewrapMode()Returns the value of thewrapModerecord component.
-
Constructor Details
-
JsonQueryArguments
protected JsonQueryArguments(Expression jsonDocument, Expression jsonPath, boolean isJsonType, @Nullable JsonPathPassingClause passingClause, @Nullable JsonQueryWrapMode wrapMode, @Nullable JsonQueryErrorBehavior errorBehavior, @Nullable JsonQueryEmptyBehavior emptyBehavior) Creates an instance of aJsonQueryArgumentsrecord class.- Parameters:
jsonDocument- the value for thejsonDocumentrecord componentjsonPath- the value for thejsonPathrecord componentisJsonType- the value for theisJsonTyperecord componentpassingClause- the value for thepassingClauserecord componentwrapMode- the value for thewrapModerecord componenterrorBehavior- the value for theerrorBehaviorrecord componentemptyBehavior- the value for theemptyBehaviorrecord component
-
-
Method Details
-
extract
public static JsonQueryFunction.JsonQueryArguments 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
-
wrapMode
Returns the value of thewrapModerecord component.- Returns:
- the value of the
wrapModerecord 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
-