org.apache.olingo.odata2.jpa.processor.api

## Interface OnJPAWriteContent

- All Superinterfaces:
    ODataCallback
  All Known Implementing Classes:
    OnDBWriteContent

      public interface OnJPAWriteContent
      extends ODataCallback

  The interface is a call back interface that enables OData JPA Processor to get JPA provider specific implementation of java.sql.Blob and java.sql.Clob instances.

  Implement this interface if the JPA Model uses the data types java.sql.Blob and java.sql.Clob for its entity properties.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Blob` | `getJPABlob(byte[] binaryData)` Implement this method to instantiate JPA provider specific implementation of java.sql.Blob instance from an array of bytes.
    `Clob` | `getJPAClob(char[] characterData)` Implement this method to instantiate JPA provider specific implementation of java.sql.Clob instance from an array of characters.

- - ### Method Detail

    - #### getJPABlob

          Blob getJPABlob(byte[] binaryData)
                   throws ODataJPARuntimeException

      Implement this method to instantiate JPA provider specific implementation of java.sql.Blob instance from an array of bytes.
      Parameters:
        `binaryData` - is an array of bytes
      Returns:
        an instance of type `Blob`
      Throws:
        `ODataJPARuntimeException`

    - #### getJPAClob

          Clob getJPAClob(char[] characterData)
                   throws ODataJPARuntimeException

      Implement this method to instantiate JPA provider specific implementation of java.sql.Clob instance from an array of characters.
      Parameters:
        `characterData` - is an array of characters
      Returns:
        an instance of type `Clob`
      Throws:
        `ODataJPARuntimeException`

Copyright © 2013-2023 The Apache Software Foundation. All Rights Reserved.