Class ManagedJdbcTransactionPolicy

java.lang.Object
org.j7m.middleware.application.distributed.ManagedJdbcTransactionPolicy
All Implemented Interfaces:
org.j7m.middleware.application.components.ManagedInvocationPolicy

public final class ManagedJdbcTransactionPolicy extends Object implements org.j7m.middleware.application.components.ManagedInvocationPolicy
Trusted same-invocation REQUIRED local H2 TCP transaction policy. Exactly one fresh physical connection belongs to the outer invocation and remains owned through actual tracked USER completion. Commit reply loss is UNKNOWN, not proof of rollback. This adapter neither enlists a database in native resource 2PC nor provides automatic DB-plus-queue atomicity.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final record 
    Qualified H2 TCP connection ownership configuration.

    Nested classes/interfaces inherited from interface org.j7m.middleware.application.components.ManagedInvocationPolicy

    org.j7m.middleware.application.components.ManagedInvocationPolicy.Binding, org.j7m.middleware.application.components.ManagedInvocationPolicy.Phase, org.j7m.middleware.application.components.ManagedInvocationPolicy.Proceed
  • Constructor Summary

    Constructors
    Constructor
    Description
    Registers at most256 finite named local transaction policies.
  • Method Summary

    Modifier and Type
    Method
    Description
    Set<Class<? extends Annotation>>
    Returns the precise annotation capability implemented by this host policy.
    org.j7m.middleware.application.components.ManagedInvocationPolicy.Binding
    bind(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> implementation, Class<?> businessInterface)
    Binds immutable policy state; connection opening waits for actual admitted owned scope.
    org.j7m.middleware.application.components.ManagedInvocationPolicy.Phase
    Returns the transaction phase inside durable replay and outside application work.
    void
    validate(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> implementation, Class<?> businessInterface)
    Rejects unsupported profile/mixed protocol and live JDBC return contracts before constructors.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.j7m.middleware.application.components.ManagedInvocationPolicy

    bindHosted, validateComponent, validateExposure, validateHosted, validateHostedExposure, validateHostedExposure
  • Constructor Details

  • Method Details

    • phase

      public org.j7m.middleware.application.components.ManagedInvocationPolicy.Phase phase()
      Returns the transaction phase inside durable replay and outside application work.
      Specified by:
      phase in interface org.j7m.middleware.application.components.ManagedInvocationPolicy
      Returns:
      transaction phase
    • annotationTypes

      public Set<Class<? extends Annotation>> annotationTypes()
      Returns the precise annotation capability implemented by this host policy.
      Specified by:
      annotationTypes in interface org.j7m.middleware.application.components.ManagedInvocationPolicy
      Returns:
      local JDBC marker
    • validate

      public void validate(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> implementation, Class<?> businessInterface)
      Rejects unsupported profile/mixed protocol and live JDBC return contracts before constructors.
      Specified by:
      validate in interface org.j7m.middleware.application.components.ManagedInvocationPolicy
      Parameters:
      contract - complete verified method identity
      implementation - actual implementation
      businessInterface - declared public interface
      Throws:
      IllegalArgumentException - for unknown profile or unsupported shape
    • bind

      public org.j7m.middleware.application.components.ManagedInvocationPolicy.Binding bind(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> implementation, Class<?> businessInterface)
      Binds immutable policy state; connection opening waits for actual admitted owned scope.
      Specified by:
      bind in interface org.j7m.middleware.application.components.ManagedInvocationPolicy
      Parameters:
      contract - complete method identity
      implementation - actual implementation
      businessInterface - declared interface
      Returns:
      revocable binding; closing never commits or deletes durable data