Interface OracleSessionlessTransactionIdCodec


public interface OracleSessionlessTransactionIdCodec
Converts Oracle sessionless transaction identifiers between the JDBC binary representation and an external string representation suitable for transport propagation.

Applications can provide their own bean implementation to apply additional protection, for example signing or encrypting the encoded value before it is exposed over HTTP.

Since:
5.2.0
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    decode(String encodedTransactionId)
    Decodes an encoded Oracle sessionless transaction identifier.
    encode(byte[] gtrid)
    Encodes a non-empty Oracle sessionless transaction identifier.
  • Method Details

    • encode

      String encode(byte[] gtrid)
      Encodes a non-empty Oracle sessionless transaction identifier.
      Parameters:
      gtrid - The Oracle global transaction identifier
      Returns:
      The encoded transaction identifier
      Throws:
      IllegalArgumentException - If the identifier cannot be encoded
    • decode

      byte[] decode(String encodedTransactionId)
      Decodes an encoded Oracle sessionless transaction identifier.
      Parameters:
      encodedTransactionId - The encoded transaction identifier
      Returns:
      The Oracle global transaction identifier
      Throws:
      IllegalArgumentException - If the value cannot be decoded