Class PdoRemoteSessionAdapter

java.lang.Object
org.tentackle.dbms.RemoteSessionAdapter
org.tentackle.persist.PdoRemoteSessionAdapter
All Implemented Interfaces:
PdoRemoteSession, RemoteSession

public class PdoRemoteSessionAdapter extends RemoteSessionAdapter implements PdoRemoteSession
Extended remote session adapter providing PDO-related services.
Author:
harald
  • Constructor Details

    • PdoRemoteSessionAdapter

      public PdoRemoteSessionAdapter(RemoteDbSession rs)
      Creates the remote session adapter.
      Parameters:
      rs - the remote session object
  • Method Details

    • getExtension

      public <T extends DomainContextDependable> T getExtension(DomainContext context, Class<T> extIf)
      Gets an extension object.
      Extensions are used to provide additional services. The given interface is checked against execution permission within the requested domain context. If refused, a SecurityException is thrown.

      Checks the execute permission for the extension interface, creates the extension via the ServiceFactory and sets its domain context.

      Specified by:
      getExtension in interface PdoRemoteSession
      Type Parameters:
      T - the extension type
      Parameters:
      context - the domain context
      extIf - the extension interface
      Returns:
      the extension
      Throws:
      SecurityException - if the user has no execute permission
      PersistenceException - if the extension could not be created