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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> @Nullable T
getCopy
(T original) @Nullable SqmQuerySource
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 Details
-
SimpleSqmCopyContext
public SimpleSqmCopyContext() -
SimpleSqmCopyContext
-
-
Method Details
-
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
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
-