Package org.hibernate

Interface LobHelper


  • public interface LobHelper
    A session's helper for creating LOB data.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.sql.Blob createBlob​(byte[] bytes)
      Create a new Blob from bytes.
      java.sql.Blob createBlob​(java.io.InputStream stream, long length)
      Create a new Blob from stream data.
      java.sql.Clob createClob​(java.io.Reader reader, long length)
      Create a new Clob from character reader.
      java.sql.Clob createClob​(java.lang.String string)
      Create a new Clob from content.
      java.sql.NClob createNClob​(java.io.Reader reader, long length)
      Create a new NClob from character reader.
      java.sql.NClob createNClob​(java.lang.String string)
      Create a new NClob from content.
    • Method Detail

      • createBlob

        java.sql.Blob createBlob​(byte[] bytes)
        Create a new Blob from bytes.
        Parameters:
        bytes - a byte array
        Returns:
        the created Blob
      • createBlob

        java.sql.Blob createBlob​(java.io.InputStream stream,
                                 long length)
        Create a new Blob from stream data.
        Parameters:
        stream - a binary stream
        length - the number of bytes in the stream
        Returns:
        the create Blob
      • createClob

        java.sql.Clob createClob​(java.lang.String string)
        Create a new Clob from content.
        Parameters:
        string - The string data
        Returns:
        The created Clob
      • createClob

        java.sql.Clob createClob​(java.io.Reader reader,
                                 long length)
        Create a new Clob from character reader.
        Parameters:
        reader - a character stream
        length - the number of characters in the stream
        Returns:
        The created Clob
      • createNClob

        java.sql.NClob createNClob​(java.lang.String string)
        Create a new NClob from content.
        Parameters:
        string - The string data
        Returns:
        The created NClob
      • createNClob

        java.sql.NClob createNClob​(java.io.Reader reader,
                                   long length)
        Create a new NClob from character reader.
        Parameters:
        reader - a character stream
        length - the number of characters in the stream
        Returns:
        The created NClob