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

public Class H2ArrayPositionFunction

extends AbstractArrayPositionFunction
Class Inheritance
Imports
java.util.List, org.hibernate.query.ReturnableType, org.hibernate.sql.ast.SqlAstTranslator, org.hibernate.sql.ast.spi.SqlAppender, org.hibernate.sql.ast.tree.SqlAstNode, org.hibernate.sql.ast.tree.expression.Expression, org.hibernate.type.spi.TypeConfiguration

Deprecated

as a consequence of AbstractArrayPositionFunction being deprecated. See corresponding docs for further information.

H2 requires a very special emulation, because unnest is pretty much useless, due to https://github.com/h2database/h2database/issues/1815. This emulation uses array_get, array_length and system_range functions to roughly achieve the same.

Field Summary

Modifier and TypeField and Description
private final int

Constructor Summary

AccessConstructor and Description
public
H2ArrayPositionFunction(int maximumArraySize, TypeConfiguration typeConfiguration)

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from org.hibernate.dialect.function.array.AbstractArrayPositionFunction:
getArgumentListSignature

Field Detail

maximumArraySizeback to summary
private final int maximumArraySize

Constructor Detail

H2ArrayPositionFunctionback to summary
public H2ArrayPositionFunction(int maximumArraySize, TypeConfiguration typeConfiguration)

Method Detail

renderback to summary
public void render(SqlAppender sqlAppender, List<? extends SqlAstNode> sqlAstArguments, ReturnableType<?> returnType, SqlAstTranslator<?> walker)

Overrides org.hibernate.query.sqm.function.AbstractSqmSelfRenderingFunctionDescriptor.render.

Implements org.hibernate.query.sqm.function.FunctionRenderer.render.

Annotations
@Override