Interface Wrapper

All Known Subinterfaces:
StorageAccessor, UnitOfWork
All Known Implementing Classes:
AbstractUnitOfWork, ChangeTrackingUnitOfWork, ConnectionWrapper, DefaultStorageAccessor, EntityManagerImpl, OnCommitChangePropagatingUnitOfWork, ReadOnlyUnitOfWork, ServerSession
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Wrapper
Marks classes which allow to unwrap provider-specific implementations.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    unwrap(Class<T> cls)
    Unwraps implementation of the specified class.
  • Method Details

    • unwrap

      <T> T unwrap(Class<T> cls)
      Unwraps implementation of the specified class.
      Parameters:
      cls - The class of the object to be returned
      Returns:
      An instance of the specified class
      Throws:
      OWLPersistenceException - If the provider does not support the class