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 booleancopyFetchedFlag()Returns whether thefetchflag for attribute joins should be copied over.<T> @Nullable TgetCopy(T original)default @Nullable SqmQuerySourcegetQuerySource()Returns the query source to use for copied queries.static SqmCopyContextnoParamCopyContext()static SqmCopyContextnoParamCopyContext(SqmQuerySource querySource)<T> TregisterCopy(T original, T copy)static SqmCopyContextsimpleContext()static SqmCopyContextsimpleContext(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 thefetchflag 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.nullmeans, 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)
-
-