Class ProcessorSessionFactory
- java.lang.Object
-
- org.hibernate.processor.validation.MockSessionFactory
-
- org.hibernate.processor.validation.ProcessorSessionFactory
-
- All Implemented Interfaces:
EntityManagerFactory
,Closeable
,Serializable
,AutoCloseable
,Referenceable
,FunctionContributions
,BootstrapContext
,MetadataBuildingContext
,MetadataBuildingOptions
,SessionFactoryOptions
,Mapping
,SessionFactoryImplementor
,RuntimeModelCreationContext
,PersisterCreationContext
,QueryEngine
,QueryEngineOptions
,QueryParameterBindingTypeResolver
,SqmCreationContext
,SessionFactory
,SqlAstCreationContext
,JdbcTypeIndicators
public abstract class ProcessorSessionFactory extends MockSessionFactory
Implementation of theMock
objects based on standard annotation processor APIs. Note that alternative implementations exist in the Query Validator project.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProcessorSessionFactory.Component
static class
ProcessorSessionFactory.ElementCollectionPersister
static class
ProcessorSessionFactory.EntityPersister
static class
ProcessorSessionFactory.ToManyAssociationPersister
-
Nested classes/interfaces inherited from interface org.hibernate.engine.spi.SessionFactoryImplementor
SessionFactoryImplementor.DeserializationResolver<T extends SessionFactoryImplementor>
-
-
Field Summary
Fields Modifier and Type Field Description static String
ENTITY_INDEX
-
Fields inherited from interface org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators
NO_COLUMN_LENGTH, NO_COLUMN_PRECISION, NO_COLUMN_SCALE
-
Fields inherited from interface org.hibernate.query.spi.QueryEngine
DEFAULT_QUERY_PLAN_MAX_COUNT
-
-
Constructor Summary
Constructors Constructor Description ProcessorSessionFactory(ProcessingEnvironment processingEnvironment, Map<String,String> entityNameMappings, Map<String,Set<String>> enumTypesByValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Element
asElement(TypeMirror type)
static MockSessionFactory
create(ProcessingEnvironment environment, Map<String,String> entityNameMappings, Map<String,Set<String>> enumTypesByValue)
static TypeElement
findEntityByUnqualifiedName(String entityName, ModuleElement module)
protected String
getSupertype(String entityName)
protected boolean
isSubtype(String entityName, String subtypeEntityName)
-
Methods inherited from class org.hibernate.processor.validation.MockSessionFactory
addObserver, close, findEntityGraphByName, getBatchFetchStyle, getBootModel, getBootstrapContext, getBuildingOptions, getCache, getCriteriaBuilder, getCurrentTenantIdentifierResolver, getCustomEntityDirtinessStrategy, getDefaultTimeZoneStorageStrategy, getDefinedFilterNames, getDialect, getDomainModel, getEntityNameResolvers, getEntityNotFoundDelegate, getFastSessionServices, getFunctionRegistry, getHqlTranslator, getIdentifierGeneratorFactory, getIdentifierPropertyName, getIdentifierType, getImplicitNamingStrategy, getInterpretationCache, getJdbcServices, getJpaCompliance, getJpaMetamodel, getMappingDefaults, getMappingMetamodel, getMaximumFetchDepth, getMetamodel, getName, getNamedObjectRepository, getNativeQueryInterpreter, getPhysicalNamingStrategy, getPreferredSqlTypeCodeForArray, getPreferredSqlTypeCodeForBoolean, getPreferredSqlTypeCodeForDuration, getPreferredSqlTypeCodeForInstant, getPreferredSqlTypeCodeForUuid, getQueryEngine, getReferencedPropertyType, getRuntimeMetamodels, getServiceRegistry, getSessionFactory, getSessionFactoryName, getSessionFactoryObservers, getSessionFactoryOptions, getSettings, getSqlStringGenerationContext, getSqmFunctionRegistry, getSqmTranslatorFactory, getStatistics, getTenantIdentifierJavaType, getTypeConfiguration, getUuid, isClosed, isDelayBatchFetchLoaderCreationsEnabled, isPreferJavaTimeJdbcTypesEnabled, isPreferNativeEnumTypesEnabled, setCheckNullability, validateNamedQueries
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.boot.spi.BootstrapContext
getArchiveDescriptorFactory, getAttributeConverters, getAuxiliaryDatabaseObjectList, getCacheRegionDefinitions, getClassLoaderAccess, getClassmateContext, getCustomTypeProducer, getJandexView, getJpaTempClassLoader, getMetadataBuildingOptions, getReflectionManager, getRepresentationStrategySelector, getScanEnvironment, getScanner, getScanOptions, getSqlFunctions, isJpaBootstrap, markAsJpaBootstrap, registerAdHocBasicType, release, resolveAdHocBasicType
-
Methods inherited from interface jakarta.persistence.EntityManagerFactory
addNamedEntityGraph, addNamedQuery, createEntityManager, createEntityManager, createEntityManager, createEntityManager, getPersistenceUnitUtil, getProperties, isOpen, unwrap
-
Methods inherited from interface org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators
getColumnLength, getColumnPrecision, getColumnScale, getDefaultZonedTimeSqlType, getDefaultZonedTimestampSqlType, getEnumeratedType, getExplicitJdbcTypeCode, getJdbcType, getTemporalPrecision, isLob, isNationalized, resolveJdbcTypeCode
-
Methods inherited from interface org.hibernate.boot.spi.MetadataBuildingContext
getCurrentContributorName, getMetadataCollector, getObjectNameNormalizer, getTypeDefinitionRegistry
-
Methods inherited from interface org.hibernate.boot.spi.MetadataBuildingOptions
createImplicitDiscriminatorsForJoinedInheritance, disallowExtensionsInCdi, getBasicTypeRegistrations, getColumnOrderingStrategy, getCompositeUserTypes, getDefaultTimeZoneStorage, getImplicitCacheAccessType, getManagedTypeRepresentationResolver, getPersistentCollectionRepresentationResolver, getSchemaCharset, getSharedCacheMode, getSourceProcessOrdering, getTimeZoneSupport, getWrapperArrayHandling, ignoreExplicitDiscriminatorsForJoinedInheritance, isAllowExtensionsInCdi, isMultiTenancyEnabled, isNoConstraintByDefault, isSpecjProprietarySyntaxEnabled, isXmlMappingEnabled, shouldImplicitlyForceDiscriminatorInSelect, useNationalizedCharacterData
-
Methods inherited from interface org.hibernate.query.spi.QueryEngine
interpretHql
-
Methods inherited from interface org.hibernate.query.spi.QueryEngineOptions
getCustomHqlTranslator, getCustomSqlFunctionMap, getCustomSqmFunctionRegistry, getCustomSqmMultiTableInsertStrategy, getCustomSqmMultiTableMutationStrategy, getCustomSqmTranslatorFactory
-
Methods inherited from interface javax.naming.Referenceable
getReference
-
Methods inherited from interface org.hibernate.metamodel.spi.RuntimeModelCreationContext
getJavaTypeRegistry, getMetadata
-
Methods inherited from interface org.hibernate.SessionFactory
containsFetchProfileDefinition, findEntityGraphsByType, fromSession, fromStatelessSession, fromStatelessTransaction, fromTransaction, getCurrentSession, getDefinedFetchProfileNames, getSchemaManager, inSession, inStatelessSession, inStatelessTransaction, inTransaction, openStatelessSession, openStatelessSession, withStatelessOptions
-
Methods inherited from interface org.hibernate.engine.spi.SessionFactoryImplementor
bestGuessEntityName, getAutoEnabledFilters, getDeserializationResolver, getEventEngine, getFetchProfile, getFilterDefinition, getGenerator, getIdentifierGenerator, getWrapperOptions, openSession, openTemporarySession, resolveParameterBindType, resolveParameterBindType, withOptions
-
Methods inherited from interface org.hibernate.boot.spi.SessionFactoryOptions
areJPACallbacksEnabled, doesConnectionProviderDisableAutoCommit, getBaselineSessionEventsListenerBuilder, getBeanManagerReference, getCacheRegionPrefix, getCriteriaValueHandlingMode, getDefaultBatchFetchSize, getDefaultCatalog, getDefaultNullPrecedence, getDefaultSchema, getDefaultTenantIdentifierJavaType, getImmutableEntityUpdateQueryHandlingMode, getInterceptor, getJdbcBatchSize, getJdbcFetchSize, getJdbcTimeZone, getJsonFormatMapper, getNativeJdbcParametersIgnored, getPhysicalConnectionHandlingMode, getQueryCacheLayout, getQueryStatisticsMaxSize, getSchemaAutoTooling, getStatelessInterceptorImplementorSupplier, getStatementInspector, getTempTableDdlTransactionHandling, getTimestampsCacheFactory, getValidatorFactoryReference, getXmlFormatMapper, inClauseParameterPaddingEnabled, isAllowOutOfTransactionUpdateOperations, isAllowRefreshDetachedEntity, isAutoCloseSessionEnabled, isAutoEvictCollectionCache, isCheckNullability, isCollectionsInDefaultFetchGroupEnabled, isCommentsEnabled, isCriteriaCopyTreeEnabled, isDirectReferenceCacheEntriesEnabled, isFailOnPaginationOverCollectionFetchEnabled, isFlushBeforeCompletionEnabled, isGetGeneratedKeysEnabled, isIdentifierRollbackEnabled, isInitializeLazyStateOutsideTransactionsEnabled, isJdbcBatchVersionedData, isJpaBootstrap, isJtaTrackByThread, isJtaTransactionAccessEnabled, isMinimalPutsEnabled, isMultiTenancyEnabled, isNamedQueryStartupCheckingEnabled, isOrderInsertsEnabled, isOrderUpdatesEnabled, isPassProcedureParameterNames, isPortableIntegerDivisionEnabled, isPreferUserTransaction, isQueryCacheEnabled, isReleaseResourcesOnCloseEnabled, isScrollableResultSetsEnabled, isSecondLevelCacheEnabled, isSessionFactoryNameAlsoJndiName, isStatisticsEnabled, isStructuredCacheEntriesEnabled, isSubselectFetchEnabled, isUnownedAssociationTransientCheck, isUseOfJdbcNamedParametersEnabled
-
Methods inherited from interface org.hibernate.query.sqm.spi.SqmCreationContext
getNodeBuilder
-
-
-
-
Field Detail
-
ENTITY_INDEX
public static final String ENTITY_INDEX
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public static MockSessionFactory create(ProcessingEnvironment environment, Map<String,String> entityNameMappings, Map<String,Set<String>> enumTypesByValue)
-
findEntityByUnqualifiedName
public static TypeElement findEntityByUnqualifiedName(String entityName, ModuleElement module)
-
getSupertype
protected String getSupertype(String entityName)
- Specified by:
getSupertype
in classMockSessionFactory
-
isSubtype
protected boolean isSubtype(String entityName, String subtypeEntityName)
- Specified by:
isSubtype
in classMockSessionFactory
-
asElement
public static Element asElement(TypeMirror type)
-
-