Class SessionProviderAwareInterceptor

java.lang.Object
org.tentackle.reflect.AbstractInterceptor
org.tentackle.pdo.SessionProviderAwareInterceptor
All Implemented Interfaces:
InvocationHandler, Interceptor
Direct Known Subclasses:
LocalSessionOnlyInterceptor, PostCommitInterceptor, PreCommitInterceptor, RemoteMethodAwareInterceptor

public abstract class SessionProviderAwareInterceptor extends AbstractInterceptor
Base implementation for interceptors on SessionProviders.
  • Constructor Details

    • SessionProviderAwareInterceptor

      public SessionProviderAwareInterceptor()
      Parent constructor.
  • Method Details

    • getSession

      protected Session getSession(Object orgProxy)
      Returns the session from the given proxy.
      Throws PersistenceException if the proxy is not a SessionProvider or the session is null.
      Parameters:
      orgProxy - the proxy object
      Returns:
      the session, never null