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