Top Description Fields Constructors Methods
org.hibernate.dialect.function.array

public Class ArrayArgumentValidator

extends Object
implements ArgumentsValidator
Class Inheritance
All Implemented Interfaces
org.hibernate.query.sqm.produce.function.ArgumentsValidator
Known Direct Subclasses
org.hibernate.dialect.function.array.ArrayContainsArgumentValidator, org.hibernate.dialect.function.array.ArrayAndElementArgumentValidator
Imports
java.util.List, org.hibernate.query.sqm.SqmExpressible, org.hibernate.query.sqm.produce.function.ArgumentsValidator, .FunctionArgumentException, org.hibernate.query.sqm.tree.SqmTypedNode, org.hibernate.type.BasicPluralType, .BasicType, org.hibernate.type.spi.TypeConfiguration

A ArgumentsValidator that validates the array type is compatible with the element type.

Field Summary

Modifier and TypeField and Description
private final int
public static final ArgumentsValidator

Constructor Summary

AccessConstructor and Description
public
ArrayArgumentValidator(int arrayIndex)

Method Summary

Modifier and TypeMethod and Description
protected BasicType<?>
getElementType(List<? extends SqmTypedNode<?>> arguments, String functionName, TypeConfiguration typeConfiguration)

protected BasicType<?>
getElementType(int arrayIndex, List<? extends SqmTypedNode<?>> arguments, String functionName, TypeConfiguration typeConfiguration)

protected BasicPluralType<?, ?>
getPluralType(int arrayIndex, List<? extends SqmTypedNode<?>> arguments, String functionName, TypeConfiguration typeConfiguration)

public void
validate(List<? extends SqmTypedNode<?>> arguments, String functionName, TypeConfiguration typeConfiguration)

Overrides default org.hibernate.query.sqm.produce.function.ArgumentsValidator.validate.

Perform validation that may be done using the SqmTypedNode tree and assigned Java types.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

arrayIndexback to summary
private final int arrayIndex
DEFAULT_INSTANCEback to summary
public static final ArgumentsValidator DEFAULT_INSTANCE

Constructor Detail

ArrayArgumentValidatorback to summary
public ArrayArgumentValidator(int arrayIndex)

Method Detail

getElementTypeback to summary
protected BasicType<?> getElementType(List<? extends SqmTypedNode<?>> arguments, String functionName, TypeConfiguration typeConfiguration)
getElementTypeback to summary
protected BasicType<?> getElementType(int arrayIndex, List<? extends SqmTypedNode<?>> arguments, String functionName, TypeConfiguration typeConfiguration)
getPluralTypeback to summary
protected BasicPluralType<?, ?> getPluralType(int arrayIndex, List<? extends SqmTypedNode<?>> arguments, String functionName, TypeConfiguration typeConfiguration)
validateback to summary
public void validate(List<? extends SqmTypedNode<?>> arguments, String functionName, TypeConfiguration typeConfiguration)

Overrides default org.hibernate.query.sqm.produce.function.ArgumentsValidator.validate.

Doc from org.hibernate.query.sqm.produce.function.ArgumentsValidator.validate.

Perform validation that may be done using the SqmTypedNode tree and assigned Java types.

Annotations
@Override