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 ConnectionWrapper
Acquires connection to the underlying ontology storage.Gets provider configuration.abstract CriteriaBuilder
Gets aCriteriaBuilder
instance for building Criteria API queries.abstract CacheManager
Get the current live object cache.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:ConfigurationHolder
Gets provider configuration.- Specified by:
getConfiguration
in 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 aCriteriaBuilder
instance for building Criteria API queries.- Returns:
- Criteria query builder
-