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
-
Method Details
-
encode
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
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
-