Record Class JsonObjectAggFunction.JsonObjectAggArguments
java.lang.Object
java.lang.Record
org.hibernate.dialect.function.json.JsonObjectAggFunction.JsonObjectAggArguments
- Enclosing class:
JsonObjectAggFunction
protected static record JsonObjectAggFunction.JsonObjectAggArguments(Expression key, Expression value, @Nullable JsonNullBehavior nullBehavior, @Nullable JsonObjectAggUniqueKeysBehavior uniqueKeysBehavior)
extends Record
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsonObjectAggArguments(Expression key, Expression value, @Nullable JsonNullBehavior nullBehavior, @Nullable JsonObjectAggUniqueKeysBehavior uniqueKeysBehavior) Creates an instance of aJsonObjectAggArgumentsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.extract(List<? extends SqlAstNode> sqlAstArguments) final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.@Nullable JsonNullBehaviorReturns the value of thenullBehaviorrecord component.final StringtoString()Returns a string representation of this record class.@Nullable JsonObjectAggUniqueKeysBehaviorReturns the value of theuniqueKeysBehaviorrecord component.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
JsonObjectAggArguments
protected JsonObjectAggArguments(Expression key, Expression value, @Nullable JsonNullBehavior nullBehavior, @Nullable JsonObjectAggUniqueKeysBehavior uniqueKeysBehavior) Creates an instance of aJsonObjectAggArgumentsrecord class.- Parameters:
key- the value for thekeyrecord componentvalue- the value for thevaluerecord componentnullBehavior- the value for thenullBehaviorrecord componentuniqueKeysBehavior- the value for theuniqueKeysBehaviorrecord component
-
-
Method Details
-
extract
public static JsonObjectAggFunction.JsonObjectAggArguments extract(List<? extends SqlAstNode> sqlAstArguments) -
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
nullBehavior
Returns the value of thenullBehaviorrecord component.- Returns:
- the value of the
nullBehaviorrecord component
-
uniqueKeysBehavior
Returns the value of theuniqueKeysBehaviorrecord component.- Returns:
- the value of the
uniqueKeysBehaviorrecord component
-