Class ProcessorSessionFactory
java.lang.Object
org.hibernate.processor.validation.MockSessionFactory
org.hibernate.processor.validation.ProcessorSessionFactory
- All Implemented Interfaces:
EntityManagerFactory
,Serializable
,AutoCloseable
,Referenceable
,FunctionContributions
,BootstrapContext
,MetadataBuildingContext
,MetadataBuildingOptions
,SessionFactoryOptions
,SessionFactoryImplementor
,RuntimeModelCreationContext
,BindingContext
,QueryEngine
,QueryEngineOptions
,QueryParameterBindingTypeResolver
,SqmCreationContext
,SessionFactory
,SqlAstCreationContext
,JdbcTypeIndicators
,MappingContext
Implementation of the
Mock
objects based on standard
annotation processor APIs. Note that alternative implementations
exist in the Query Validator project.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
static class
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionProcessorSessionFactory
(ProcessingEnvironment processingEnvironment, boolean indexing, Map<String, String> entityNameMappings, Map<String, Set<String>> enumTypesByValue) -
Method Summary
Modifier and TypeMethodDescriptionstatic Element
asElement
(TypeMirror type) static MockSessionFactory
create
(ProcessingEnvironment environment, Map<String, String> entityNameMappings, Map<String, Set<String>> enumTypesByValue, boolean indexing) static TypeElement
findEntityByUnqualifiedName
(String entityName, ModuleElement module) findEntityClass
(String entityName) protected String
getSupertype
(String entityName) protected boolean
Methods inherited from class org.hibernate.processor.validation.MockSessionFactory
addObserver, classForName, close, findEntityGraphByName, getBootModel, getBootstrapContext, getBuildingOptions, getCache, getCriteriaBuilder, getCurrentTenantIdentifierResolver, getCustomEntityDirtinessStrategy, getDefaultTimeZoneStorageStrategy, getDefinedFilterNames, getDialect, getDomainModel, getEffectiveDefaults, getEntityNameResolvers, getEntityNotFoundDelegate, getFastSessionServices, getFunctionRegistry, getHqlTranslator, 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, getVersionType, isClosed, isDelayBatchFetchLoaderCreationsEnabled, isPreferJavaTimeJdbcTypesEnabled, isPreferNativeEnumTypesEnabled, isXmlFormatMapperLegacyFormatEnabled, 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, getRepresentationStrategySelector, getScanEnvironment, getScanner, getScanOptions, getSqlFunctions, isJpaBootstrap, markAsJpaBootstrap, registerAdHocBasicType, release, resolveAdHocBasicType
Methods inherited from interface jakarta.persistence.EntityManagerFactory
addNamedEntityGraph, addNamedQuery, callInTransaction, getNamedEntityGraphs, getNamedQueries, getPersistenceUnitUtil, getProperties, getTransactionType, isOpen, runInTransaction, unwrap
Methods inherited from interface org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators
getColumnLength, getColumnPrecision, getColumnScale, getDefaultZonedTimeSqlType, getDefaultZonedTimestampSqlType, getEnumeratedType, getExplicitJdbcTypeCode, getJdbcType, getPreferredSqlTypeCodeForArray, getTemporalPrecision, isLob, isNationalized, preferJdbcDatetimeTypes, resolveJdbcTypeCode
Methods inherited from interface org.hibernate.boot.spi.MetadataBuildingContext
getCurrentContributorName, getMetadataCollector, getObjectNameNormalizer, getTypeDefinitionRegistry
Methods inherited from interface org.hibernate.boot.spi.MetadataBuildingOptions
createImplicitDiscriminatorsForJoinedInheritance, getBasicTypeRegistrations, getColumnOrderingStrategy, getCompositeUserTypes, getDefaultTimeZoneStorage, getImplicitCacheAccessType, getManagedTypeRepresentationResolver, getPersistentCollectionRepresentationResolver, getSchemaCharset, getSharedCacheMode, 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, getImmutableEntityUpdateQueryHandlingMode
Methods inherited from interface org.hibernate.query.spi.QueryParameterBindingTypeResolver
resolveParameterBindType, resolveParameterBindType
Methods inherited from interface javax.naming.Referenceable
getReference
Methods inherited from interface org.hibernate.metamodel.spi.RuntimeModelCreationContext
createEntityMetamodel, getGenerators, getGeneratorSettings, getJavaTypeRegistry, getMetadata
Methods inherited from interface org.hibernate.SessionFactory
containsFetchProfileDefinition, createEntityManager, createEntityManager, createEntityManager, createEntityManager, findEntityGraphsByType, fromSession, fromStatelessSession, fromStatelessTransaction, fromTransaction, getCurrentSession, getDefinedFetchProfileNames, getJndiName, getSchemaManager, inSession, inStatelessSession, inStatelessTransaction, inTransaction, openStatelessSession, openStatelessSession, withStatelessOptions
Methods inherited from interface org.hibernate.engine.spi.SessionFactoryImplementor
bestGuessEntityName, getAutoEnabledFilters, getEventEngine, getFetchProfile, getFilterDefinition, getGenerator, getWrapperOptions, openSession, openTemporarySession, withOptions
Methods inherited from interface org.hibernate.boot.spi.SessionFactoryOptions
areJPACallbacksEnabled, doesConnectionProviderDisableAutoCommit, getBaselineSessionEventsListenerBuilder, getBeanManagerReference, getCacheRegionPrefix, getCriteriaValueHandlingMode, getDefaultBatchFetchSize, getDefaultCatalog, getDefaultNullPrecedence, getDefaultSchema, getDefaultTenantIdentifierJavaType, 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, isJsonFunctionsEnabled, isJtaTrackByThread, isJtaTransactionAccessEnabled, isMinimalPutsEnabled, isMultiTenancyEnabled, isNamedQueryStartupCheckingEnabled, isOrderInsertsEnabled, isOrderUpdatesEnabled, isPassProcedureParameterNames, isPortableIntegerDivisionEnabled, isPreferJdbcDatetimeTypesInNativeQueriesEnabled, isPreferUserTransaction, isQueryCacheEnabled, isReleaseResourcesOnCloseEnabled, isScrollableResultSetsEnabled, isSecondLevelCacheEnabled, isSessionFactoryNameAlsoJndiName, isStatisticsEnabled, isStructuredCacheEntriesEnabled, isSubselectFetchEnabled, isUnownedAssociationTransientCheck, isUseOfJdbcNamedParametersEnabled, isXmlFunctionsEnabled
Methods inherited from interface org.hibernate.query.sqm.spi.SqmCreationContext
getNodeBuilder
-
Field Details
-
ENTITY_INDEX
- See Also:
-
-
Constructor Details
-
ProcessorSessionFactory
-
-
Method Details
-
create
public static MockSessionFactory create(ProcessingEnvironment environment, Map<String, String> entityNameMappings, Map<String, Set<String>> enumTypesByValue, boolean indexing) -
findEntityClass
-
findEntityByUnqualifiedName
-
getSupertype
- Specified by:
getSupertype
in classMockSessionFactory
-
isSubtype
- Specified by:
isSubtype
in classMockSessionFactory
-
asElement
-