Class ConnectionWrapper

java.lang.Object
cz.cvut.kbss.jopa.sessions.ConnectionWrapper
All Implemented Interfaces:
Wrapper

public class ConnectionWrapper extends Object implements Wrapper
  • Constructor Details

    • ConnectionWrapper

      public ConnectionWrapper(Connection connection)
  • Method Details

    • contains

      public <T> boolean contains(Object identifier, Class<T> cls, Descriptor descriptor)
    • find

      public <T> T find(LoadingParameters<T> loadingParameters)
    • getReference

      public <T> T getReference(LoadingParameters<T> loadingParameters)
    • merge

      public <T> void merge(T entity, FieldSpecification<? super T,?> fieldSpec, Descriptor descriptor)
    • generateIdentifier

      public URI generateIdentifier(EntityType<?> et)
    • persist

      public <T> void persist(Object identifier, T entity, Descriptor descriptor)
    • remove

      public <T> void remove(Object identifier, Class<T> cls, Descriptor descriptor)
    • loadFieldValue

      public <T> void loadFieldValue(T entity, FieldSpecification<? super T,?> fieldSpec, Descriptor descriptor)
    • getAttributeAxioms

      public <T> Set<Axiom<?>> getAttributeAxioms(T entity, FieldSpecification<? super T,?> fieldSpec, Descriptor entityDescriptor)
    • isInferred

      public <T> boolean isInferred(T entity, FieldSpecification<? super T,?> fieldSpec, Object value, Descriptor entityDescriptor)
    • commit

      public void commit()
    • rollback

      public void rollback()
    • close

      public void close()
    • isConsistent

      public boolean isConsistent(URI context)
    • isInferred

      public boolean isInferred(Axiom<?> axiom, Set<URI> contexts)
    • getContexts

      public List<URI> getContexts()
    • createStatement

      public Statement createStatement()
    • unwrap

      public <T> T unwrap(Class<T> cls)
      Description copied from interface: Wrapper
      Unwraps implementation of the specified class.
      Specified by:
      unwrap in interface Wrapper
      Parameters:
      cls - The class of the object to be returned
      Returns:
      An instance of the specified class