Interface SqmCopyContext

All Known Implementing Classes:
NoParamSqmCopyContext, SimpleSqmCopyContext

public interface SqmCopyContext
  • Method Details

    • getCopy

      <T> @Nullable T getCopy(T original)
    • registerCopy

      <T> T registerCopy(T original, T copy)
    • copyFetchedFlag

      @Incubating default boolean copyFetchedFlag()
      Returns whether the fetch flag 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. null means, 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)