Package org.hibernate.query.sqm.tree
Interface SqmCopyContext
- All Known Implementing Classes:
NoParamSqmCopyContext
,SimpleSqmCopyContext
public interface SqmCopyContext
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
Returns whether thefetch
flag for attribute joins should be copied over.<T> @Nullable T
getCopy
(T original) default @Nullable SqmQuerySource
Returns the query source to use for copied queries.static SqmCopyContext
static SqmCopyContext
noParamCopyContext
(SqmQuerySource querySource) <T> T
registerCopy
(T original, T copy) static SqmCopyContext
static SqmCopyContext
simpleContext
(SqmQuerySource querySource)
-
Method Details
-
getCopy
<T> @Nullable T getCopy(T original) -
registerCopy
<T> T registerCopy(T original, T copy) -
copyFetchedFlag
Returns whether thefetch
flag for attribute joins should be copied over.- Since:
- 6.4
-
getQuerySource
Returns the query source to use for copied queries.null
means, that the original query source should be retained.- Since:
- 7.0
-
simpleContext
-
simpleContext
-
noParamCopyContext
-
noParamCopyContext
-