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