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 T
getCopy(T original)
@Nullable SqmQuerySource
getQuerySource()
Returns the query source to use for copied queries.<T> T
registerCopy(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:
getCopy
in interfaceSqmCopyContext
-
registerCopy
public <T> T registerCopy(T original, T copy)
- Specified by:
registerCopy
in interfaceSqmCopyContext
-
getQuerySource
public @Nullable SqmQuerySource getQuerySource()
Description copied from interface:SqmCopyContext
Returns the query source to use for copied queries.null
means, that the original query source should be retained.- Specified by:
getQuerySource
in interfaceSqmCopyContext
-
-