Class NClobProxy

java.lang.Object
org.hibernate.engine.jdbc.proxy.ClobProxy
org.hibernate.engine.jdbc.proxy.NClobProxy
All Implemented Interfaces:
Clob, NClob, ClobImplementer, NClobImplementer

@Internal public class NClobProxy extends ClobProxy implements NClob, NClobImplementer
Manages aspects of proxying NClobs for non-contextual creation, including proxy creation and handling proxy invocations. We use proxies here solely to avoid JDBC version incompatibilities.
See Also:
API Note:
This class is not intended to be called directly by the application program. Instead, use Session.getLobHelper().
  • Constructor Details

    • NClobProxy

      protected NClobProxy(String string)
    • NClobProxy

      protected NClobProxy(Reader reader, long length)
  • Method Details

    • generateProxy

      public static NClob generateProxy(String string)
      Generates a Clob proxy using the string data.
      Parameters:
      string - The data to be wrapped as a Clob.
      Returns:
      The generated proxy.
    • generateProxy

      public static NClob generateProxy(Reader reader, long length)
      Generates a NClob proxy using a character reader of given length.
      Parameters:
      reader - The character reader
      length - The length of the character reader
      Returns:
      The generated proxy.
    • getProxyClassLoader

      protected static ClassLoader getProxyClassLoader()
      Determines the appropriate class loader to which the generated proxy should be scoped.
      Returns:
      The class loader appropriate for proxy construction.