Package cz.cvut.kbss.jopa.sessions
Class AbstractSession
java.lang.Object
cz.cvut.kbss.jopa.sessions.AbstractSession
- All Implemented Interfaces:
ConfigurationHolder,MetamodelProvider
- Direct Known Subclasses:
AbstractUnitOfWork,ServerSession
public abstract class AbstractSession
extends Object
implements MetamodelProvider, ConfigurationHolder
Defines common session-related methods.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ConnectionWrapperAcquires connection to the underlying ontology storage.Gets provider configuration.abstract CriteriaBuilderGets aCriteriaBuilderinstance for building Criteria API queries.abstract CacheManagerGet the current live object cache.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cz.cvut.kbss.jopa.sessions.MetamodelProvider
getMetamodel, getNamedQueryManager, getResultSetMappingManager, isEntityType
-
Field Details
-
configuration
-
-
Constructor Details
-
AbstractSession
-
-
Method Details
-
getConfiguration
Description copied from interface:ConfigurationHolderGets provider configuration.- Specified by:
getConfigurationin interfaceConfigurationHolder- Returns:
- Configuration
-
getLiveObjectCache
Get the current live object cache.This manager represents the second level cache.
- Returns:
- Second level cache manager
-
acquireConnection
Acquires connection to the underlying ontology storage.- Returns:
- Connection
-
getCriteriaBuilder
Gets aCriteriaBuilderinstance for building Criteria API queries.- Returns:
- Criteria query builder
-