程序包 org.hibernate

接口 LobHelper


  • public interface LobHelper
    A session's helper for creating LOB data.
    作者:
    Steve Ebersole
    • 方法详细资料

      • createBlob

        Blob createBlob​(byte[] bytes)
        Create a new Blob from bytes.
        参数:
        bytes - a byte array
        返回:
        the created Blob
      • createBlob

        Blob createBlob​(InputStream stream,
                        long length)
        Create a new Blob from stream data.
        参数:
        stream - a binary stream
        length - the number of bytes in the stream
        返回:
        the create Blob
      • createClob

        Clob createClob​(String string)
        Create a new Clob from content.
        参数:
        string - The string data
        返回:
        The created Clob
      • createClob

        Clob createClob​(Reader reader,
                        long length)
        Create a new Clob from character reader.
        参数:
        reader - a character stream
        length - the number of characters in the stream
        返回:
        The created Clob
      • createNClob

        NClob createNClob​(String string)
        Create a new NClob from content.
        参数:
        string - The string data
        返回:
        The created NClob
      • createNClob

        NClob createNClob​(Reader reader,
                          long length)
        Create a new NClob from character reader.
        参数:
        reader - a character stream
        length - the number of characters in the stream
        返回:
        The created NClob