@@ -3685,6 +3685,82 @@ public <T> SqmExpression<Integer> arrayPosition(
36853685 );
36863686 }
36873687
3688+ @ Override
3689+ public <T > SqmExpression <int []> arrayPositions (
3690+ SqmExpression <T []> arrayExpression ,
3691+ SqmExpression <T > elementExpression ) {
3692+ return getFunctionDescriptor ( "array_positions" ).generateSqmExpression (
3693+ asList ( arrayExpression , elementExpression ),
3694+ null ,
3695+ queryEngine
3696+ );
3697+ }
3698+
3699+ @ Override
3700+ public <T > SqmExpression <int []> arrayPositions (SqmExpression <T []> arrayExpression , T element ) {
3701+ return getFunctionDescriptor ( "array_positions" ).generateSqmExpression (
3702+ asList ( arrayExpression , value ( element ) ),
3703+ null ,
3704+ queryEngine
3705+ );
3706+ }
3707+
3708+ @ Override
3709+ public <T > SqmExpression <int []> arrayPositions (T [] array , SqmExpression <T > elementExpression ) {
3710+ return getFunctionDescriptor ( "array_positions" ).generateSqmExpression (
3711+ asList ( value ( array ), elementExpression ),
3712+ null ,
3713+ queryEngine
3714+ );
3715+ }
3716+
3717+ @ Override
3718+ public <T > SqmExpression <int []> arrayPositions (T [] array , T element ) {
3719+ return getFunctionDescriptor ( "array_positions" ).generateSqmExpression (
3720+ asList ( value ( array ), value ( element ) ),
3721+ null ,
3722+ queryEngine
3723+ );
3724+ }
3725+
3726+ @ Override
3727+ public <T > SqmExpression <List <Integer >> arrayPositionsList (
3728+ SqmExpression <T []> arrayExpression ,
3729+ SqmExpression <T > elementExpression ) {
3730+ return getFunctionDescriptor ( "array_positions_list" ).generateSqmExpression (
3731+ asList ( arrayExpression , elementExpression ),
3732+ null ,
3733+ queryEngine
3734+ );
3735+ }
3736+
3737+ @ Override
3738+ public <T > SqmExpression <List <Integer >> arrayPositionsList (SqmExpression <T []> arrayExpression , T element ) {
3739+ return getFunctionDescriptor ( "array_positions_list" ).generateSqmExpression (
3740+ asList ( arrayExpression , value ( element ) ),
3741+ null ,
3742+ queryEngine
3743+ );
3744+ }
3745+
3746+ @ Override
3747+ public <T > SqmExpression <List <Integer >> arrayPositionsList (T [] array , SqmExpression <T > elementExpression ) {
3748+ return getFunctionDescriptor ( "array_positions_list" ).generateSqmExpression (
3749+ asList ( value ( array ), elementExpression ),
3750+ null ,
3751+ queryEngine
3752+ );
3753+ }
3754+
3755+ @ Override
3756+ public <T > SqmExpression <List <Integer >> arrayPositionsList (T [] array , T element ) {
3757+ return getFunctionDescriptor ( "array_positions_list" ).generateSqmExpression (
3758+ asList ( value ( array ), value ( element ) ),
3759+ null ,
3760+ queryEngine
3761+ );
3762+ }
3763+
36883764 @ Override
36893765 public <T > SqmExpression <Integer > arrayLength (SqmExpression <T []> arrayExpression ) {
36903766 return getFunctionDescriptor ( "array_length" ).generateSqmExpression (
@@ -5384,4 +5460,88 @@ public <T> SqmExpression<Collection<T>> collectionFill(T element, Integer elemen
53845460 queryEngine
53855461 );
53865462 }
5463+
5464+ @ Override
5465+ public <T > SqmExpression <int []> collectionPositions (
5466+ SqmExpression <? extends Collection <? super T >> collectionExpression ,
5467+ SqmExpression <T > elementExpression ) {
5468+ return getFunctionDescriptor ( "array_positions" ).generateSqmExpression (
5469+ asList ( collectionExpression , elementExpression ),
5470+ null ,
5471+ queryEngine
5472+ );
5473+ }
5474+
5475+ @ Override
5476+ public <T > SqmExpression <int []> collectionPositions (
5477+ SqmExpression <? extends Collection <? super T >> collectionExpression ,
5478+ T element ) {
5479+ return getFunctionDescriptor ( "array_positions" ).generateSqmExpression (
5480+ asList ( collectionExpression , value ( element ) ),
5481+ null ,
5482+ queryEngine
5483+ );
5484+ }
5485+
5486+ @ Override
5487+ public <T > SqmExpression <int []> collectionPositions (
5488+ Collection <? super T > collection ,
5489+ SqmExpression <T > elementExpression ) {
5490+ return getFunctionDescriptor ( "array_positions" ).generateSqmExpression (
5491+ asList ( value ( collection ), elementExpression ),
5492+ null ,
5493+ queryEngine
5494+ );
5495+ }
5496+
5497+ @ Override
5498+ public <T > SqmExpression <int []> collectionPositions (Collection <? super T > collection , T element ) {
5499+ return getFunctionDescriptor ( "array_positions" ).generateSqmExpression (
5500+ asList ( value ( collection ), value ( element ) ),
5501+ null ,
5502+ queryEngine
5503+ );
5504+ }
5505+
5506+ @ Override
5507+ public <T > SqmExpression <List <Integer >> collectionPositionsList (
5508+ SqmExpression <? extends Collection <? super T >> collectionExpression ,
5509+ SqmExpression <T > elementExpression ) {
5510+ return getFunctionDescriptor ( "array_positions_list" ).generateSqmExpression (
5511+ asList ( collectionExpression , elementExpression ),
5512+ null ,
5513+ queryEngine
5514+ );
5515+ }
5516+
5517+ @ Override
5518+ public <T > SqmExpression <List <Integer >> collectionPositionsList (
5519+ SqmExpression <? extends Collection <? super T >> collectionExpression ,
5520+ T element ) {
5521+ return getFunctionDescriptor ( "array_positions_list" ).generateSqmExpression (
5522+ asList ( collectionExpression , value ( element ) ),
5523+ null ,
5524+ queryEngine
5525+ );
5526+ }
5527+
5528+ @ Override
5529+ public <T > SqmExpression <List <Integer >> collectionPositionsList (
5530+ Collection <? super T > collection ,
5531+ SqmExpression <T > elementExpression ) {
5532+ return getFunctionDescriptor ( "array_positions_list" ).generateSqmExpression (
5533+ asList ( value ( collection ), elementExpression ),
5534+ null ,
5535+ queryEngine
5536+ );
5537+ }
5538+
5539+ @ Override
5540+ public <T > SqmExpression <List <Integer >> collectionPositionsList (Collection <? super T > collection , T element ) {
5541+ return getFunctionDescriptor ( "array_positions_list" ).generateSqmExpression (
5542+ asList ( value ( collection ), value ( element ) ),
5543+ null ,
5544+ queryEngine
5545+ );
5546+ }
53875547}
0 commit comments