Class ProcessorSessionFactory
java.lang.Object
org.hibernate.processor.validation.MockSessionFactory
org.hibernate.processor.validation.ProcessorSessionFactory
- All Implemented Interfaces:
EntityManagerFactory, Serializable, AutoCloseable, Referenceable, org.hibernate.boot.model.FunctionContributions, org.hibernate.boot.spi.BootstrapContext, org.hibernate.boot.spi.MetadataBuildingContext, org.hibernate.boot.spi.MetadataBuildingOptions, org.hibernate.boot.spi.SessionFactoryOptions, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.metamodel.RuntimeMetamodels, org.hibernate.metamodel.spi.RuntimeMetamodelsImplementor, org.hibernate.metamodel.spi.RuntimeModelCreationContext, org.hibernate.query.spi.QueryEngine, org.hibernate.query.spi.QueryEngineOptions, org.hibernate.SessionFactory, org.hibernate.type.BindingContext, org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators, org.hibernate.type.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 classstatic classstatic classstatic class -
Field Summary
FieldsFields inherited from interface org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators
NO_COLUMN_LENGTH, NO_COLUMN_PRECISION, NO_COLUMN_SCALEFields 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, @Nullable Element queryElement) -
Method Summary
Modifier and TypeMethodDescriptionstatic ElementasElement(TypeMirror type) static MockSessionFactorycreate(ProcessingEnvironment environment, Map<String, String> entityNameMappings, Map<String, Set<String>> enumTypesByValue, boolean indexing, @Nullable Element queryElement) findEntityClass(String entityName) protected StringgetJpaEntityName(String typeName) protected StringgetSupertype(String entityName) protected booleanprotected booleanMethods inherited from class MockSessionFactory
addObserver, allowImmutableEntityUpdate, close, findEntityGraphByName, getAuditStrategy, getBootModel, getBootstrapContext, getBuildingOptions, getCache, getClassLoaderService, getCriteriaBuilder, getCriteriaValueHandlingMode, getCurrentTenantIdentifierResolver, getCustomEntityDirtinessStrategy, getDefaultTimeZoneStorageStrategy, getDefinedFilterNames, getDialect, getDomainModel, getEffectiveDefaults, getEntityNameResolvers, getEntityNotFoundDelegate, getFunctionRegistry, getHqlTranslator, getIdentifierPropertyName, getIdentifierType, getImmutableEntityUpdateQueryHandlingMode, 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, getSqlTranslationEngine, getSqmFunctionRegistry, getSqmTranslatorFactory, getStatistics, getTemporalTableStrategy, getTenantIdentifierJavaType, getTypeConfiguration, getUuid, getVersionType, isClosed, isDelayBatchFetchLoaderCreationsEnabled, isPreferJavaTimeJdbcTypesEnabled, isPreferLocaleLanguageTagEnabled, isPreferNativeEnumTypesEnabled, isXmlFormatMapperLegacyFormatEnabled, setCheckNullability, validateNamedQueriesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.type.BindingContext
resolveExpressibleMethods inherited from interface org.hibernate.boot.spi.BootstrapContext
findAdHocBasicType, getArchiveDescriptorFactory, getAttributeConverters, getAuxiliaryDatabaseObjectList, getCacheRegionDefinitions, getClassLoaderAccess, getConfigurationService, getCustomTypeProducer, getJandexView, getJpaTempClassLoader, getManagedBeanRegistry, getMetadataBuildingOptions, getModelsContext, getRepresentationStrategySelector, getScanEnvironment, getScanner, getScanOptions, getSqlFunctions, isJpaBootstrap, markAsJpaBootstrap, registerAdHocBasicType, release, resolveAdHocBasicTypeMethods inherited from interface EntityManagerFactory
addNamedEntityGraph, addNamedQuery, callInTransaction, getNamedEntityGraphs, getNamedQueries, getPersistenceUnitUtil, getProperties, getTransactionType, isOpen, runInTransaction, unwrapMethods inherited from interface org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators
getColumnLength, getColumnPrecision, getColumnScale, getDefaultZonedTimeSqlType, getDefaultZonedTimestampSqlType, getEnumeratedType, getExplicitJdbcTypeCode, getJdbcType, getPreferredSqlTypeCodeForArray, getTemporalPrecision, isLob, isNationalized, preferJdbcDatetimeTypes, resolveJdbcTypeCodeMethods inherited from interface org.hibernate.boot.spi.MetadataBuildingContext
getCurrentContributorName, getMetadataCollector, getObjectNameNormalizer, getTypeDefinitionRegistryMethods inherited from interface org.hibernate.boot.spi.MetadataBuildingOptions
createImplicitDiscriminatorsForJoinedInheritance, getBasicTypeRegistrations, getColumnOrderingStrategy, getCompositeUserTypes, getDefaultTimeZoneStorage, getImplicitCacheAccessType, getManagedTypeRepresentationResolver, getPersistentCollectionRepresentationResolver, getSchemaCharset, getSharedCacheMode, getTimeZoneSupport, getWrapperArrayHandling, ignoreExplicitDiscriminatorsForJoinedInheritance, isAllowExtensionsInCdi, isMultiTenancyEnabled, isNoConstraintByDefault, isXmlMappingEnabled, shouldImplicitlyForceDiscriminatorInSelect, useNationalizedCharacterDataMethods inherited from interface org.hibernate.query.spi.QueryEngine
interpretHqlMethods inherited from interface org.hibernate.query.spi.QueryEngineOptions
getCustomHqlTranslator, getCustomSqlFunctionMap, getCustomSqmFunctionRegistry, getCustomSqmMultiTableInsertStrategy, getCustomSqmMultiTableMutationStrategy, getCustomSqmTranslatorFactory, isJsonFunctionsEnabled, isPortableIntegerDivisionEnabled, isXmlFunctionsEnabled, resolveCustomSqmMultiTableInsertStrategy, resolveCustomSqmMultiTableMutationStrategyMethods inherited from interface Referenceable
getReferenceMethods inherited from interface org.hibernate.metamodel.RuntimeMetamodels
getEntityMappingType, getEntityMappingType, getImportedName, getPluralAttributeMappingMethods inherited from interface org.hibernate.metamodel.spi.RuntimeModelCreationContext
getGenerators, getGeneratorSettings, getJavaTypeRegistry, getMetadata, getOrCreateIdGeneratorMethods inherited from interface org.hibernate.SessionFactory
addNamedQuery, containsFetchProfileDefinition, createEntityManager, createEntityManager, createEntityManager, createEntityManager, findEntityGraphsByType, fromSession, fromStatelessSession, fromStatelessTransaction, fromTransaction, getCurrentSession, getDefinedFetchProfileNames, getJndiName, getSchemaManager, inSession, inStatelessSession, inStatelessTransaction, inTransaction, openStatelessSession, openStatelessSession, withStatelessOptionsMethods inherited from interface org.hibernate.engine.spi.SessionFactoryImplementor
bestGuessEntityName, createEntityGraph, createGraphForDynamicEntity, getAutoEnabledFilters, getChangesetCoordinator, getEntityCopyObserver, getEventEngine, getEventListenerGroups, getEventListenerRegistry, getFetchProfile, getFilterDefinition, getGenerator, getJdbcSelectWithActionsBuilder, getJdbcValuesMappingProducerProvider, getManagedBeanRegistry, getParameterMarkerStrategy, getWrapperOptions, openSession, openTemporarySession, parseEntityGraph, parseEntityGraph, parseEntityGraph, resolveTenantIdentifier, withOptionsMethods inherited from interface org.hibernate.boot.spi.SessionFactoryOptions
areJPACallbacksEnabled, buildSessionEventListeners, doesConnectionProviderDisableAutoCommit, getBaselineSessionEventsListenerBuilder, getBeanManagerReference, getCacheRegionPrefix, getCacheRetrieveMode, getCacheStoreMode, getDefaultBatchFetchSize, getDefaultCatalog, getDefaultLockOptions, getDefaultNullPrecedence, getDefaultSchema, getDefaultSessionProperties, getDefaultTenantIdentifierJavaType, getGraphParserMode, getInitialSessionCacheMode, getInitialSessionFlushMode, getInterceptor, getJdbcBatchSize, getJdbcFetchSize, getJdbcTimeZone, getJsonFormatMapper, getNativeJdbcParametersIgnored, getPhysicalConnectionHandlingMode, getQueryCacheLayout, getQueryStatisticsMaxSize, getSchemaAutoTooling, getStatelessInterceptorImplementorSupplier, getStatementInspector, getTempTableDdlTransactionHandling, getTenantCredentialsMapper, getTenantSchemaMapper, getTimestampsCacheFactory, getValidatorFactoryReference, getXmlFormatMapper, inClauseParameterPaddingEnabled, isAllowOutOfTransactionUpdateOperations, isAllowRefreshDetachedEntity, isAutoCloseSessionEnabled, isAutoEvictCollectionCache, isCheckNullability, isCollectionsInDefaultFetchGroupEnabled, isCommentsEnabled, isCriteriaCopyTreeEnabled, isCriteriaPlanCacheEnabled, isDirectReferenceCacheEntriesEnabled, isFailOnPaginationOverCollectionFetchEnabled, isFlushBeforeCompletionEnabled, isGetGeneratedKeysEnabled, isIdentifierRollbackEnabled, isInitializeLazyStateOutsideTransactionsEnabled, isJpaBootstrap, isJtaTrackByThread, isJtaTransactionAccessEnabled, isMinimalPutsEnabled, isMultiTenancyEnabled, isNamedQueryStartupCheckingEnabled, isOrderInsertsEnabled, isOrderUpdatesEnabled, isPassProcedureParameterNames, isPreferJdbcDatetimeTypesInNativeQueriesEnabled, isPreferUserTransaction, isQueryCacheEnabled, isReleaseResourcesOnCloseEnabled, isScrollableResultSetsEnabled, isSecondLevelCacheEnabled, isSessionFactoryNameAlsoJndiName, isStatisticsEnabled, isStructuredCacheEntriesEnabled, isSubselectFetchEnabled, isUnownedAssociationTransientCheck, isUseOfJdbcNamedParametersEnabled
-
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, @Nullable Element queryElement) -
findEntityClass
-
isEntity
- Specified by:
isEntityin classMockSessionFactory
-
getJpaEntityName
- Specified by:
getJpaEntityNamein classMockSessionFactory
-
getSupertype
- Specified by:
getSupertypein classMockSessionFactory
-
isSubtype
- Specified by:
isSubtypein classMockSessionFactory
-
asElement
-