Package org.hibernate.query.sqm.internal
Class SimpleSqmCopyContext
- java.lang.Object
-
- org.hibernate.query.sqm.internal.SimpleSqmCopyContext
-
- All Implemented Interfaces:
SqmCopyContext
- Direct Known Subclasses:
NoParamSqmCopyContext
public class SimpleSqmCopyContext extends Object implements SqmCopyContext
-
-
Constructor Summary
Constructors Constructor Description SimpleSqmCopyContext()SimpleSqmCopyContext(@Nullable SqmQuerySource querySource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> @Nullable TgetCopy(T original)@Nullable SqmQuerySourcegetQuerySource()Returns the query source to use for copied queries.<T> TregisterCopy(T original, T copy)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.query.sqm.tree.SqmCopyContext
copyFetchedFlag
-
-
-
-
Constructor Detail
-
SimpleSqmCopyContext
public SimpleSqmCopyContext()
-
SimpleSqmCopyContext
public SimpleSqmCopyContext(@Nullable SqmQuerySource querySource)
-
-
Method Detail
-
getCopy
public <T> @Nullable T getCopy(T original)
- Specified by:
getCopyin interfaceSqmCopyContext
-
registerCopy
public <T> T registerCopy(T original, T copy)- Specified by:
registerCopyin interfaceSqmCopyContext
-
getQuerySource
public @Nullable SqmQuerySource getQuerySource()
Description copied from interface:SqmCopyContextReturns the query source to use for copied queries.nullmeans, that the original query source should be retained.- Specified by:
getQuerySourcein interfaceSqmCopyContext
-
-