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 Details

    • SimpleSqmCopyContext

      public SimpleSqmCopyContext()
    • SimpleSqmCopyContext

      public SimpleSqmCopyContext(@Nullable SqmQuerySource querySource)
  • Method Details

    • getCopy

      public <T> @Nullable T getCopy(T original)
      Specified by:
      getCopy in interface SqmCopyContext
    • registerCopy

      public <T> T registerCopy(T original, T copy)
      Specified by:
      registerCopy in interface SqmCopyContext
    • 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 interface SqmCopyContext