接口 LobCreator

    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      Blob createBlob​(byte[] bytes)
      Create a BLOB reference encapsulating the given byte array.
      Blob createBlob​(InputStream stream, long length)
      Create a BLOB reference encapsulating the given binary stream.
      Clob createClob​(Reader reader, long length)
      Create a CLOB reference encapsulating the given character data.
      Clob createClob​(String string)
      Create a CLOB reference encapsulating the given String data.
      NClob createNClob​(Reader reader, long length)
      Create a NCLOB reference encapsulating the given character data.
      NClob createNClob​(String string)
      Create a NCLOB reference encapsulating the given String data.
      Blob wrap​(Blob blob)
      Wrap the given blob in a serializable wrapper.
      Clob wrap​(Clob clob)
      Wrap the given clob in a serializable wrapper.
      NClob wrap​(NClob nclob)
      Wrap the given nclob in a serializable wrapper.
    • 方法详细资料

      • wrap

        Blob wrap​(Blob blob)
        Wrap the given blob in a serializable wrapper.
        参数:
        blob - The blob to be wrapped.
        返回:
        The wrapped blob which will be castable to Blob as well as WrappedBlob.
      • wrap

        Clob wrap​(Clob clob)
        Wrap the given clob in a serializable wrapper.
        参数:
        clob - The clob to be wrapped.
        返回:
        The wrapped clob which will be castable to Clob as well as WrappedClob.
      • wrap

        NClob wrap​(NClob nclob)
        Wrap the given nclob in a serializable wrapper.
        参数:
        nclob - The nclob to be wrapped.
        返回:
        The wrapped nclob which will be castable to NClob as well as WrappedNClob.
      • createBlob

        Blob createBlob​(byte[] bytes)
        Create a BLOB reference encapsulating the given byte array.
        参数:
        bytes - The byte array to wrap as a blob.
        返回:
        The created blob, castable to Blob as well as BlobImplementer
      • createBlob

        Blob createBlob​(InputStream stream,
                        long length)
        Create a BLOB reference encapsulating the given binary stream.
        参数:
        stream - The binary stream to wrap as a blob.
        length - The length of the stream.
        返回:
        The created blob, castable to Blob as well as BlobImplementer
      • createClob

        Clob createClob​(String string)
        Create a CLOB reference encapsulating the given String data.
        参数:
        string - The String to wrap as a clob.
        返回:
        The created clob, castable to Clob as well as ClobImplementer
      • createClob

        Clob createClob​(Reader reader,
                        long length)
        Create a CLOB reference encapsulating the given character data.
        参数:
        reader - The character data reader.
        length - The length of the reader data.
        返回:
        The created clob, castable to Clob as well as ClobImplementer
      • createNClob

        NClob createNClob​(String string)
        Create a NCLOB reference encapsulating the given String data.
        参数:
        string - The String to wrap as a NCLOB.
        返回:
        The created NCLOB, castable as Clob as well as NClobImplementer. In JDK 1.6 environments, also castable to java.sql.NClob
      • createNClob

        NClob createNClob​(Reader reader,
                          long length)
        Create a NCLOB reference encapsulating the given character data.
        参数:
        reader - The character data reader.
        length - The length of the reader data.
        返回:
        The created NCLOB, castable as Clob as well as NClobImplementer. In JDK 1.6 environments, also castable to java.sql.NClob